forked from leap0x7b/debdroid-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmountpoints.conf
59 lines (52 loc) · 2.4 KB
/
mountpoints.conf
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
### Mountpoints for DebDroid (This configuration was taken from rlchroot)
##########################################################
# To mount your custom mounts, the syntax should follows:
# prootargs+=" --bind source:destination"
# or
# prootargs+=" --bind source"
#
# Android Partitions should not be disabled if interoperability is enabled
# You can disable it by typing
# echo 0 > /var/debdroid/binfmt/corrosive-session
##########################################################
##########################################################
# Android Mountpoints (Needed for executing host programs)
# Mount /apex partition if possible
if [ -d "/apex" ]; then
prootargs+=" --bind=/apex"
fi
# Mount /property_contexts if possible
if [ -e "/property_contexts" ]; then
prootargs+=" --bind=/property_contexts"
fi
# Needed for Android 11
if [ -e "/linkerconfig/ld.config.txt" ]; then
prootargs+=" --bind=/linkerconfig/ld.config.txt"
fi
# Core Android Mountpoints
prootargs+=" --bind=/storage/self/primary:/sdcard"
prootargs+=" --bind=/system"
prootargs+=" --bind=/data"
prootargs+=" --bind=/vendor"
##########################################################
##########################################################
# Mountpoints for faking /proc entries (Comment it if you have permissive mode)
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/fstat:/proc/stat"
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/fversion:/proc/version"
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/floadavg:/proc/loadavg"
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/fuptime:/proc/uptime"
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/fvmstat:/proc/vmstat"
prootargs+=" --bind=${DEBIAN_FS}/var/debdroid/binds/fcap_last_cap:/proc/sys/kernel/cap_last_cap"
##########################################################
##########################################################
# Needed for some programs to read standard input devices (/dev/std*)
prootargs+=" --bind=/proc/self/fd/0:/dev/stdin"
prootargs+=" --bind=/proc/self/fd/1:/dev/stdout"
prootargs+=" --bind=/proc/self/fd/2:/dev/stderr"
##########################################################
##########################################################
# Miscellanious Mountpoints
prootargs+=" --bind=/dev/urandom:/dev/random"
prootargs+=" --bind=${PREFIX}/tmp:/tmp"
prootargs+=" --bind=${HOME}:/home/termux_home"
##########################################################