Automatically activate Shizuku in Android 14 (non-root) #462
Replies: 7 comments 24 replies
-
Combined with Termux:Boot, this feels perfect! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. I'm using it with Macrodroid Edit:
Oh wait, Shizuku itself could turn on Wireless Debugging, right? Perhaps with |
Beta Was this translation helpful? Give feedback.
-
.
في الخميس، ٨ أغسطس ٢٠٢٤, ١:٢٥ م MSHB ***@***.***> كتب:
… Thanks a lot. I'm using it with Macrodroid
Screenshot_20240808-155421.png (view on web)
<https://github.com/user-attachments/assets/4ef8f146-2554-4ce8-82bb-937a2ceaeb32>
—
Reply to this email directly, view it on GitHub
<#462 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJJET6KJPOTSVC5GH2INJRDZQNBTNAVCNFSM6AAAAABFSLMR22VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRXGQYDGOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@Knud3 do you happen to know check if Shizuku service is running already from shell? |
Beta Was this translation helpful? Give feedback.
-
so where is "rish_shizuku.dex"? |
Beta Was this translation helpful? Give feedback.
-
Thank you for this! It works for my non rooted Poco device Android 14. But it doesn't automatically start Shizuku on my device. After executing the "shizuku" command on Termux, I have to manually press the "Start" button on the Shizuku app for the service to start. Would you have any idea why this is happening? From the gif you posted, I can see from the terminal that the shizuku command would automatically start the service. Also, from the Termux terminal, when I issue "shizuku", there's an output that reads:
I don't know if that output is connected to my issue or not. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
@onoakino I just happened to have the same problem, I think the problem relies on that we're trying to connect to every open port and as a result when we use Well, what I did in order to solve it was to add this line: It worked for me, you can try and tell me if it works for you as well.
|
Beta Was this translation helpful? Give feedback.
-
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 app (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