From 44f09933dc91e42fba2edaa21f99915b51e078ce Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 7 May 2024 19:32:47 +0300 Subject: [PATCH] adb-permissions.bash: add more DoH3 existence confirmations/forcings --- bash/adb-permissions.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash/adb-permissions.bash b/bash/adb-permissions.bash index 756f922..a0ef79c 100755 --- a/bash/adb-permissions.bash +++ b/bash/adb-permissions.bash @@ -27,8 +27,12 @@ adb "$@" shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CON #(adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh &) (adb "$@" shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh &) -# If 1, DoH3 is supported +# Should tell whether the DoH3 module exists +(adb "$@" shell pm list package | grep com.android.resolv &) + +# If 1, DoH3 is supported. How about trying to make it 1? (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 sleep 5