FORUMS
Remove All Ads from XDA

KernelSU - Kernel-Assisted Superuser for Android Root Shell

197 posts
Thanks Meter: 791
 
Post Reply Email Thread
Announcement from zx2c4: KernelSU - Kernel-assisted superuser root shell for your development kernels!
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!

Git repo: https://git.zx2c4.com/kernel-assisted-superuser/about/

Instructions:

1. cd into your kernel tree.
2. Run this command:

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

3. Enable CONFIG_ASSISTED_SUPERUSER=y in your config.
4. Gain root by running su.

For so many reasons, this is an awful idea and totally insecure. Don't ship kernels to your users with this enabled! I've tested this on the Pixel 3.

Screenshot

XDA:DevDB Information
KernelSU - Kernel-Assisted Superuser for Android Root Shell, Kernel for all devices (see above for details)

Contributors
zx2c4
Source Code: https://git.zx2c4.com/kernel-assisted-superuser/about/

Kernel Special Features:

Version Information
Status: Snapshot

Created 2018-11-22
Last Updated 2018-11-23
The Following 58 Users Say Thank You to zx2c4 For This Useful Post: [ View ]
 
 
10th December 2018, 04:01 PM |#2  
Parthib's Avatar
Senior Member
Thanks Meter: 61
 
More
Good stuff! Keep it up
10th December 2018, 05:38 PM |#3  
LazerL0rd's Avatar
Senior Member
London, England, UK
Thanks Meter: 965
 
Donate to Me
More
Great, actually amazing, work on this,. I'm sure Google will be having a meeting of angry "security specialists" sometime soon crying about the future of Android.

Also can't wait for the first idiot to put this in their production kernel.
The Following 3 Users Say Thank You to LazerL0rd For This Useful Post: [ View ] Gift LazerL0rd Ad-Free
10th December 2018, 07:47 PM |#4  
linuxct's Avatar
Recognized Contributor & Social Contributor
Flag BCN
Thanks Meter: 5,681
 
Donate to Me
More
A really amazing idea that needs to improve it's implementation. Kinda curious to see how this will connect with an userland "Manager" app to allow or deny root permissions to specific apps.
Best of luck
The Following User Says Thank You to linuxct For This Useful Post: [ View ] Gift linuxct Ad-Free
10th December 2018, 11:36 PM |#5  
janjan's Avatar
Senior Member
Flag Aalborg
Thanks Meter: 2,753
 
Donate to Me
More
Can't get the patch to apply.


[+] Downloading
Please run this from the top level of your kernel tree.
11th December 2018, 12:41 AM |#6  
Junior Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by janjan

Can't get the patch to apply.


[+] Downloading
Please run this from the top level of your kernel tree.

I'm having the same problem, not really tripping on it tho since it's still a new thing.
Question though, would this theoretically become a solution/work-around having a locked bootloader? Or does the OEM toggle still need to be a thing?
11th December 2018, 02:27 AM |#7  
freeza's Avatar
Recognized Developer
Flag Pasadena, CA
Thanks Meter: 13,835
 
Donate to Me
More
Brilliant. Compiled and used successfully!
The Following User Says Thank You to freeza For This Useful Post: [ View ]
11th December 2018, 03:33 AM |#8  
Senior Member
Thanks Meter: 519
 
Donate to Me
More
Awesome stuff. Can't wait to see more development on it! Keep it up

Enviado do meu SM-N950F atrav├ęs do Tapatalk
11th December 2018, 04:41 AM |#9  
zzs20020430's Avatar
Junior Member
Thanks Meter: 4
 
More
interesting
11th December 2018, 05:51 AM |#10  
Haxk20's Avatar
Senior Member
Thanks Meter: 540
 
More
This is really cool. Keep up the great work !
11th December 2018, 08:03 AM |#11  
zx2c4's Avatar
OP Recognized Developer
Flag Paris
Thanks Meter: 791
 
Donate to Me
More
Quote:
Originally Posted by janjan

Can't get the patch to apply.


[+] Downloading
Please run this from the top level of your kernel tree.

Could you give me a link to the github for your kernel source?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes