华为bootloader需要解锁后才能刷第三方recovery,解锁需要在华为官网上申请解锁码(目前官方已关闭申请解锁码通道),而且解锁后重新上锁,bootloader的显示不是unlocked,而是relocked。下面介绍如何绕开华为官网解锁bootloader,以及将bootloader恢复成unlocked状态。
首先,你的手机需要未解锁,并将系统降级至B197,但需要获得root权限(须用360超级root)
其次,电脑上安装刷机精灵,将手机USB连接电脑。打开刷机精灵,打开ADB命令行,输入adb shell
下面从adb shell登录到手机按以下顺序开始输入并回车:
shell@HWNXT:/ $ su
root@HWNXT:/ # cd /storage/
root@HWNXT:/storage # mkdir -p PartitionBackup
root@HWNXT:/storage # cd PartitionBackup
root@HWNXT:/storage/PartitionBackup # dd of=nvme \
> if=/dev/block/platform/hi_mci.0/by-name/nvme
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.916 secs (4578934 bytes/sec)
root@HWNXT:/storage/PartitionBackup # dd of=oeminfo \
> if=/dev/block/platform/hi_mci.0/by-name/oeminfo
65536+0 records in
65536+0 records out
33554432 bytes transferred in 8.768 secs (3826919 bytes/sec)
root@HWNXT:/storage/PartitionBackup # dd of=recovery \
> if=/dev/block/platform/hi_mci.0/by-name/recovery
32768+0 records in
32768+0 records out
16777216 bytes transferred in 4.419 secs (3796609 bytes/sec)
root@HWNXT:/storage/PartitionBackup # strings nvme | grep WVDEVID -B 1
1234567890123456
这里得到的16位数字就是解锁码,可直接用于bootloader的解锁
再重启到bootloader,就可以看到是unlocked状态了
注:bootloader恢复成unlocked状态后,第三方recovery、第三方boot.img都不能正常工作。需要用如下命令恢复recovery:
root@HWNXT:/storage/PartitionBackup # dd if=recovery of=/dev/block/platform/hi_mci.0/by-name/recovery
亲测成功获取解锁码。
首先,你的手机需要未解锁,并将系统降级至B197,但需要获得root权限(须用360超级root)
其次,电脑上安装刷机精灵,将手机USB连接电脑。打开刷机精灵,打开ADB命令行,输入adb shell
下面从adb shell登录到手机按以下顺序开始输入并回车:
shell@HWNXT:/ $ su
root@HWNXT:/ # cd /storage/
root@HWNXT:/storage # mkdir -p PartitionBackup
root@HWNXT:/storage # cd PartitionBackup
root@HWNXT:/storage/PartitionBackup # dd of=nvme \
> if=/dev/block/platform/hi_mci.0/by-name/nvme
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.916 secs (4578934 bytes/sec)
root@HWNXT:/storage/PartitionBackup # dd of=oeminfo \
> if=/dev/block/platform/hi_mci.0/by-name/oeminfo
65536+0 records in
65536+0 records out
33554432 bytes transferred in 8.768 secs (3826919 bytes/sec)
root@HWNXT:/storage/PartitionBackup # dd of=recovery \
> if=/dev/block/platform/hi_mci.0/by-name/recovery
32768+0 records in
32768+0 records out
16777216 bytes transferred in 4.419 secs (3796609 bytes/sec)
root@HWNXT:/storage/PartitionBackup # strings nvme | grep WVDEVID -B 1
1234567890123456
这里得到的16位数字就是解锁码,可直接用于bootloader的解锁
再重启到bootloader,就可以看到是unlocked状态了
注:bootloader恢复成unlocked状态后,第三方recovery、第三方boot.img都不能正常工作。需要用如下命令恢复recovery:
root@HWNXT:/storage/PartitionBackup # dd if=recovery of=/dev/block/platform/hi_mci.0/by-name/recovery
亲测成功获取解锁码。