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

Improve magisk compatibility on AOSP Userdebug build #26

Merged
merged 1 commit into from Apr 9, 2020
Merged

Improve magisk compatibility on AOSP Userdebug build #26

merged 1 commit into from Apr 9, 2020

Conversation

senyuuri
Copy link
Contributor

@senyuuri senyuuri commented Apr 9, 2020

On a userdebug build device with magisk installed, two su files exist on the same system:

  • /system/xbin/su - added by userdebug config, restricted to root and shell users
  • /sbin/su - added by magisk

Despite the fact that magisk's su is available, the default logic will attempt to test for /system/xbin/su first, resulting in a failed attempt and empty ScriptRunner result.

Given magisk has gained great popularity over the years, it may worth considering to move /sbin/su to the first of DEFAULT_ROOTS so as to improve the overall compatibility.

@madeye madeye merged commit 8416617 into madeye:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants