Use Huawei backlight RRO when detecting a Huawei device

This commit is contained in:
Pierre-Hugues Husson 2018-05-02 23:38:24 +02:00
parent e59aa1bc35
commit 903725538c
1 changed files with 6 additions and 0 deletions

View File

@ -11,5 +11,11 @@ done
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