Last active
January 30, 2025 15:18
-
-
Save rwp0/25156b4c5cc17176b4200bdd6108bd80 to your computer and use it in GitHub Desktop.
Grant Android Permissions to Tasker with Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = 'net.dinglisch.android.taskerm' | |
$permissions = 'READ_LOGS', 'SET_VOLUME_KEY_LONG_PRESS_LISTENER' | |
cd $env:LOCALAPPDATA\Android\Sdk\platform-tools | |
foreach ($permission in $permissions) { | |
.\adb.exe shell ` | |
pm grant $app android.permission.$permission | |
} | |
.\adb.exe shell ` | |
am force-stop $app | |
.\adb.exe shell ` | |
monkey -p $app 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment