phhusson/Superuser

Android M support plan ?

flyuuo9 opened this issue · 2 comments

I used this on android M , device is xiaomi 5
dmesg as this:
avc: denied { execute_no_trans } comm="init" scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file

How did you install it?
Android M is already supported, though it could miss some OEM-specific changes.

@phhusson
I modified system.img put su file as /system/xbin/custom_su(file se context is u:object_r:system_file:s0), and modified boot.img add a service in init.rc as below:

chown root root /system/xbin/custom_su
chmod 0755 /system/xbin/custom_su

service custom_su /system/xbin/custom_su --daemon
    class main