2011年11月21日月曜日

[Android]F-12C(V13) root化

F-12CをlinuxPCからroot化したのでメモ
ドライバ導入とかいらない分こっちの方が楽かも
あとroot化ツールの自動実行スクリプトが間違っていたことがわかった。
解凍してそのまま実行するとハマるかも。
【手順】
・zergRush_automated_Linux_rootをダウンロードする。
・ベンダIDの記載
# echo "0x04C5" > ~/.android/adb_usb.ini
・ zergRush_automated_Linux_rootを解凍する(例ではホームディレクトリ直下)
・ zergRush_automated_Linux_rootを解凍したディレクトリに入って以下コマンドを実行する。
(提供スクリプトの内容を打ち込んだだけだが結果としてミスを発見できてよかった)
実行ログ
# cd ~/zergRush_automated_Linux_root
# ./files/adb shell rm -r /data/local/tmp
# ./files/adb shell mkdir /data/local/tmp
# ./files/adb push ./files/zergRush /data/local/tmp/
329 KB/s (23052 bytes in 0.068s)
# ./files/adb shell chmod 755 /data/local/tmp/zergRush
# ./files/adb shell /data/local/tmp/zergRush
[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.
[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.
[+] Found a GingerBread ! 0x00016118
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x000161e0
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x40119cd4 0x0054
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd25611 0xafd390bf
[*] Popping 24 more zerglings
[*] Sending 173 zerglings ...
[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!
# ./files/adb wait-for-device
# ./files/adb push ./files/busybox /data/local/tmp
3204 KB/s (1075144 bytes in 0.327s)
# ./files/adb shell chmod 755 /data/local/tmp/busybox
# ./files/adb shell /data/local/tmp/busybox mount -o remount,rw /system
# ./files/adb push files/busybox /system/xbin
2923 KB/s (1075144 bytes in 0.359s)
# ./files/adb shell chown root.shell /system/xbin/busybox
# ./files/adb shell chmod 04755 /system/xbin/busybox
# ./files/adb shell /system/xbin/busybox --install -s /system/xbin
# ./files/adb shell rm -r /data/local/tmp/busybox
# ./files/adb push ./files/su /system/bin/su
360 KB/s (22228 bytes in 0.060s)
# ./files/adb shell chown root.shell /system/bin/su
# ./files/adb shell chmod 06755 /system/bin/su
# ./files/adb shell rm /system/xbin/su
# ./files/adb shell ln -s /system/bin/su /system/bin/su
link failed File exists
★ここを/system/xbin/suに修正
# ./files/adb shell rm /system/xbin/su
rm failed for /system/xbin/su, No such file or directory
# ./files/adb shell ln -s /system/bin/su /system/xbin/su
# ./files/adb push ./files/Superuser.apk /system/app/
3001 KB/s (762010 bytes in 0.247s)
# ./files/adb shell rm -r /data/local/tmp
# ./files/adb reboot
以上