Last active
January 2, 2016 18:39
-
-
Save tozionsdoor/8344891 to your computer and use it in GitHub Desktop.
SH-06Eにて自動でsystem.imgをマウントさせる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
BUSYBOX=/data/local/tmp/busybox | |
if test -b /dev/loop0; then | |
$BUSYBOX echo "" > /sys/kernel/uevent_helper | |
$BUSYBOX test -f /system/xbin/su && exit 0 | |
$BUSYBOX cp -p /data/local/tmp/su /system/xbin | |
$BUSYBOX chown 0.0 /system/xbin/su | |
$BUSYBOX chmod 6755 /system/xbin/su | |
exit 0 | |
fi | |
$BUSYBOX echo /data/local/tmp/mountsys > /sys/kernel/uevent_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
if test -b /dev/loop0; then | |
exit 0 | |
fi | |
/data/local/tmp/busybox mount -o loop -t ext4 /data/local/system.img /system | |
/data/local/tmp/busybox killall zygote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
/data/local/tmp/busybox chmod 666 /dev/msm_acdb | |
/data/local/tmp/install_backdoor | |
/data/local/tmp/unlock_lsm_miyabi | |
/data/local/tmp/unlock_mmc_protect | |
/data/local/tmp/run_autoexec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fi01さんが、SH-06Eでのマウントの問題を解明されたみたいで | |
PCやADBを使わずにsystem.imgをマウント・認識させる事が出来るようになった。 | |
詳しい方法は書かれておらず、自分でやってみてうまくいっただけで、 | |
この方法が正しいかどうかは不明だが一応書いてみる。 | |
実行する場合は自己責任で。 | |
autoexec.shは/data/local/autoexec.sh(パーミッション755) | |
onBootは/data/local/tmp/onBoot(パーミッション755) | |
mountsysは/data/local/tmp/mountsys(パーミッション755) | |
設置が終わったら再起動。 | |
設置の仕方とかわからない人は、ブログに書いたので探してみてください。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment