Skip to content

Instantly share code, notes, and snippets.

@rwp0
Last active January 30, 2025 15:18
Show Gist options
  • Save rwp0/25156b4c5cc17176b4200bdd6108bd80 to your computer and use it in GitHub Desktop.
Save rwp0/25156b4c5cc17176b4200bdd6108bd80 to your computer and use it in GitHub Desktop.
Grant Android Permissions to Tasker with Powershell
$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