summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-05-25 16:41:08 -0700
committerTao Bao <tbao@google.com>2016-06-03 13:11:29 -0700
commit380d6b1b4dae020e2319add3abb6b0e6fa0c79d3 (patch)
treeba1a6582a0253fd34c2ec1ac95b147e0f51a64ca /rootdir
parente780adf0fea32e0b99fbf0078f5fcf23b20e73b3 (diff)
Create /data/ota_package for OTA packages.
We will store OTA packages there for both A/B and non-A/B OTAs. The directory will be accessed by GMSCore (for both), uncrypt (non-A/B), update_engine (A/B), update_verifier (A/B) and possibly system server (for non-A/B OTAs to clean up half-way uncrypt'd packages). Bug: 28944800 Change-Id: I5aa8156ec5052bd15dfadd4d8c28925d464e4401
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 3466dce0c..3da836c8c 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -396,6 +396,10 @@ on post-fs-data
# create the A/B OTA directory, so as to enforce our permissions
mkdir /data/ota 0771 root root
+ # create the OTA package directory. It will be accessed by GmsCore (cache
+ # group), update_engine and update_verifier.
+ mkdir /data/ota_package 0770 system cache
+
# create resource-cache and double-check the perms
mkdir /data/resource-cache 0771 system system
chown system system /data/resource-cache