Tuesday, February 2, 2016

[Q] Root using modded init.rc selinux

Dear xda users,

I am trying to root an Android 5.1 device. Since it is easy to change the kernel ramdisk and flash it back again (no lock) I had this plan to use /init.rc to do the job.

My plan is to change the init.rc file and add the following lines:

#should this be class main or core? Which seclabel?
service doroot /data/local/tmp/root.sh
class main
seclabel u:r:init:s0
oneshot

#trigger always, for testing
on property:ro.adb.secure=*
start doroot

Together with the root.sh script I put the files for the root process in /data/local/tmp too.
In the script the usual rooting commands like mounting /system rw and cat busybox...

Can any of the guru's tell me why it is not working? Does it have a chance at all?

Cheers


from xda-developers http://ift.tt/1P333AO
via IFTTT

No comments:

Post a Comment