device/generic/common
Revisão | fcae9b177ccd199a1202e2adb648c7af4856f2e1 (tree) |
---|---|
Hora | 2019-07-30 18:59:41 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
nativebridge: set default context to mount sfs command
@@ -13,6 +13,11 @@ urls[3]=http://goo.gl/96BPKe | ||
13 | 13 | urls[4]=http://goo.gl/v6c4Co |
14 | 14 | urls[5]=http://goo.gl/CtKjxx |
15 | 15 | |
16 | +mount_sfs() | |
17 | +{ | |
18 | + mount -o 'context="u:object_r:system_file:s0"' $1 $2 | |
19 | +} | |
20 | + | |
16 | 21 | if [ -z "$1" ]; then |
17 | 22 | v=8_y |
18 | 23 | u=1 |
@@ -24,7 +29,7 @@ fi | ||
24 | 29 | if [ -s /system/lib$1/libhoudini.so ]; then |
25 | 30 | log -pi -thoudini "found /system/lib$1/libhoudini.so" |
26 | 31 | elif [ -e /system/etc/houdini$v.sfs ]; then |
27 | - mount /system/etc/houdini$v.sfs $dest_dir | |
32 | + mount_sfs /system/etc/houdini$v.sfs $dest_dir | |
28 | 33 | else |
29 | 34 | if mountpoint -q $dest_dir; then |
30 | 35 | kill -9 `fuser -m $dest_dir` |
@@ -32,7 +37,7 @@ else | ||
32 | 37 | fi |
33 | 38 | mkdir -p /data/arm |
34 | 39 | cd /data/arm |
35 | - while ! mount houdini$v.sfs $dest_dir; do | |
40 | + while ! mount_sfs houdini$v.sfs $dest_dir; do | |
36 | 41 | while [ "$(getprop net.dns1)" = "" ]; do |
37 | 42 | sleep 10 |
38 | 43 | done |