[問題] root 失敗 跑出錯誤訊息

看板AndroidDev作者 (R.I.P. Y.Z.)時間13年前 (2012/10/01 18:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我用以下的指令root我的android手機(version 2.3.5) 但會出現錯誤訊息 而且雖然安裝了supersuer但沒root成功 不知道問題出在哪裡 想請高人解惑 本文如有不妥還請多提點 getroot.bat :ONLOADHOOK set /a LOOP=LOOP+1 if "%LOOP%"=="1" echo system access got if "%LOOP%"=="2" echo system access re-got echo (mobile will restart) echo. adb push onload.sh /data/local/ adb push oncmd.sh /data/local/oncmd.sh adb push libsdservice_jni.so /data/local/ adb push shdisphook /data/local/ adb shell chmod 755 /data/local/onload.sh adb shell chmod 755 /data/local/shdisphook adb shell chmod 755 /data/local/oncmd.sh adb reboot adb wait-for-device shell /data/local/shdisphook echo. echo (need mount off SD card) echo (just go to mount off function but no need to confirm) echo. set CHECK= set /p CHECK= enter 'ok' when finish if /i "%CHECK%"=="OK" goto :RECREATE :RECREATE adb shell rm /cache/recovery adb shell mv /cache/recovery /cache/recovery_ adb shell ln -s /dev/shsd /cache/recovery goto :LOOPCHECK :LOOPCHECK if "%LOOP%"=="1" goto :ONLOADHOOK if "%LOOP%"=="2" goto :GETROOT :GETROOT adb push shsdgetroot-omap4 /data/local/shsdgetroot adb shell /system/bin/chmod 755 /data/local/shsdgetroot adb shell /data/local/shsdgetroot -c "/system/bin/mount -o rw,remount -t rootf s rootfs /" adb shell /data/local/shsdgetroot -c "/system/bin/chmod 777 /sbin" adb push su /sbin/su adb push busybox /sbin/busybox adb shell rm -r /cache/recovery adb shell mv /cache/recovery_ /cache/recovery adb shell mv /cache/recovery /cache/recovery_ adb shell ln -s /dev/boot_daemon_drv /cache/recovery adb shell /data/local/shsdgetroot -c "/system/bin/chown 0.0 /sbin/su" adb shell /data/local/shsdgetroot -c "/system/bin/chown 0.0 /sbin/busybox" adb shell /data/local/shsdgetroot -c "/system/bin/chmod 6755 /sbin/su" adb shell /data/local/shsdgetroot -c "/system/bin/chmod 755 /sbin/busybox" adb shell /data/local/shsdgetroot -c "/sbin/busybox --install -s /sbin" adb shell /data/local/shsdgetroot -c "/system/bin/chmod 755 /sbin" adb shell /data/local/shsdgetroot -c "cp /sbin/su /system/bin/" adb shell /data/local/shsdgetroot -c "chown 0.0 /system/bin/su" adb shell /data/local/shsdgetroot -c "chmod 6755 /system/bin/su" adb shell /data/local/shsdgetroot -c "echo /data/local/shsdgetroot -v -m -u > /system/xbin/soff" adb shell /data/local/shsdgetroot -c "chmod 755 /system/xbin/soff" adb shell /data/local/shsdgetroot -c "/system/bin/mount -o ro,remount -t rootf s rootfs /" adb push Superuser.apk /data/local/Superuser.apk adb shell /system/bin/pm install -t -f -r /data/local/Superuser.apk adb shell /system/bin/rm /data/local/Superuser.apk echo. echo root done goto :EXITBAT :EXITBAT pause sleep 1 cls cd ..\ 當我進入假裝移除SD卡的動作時 便會出現以下幾行錯誤訊息 rm failed for /cache/recovery, Permission denied failed on /cache/recovery_ - Permission denied link failed Permission denied system access re-got please wait restart 0 KB/s (42 bytes in 1.000s) 0 KB/s (42 bytes in 1.000s) 683 KB/s (10932 bytes in 0.015s) 0 KB/s (593 bytes in 1.000s) 不知道是哪一段程式該修改呢 非常感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.34.91.141 ※ 編輯: ViperII 來自: 1.34.91.141 (10/01 18:31)
文章代碼(AID): #1GQN3TTT (AndroidDev)
文章代碼(AID): #1GQN3TTT (AndroidDev)