-
Notifications
You must be signed in to change notification settings - Fork 1k
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
'su' does not run on Nexus 5/Lollipop - only position independent executables (PIE) are supported #268
Comments
Well, I compiled
I'll leave this one to the experts. |
The problem is, even if you are root, you are still effectively running in the shell or untrusted_app context. SElinux will stop you from doing anything. SU will need to have the policy adjustments alongside root- and it is a huge effort compared to previous Android. The current root solution (SuperSU from ChainsDD) spawns from the zygote context and still requires a supporting binary to adjust the SElinux policies. |
Does this mean Lollipop cannot be rooted as previous versions and it's pointless to install any of the three alternatives in Play store? |
No that is not what it means. Lollipop is rootable and superSU is a great working version (though not open source). |
Thanks @sparkym3 for answering. So is there an uninstallation guide for koush/Superuser? Cuz I didn't see one mentioned in the README.md, and I have installed via the recovery zip. |
So if there is now way to run Superuser on Lollipop devices this is the end of the OpenSource su project? How could I adjust SElinux policies if I make my own image? |
This issue should actually be closed, because it's been fixed by 5291f21 |
It even works properly on a MTK Android 5.0, assuming proper SELinux setting. (namely, I disabled SELInux) |
would you make a release with the fix? |
This is SONY XPERIA Z2 D 6503
|
For interested users, I'm working on an opensource Superuser, fork of Koush's SU, which I intent to be compatible with Chainfire's command options. Any help would be much appreciated. (I already have most SELinux knowledge needed, and working PoC for boot) |
WHAT IS THIS "PIE".,BUT MY PHONE IS NOT NEXUS.,MY PHONE IS XPERIA Z2 D6503
|
@phhusson 👍 this is great. I cannot help you but well I support |
Clicking Recovery/Install gives ‘There was an error installing Superuser. Please send a log of the error to the developer.’ Manually installing the
su
binary and attempting to run it gives:error: only position independent executables (PIE) are supported.
The text was updated successfully, but these errors were encountered: