From 545fca6a420632c317339f4a8961b87265cef258 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 18 Jun 2018 23:26:02 -0400 Subject: [PATCH] msm8226-common: Make sure graphics HAL services started before mounting data Bug: 36409349 Signed off by: Nolen Johnson Change-Id: I1df0bd7878c7d67d3695ad1644c6b928cee0e323 --- rootdir/etc/init.qcom.rc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 61aa14c..a044b22 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -65,13 +65,21 @@ on fs write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059 + # Start HW service manager early + start hwservicemanager + on late-fs # Start services for bootanim - start hwservicemanager start servicemanager start surfaceflinger start bootanim - # mount RW partitions which need run fsck + + # Make sure HW service manager started and start required HAL services + wait_for_prop hwservicemanager.ready true + start configstore-hal-1-0 + start gralloc-2-0 + + # Mount RW partitions which need run fsck mount_all /vendor/etc/fstab.qcom --late on post-fs