Need help enabling/disabling specific app or enabling/disabling a specific notification channel, possible to do this shizuku?

spart0n

New member
I'm on a non rooted pixel and I have shizuku setup though. I'm trying to make a macro that enables/disables a specific app or enable/disable an apps notifications or channel. Any possible way to do this without root?

Also I can't install the helper APK
This is what I get when I try to install it
 

Attachments

  • Screenshot_20230725-092411.png
    Screenshot_20230725-092411.png
    182.6 KB · Views: 10

Endercraft

Moderator (& bug finder :D)
I'm on a non rooted pixel and I have shizuku setup though. I'm trying to make a macro that enables/disables a specific app or enable/disable an apps notifications or channel. Any possible way to do this without root?
MacroDroid isn't compatible with Shizuku yet, but there is a plugin that lets you run adb commands after you run adb tcpip (any valid port) which is always active even without any connection (unlike wireless debugging). You can download the plugin on F-Droid (Google Play Store will say that it's too old for your device but that's a lie). Search for "ADB shell [tasker plugin].
You can find commands to enable/disable apps by searching. I don't know if you can use adb to enable/disable app notifications.

Also I can't install the helper APK
If your pixel is running Android 14 you need to install with adb. Here's the command : adb install --bypass-low-target-sdk-block FILENAME.apk (Source)
 

spart0n

New member
MacroDroid isn't compatible with Shizuku yet, but there is a plugin that lets you run adb commands after you run adb tcpip (any valid port) which is always active even without any connection (unlike wireless debugging). You can download the plugin on F-Droid (Google Play Store will say that it's too old for your device but that's a lie). Search for "ADB shell [tasker plugin].
You can find commands to enable/disable apps by searching. I don't know if you can use adb to enable/disable app notifications.


If your pixel is running Android 14 you need to install with adb. Here's the command : adb install --bypass-low-target-sdk-block FILENAME.apk (Source)
I've got that tasker plugin setup, it works when I test it in the app with the defaults it gives for testing the power key event but when I put it in macrodriod it just doesn't work, I tried enabling/disabling the app and I also tried doing the same to notifications. It all works from shizuku enabled adb shell app but not when I run it through macrodriod it doesn't output any errors it just doesn't work.

adb shell pm disable-user com.glip.mobile adb shell pm enable com.glip.mobile adb shell pm revoke com.glip.mobile android.permission.POST_NOTIFICATIONS adb shell pm grant com.glip.mobile android.permission.POST_NOTIFICATIONS
These are the commands I've tried that works in ashell but not in macrodriod with tasker plugin.
 

Attachments

  • Screenshot_20230725-112129.png
    Screenshot_20230725-112129.png
    170.8 KB · Views: 11
  • Screenshot_20230725-112137.png
    Screenshot_20230725-112137.png
    143.1 KB · Views: 9

Dimlos

Well-known member
Check to see if this command works.
In ADB Shell [Tasker Plugin], you must omit the adb shell and type.
 

Attachments

  • mobile data disabele.jpg
    mobile data disabele.jpg
    197.5 KB · Views: 8
  • mobile data eneble.jpg
    mobile data eneble.jpg
    197.1 KB · Views: 7

spart0n

New member
Check to see if this command works.
In ADB Shell [Tasker Plugin], you must omit the adb shell and type.
That command did work and removing the adb shell part from macrodriod action for the plugin made the commands work now thanks a bunch!
 
Top