phhusson / Superuser

Keeping koush's Superuser fresh
GNU General Public License v3.0
426 stars 50 forks source link

Android M support plan ? #41

Open flyuuo9 opened 8 years ago

flyuuo9 commented 8 years ago

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

phhusson commented 8 years ago

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

flyuuo9 commented 8 years ago

@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