-
Notifications
You must be signed in to change notification settings - Fork 744
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
added support for non-root autostart on boot (can be enabled whit the same toggle in settings) #584
base: master
Are you sure you want to change the base?
Conversation
Check out this fork: https://github.com/pixincreate/Shizuku There's a fork of that fork also that adds some AccessibilityService features however they never released a build: https://github.com/diabl0w/Shizuku Cheers and thanks for the forward thinking. Hope your efforts can all be combined :D |
Quite a while ago i made a discussion post about a way to have shizuku autorun on non-root devices, this sadly requires a permission that is not allowed to be published on google play, so i made a functions that detects IF shizuku has WRITE_SECURE_PERMISSION or not, so for google play the permission can be removed from the manifest and shizuku will function without error, just without the autorun function working on non-root
on BootCompleteReceiver it checks if device previously connected with adb and if so then its starts a service in the background that turns on wireless debugging (and also disables adb unathourization so over time you wont have to re-pair wireless adb)
permissions are checked and granted on the first time the user pairs shizuku.
I've gotten into some issues regarding memory managments systems like the ones in MIUI that destroy any service that exists, so for these any battery saver mode needs to be disabled, and so is "pause app activity if unused" needs to be turned off, unfortunately I don't know how to work with XML layouts so I'm unable to add any disclaimer regarding this issue, also the toggle in the settings needs to be modified to make it clear that is also works now on non-root. I just don't know how to do that.
Hope this can be a usefull addition to this great app.