The only way I know of to run an application as the system user (setting android:sharedUserId="android.uid.system" in AndroidManifest.xml) is to sign your apk using the platform certificate. To do that, just define "LOCAL_CERTIFICATE := platform" in your Android.mk when compiling in the android source code. Signing with the platform certificate gives an app many permissions by default, I'm not completely sure which ones to be specific (maybe all of them?).
Andrew On Jun 4, 10:14 pm, Phillip Tran <[email protected]> wrote: > Thank you for confirming our suspicions, that saved us a fair amount of > goose chasing. > > Following on from this, we have noticed that we can de-compile our .apk file > and find all our keys and other variables quite easily. > > Is there a way for us to prevent this from happening, or a best practices > way to hide variables? Any suggestions for documentation on this matter > would also be appreciated. Thanks. > > On Wed, Jun 2, 2010 at 5:32 AM, Richard Deurwaarder < > > [email protected]> wrote: > > Hello! > > > As the title states I'd like to be able to load the wifi module from > > an app. > > > I've got the application running as system (UID 1000?) but it get's an > > permission error upon trying to load the module. > > Is there anyway to have an application being able to load the module? > > > If not, why is the Settings app able to do so? After all it run under > > the system user. From what i gathered from the source it seems to use > > some IPC calls to another program, is this running under root then? > > > Any push in the right direction would be appreciated! > > > Richard
