Android O sets 3s by default to wait for all services exit which is
optional shutdown step. Firstly, in this step there will be time out
due to services not terminated in 3s; Second, in next step there
will send stop signal to kill all services; Finally, Android N sets
ro.build.shutdown_time 0 by default to skip the step. So optimize the
wait time to let shutdown time in 3s.
Signed-off-by: Nick <nickgunale@gmail.com>
Signed-off-by: kubersharma001 <kubersharma001@gmail.com>
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 <nickgunale@gmail.com>