Compare commits

..

No commits in common. "619afbd92af5f8775d58e4917b80eaab9ff9946a" and "c902fc7790b6f610990a0de805cff24680a4b271" have entirely different histories.

4 changed files with 17 additions and 28 deletions

View File

@ -54,7 +54,7 @@ repos:
# https://github.com/Mikaela/gist/blob/master/doctoc.txt
args: [--update-only]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.7.1"
rev: "v1.7.0"
hooks:
- id: mypy
- repo: https://github.com/asottile/pyupgrade
@ -72,7 +72,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.3"
rev: "v3.1.0"
hooks:
- id: prettier
exclude_types: [python, pyi, jupyter]
@ -80,7 +80,7 @@ repos:
# https://www.npmjs.com/package/prettier
"prettier@3.1.0",
# https://www.npmjs.com/package/@prettier/plugin-ruby
"@prettier/plugin-ruby@4.0.3",
"@prettier/plugin-ruby@4.0.2",
]
- repo: https://github.com/psf/black
rev: 23.11.0
@ -90,7 +90,7 @@ repos:
#args: ["--line-length", "79", "--target-version", "py310"]
#- id: black-jupyter
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-4
rev: v3.7.0-3
hooks:
- id: shfmt
#- id: shfmt-docker

View File

@ -14,26 +14,22 @@ set -x
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!"
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 "$@" 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!"
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 "$@" 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
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

View File

@ -1,7 +0,0 @@
#!/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

@ -1 +1 @@
Subproject commit c30e5e7c5b18c2a8b8bab56e99567670b4159c62
Subproject commit ae4f1a9241708ee3903af4130e88f8cfb1874434