mercredi 8 février 2017

intentservice has uid of 1000 from one android account but different uid for another user account

Vote count: 0

I have created an intentservice that is signed with system certs so it can have system privs and run as system. I put it in /system/app directory. When it is invoked by my application running under "Owner" account on android 4.4.2 it has the uid of 1000:

I/ActivityManager( 3223): Start proc com.abc.dbintentservice for service com.abc.dbintentservice/.DbIntentService: pid=4515 uid=1000 gids={41000, 1028, 1015, 1023, 3002, 3001, 3003}

and it has no problem opening an sqlite file with system ownership.

I created a secondary user profile and installed the same app that invokes the intentservice and I get a different uid

I/ActivityManager( 3227): Start proc com.abc.dbintentservice for service com.abc.dbintentservice/.DbIntentService: pid=5161 uid=1001000 gids={41000, 1028, 1015, 1023, 3002, 3001, 3003}

and the intentservice has a uid that cannot open the sqlite file.

Any insight is appreciated.

asked 13 secs ago

Let's block ads! (Why?)



intentservice has uid of 1000 from one android account but different uid for another user account

Aucun commentaire:

Enregistrer un commentaire