How do you open Shizoku's shortcuts in a macro?

Carl Zyex

New member
In the past, to give administrator rights to Android apps, you had to root the device.

Well, with Shizuku you can do most of what you do with root privileges, but without having to root your device.

What Shizuku does is allow common applications to directly use system APIs with ADB privileges. Works best with Android 11+, because it needs wireless debugging.

Anyway, I have installed an app called Hail, give it Shizoku privileges and I can freeze my installed and system apps. Just a shortcut away.

Only issue is, i'd like to launch Hial's "freeze all" shortcut at screen lock in a macro, but the shortcut is not visible in MD options.

Thsnks
 

Dimlos

Well-known member
Hail supports ADB commands, so you can freeze and unfreeze by sending commands using ADB Shell [Tasker Plugin].
ADB Shell [Tasker Plugin] requires the command adb tcpip 5555 in advance.
 

Attachments

  • macro.jpg
    macro.jpg
    438.9 KB · Views: 8
  • hail_freeze_control.macro
    5.8 KB · Views: 6

Carl Zyex

New member
Thanks.
In fact, I have no need for the tasker plugin and a shell, because Shizoku does all the ADB commands directly and permanently.
And it works perfect.
My concerns is strictly with Macrodroid: I can't manage to include any Hail shortcut in a macro. My point is to launch the "Lock and Freeze" shortcut when I lock my phone.
 

Carl Zyex

New member
Sorry, I misunderstood your answer.

How could I include the com.aistra.hail.action.FREEZE_ALL
in a send Intent macro?
 

Carl Zyex

New member
Just found a simple way!
Just use aShell , a terminal which can launch any ADB command (like LADB) and gets its privileges from Shizoku!

I'll post my new macro asap.
Thanks again.
 

Dimlos

Well-known member
I think I need the ADB command to operate from MacroDroid.
You can't actually specify a shortcut.
 

Dimlos

Well-known member
I know you like Shizuku, but aShell cannot be controlled from MacroDroid.
ADB Shell [Tasker Plugin] can send ADB commands from MacroDroid as a plugin.
 

Carl Zyex

New member
Here is the macro! Just used the 'send intent' action
 

Attachments

  • lock and freeze intent.jpg
    lock and freeze intent.jpg
    283.3 KB · Views: 18
  • Lock_and_freeze macro.jpg
    Lock_and_freeze macro.jpg
    130.8 KB · Views: 17

Carl Zyex

New member
Here is the macro! Just used the 'send intent' action.
I know you like Shizuku, but aShell cannot be controlled from MacroDroid.
ADB Shell [Tasker Plugin] can send ADB commands from MacroDroid as a plugin.
Just wondering about ADB Shell [Tasker Plugin] sending ADB commands from MacroDroid. Does it need some ADB hacks first?
When I tried, I got an error "java.lang.exception . No ADB enabled"
 

Dimlos

Well-known member
Sorry, I misunderstood, I thought that only items set up with Dynamic shortcut action could be sent by Intent.
I verified that both freezing and unfreezing are possible with intent.
Looking back, am start was a command to send an intent.
 
Last edited:

Dimlos

Well-known member
Before using ADB Shell [Tasker Plugin], you need to send the command adb tcpip 5555.
In this case, it is possible to substitute the Send Intent action, so there was no need to force the use of this action.
 
Last edited:
Top