標題: 我來分享htc one se 和 one s 的 rom (僅限S4處理器) [打印本頁] 作者: asas12buy 時間: 2014-2-24 20:47 標題: 我來分享htc one se 和 one s 的 rom (僅限S4處理器) 本帖最後由 asas12buy 於 2014-2-24 22:56 編輯
You need ADB and an understanding of how to use it and have a rooted device (although I didn"t test this). You will also need a hex editor like HxD.
需要下載ADB,知道基本操作,手機需要Unlock+root,電腦上需要下載16進制編輯器
BACK UP YOUR DATA BEFORE DOING THIS!!!! WHEN HTCDEV UNLOCKS YOUR DEVICE YOU MUST START FROM SCRATCH!!!
備份你的資料!
下面動作請將手機正常開機到系統中..不需在fastboot模式下
1. Fire up your command prompt and go to the directory that you have ADB installed to. Type "adb shell" and hit enter.
去剛下載的ADB資料夾打開Command Prompt,在命令行中輸入adb shell,按enter。進入linux命令行模式
2. Type "su" and hit enter. You now have root privileges.
如果出現的符號是$請輸入su,按enter,現在符號會變成#(如果這步出錯,多半是沒root)
3. Next type "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4" and hit enter. This will dump the partition to your sdcard.
輸入dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4 按enter
4. Next type "exit", hit enter, type "exit", and hit enter again. This should take you back to a command prompt for your computer.
輸入exit,按enter,再一次exit退出linux命令行模式,回到windows的cmd命令行
5. type "adb pull /sdcard/mmcblk0p4" and hit enter. NOTE THE SIZE OF THE FILE BEFORE THE NEXT STEP!
輸入adb pull /sdcard/mmcblk0p4按enter 注意進行下一步操作前該檔的大小(會有一個叫mmcblk0p4的檔出現在命令行當前目錄下)
6. Open the file (mmcblk0p4) with your hex editor.
用16進制編輯器打開該檔
7. Look for offset 00000210 (if your on RUU version 1.82 the offset may be 00000214) and you should see CWS__001 with your IMEI number attached to it.
注意:往下拉會找到一個HTC__001,在這個後緊跟著你的IMEI碼。
8. Change CWS__001 to 11111111 and save the file as mmcblk0p4MOD. This will give you SuperCID as well. MAKE SURE AT THIS POINT THAT THE FILE IS THE EXACT SIZE IT WAS BEFORE YOU HEX EDITED IT!
將找到的CID改成11111111(我就是從HTC__001改成11111111)。
9. Now go back to your command prompt and type "adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD" and hit enter.
回到命令行,輸入adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD,按enter
10. Type "adb shell" and hit enter then type "su" and hit enter again. This will put you back into the android shell and give you root privileges.
進入linux命令行模式(和第二步一樣)
11. Type "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4" and hit enter.
輸入dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4按enter----注意此步可能需要等一定時間且沒有任何提示(我等了大概1分鐘),在成功執行後命令行會冒出一行字,請勿在此其間操作命令行或斷開手機連接
12.To test if it worked restart the phone into fastboot (type "adb reboot bootloader" and hit enter) and once the bootloader screen comes up type "fastboot oem readcid" and hit enter. It should read "11111111".