Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gearlock not detecting Kernel-SU as root #25

Open
electrikjesus opened this issue Nov 15, 2021 · 5 comments
Open

Gearlock not detecting Kernel-SU as root #25

electrikjesus opened this issue Nov 15, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@electrikjesus
Copy link
Collaborator

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.

@electrikjesus electrikjesus added the bug Something isn't working label Nov 15, 2021
@axonasif
Copy link
Owner

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

Thanks.

@HuskyDG
Copy link
Contributor

HuskyDG commented Sep 29, 2022

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

@Xtr126
Copy link
Contributor

Xtr126 commented Sep 30, 2022

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
Copy link

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
Copy link
Contributor

Xtr126 commented Jul 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants