I am in a position to create my own boot image for my Android tablet - which means I can in theory modify the /sepolicy
file to, for example, give the shell
account that is used by adb shell
sessions, complete root
privileges.
How do I do that? How can I e.g. list the data already in that file, and then modify them?
/sepolicy
file but you lack the permission to read it? Or that you have the file but you don't know how to parse it into something that can be edited meaningfully? If it's the latter, note that/sepolicy
is likely to be an automatically generated file, and figuring out how it's structured is hard, just like it's harder to read disassembled binaries than the original source code. Did you check if the source code of your Android image is available? (Google's is but some vendors don't publish theirs.) – Gilles 'SO- stop being evil' Sep 30 '15 at 22:34/sepolicy
? I have the complete OverTheAir (OTA) update zip file from the manufacturer - that's where I got hold of the boot.img, opened it, and unwrapped theinitrd.img
- which gave me access to/sepolicy
. Any pointers to what are the "sources" and the tool(s) invocation(s) that parse them and create/sepolicy
will be most appreciated. – ttsiodras Oct 01 '15 at 10:34sepolicy
files. – WhiteWinterWolf Aug 15 '16 at 14:48