--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Xun, yes, it does help :->
looks like I actually need to do both:
1. update the platform.xml under framework/base/data/etc/
<permission name="android.permission.FOO" > <group gid="foo_grp" /> </permission>
note: that probably implies that any relevant OEM libs, should be member of group <foo_grp> also?
2. update the core/res/AndroidManifest.xml
<permission android:name="android.permission.FOO"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="signature|system"
android:label="@string/..."
android:description="@string/..." />
- does it require rebuilding the Android OS after the change?
- is this something that on Android phones, only the OEM can do?
Hi,On Mon, Jan 13, 2014 at 2:22 PM, roy....@googlemail.com <roy.be...@gmail.com> wrote:
Hi Xun, yes, it does help :->
looks like I actually need to do both:
1. update the platform.xml under framework/base/data/etc/
<permission name="android.permission.FOO" > <group gid="foo_grp" /> </permission>
note: that probably implies that any relevant OEM libs, should be member of group <foo_grp> also?
I'm not sure I understand this question...
2. update the core/res/AndroidManifest.xml
<permission android:name="android.permission.FOO"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="signature|system"
I believe this protection level means the permission is not available to user applications. Is this your intention?
android:label="@string/..."
android:description="@string/..." />
- does it require rebuilding the Android OS after the change?
Yes.- is this something that on Android phones, only the OEM can do?I think so.
Why would others want to add a new permission to the platform (vs. only used by your own applications)?
Hi Xun,
thanks again!
one more question: anything additional that needs to be done to make it compliant with all\any application stores?
cheers!
On Tuesday, January 14, 2014 5:00:00 AM UTC+2, Xun Sun wrote:Hi,On Mon, Jan 13, 2014 at 2:22 PM, roy....@googlemail.com <roy.be...@gmail.com> wrote:
Hi Xun, yes, it does help :->
looks like I actually need to do both:
1. update the platform.xml under framework/base/data/etc/
<permission name="android.permission.FOO" > <group gid="foo_grp" /> </permission>
note: that probably implies that any relevant OEM libs, should be member of group <foo_grp> also?
I'm not sure I understand this question...
updated this way, the linux uid of the Dalvik VM in which the apps runs, will be able to use native libraries which require the linux uid to be in the associated group.