Refactor Huawei detections. Hopefully it won't break stuff

This commit is contained in:
Pierre-Hugues Husson 2018-12-26 22:54:22 +01:00
parent 7f119746df
commit b421352529

View File

@ -17,17 +17,17 @@ else
fi fi
if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then
FOUND_HUAWEI=1 FOUND_HUAWEI=1
setprop persist.sys.bt_acl_bypass true
setprop persist.sys.camera.huawei true
setprop persist.sys.radio.huawei true
fi fi
if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)' || [ -n "$FOUND_HUAWEI" ];then if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)';then
FOUND_HUAWEI=1 FOUND_HUAWEI=1
setprop persist.sys.overlay.huawei true
fi fi
if [ -n "$FOUND_HUAWEI" ];then if [ -n "$FOUND_HUAWEI" ];then
setprop persist.sys.overlay.huawei true
setprop persist.sys.bt_acl_bypass true
setprop persist.sys.camera.huawei true
setprop persist.sys.radio.huawei true
setprop debug.hwui.profile true setprop debug.hwui.profile true
fi fi