Monday, August 19, 2013

[android-developers] Solve permission denied error when using SystemProperties.set()

Hi,

I've a problem of not having enough permissions for setting a "persist.xxxxx" property from one of the applications. This application shares the UserId of the phone so I tried to hack in property_service.c and add an entry:

 

{"persist.", AID_RADIO, 0}

 

in property_perms structure.

 

After this I was able to set the property but without this I get a "permission denied" error.
I get this error: "> init: sys_prop: permission denied uid:1001  name:persist.xxxxx"

Does anyone know how to solve permission denied error ?

Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment