Hi, given that some newer root solutions don't have the supolicy binary anymore, P2oggle gets stuck after trying to toggle on the superuser functionality due to this:
|
val supolicy = "supolicy --live " + |
|
"'allow appdomain input_device dir search' " + // directory rule |
|
"'allow appdomain input_device chr_file { getattr read open }'" // character device rule |
To solve it I've created a tiny Magisk/KernelSU/APatch module that adds a dummy supolicy shell script under /system/bin (that just returns 0) and a sepolicy.rules file that applies the same SELinux rules that the app usually does.
allow appdomain input_device dir search
allow appdomain input_device chr_file { getattr read open }
--
That's it, after installing that P2oggle 1.2 works fine again. You can download it from here: t2oggle-compat.zip
It's only a couple of lines, so it should be easy to inspect and audit. Hope that helps.
Hi, given that some newer root solutions don't have the
supolicybinary anymore, P2oggle gets stuck after trying to toggle on the superuser functionality due to this:p2oggle/app/src/main/java/eu/biqqles/p2oggle/Device.kt
Lines 64 to 66 in b27a5bb
To solve it I've created a tiny Magisk/KernelSU/APatch module that adds a dummy
supolicyshell script under/system/bin(that just returns0) and asepolicy.rulesfile that applies the same SELinux rules that the app usually does.--
That's it, after installing that P2oggle 1.2 works fine again. You can download it from here:
t2oggle-compat.zipIt's only a couple of lines, so it should be easy to inspect and audit. Hope that helps.