mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-23 11:12:48 +01:00
adb-permissions.bash: initial commit
This commit is contained in:
parent
31423d9e5a
commit
d702ecddec
35
bash/adb-permissions.bash
Executable file
35
bash/adb-permissions.bash
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
#!/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 -d shell pm grant com.flx_apps.digitaldetox android.permission.WRITE_SECURE_SETTINGS
|
||||||
|
adb -d 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 -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS
|
||||||
|
adb -d shell pm grant com.oasisfeng.greenify android.permission.DUMP
|
||||||
|
adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS
|
||||||
|
adb -d 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 -d shell setprop persist.log.tag.NotificationService DEBUG
|
||||||
|
adb -d shell pm grant com.oasisfeng.nevo android.permission.READ_LOGS
|
||||||
|
adb -d shell pm grant com.oasisfeng.nevo android.permission.INTERACT_ACROSS_USERS
|
||||||
|
echo "Remember to force-stop & restart Nevolution!"
|
||||||
|
|
||||||
|
set +x
|
Loading…
Reference in New Issue
Block a user