From d6da9f1fec6ac83697b568e5293fc8c2b02d15b4 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 13 May 2020 18:00:23 +0100 Subject: [PATCH 1/2] Fix exynos grep command to apply setprop correctly --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 83f53e1..27d0047 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -386,7 +386,7 @@ if busybox_phh unzip -p /vendor/app/ims/ims.apk classes.dex | grep -qF -e Landro mount -o bind /system/phh/empty /vendor/app/ims/ims.apk fi -if getprop ro.hardware | grep -qF samsungexynos -e exynos; then +if getprop ro.hardware | grep -q -e samsungexynos -e exynos; then setprop debug.sf.latch_unsignaled 1 fi From ef30da0aaec70acdef246076060856d2d630f124 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Thu, 14 May 2020 11:41:08 +0100 Subject: [PATCH 2/2] Simplify the exynos grep command even further and remove some whitespace --- rw-system.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 27d0047..74c81aa 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -270,11 +270,11 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \ setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi -if getprop ro.vendor.product.device |grep -iq -e RMX1801 -e RMX1803 -e RMX1807;then +if getprop ro.vendor.product.device |grep -iq -e RMX1801 -e RMX1803 -e RMX1807;then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi -if getprop ro.build.overlay.deviceid |grep -q -e CPH1859 -e CPH1861 -e RMX1811;then +if getprop ro.build.overlay.deviceid |grep -q -e CPH1859 -e CPH1861 -e RMX1811;then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi @@ -386,14 +386,14 @@ if busybox_phh unzip -p /vendor/app/ims/ims.apk classes.dex | grep -qF -e Landro mount -o bind /system/phh/empty /vendor/app/ims/ims.apk fi -if getprop ro.hardware | grep -q -e samsungexynos -e exynos; then +if getprop ro.hardware | grep -qF exynos; then setprop debug.sf.latch_unsignaled 1 fi if getprop ro.product.model | grep -qF ANE; then setprop debug.sf.latch_unsignaled 1 fi - + if getprop ro.vendor.product.device | grep -q -e nora -e rhannah; then setprop debug.sf.latch_unsignaled 1 fi