2015年5月18日 星期一

HTC ONE SV 手機解鎖刷機過程

家裡兩隻已經退到第二線的手機, 最近再度拿出來使用

決定刷機把他們的封印解開, 榨出最大功效

參考了網路許多高手的說明, 自己對Linux還是一知半解

所以還是用自己的筆記把相關資源與作法記下來,

以免改天找不到或者忘了.

以下相關檔案放入Mega, 當作備份.

1. 解鎖 : HTC官解

HTC手機官方解鎖全攻略教學 : http://walker-a.com/archives/2063
APK.tw 討論區 : http://apk.tw/thread-185093-1-1.html

2. 刷Recovery

rom 下載自 XDA

檔案名稱 : twrp-2.8.5.0-k2_ul.img (複製到工具包的目錄裡 更名為recovery.img 方便下指令)

機型 : K2u

參考 深邃狂想: Fastboot使用教學

下載相關工具包 : fastboot.rar

以fastboot 線刷 Recovery : fastboot flash recovery twrp-2.8.5.0-k2_ul.img

手機完全關機後按下音量鍵下再按電源鍵進入 bootloader 模式選至 fastboot 模式按下電源鍵進入接上usb與電腦連結開啟 dos 模式(開始>執行>cmd) 至 c:\adb (放工具包的目錄)
輸入 fastboot flash recovery recovery.img即可將 recovery 刷入

進入後利用 adb 刷入 su
   c:\adb> 輸入 adb shell
   出現 ~#
   ~# 輸入 mount /dev/block/mmcblk0p33 /system
   ~# 輸入 exit
   c:\adb> 輸入 adb push su /system/bin
   c:\adb> 輸入 adb push SuperUser.apk /system/app
   c:\adb> 輸入 adb shell
   ~# 輸入 chown root /system/bin/su
   ~# 輸入 chmod 4755 /system/bin/su
   ~# 輸入 reboot
手機將自動重開機
完成 root

Root的過程有點忘了, 原本用XDA下載的recovery刷完之後, 把SuperSu.zip刷入, 不過root失敗.


但後來重刷TWRP的 rom 好像自己會root 以及放入super root 工具包.

3. S-off

這次解鎖的用意在於使用Link2SD, 讓空間不夠用的問題能夠解決.
在還沒s-off 之前, busybox 可以安裝, 但Link2SD 卻無法正確mount SD卡的第二磁區

參考 XDA 這篇文章 : http://forum.xda-developers.com/showthread.php?t=2203198
1.) Download patcher and unzip it in your working directory:
soffbin3.zip

2.) Download zip that matches your model and move it in your working directory (do not unzip it!):
K2U http://androidfiles.org/getdownload....le=K2U/rom.zip

把下載的rom.zip , 放在工作目錄

3.)
Code:
adb reboot bootloader
(wait for bootloader)

4.)
Code:
fastboot oem rebootRUU
(wait for black HTC Screen)

5.)
Code:
fastboot flash zip rom.zip (上面第二步下載的)
After a while, You should see the following error “FAILED (remote: 92 supercid! please flush image again immediately)

這裡的確會看到失敗訊息, 直接再重刷一遍就對了.

6.) Immediately issue the following command:
Code:
fastboot oem boot
You may see some errors, just wait for the device to boot into Android (only now, you should be booted into Android with no eMMC write protection of any kind active).

7.) Issue the following 3 commands to update the security partition with S-off flags (one command at a time!):
Code:
adb push soffbin3 /data/local/tmp/
adb shell chmod 744 /data/local/tmp/soffbin3
adb shell su -c "/data/local/tmp/soffbin3"
(wait for a few seconds)

8.)
Code:
adb reboot bootloader
重新啟動bootloader之後, 應該就會看到S-off了





沒有留言:

張貼留言