From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

device/generic/common


Commit MetaInfo

Revisiond6b109f364b89f9458971fcb0ed64b3b932de30b (tree)
Time2020-07-16 02:11:56
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

nativebridge: mount sfs with the ro option

If the sfs is in a read-only /system, mount may fail without the ro
option.

Reported-by: Katharine Chui <katharine.chui@gmail.com>

Change Summary

Incremental Difference

--- a/nativebridge/bin/enable_nativebridge
+++ b/nativebridge/bin/enable_nativebridge
@@ -22,7 +22,7 @@ fi
2222 if [ -s /system/lib$1/libhoudini.so ]; then
2323 log -pi -thoudini "found /system/lib$1/libhoudini.so"
2424 elif [ -e /system/etc/houdini$v.sfs ]; then
25- mount /system/etc/houdini$v.sfs $dest_dir
25+ mount -o ro /system/etc/houdini$v.sfs $dest_dir
2626 else
2727 if mountpoint -q $dest_dir; then
2828 kill -9 `fuser -m $dest_dir`
@@ -30,7 +30,7 @@ else
3030 fi
3131 mkdir -p /data/arm
3232 cd /data/arm
33- while ! mount houdini$v.sfs $dest_dir; do
33+ while ! mount -o ro houdini$v.sfs $dest_dir; do
3434 while [ "$(getprop net.dns1)" = "" ]; do
3535 sleep 10
3636 done