From ca50009cbeedc368167e940e55a8a2033c71fd46 Mon Sep 17 00:00:00 2001 From: Hakalle Date: Sun, 15 May 2022 12:38:40 -0300 Subject: [PATCH] a20s: Fix watchdog issue This commit fixes the Watchdog Timer Software problem by disabling it. When the Watchdog Timer expires or crashes causes the device (in this case: Samsung Galaxy A20s) to reboot, and is fixed by just disabling it. An example of kernel panic log: [ 115.680218] I[5:IntentService[D: 5621] Kernel panic - not syncing: Software Watchdog Timer expired [ 117.139710] I[5:IntentService[D: 5621] sec_debug_panic_handler :Software Watchdog Timer expired [ 117.141840] Causing a watchdog bite! GSI used to test whether the problem has been fixed: https://sourceforge.net/projects/gsi-projects/files/v413/ArrowOS-12.1/ArrowOS-12.1-arm64_bgN-vndklite-Unofficial.img.xz/download Screenshot: https://imgur.com/a/7eit2Le Signed-off-by: Hakalle --- rw-system.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 909225f..182b764 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -1016,6 +1016,11 @@ fi # Disable secondary watchdogs echo -n V > /dev/watchdog1 +# Fix watchdog issue on Samsung Galaxy A20s +if getprop ro.vendor.build.fingerprint | grep -iq samsung/a20sub/a20s; then + echo -n V > /dev/watchdog0 +fi + if getprop ro.vendor.build.fingerprint | grep -iq samsung/a11que;then echo -n V > /dev/watchdog0 fi