From 07e17110caaf4aad911a1c4abc468a12f4f06947 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 11 May 2021 06:20:40 -0400 Subject: [PATCH] On some Oppo devices, we can NOT load firmware. Oppo engineers realized that and kept the line in rc script, but simply commented it out. so check this --- rw-system.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index e8f6bda..e9e2306 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -799,7 +799,9 @@ if [ -f /proc/oppoVersion/prjVersion ];then fi echo 1 > /proc/tfa98xx/oppo_tfa98xx_fw_update -echo 1 > /proc/touchpanel/tp_fw_update +if ! grep -q -E -e '.*#write .*tp_fw_update' /vendor/etc/init/hw/*touch*;then + echo 1 > /proc/touchpanel/tp_fw_update +fi if getprop ro.build.overlay.deviceid |grep -qE '^RMX';then chmod 0660 /sys/devices/platform/soc/soc:fpc_fpc1020/{irq,irq_enable,wakelock_enable}