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
This commit is contained in:
parent
2f8c5dca48
commit
99cdd37534
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
[ "$(getprop vold.decrypt)" = "trigger_restart_min_framework" ] && exit 0
|
[ "$(getprop vold.decrypt)" = "trigger_restart_min_framework" ] && exit 0
|
||||||
|
|
||||||
|
setprop ctl.start media.swcodec
|
||||||
|
|
||||||
for i in wpa p2p;do
|
for i in wpa p2p;do
|
||||||
if [ ! -f /data/misc/wifi/${i}_supplicant.conf ];then
|
if [ ! -f /data/misc/wifi/${i}_supplicant.conf ];then
|
||||||
cp /vendor/etc/wifi/wpa_supplicant.conf /data/misc/wifi/${i}_supplicant.conf
|
cp /vendor/etc/wifi/wpa_supplicant.conf /data/misc/wifi/${i}_supplicant.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user