a8533325d5
Use proto_stat to indicate status of CE area. Before user_0 unlocks, storaged detects CE NOT_AVAILABLE when attempting to read the proto file. It then skips reading/writting the proto. When user_0 logs in, vold calls onUserStart in storaged, which sets proto_stat to AVAILABLE. At next event, storaged tries to read the proto. If it's a success, proto_stat is changed to LOADED. After that, storaged reads and writes proto normally. Test: adb shell storaged -u -p Bug: 63740245 Change-Id: I1fdd42c430e91682f6cc07497fcad5be52489b4e |
||
---|---|---|
.. | ||
binder/android/os | ||
include | ||
tests | ||
tools | ||
Android.bp | ||
EventLogTags.logtags | ||
main.cpp | ||
README.properties | ||
storaged.cpp | ||
storaged.proto | ||
storaged.rc | ||
storaged_diskstats.cpp | ||
storaged_info.cpp | ||
storaged_service.cpp | ||
storaged_uid_monitor.cpp | ||
storaged_utils.cpp | ||
uid_info.cpp |
ro.storaged.event.interval # interval storaged scans for IO stats, in seconds ro.storaged.event.perf_check # check for time spent in event loop, in microseconds ro.storaged.disk_stats_pub # interval storaged publish disk stats, in seconds ro.storaged.uid_io.interval # interval storaged checks Per UID IO usage, in seconds ro.storaged.uid_io.threshold # Per UID IO usage limit, in bytes