• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Revisãofcae9b177ccd199a1202e2adb648c7af4856f2e1 (tree)
Hora2019-07-30 18:59:41
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Mensagem de Log

nativebridge: set default context to mount sfs command

Mudança Sumário

Diff

--- a/nativebridge/bin/enable_nativebridge
+++ b/nativebridge/bin/enable_nativebridge
@@ -13,6 +13,11 @@ urls[3]=http://goo.gl/96BPKe
1313 urls[4]=http://goo.gl/v6c4Co
1414 urls[5]=http://goo.gl/CtKjxx
1515
16+mount_sfs()
17+{
18+ mount -o 'context="u:object_r:system_file:s0"' $1 $2
19+}
20+
1621 if [ -z "$1" ]; then
1722 v=8_y
1823 u=1
@@ -24,7 +29,7 @@ fi
2429 if [ -s /system/lib$1/libhoudini.so ]; then
2530 log -pi -thoudini "found /system/lib$1/libhoudini.so"
2631 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
2833 else
2934 if mountpoint -q $dest_dir; then
3035 kill -9 `fuser -m $dest_dir`
@@ -32,7 +37,7 @@ else
3237 fi
3338 mkdir -p /data/arm
3439 cd /data/arm
35- while ! mount houdini$v.sfs $dest_dir; do
40+ while ! mount_sfs houdini$v.sfs $dest_dir; do
3641 while [ "$(getprop net.dns1)" = "" ]; do
3742 sleep 10
3843 done