ktgucci wrote:
我ROOT時 出現...(恕刪)
編輯root.bat的內容
原本adb shell 改成 adb -s 你的裝置名 shell
裝置名可以用指令adb devices 取得
請用cmd到解壓縮出來含有adb的目錄執行...
以下emulator-5556是我的device name
不曉得為什麼會有二個在跑5554和5556(跑出來的模擬器標題數字)
這是我改過後的root.bat檔
@echo ---------------------------------------------------------------
@echo Created by CoolSnow
@echo qq (670696652)
@echo ---------------------------------------------------------------
@echo wait-for-device...
@adb wait-for-device
@echo mount...
@adb -s emulator-5556 shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
@echo pushing su...
@adb -s emulator-5556 push su /system/bin/
@echo pushing Superuser.apk...
@adb -s emulator-5556 push Superuser.apk /system/app/
@echo set...
@adb -s emulator-5556 shell chown root.shell /system/bin/su
@adb -s emulator-5556 shell chmod 4755 /system/bin/su
@adb -s emulator-5556 shell chown root.root /system/app/Superuser.apk
@adb -s emulator-5556 shell chmod 644 /system/app/Superuser.apk
@echo delete SdkSetup.apk...
@adb -s emulator-5556 shell rm /system/app/SdkSetup.apk
@echo all done...enjoy!
@pause