axonasif / gearlock

Custom Recovery Replacement for Android-x86
https://supreme-gamers.com/r/gearlock-custom-recovery-replacement-for-android-x86.40
GNU General Public License v2.0
104 stars 23 forks source link

Gearlock not detecting Kernel-SU as root #25

Open electrikjesus opened 2 years ago

electrikjesus commented 2 years ago

For Gearlock detecting kernel-su, can we have it also check if "su -c" returns a specific string?

Because all the main functions of Gearlock work that aren't checking for root first. Supercharge quits, as well as a few other functions.

axonasif commented 2 years ago

Can you also give an example string it should look for?

Thanks.

HuskyDG commented 1 year ago

Maybe this is because /system/bin/su doesn't not really exist and KernelSU hijack execv on /system/bin/su

Xtr126 commented 1 year ago

Maybe this is because /system/bin/su doesn't not really exist and KernelSU hijack execv on /system/bin/su

It works all fine when you change shebang of /gearlock/bin/gearlock from #!/gearlock/bin/bash to #!/system/bin/sh

etHunter commented 1 month ago

Maybe this is because /system/bin/su doesn't not really exist and KernelSU hijack execv on /system/bin/su

It works all fine when you change shebang of /gearlock/bin/gearlock from #!/gearlock/bin/bash to #!/system/bin/sh

How i can do this sir

Xtr126 commented 1 month ago

How i can do this sir

The gearlock file is just a regular uncompressed cpio archive, if you know how to unpack and repack cpio archives it is a simple operation of modifying the file and repacking it.