From 7662a1675cdc4210b7cd8292551f98d09673c476 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 30 Sep 2020 22:38:28 +0200 Subject: [PATCH] Disable HWC presentOrValidate on vndk 26/27 --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 6b68371..176e648 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -801,3 +801,7 @@ if [ -f /vendor/etc/init/vendor.ozoaudio.media.c2@1.0-service.rc ];then mount /system/etc/seccomp_policy/mediacodec.policy /vendor/etc/seccomp_policy/codec2.vendor.base.policy fi fi + +if [ "$vndk" -le 27 ];then + setprop persist.sys.phh.no_present_or_validate true +fi