diff --git a/module.prop b/module.prop index 29884a6..dbe19e2 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=XC5_GSI_Fixes name=Samsung XCover 5 GSI Fixes -version=0.3 -versionCode=3 +version=0.4 +versionCode=4 author=Emil Kosz description=Fixes touchscreen bug in XCover 5 and likely other Samsung phones with GSIs diff --git a/service.sh b/service.sh index 49e9af8..da62a55 100755 --- a/service.sh +++ b/service.sh @@ -1,18 +1,15 @@ #!/system/bin/sh FREQ=500 # How often to update, in ms. -TS_CHECKED=false while true; do SCREEN_ON="$(/system/bin/dumpsys deviceidle | /system/bin/grep mScreenOn | /system/bin/cut -d '=' -f2)" - if [ "${SCREEN_ON}" = true ] && [ "${TS_CHECKED}" = false ]; then + if [ "${SCREEN_ON}" = true ]; then /system/bin/log -t Magisk -p i "[XC5_GSI_Fixes] Checking touchscreen connection." /system/bin/echo check_connection > /sys/class/sec/tsp/cmd RESULT="$(/system/bin/cat /sys/class/sec/tsp/cmd_result | /system/bin/cut -d ':' -f2)" /system/bin/log -t Magisk -p i "[XC5_GSI_Fixes] Result: ${RESULT}" - TS_CHECKED=true fi - [ "${SCREEN_ON}" = false ] && TS_CHECKED=false /system/bin/usleep "${FREQ}" done diff --git a/system/vendor/overlay/framework-res__auto_generated_rro.apk b/system/vendor/overlay/framework-res__auto_generated_rro.apk new file mode 100644 index 0000000..177d57e Binary files /dev/null and b/system/vendor/overlay/framework-res__auto_generated_rro.apk differ