summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-02-03 14:44:44 -0700
committerJeff Sharkey <jsharkey@android.com>2016-02-04 15:26:23 -0700
commit3b9c83a0f69778253f82730404363b5f5f795eb2 (patch)
tree8543258da5ddc7173e82a0641fa5002508e0860b /rootdir/init.rc
parent2c98e128c5a5c94969174b2385692ad93a42a293 (diff)
User 0 directories are created by vold now.
This ensures that all users on device follow a consistent path for setup and validation of encryption policy. Also add remaining user-specific directories and fix linking order. Bug: 25796509 Change-Id: I8c2e42a78569817f7f5ea03f54b743a6661fdb9c
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc11
1 files changed, 6 insertions, 5 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b354cbb30..3a7aa1f73 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -412,19 +412,20 @@ on post-fs-data
mkdir /data/system 0775 system system
mkdir /data/system/heapdump 0700 system system
+
+ mkdir /data/system_de 0770 system system
mkdir /data/system_ce 0770 system system
- mkdir /data/system_ce/0 0770 system system
+
+ mkdir /data/misc_de 01771 system misc
+ mkdir /data/misc_ce 01771 system misc
mkdir /data/user 0711 system system
mkdir /data/user_de 0711 system system
- mkdir /data/user_de/0 0771 system system
+ symlink /data/data /data/user/0
mkdir /data/media 0770 media_rw media_rw
- mkdir /data/media/0 0770 media_rw media_rw
mkdir /data/media/obb 0770 media_rw media_rw
- symlink /data/data /data/user/0
-
init_user0
# Reload policy from /data/security if present.