/
init.container.rc
executable file
·42 lines (32 loc) · 1.09 KB
/
init.container.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on early-init
# create Container mountpoints
mkdir /mnt_1 0775 root system
mkdir /mnt_1/sdcard_1 0775 system system
mkdir /mnt_1/sdcard_2 0775 system system
mkdir /mnt_1/sdcard_3 0775 system system
mkdir /mnt_1/extSdCard 0775 system system
mkdir /data_1 0770 system system
mkdir /data_2 0770 system system
mkdir /data_3 0770 system system
on init
mkdir /mnt/shell/container 0700 system system
symlink /mnt/shell/container /storage/container
on post-fs-data
#container mount points
mkdir /data/container 0770 system system
chown system system /data/container
mkdir /data/.container_1 0771 system system
mkdir /data/.container_2 0771 system system
mkdir /data/.container_3 0771 system system
restorecon /data/.container_1
restorecon /data/.container_2
restorecon /data/.container_3
on boot
service container /system/bin/sdcard -u 1000 -g 1000 -r /data/container /mnt/shell/container
class late_start
oneshot
start container
service containersetup /system/bin/containersetup
class main
disabled
oneshot