From c1149ff0c33f0a7100428402cc934296d7170e42 Mon Sep 17 00:00:00 2001 From: Yu Ning Date: Fri, 8 Jan 2016 14:51:07 +0800 Subject: [PATCH] init.rc: Reland "mkdir /data/misc/vold" Creation of /data/misc/vold was first introduced by commit 25775e8. It then got reverted, probably inadvertently, by: commit 2e24bcfdce030d410cbc8e8c8fa3e8c1260ba65d Author: Paul Lawrence Date: Fri May 22 18:31:55 2015 +0000 Revert "Set up crypto for user directories in init." This folder is required by vold. In its absence, if one tries to format an SD card as internal storage, an error will occur, with the following message printed to logcat: 01-08 06:31:48.389 1002 1069 E vold : Failed to persist key Restoring /data/misc/vold fixes this bug. This fix has been verified on the emulator, which currently does not allow its virtual SD card to be adopted, but another CL will be uploaded to enable that. Change-Id: Ibb87ee821630a038a6f9b7b6a9da50fe03ca690d Signed-off-by: Yu Ning --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index a52d87d02..d322402e4 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -332,6 +332,7 @@ on post-fs-data chmod 0660 /data/misc/wifi/wpa_supplicant.conf mkdir /data/local 0751 root root mkdir /data/misc/media 0700 media media + mkdir /data/misc/vold 0700 root root mkdir /data/misc/boottrace 0771 system shell mkdir /data/misc/update_engine 0700 root root mkdir /data/misc/trace 0700 root root