From c4d5fe2dd734a6e38e3c60edad8e45910859d373 Mon Sep 17 00:00:00 2001 From: zljing Date: Wed, 10 Jul 2019 02:54:06 +0200 Subject: [PATCH] sanders: boot: shorten wait time to optimize shutdown time Mountservice will check if there exist processes occupy files. Launch many 3rd apps and set in background will cause many processes occupy files, which will cause mountservice spend 10~20s to unmount(sometimes also unmount fail with 20s time out). If there is no process occupy files, mountservice only need about 500ms. So shorten wait time from 20s to 500ms, which will save 10~20s for shutdown time, total shutdown time is in 3s. CRs-Fixed: 2038121 Change-Id: I4da7bbf4c86d05add7f1b1e328f70796f3bb8ee8 Signed-off-by: Dede Dindin Qudsy Signed-off-by: David Trpchevski Signed-off-by: Melvin --- vendor_prop.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor_prop.mk b/vendor_prop.mk index 258c693..f484690 100644 --- a/vendor_prop.mk +++ b/vendor_prop.mk @@ -420,3 +420,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ drm.service.enabled=true \ media.stagefright.thumbnail.prefer_hw_codecs=true +# Boot +PRODUCT_PROPERTY_OVERRIDES += \ + sys.vendor.shutdown.waittime=500