Sunday, March 11, 2018

Effective groupids on Android

to get the effective gids :

root@rootedbox:/system # grep com.example.bla /data/system/packages.list

com.example.bla 10064 0 /data/data/com.example.bla default 1028,1015,3003,3002,3001

for list of gids check here ( eg.: AID_SDCARD_RW is 1015 ):

open is implemented here :

ls is implemented in toolbox, here :

ls maps uids to usernames using getpwuid(), defined here :

'struct passwd' that is returned is defined here :

No comments:

Post a Comment