From e2ef0c0da454a5b9224d340260e9ad5be46092fe Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Mon, 20 Jun 2016 17:05:40 +0900 Subject: [PATCH] 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 --- cryptfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptfs.c b/cryptfs.c index f3a9e3a..bc3e87c 100644 --- a/cryptfs.c +++ b/cryptfs.c @@ -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");