Skip to content

NickHardwood/kernel-assisted-superuser

Repository files navigation

Kernel-Assisted Superuser for Android

KernelSU

Like being able to do quick cycles of fastboot boot out/arch/arm64/boot/Image.lz4-dtb, but annoyed by the lack of root this way? Well this atrocious idea might be the thing for you! It makes sudo always just work.

Possibly the worst idea ever.

This is an awful idea! If you're silly, you'll add this to your kernel, and then forget to turn it off for production builds, and then very bad things will happen. This here probably is not for you! If you're reading this sentence, start backing away slowly! Out, damned spot!

Add it to your kernel!

From inside a clean kernel tree of yours:

$ curl -LsS "https://git.zx2c4.com/kernel-assisted-superuser/plain/fetch-and-patch.sh" | bash -

Then, make sure CONFIG_ASSISTED_SUPERUSER=y is enabled.

But don't do it! I take no responsibility for the dumpster fire this will cause. You'll probably forget to remove this for your release kernels. There are probably better ways to manage this kind of thing anyway. Don't do it! Just say "no" to backdoors! N.O.

Pop a root shell?

thinkpad $ adb shell
crosshatch:/ $ whoami
shell
crosshatch:/ $ sudo
You are now root.
crosshatch:/ # whoami
root

Screenshot

About

Fork of ZX2C4's kernel backdoor with a small workaround to pass Safetynet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published