add adb-reset-permissions.bash

This commit is contained in:
Aminda Suomalainen 2023-12-03 10:32:43 +02:00
parent 318473403f
commit 1070d2bbf4
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -x
# As the GUI method did nothing for me, this will hopefully reset all
# permissions of apps on an Android device.
adb "$@" shell pm reset-permissions
adb "$@" reboot
set +x