Compare commits

..

2 Commits

3 changed files with 11 additions and 2 deletions

View File

@ -14,7 +14,7 @@ default_language_version:
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v6.0.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-case-conflict - id: check-case-conflict

View File

@ -1,7 +1,16 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
# Enable adblocking DNS-over-TLS
(adb "$@" shell settings put global private_dns_mode hostname &)
(adb "$@" shell settings put global private_dns_specifier noads.joindns4.eu &)
(adb "$@" shell cmd device_config put netd_native doh 1 &)
sleep 5
# As the GUI method did nothing for me, this will hopefully reset all # As the GUI method did nothing for me, this will hopefully reset all
# permissions of apps on an Android device. # permissions of apps on an Android device.
adb "$@" shell pm reset-permissions adb "$@" shell pm reset-permissions
sleep 5
adb "$@" reboot adb "$@" reboot
set +x set +x

@ -1 +1 @@
Subproject commit f0a79ee70442deee0faf234400ba9d5a7f902ceb Subproject commit 77efcc12feb776818b8c6e5f288759f87b3532c7