adb-permissions.bash: small cleanup (DoH3 checking serves no purpose)

This commit is contained in:
Aminda Suomalainen 2025-03-14 12:37:13 +02:00
parent 8017ae480a
commit 34cfb4b3bb
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -42,15 +42,13 @@ adb "$@" shell pm grant com.github.cvzi.darkmodewallpaper android.permission.REA
(adb "$@" shell pm uninstall com.google.android.safetycore &) (adb "$@" shell pm uninstall com.google.android.safetycore &)
#(adb "$@" shell pm disable com.google.android.safetycore &) #(adb "$@" shell pm disable com.google.android.safetycore &)
# Enable DNS-over-TLS or DoH3 as below # Enable DNS-over-TLS
(adb "$@" shell settings put global private_dns_mode hostname &) (adb "$@" shell settings put global private_dns_mode hostname &)
(adb "$@" shell settings put global private_dns_specifier dns.google &) # If dns.google or cloudflare-dns.com, it will be updated to DoH3
# Should tell whether the DoH3 module exists #(adb "$@" shell settings put global private_dns_specifier dns.google &)
(adb "$@" shell pm list package | grep com.android.resolv &) # TODO: Revisit this after DNS4EU launch. Regardless of potential issues,
# I am tempted by non-commercial ad filtering DNS.
# If 1, DoH3 is supported. How about trying to make it 1? (adb "$@" shell settings put global private_dns_specifier dns.adguard-dns.com &)
(adb "$@" shell cmd device_config get netd_native doh &)
(adb "$@" shell cmd device_config put netd_native doh 1 &)
# Wait a bit and then reboot the device # Wait a bit and then reboot the device
sleep 5 sleep 5