Automatically activate Shizuku in Android 14 (non-root) #462
Knud3
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just got Android 14 phone and tried to find a possibility to activate Shizuku automatically on the device boot, and every possible solution led to Tasker and MacroDroid. I want to believe that those both projects are legit, but I did not see it an option to install a closed-source app that has rights to "everything". I picked the second-best option and used Termux and shell scripts. Maybe you know better?
After some trial and error, I came to this. I hope I have everything essential here and have not missed any steps.
To activate Shizuku (TL;DR): Press
Wireless debugging
tile and runshizuku
command. Done!Initialize
All of this needs to be done just once, so do not worry about complexity.
Install Shizuku and Termux (eg. with
F-Droid
orDroid-ify
)Initialize Termux with commands:
Open the
Termux
andWireless debugging
settings page in the split screenPress
Pair device with pairing code
in theWireless debugging
settings pageGive ADB pairing command in Termux screen:
adb pair localhost:Port "WiFI pairing code"
(eg.adb pair localhost:37323 908693
)Pair and start Shizuku via wireless debugging
Use
Export files
inUse Shizuku in terminal apps
from Shizuku (export files eg./storage/emulated/0/Shizuku
)Create a
copy.sh
file including the script below to the same directory (use eg. Squircle CE)Execute the script in Termux (eg.
bash ./storage/shared/Shizuku/copy.sh
)Usage
Commands:
shizuku
- Activate Shizukurish
- Open the ADB shell or run the ADB shell commandTo activate Shizuku you need to enable wireless debugging. The easiest way to do it is to use a quick setting tile. To add it, you need to enable it in
Quick settings developer tiles
inDeveloper options
. After that just writeshizuku
in Termux and press enter. Everything is set and done. Wireless debugging is automatically disabled because it does not need to be running in the background for Shizuku to work. This needs to be done once every reboot.When you need to open the ADB shell, just use the
rish
command in Termux. With therish -c 'command'
(eg.rish -c 'whoami'
) you can run it directly or use it in scripts. More info can be found here.You can also use Termux:Widget to make shortcut to home screen.
Please, also see the common problems.
Beta Was this translation helpful? Give feedback.
All reactions