summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjana Sunil <sanjanasunil@google.com>2022-11-15 18:37:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-11-15 18:37:07 +0000
commit9f99f0ed0f0406e16cdf6784ded4544383cf99ca (patch)
treeda4af1f16b026a9802b186ec8202745b6163cabf
parent3694b657f26ae25cc4870319170af82681475843 (diff)
parentda291cf362bdfb5ebe985036324128e4b714a58a (diff)
downloadcore-9f99f0ed0f0406e16cdf6784ded4544383cf99ca.tar.gz
Merge "Create misc_ce and misc_de mirror storage" into tm-qpr-dev
-rw-r--r--rootdir/init.rc10
1 files changed, 8 insertions, 2 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index c56f86089..02e51d2c4 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -921,20 +921,26 @@ on post-fs-data
mkdir /data/user/0 0700 system system encryption=None
mount none /data/data /data/user/0 bind rec
- # A tmpfs directory, which will contain all apps CE DE data directory that
- # bind mount from the original source.
+ # A tmpfs directory, which will contain all apps and sdk sandbox CE and DE
+ # data directory that bind mount from the original source.
mount tmpfs tmpfs /data_mirror nodev noexec nosuid mode=0700,uid=0,gid=1000
restorecon /data_mirror
mkdir /data_mirror/data_ce 0700 root root
mkdir /data_mirror/data_de 0700 root root
+ mkdir /data_mirror/misc_ce 0700 root root
+ mkdir /data_mirror/misc_de 0700 root root
# Create CE and DE data directory for default volume
mkdir /data_mirror/data_ce/null 0700 root root
mkdir /data_mirror/data_de/null 0700 root root
+ mkdir /data_mirror/misc_ce/null 0700 root root
+ mkdir /data_mirror/misc_de/null 0700 root root
# Bind mount CE and DE data directory to mirror's default volume directory
mount none /data/user /data_mirror/data_ce/null bind rec
mount none /data/user_de /data_mirror/data_de/null bind rec
+ mount none /data/misc_ce /data_mirror/misc_ce/null bind rec
+ mount none /data/misc_de /data_mirror/misc_de/null bind rec
# Create mirror directory for jit profiles
mkdir /data_mirror/cur_profiles 0700 root root