Skip to content

Instantly share code, notes, and snippets.

@dlintw
Created August 29, 2015 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlintw/e31b0625b68d7a05dc13 to your computer and use it in GitHub Desktop.
Save dlintw/e31b0625b68d7a05dc13 to your computer and use it in GitHub Desktop.
script for root xperia 5.0.2 android
cat <<EOT
此root用於Xperia Z 5.0.2 [10.6.A.0.454]
僅發佈於apk.tw 請勿轉載
By cat1221 ,cat605101
Translate to Linux by dlintw
其他機型.版本未測試 盡量不要用在次外的版本
無法百分之百保證可以 但請按照指示行走 未完成請勿按下一步!
過程會用到KingRoot當跳板 但會清除乾淨 擔心者請勿使用
請先把手機拔離電腦 靜待指示
---------------------------------------------
讀完以上 接受請按任何鍵 不接受請關閉程式
EOT
read x
clear
cat <<EOT
--------------------------------------------------------
1.請先至設定-關於手機-點擊軟體版本到開發人員選項出現為止
2.設定-開發人員選項-打開USB偵錯,打開螢幕保持開啟
3.設定-安全性-不明安裝來源打勾
完成後請接上手機
偵測手機中......
---------------------------------------------------------
EOT
adb wait-for-device
clear
cat <<EOT
------------------------------
已偵測到手機
------------------------------
EOT
adb push su /data/local/tmp
adb push busybox /data/local/tmp
adb uninstall eu.chainfire.supersu
adb uninstall com.kingroot.RushRoot
adb install KingRoot.apk
timeout 2
adb shell am start -n com.kingroot.RushRoot/.activities.MainActivity
cat <<EOT
----------------------------------------------------------
KingRoot安裝成功 已啟動程式
請用KingRoot獲取權限
成功後請按任何鍵
-----------------------------------------------------------
EOT
read x
clear
adb shell input keyevent 3
adb shell am start -n com.kingroot.kinguser/.activitys.SliderMainActivity
cat <<EOT
------------------------------------------------------------------------------
請看完在進行下一步
1.等等手機會跳出授權視窗 請按允許
2.已自動進入授權管理畫面 請點擊右上角的設置圖標-Root授權設置
等到電腦視窗出現"sleep 20"指令 徹底清除Root權限 請按"清除"
-----------------(請在20秒內完成)--------------------------
確認步驟後請按任意鍵
------------------------------------------------------------------------------
EOT
read x
clear
adb shell < temp.txt
read x
clear
adb uninstall com.kingroot.RushRoot
adb uninstall com.kingroot.master
adb uninstall com.kingroot.kinguser
adb install Superuser.apk
sleep 2 # timeout 2
adb shell am start -n eu.chainfire.supersu/.MainActivity
cat <<EOT
-----------------------------------
KingRoot所有程式已移除
----------------------------------
SuperSU安裝成功 已啟動
更新二進位檔(選擇正常)
成功後請按重開機 即完成所有ROOT步驟
-------------------------------------
更新失敗請重開執行root程式 或回報本人
-------------------------------------
EOT
read x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment