Use Huawei backlight RRO when detecting a Huawei device
diff --git a/vndk-detect b/vndk-detect
index cbc563e..47a275a 100644
--- a/vndk-detect
+++ b/vndk-detect
@@ -11,5 +11,11 @@
mount -o bind /system/bin/adbd /sbin/adbd
if ( getprop ro.hardware | grep -q kirin970 ) || ( getprop ro.hardware | grep -q hi6250 );then
+ FOUND_HUAWEI=1
setprop persist.sys.bt_acl_bypass true
fi
+
+if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)' || [ -n "$FOUND_HUAWEI" ];then
+ FOUND_HUAWEI=1
+ setprop persist.sys.overlay.huawei.backlight true
+fi