Auto start shizuku on non-root device (MacroDroid) #461
MohabMohie
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for sharing. Best to upload to the template store and share the macro ID for people to just download easily. Also, you don't need to keep wireless debugging on in order to keep Shizuku alive. Should toggle it to off at the end. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's a big topic in the community to auto start Shizuku on a non-root phone.
Here's what I did:
PI
which is an application installer that uses Shizuku to bypass some restrictions such as the minimum SDK version.aShell You
which is also a Shizuku app to execute the ADB commands.Here's how it works so that you can replicate it:
adb_wifi_enabled
system setting to enable WiFi Debugging.Shizuku is not running
is displayed.Start
button.Service started
is displayed on screen.The entire script takes around 2 seconds to execute. And it works everytime I'm connected to the home network.
I may add more constraints to it, such as confirm that the screen is not locked and so on to handle some edge cases where the script will misstrigger. But right now it's working flawlessly when I manually enable the WiFi toggle and my phone gets connected to my home WiFi automatically.
Beta Was this translation helpful? Give feedback.
All reactions