Skip to content

Instantly share code, notes, and snippets.

@guilhermgonzaga
Created January 13, 2021 19:41
Show Gist options
  • Save guilhermgonzaga/6820305098bf0b41e64c4a578da9e7bc to your computer and use it in GitHub Desktop.
Save guilhermgonzaga/6820305098bf0b41e64c4a578da9e7bc to your computer and use it in GitHub Desktop.
Enable extra permissions for Macrodroid through the ADB shell. You should only try this at your own risk and if you know your way around console tools.
<# You need to enable developer options and usb debugging on your phone.
- Unblock the developpers menu on your smartphone;
- Enable USB debugging;
- Plug-in usb cable while your phone is running;
- Open a console on the folder extracted with ADB tool;
- Type `adb devices` and check what it says;
- If you see "device - not authorizated", look at your phone, maybe you need to confirm access;
- After confirming, type `adb devices` once more;
- If you see a code and "device", you are ready to run this.
#>
# Basic permissions
.\adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS
.\adb shell pm grant com.arlosoft.macrodroid android.permission.CHANGE_CONFIGURATION
# Demo mode action
.\adb shell pm grant com.arlosoft.macrodroid android.permission.DUMP
# Volume button long press trigger
.\adb shell pm grant com.arlosoft.macrodroid android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER
# Logcat trigger
.\adb shell pm grant com.arlosoft.macrodroid android.permission.READ_LOGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment