Prepare necessary data directory before loading persistent properties.

init reads files in /data/property/ but it is not ready to read when
trigger_load_persist_props is triggered by vold.decrypt.

Bug: 29332975
Change-Id: I14beac8714ff2f722d8b11f666bc7ca693ccd46e
This commit is contained in:
Seigo Nonaka 2016-06-20 17:05:40 +09:00
parent 908527a70b
commit e2ef0c0da4

View file

@ -1737,11 +1737,11 @@ static int cryptfs_restart_internal(int restart_main)
return -1;
}
property_set("vold.decrypt", "trigger_load_persist_props");
/* Create necessary paths on /data */
if (prep_data_fs()) {
return -1;
}
property_set("vold.decrypt", "trigger_load_persist_props");
/* startup service classes main and late_start */
property_set("vold.decrypt", "trigger_restart_framework");