summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorYueyao (Nathan) Zhu <yueyao@google.com>2016-06-21 12:04:54 -0700
committerYueyao (Nathan) Zhu <yueyao@google.com>2016-06-21 12:14:53 -0700
commit60c6dacd62cf671cd6038285f3754d33631f643c (patch)
tree51e734c71bac7b4e2e38db9c611b091b3329aa4b /rootdir/init.rc
parent9150b1288e13518caae223e8c8570b7a2d0b3a15 (diff)
core/init.rc: Add /data/cache/* directory creation
Bug: 28845422 Change-Id: I2abcc67176cf94f34706f8f005a24ef5f70e0494
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 3da836c8c..ec9f252a8 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -227,6 +227,8 @@ on init
# expecting it to point to /proc/self/fd
symlink /proc/self/fd /dev/fd
+ export DOWNLOAD_CACHE /data/cache
+
# Healthd can trigger a full boot from charger mode by signaling this
# property when the power button is held.
on property:sys.boot_from_charger_mode=1
@@ -447,6 +449,11 @@ on post-fs-data
mkdir /data/media 0770 media_rw media_rw
mkdir /data/media/obb 0770 media_rw media_rw
+ mkdir /data/cache 0770 system cache
+ mkdir /data/cache/recovery 0770 system cache
+ mkdir /data/cache/backup_stage 0700 system system
+ mkdir /data/cache/backup 0700 system system
+
init_user0
# Reload policy from /data/security if present.