summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorPat Tjin <pattjin@google.com>2016-07-14 18:28:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-07-14 18:28:51 +0000
commit46066ef405fc0679d73d0f6c0b14f2f50f4f2ed6 (patch)
tree88fd472c799211f1e6ab921343c7b90510c4831e /rootdir/init.rc
parent3ad493d961ae15211995a72278433e32638c707c (diff)
parent60c6dacd62cf671cd6038285f3754d33631f643c (diff)
Merge "core/init.rc: Add /data/cache/* directory creation" into nyc-mr1-dev
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 d086f4efd..bf1122715 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -234,6 +234,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
@@ -454,6 +456,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.