I was testing the exploit with a LG G5 and a G4 and the shell was hanging but I wasn't getting any SELinux errors with adb logcat | grep avc so I was trying some things and found out that if you change the Makefile from
adb shell /system/bin/run-as
to
adb shell
and call manually /system/bin/run-as, you get root.
Sup!
I was testing the exploit with a LG G5 and a G4 and the shell was hanging but I wasn't getting any SELinux errors with
adb logcat | grep avc
so I was trying some things and found out that if you change theMakefile
fromto
and call manually
/system/bin/run-as
, you get root.demo: