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
1 changed files with 5 additions and 5 deletions

View File

@ -17,17 +17,17 @@ else
fi
if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then
FOUND_HUAWEI=1
setprop persist.sys.bt_acl_bypass true
setprop persist.sys.camera.huawei true
setprop persist.sys.radio.huawei true
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
setprop persist.sys.overlay.huawei true
fi
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
fi