![]() You could put your code in any script or replace a binary with script which was executed with root privileges on boot. Things were simple before Android 5 when SELinux wasn't enforcing. See also hard way (if you have no luck with finding magic file): I update this file to extend PATH env var and now each time I do adb shell I have Busybox symlinks in my PATH! Good candidate for including custom scripts are lines from: $ grep service /init*.rcĪs each device unique you may need to do own guess about search criteria.įor example I found /etc/mkshrc which used by Korn shell. Google about each candidate to get know how this file was used. Now your task to find executable or *rc file which you modify to achieve your goal: $ find /etc -type f -perm +110 Some above steps may be replaces with: $ adb rootĪnd later remount RO: $ chmod o-w /system/etc Lrwxrwxrwx 1 root root 11 /etc -> /system/etc Usually it is placed in /system/ partition which you can mount as RW: $ ls -l /etc
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |