小米线刷 mysql_小米6刷机(线刷)第三方ROM——LineageOS
使用到的工具
準(zhǔn)備步驟,下載 platform-tools并解壓,手機(jī)開啟開發(fā)者模式并打開調(diào)試模式。
調(diào)試
數(shù)據(jù)線連接手機(jī),管理員模式運(yùn)行cmd,并cd到下載并解壓好的 platform-tools 目錄。
檢測(cè)adb連接的設(shè)備? [ 命令?adb?devices ]
C:\Users\10306\Downloads\platform-tools>adb devices
List of devices attached
5815a502 device
列出有一條設(shè)備如上所示,即表示手機(jī)連接沒有問題。
登錄小米官網(wǎng)進(jìn)行BL解鎖
上面兩步?jīng)]有問題,可以開始下面的步驟。
刷機(jī)步驟
刷recovery
輸入下面命令重啟進(jìn)入fastboot模式并檢測(cè)連接狀況 [ 命令? adb reboot bootloader? 和? fastboot?devices?]
C:\Users\10306\Downloads\platform-tools>adb reboot bootloader
# 等待重啟后,輸入下面命令
C:\Users\10306\Downloads\platform-tools>fastboot devices
5815a502 fastboot
輸入下面命令,寫入recovery image,注意后面.img文件的路徑換成自己的 [? 命令? fastboot flash recovery ?]
C:\Users\10306\Downloads\platform-tools>fastboot flash recovery C:\Users\10306\Downloads\lineage-17.1-20200423-recovery-sagit.img
Sending 'recovery' (23828 KB) OKAY [ 0.583s]
Writing 'recovery' OKAY [ 0.184s]
Finished. Total time: 0.780s
刷機(jī)
1. 先關(guān)機(jī),然后 音量+鍵和開機(jī)鍵同時(shí)按,進(jìn)入recovery,做三清。Factory reset: wipe data / wipe cahce partition / wipe system partition.
2. 屏幕選擇 Apply update,再選擇 Apply from ADB,這時(shí)手機(jī)會(huì)顯示
Now send the package you want to apply to the device with "adb sideload "...
此時(shí),cmd中輸入刷機(jī)命令? [? 命令? adb sideload ?]
C:\Users\10306\Downloads\platform-tools>adb sideload C:\Users\10306\Downloads\lineage-17.1-20200423-nightly-sagit-signed.zip
觀察控制臺(tái)出現(xiàn)如下信息:
serving: 'C:\Users\10306\Downloads\lineage-17.1-20200423-nightly-sagit-signed.zip' ?(~47%)
手機(jī)上顯示如下信息:
succeeded: result was [1.000000] 即表示成功,重啟手機(jī)即可。
注:如果刷入的是非lineageos,則手機(jī)會(huì)提示Signature verification failed,這時(shí)選擇[yes],Install anyway即可。
Lineage系統(tǒng)預(yù)覽
遇到的問題:
cmd控制臺(tái)中出現(xiàn)如下錯(cuò)誤
adb: failed to read command: No error
手機(jī)重啟后進(jìn)入了LineageOS,miui系統(tǒng)已經(jīng)被覆蓋。
總結(jié)
以上是生活随笔為你收集整理的小米线刷 mysql_小米6刷机(线刷)第三方ROM——LineageOS的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JSP高级进阶
- 下一篇: 房屋建筑与装饰工程工程量计算新旧规范对比