From ef86099c77ad2ae5da87298d3985d459aed8420f Mon Sep 17 00:00:00 2001 From: zljing Date: Mon, 11 Jun 2018 21:39:44 +0530 Subject: [PATCH] sanders: 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. Signed-off-by: Nick --- vendor_prop.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor_prop.mk b/vendor_prop.mk index 6b3c999..a116e3a 100644 --- a/vendor_prop.mk +++ b/vendor_prop.mk @@ -286,3 +286,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.usb.bpt_adb=0x2ee6 \ ro.usb.bpteth=0x2ee7 \ ro.usb.bpteth_adb=0x2ee8 + +# Boot +PRODUCT_PROPERTY_OVERRIDES += \ + sys.vendor.shutdown.waittime=500