From 930e14013b89f6120b76defe528985934c5e4261 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 20 Oct 2019 21:51:32 +0200 Subject: [PATCH] Fix media.swcodec on a-only devices On a-only, if init reads system/etc/init/mediaswcodec-treble.rc before apex is available, init will see the /apex/...mediaswcodec file isn't there and will ignore the process. Kick-start media.swcodec service on boot when apex is ready --- phh-on-boot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phh-on-boot.sh b/phh-on-boot.sh index 5ee79fc..1152c98 100644 --- a/phh-on-boot.sh +++ b/phh-on-boot.sh @@ -2,6 +2,8 @@ [ "$(getprop vold.decrypt)" = "trigger_restart_min_framework" ] && exit 0 +setprop ctl.start media.swcodec + for i in wpa p2p;do if [ ! -f /data/misc/wifi/${i}_supplicant.conf ];then cp /vendor/etc/wifi/wpa_supplicant.conf /data/misc/wifi/${i}_supplicant.conf