Force GPU profiling on Huawei as a work-around for rendering artifacts

This commit is contained in:
Pierre-Hugues Husson 2018-05-27 13:14:50 +02:00
parent 456b7b722a
commit a9a6cba4dd
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ type vndk_detect_exec, exec_type, file_type;
init_daemon_domain(vndk_detect);
allow vndk_detect sepolicy_file:file r_file_perms;
set_prop(vndk_detect,system_prop);
set_prop(vndk_detect,debug_prop);
allow vndk_detect shell_exec:file rx_file_perms;
allow vndk_detect toolbox_exec:file rx_file_perms;

View File

@ -10,7 +10,7 @@ while read version;do
done
mount -o bind /system/bin/adbd /sbin/adbd
if ( getprop ro.hardware | grep -q kirin970 ) || ( getprop ro.hardware | grep -q hi6250 );then
if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then
FOUND_HUAWEI=1
setprop persist.sys.bt_acl_bypass true
fi
@ -20,6 +20,10 @@ if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)' || [ -
setprop persist.sys.overlay.huawei.backlight true
fi
if [ -n "$FOUND_HUAWEI" ];then
setprop debug.hwui.profile true
fi
if getprop ro.hardware |grep -qiE qcom;then
FOUND_QCOM=1
setprop persist.sys.overlay.devinputjack true