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

added support for non-root autostart on boot (can be enabled whit the same toggle in settings) #584

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

metalex201
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant