How to set a UID of my apk to AID_ROOT or AID_SYSTEM?

937 views
Skip to first unread message

Alex

unread,
Feb 18, 2009, 4:59:29 AM2/18/09
to android-porting

I use the SystemProperties.set, but it failed when check the permit,
how could I set my.apk to
AID_SYSTEM?

Alex

unread,
Feb 18, 2009, 4:59:41 AM2/18/09
to android-porting

David Turner

unread,
Feb 18, 2009, 11:53:35 AM2/18/09
to android...@googlegroups.com
You can't, all applications must have an UID that is >= 10000 on Android.
Do you seriously expect to run an application as root ?

Dianne Hackborn

unread,
Feb 18, 2009, 3:27:07 PM2/18/09
to android...@googlegroups.com
Not even the system process runs as root. :)
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support.  All such questions should be posted on public forums, where I and others can see and answer them.

Alex

unread,
Feb 18, 2009, 8:37:42 PM2/18/09
to android-porting
I want to set one property items, but my default UID is AID_COMPRASS,
My means is how to change the UID, of course, set to AID_SYSTEM/
AID_ROOT may as well.

On Feb 19, 12:53 am, David Turner <di...@android.com> wrote:
> You can't, all applications must have an UID that is >= 10000 on Android.
> Do you seriously expect to run an application as root ?
>
Reply all
Reply to author
Forward
0 new messages