联想小新Pad Pro 2021平板(TB-J716F) 解BL锁&ROOT过程命令记录

Microsoft Windows [版本 10.0.22000.593]
(c) Microsoft Corporation。保留所有权利。

C:\Users\xiaoyao>cd Desktop

C:\Users\xiaoyao\Desktop>cd adbtools
# 检查设备是否已连接adb
C:\Users\xiaoyao\Desktop\adbtools>adb devices -l
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
HA1FFQQB               offline transport_id:1

# offline表示识别了,但是离线状态,建议重新插拔数据线再检查
C:\Users\xiaoyao\Desktop\adbtools>adb devices -l
List of devices attached
HA1FFQQB               device product:LenovoTB-J716F_PRC model:Lenovo_TB_J716F device:J716F transport_id:2

# 重启设备进入bootloader
# adb reboot bootloader
# 【注】bootloader即bl锁的地方,有些人也会把它叫做fastboot,但实际bootloader和fastboot是两个地方
C:\Users\xiaoyao\Desktop\adbtools>adb reboot bootloader

# 在bootloader界面检查设备是否连接
# fastboot devices -l
C:\Users\xiaoyao\Desktop\adbtools>fastboot devices -l
HA1FFQQB               fastboot

# 从联想网站获取了对应设备序列号的解锁文件sn.img,这里开始刷解锁文件
# fastboot flash unlock [sn.img文件路径]
C:\Users\xiaoyao\Desktop\adbtools>fastboot flash unlock "C:\Users\xiaoyao\Desktop\adbtools\padpro2021\sn.img"
Sending 'unlock' (5 KB)                            OKAY [  0.010s]
Writing 'unlock'                                   (bootloader) run fastboot oem unlock-go
OKAY [  0.002s]
Finished. Total time: 0.022s

# 刷入解锁文件成功后,运行该命令解锁并重启
# fastboot oem unlock-go
# 【注】该命令会清除用户设备数据(不会清除储存卡的)
C:\Users\xiaoyao\Desktop\adbtools>fastboot oem unlock-go
OKAY [  0.021s]
Finished. Total time: 0.021s

# 重启进入桌面,再次检查adb是否连接
C:\Users\xiaoyao\Desktop\adbtools>adb devices -l
List of devices attached
HA1FFQQB               device product:LenovoTB-J716F_PRC model:Lenovo_TB_J716F device:J716F transport_id:4

# 准备root,再次进入bootloader准备刷入修补的boot.img
#【注】这里采取互联网中所说的“修补root法”,意思是:
# 1、首先从原厂rom中获取boot.img
# 2、然后在设备安装面具App(Magisk,开源)
# 3、在面具App对boot.img进行修补/打补丁,生成新的boot.img,将其传到电脑准备线刷
# 4、用fastboot命令刷入新的boot.img达到root的目的
C:\Users\xiaoyao\Desktop\adbtools>adb reboot bootloader

# 检查设备是否在bootloader连接
C:\Users\xiaoyao\Desktop\adbtools>fastboot devices -l
HA1FFQQB               fastboot

# 刷入新的boot.img
C:\Users\xiaoyao\Desktop\adbtools>fastboot flash boot "C:\Users\xiaoyao\Desktop\adbtools\padpro2021\magisk_patched-24300_xHqKz.img"
Sending 'boot_b' (98304 KB)                        FAILED (Write to device failed in SendBuffer() (no link))
fastboot: error: Command failed

# 【注】上面刷入boot失败了,经过分析和查找资料,发现是数据线的问题,我当时用的是网上随便买的5A充电线,发现能够传输数据,以为就是数据线,但是实际传输文件时偶尔会断流,初时以为是电脑USB口供电不足的问题,经过此次刷boot发现这数据线功能不全,于是更换平板的原装数据线再试

C:\Users\xiaoyao\Desktop\adbtools>fastboot devices -l
HA1FFQQB               fastboot

# 使用原装数据线再试直接成功
C:\Users\xiaoyao\Desktop\adbtools>fastboot flash boot "C:\Users\xiaoyao\Desktop\adbtools\padpro2021\magisk_patched-24300_xHqKz.img"
Sending 'boot_b' (98304 KB)                        OKAY [  0.238s]
Writing 'boot_b'                                   OKAY [  0.129s]
Finished. Total time: 0.651s

# 重启进入系统
C:\Users\xiaoyao\Desktop\adbtools>fastboot reboot
Rebooting                                          OKAY [  0.001s]
Finished. Total time: 0.001s

C:\Users\xiaoyao\Desktop\adbtools>

你可能感兴趣的:(电脑知识,经验分享,科技)