From 7c20d70d72561990e90605a5c550a9b8aab8329a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 25 Jan 2024 10:35:33 +0200 Subject: [PATCH] rm adb-permissions.bash for reboot looping Fairphone5 stock OS --- bash/adb-permissions.bash | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 bash/adb-permissions.bash diff --git a/bash/adb-permissions.bash b/bash/adb-permissions.bash deleted file mode 100755 index 6e9af29..0000000 --- a/bash/adb-permissions.bash +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -# This script will set extra permissions through adb for the apps I use so I don't have to look them up again. - -# adb global options: -# -a listen on all network interfaces, not just localhost -# -d use USB device (error if multiple devices connected) - -set -x - -# TODO: if adb is not installed or in $PATH, exit? - -# Remember, -echo "In case of trouble check Android System Settings, Connected devices, USB mode. It should be data transfer for adb USB debugging to take effect." - -# DetoxDroid, https://github.com/flxapps/DetoxDroid/wiki/Manual-Installation -adb "$@" shell pm grant com.flx_apps.digitaldetox android.permission.WRITE_SECURE_SETTINGS -adb "$@" shell dpm set-device-owner com.flx_apps.digitaldetox/.DetoxDroidDeviceAdminReceiver -#echo "Remember to force-stop & restart DetoxDroid!" - -# Greenify, https://web.archive.org/web/20190209023358/https://greenify.uservoice.com/knowledgebase/articles/749142-how-to-grant-permissions-required-by-some-features -# TODO: Alive source -adb "$@" shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS -adb "$@" shell pm grant com.oasisfeng.greenify android.permission.DUMP -adb "$@" shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS -adb "$@" shell pm grant com.oasisfeng.greenify android.permission.GET_APP_OPS_STATS -#echo "Remember to force-stop & restart Greenify!" - -# Nevolution, https://nevo.app/setup.html -adb "$@" shell setprop persist.log.tag.NotificationService DEBUG -adb "$@" shell pm grant com.oasisfeng.nevo android.permission.READ_LOGS -adb "$@" shell pm grant com.oasisfeng.nevo android.permission.INTERACT_ACROSS_USERS -#echo "Remember to force-stop & restart Nevolution!" - -# Wait a bit and then reboot the device -sleep 5 -adb "$@" reboot - -set +x