From bad4131180ba7c4926eeda09e4ef908bf3714a58 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 3 May 2020 18:01:26 +0200 Subject: [PATCH] Add property to use CAF vendor media_profiles This is controlled through persist.sys.phh.caf.media_profile system_server loads this file, so it requires a reboot to apply --- phh-on-data.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phh-on-data.sh b/phh-on-data.sh index 40ac0ae..44a5543 100644 --- a/phh-on-data.sh +++ b/phh-on-data.sh @@ -5,3 +5,7 @@ if getprop persist.sys.phh.no_vendor_overlay |grep -q true;then mount /mnt/phh/empty_dir/ /$part/overlay done fi + +if getprop persist.sys.phh.caf.media_profile |grep -q true;then + setprop media.settings.xml "/vendor/etc/media_profiles_vendor.xml" +fi