Force GPU profiling on Huawei as a work-around for rendering artifacts
This commit is contained in:
parent
456b7b722a
commit
a9a6cba4dd
@ -4,6 +4,7 @@ type vndk_detect_exec, exec_type, file_type;
|
|||||||
init_daemon_domain(vndk_detect);
|
init_daemon_domain(vndk_detect);
|
||||||
allow vndk_detect sepolicy_file:file r_file_perms;
|
allow vndk_detect sepolicy_file:file r_file_perms;
|
||||||
set_prop(vndk_detect,system_prop);
|
set_prop(vndk_detect,system_prop);
|
||||||
|
set_prop(vndk_detect,debug_prop);
|
||||||
|
|
||||||
allow vndk_detect shell_exec:file rx_file_perms;
|
allow vndk_detect shell_exec:file rx_file_perms;
|
||||||
allow vndk_detect toolbox_exec:file rx_file_perms;
|
allow vndk_detect toolbox_exec:file rx_file_perms;
|
||||||
|
@ -10,7 +10,7 @@ while read version;do
|
|||||||
done
|
done
|
||||||
|
|
||||||
mount -o bind /system/bin/adbd /sbin/adbd
|
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
|
FOUND_HUAWEI=1
|
||||||
setprop persist.sys.bt_acl_bypass true
|
setprop persist.sys.bt_acl_bypass true
|
||||||
fi
|
fi
|
||||||
@ -20,6 +20,10 @@ if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)' || [ -
|
|||||||
setprop persist.sys.overlay.huawei.backlight true
|
setprop persist.sys.overlay.huawei.backlight true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$FOUND_HUAWEI" ];then
|
||||||
|
setprop debug.hwui.profile true
|
||||||
|
fi
|
||||||
|
|
||||||
if getprop ro.hardware |grep -qiE qcom;then
|
if getprop ro.hardware |grep -qiE qcom;then
|
||||||
FOUND_QCOM=1
|
FOUND_QCOM=1
|
||||||
setprop persist.sys.overlay.devinputjack true
|
setprop persist.sys.overlay.devinputjack true
|
||||||
|
Loading…
Reference in New Issue
Block a user