From 1070d2bbf42b9e5cad32711f35278f077a53de93 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 3 Dec 2023 10:32:43 +0200 Subject: [PATCH] add adb-reset-permissions.bash --- bash/adb-reset-permissions.bash | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bash/adb-reset-permissions.bash diff --git a/bash/adb-reset-permissions.bash b/bash/adb-reset-permissions.bash new file mode 100755 index 0000000..d1e6ab3 --- /dev/null +++ b/bash/adb-reset-permissions.bash @@ -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