可能是由于MTK芯片的原因,和之前的一加机型都不太一样,不能使用fastboot oem device-info
来获取bootloader是否解锁的信息。
而应该使用fastboot getvar
比如直接使用fastboot getvar all
,可以获取到很多信息
上面的信息如下
(bootloader) off-mode-charge: 1
(bootloader) slot-retry-count:b: 1
(bootloader) slot-retry-count:a: 1
(bootloader) slot-successful:b: yes
(bootloader) slot-successful:a: yes
(bootloader) slot-unbootable:b: no
(bootloader) slot-unbootable:a: no
(bootloader) slot-count: 2
(bootloader) current-slot: b
(bootloader) unlocked: yes
(bootloader) secure: no
(bootloader) partition-type:userdata: f2fs
(bootloader) partition-size:userdata: 383aff8000
(bootloader) has-slot:userdata: no
(bootloader) partition-type:vbmeta_b: raw
(bootloader) partition-type:vbmeta_a: raw
(bootloader) partition-size:vbmeta_b: 800000
(bootloader) partition-size:vbmeta_a: 800000
(bootloader) has-slot:vbmeta: yes
(bootloader) partition-type:super: raw
(bootloader) partition-size:super: 2e0000000
(bootloader) has-slot:super: no
(bootloader) partition-type:md1img_b: raw
(bootloader) partition-type:md1img_a: raw
(bootloader) partition-size:md1img_b: c800000
(bootloader) partition-size:md1img_a: c800000
(bootloader) has-slot:md1img: yes
(bootloader) partition-type:dtbo_b: raw
(bootloader) partition-type:dtbo_a: raw
(bootloader) partition-size:dtbo_b: 800000
(bootloader) partition-size:dtbo_a: 800000
(bootloader) has-slot:dtbo: yes
(bootloader) partition-type:vendor_boot_b: raw
(bootloader) partition-type:vendor_boot_a: raw
(bootloader) partition-size:vendor_boot_b: 4000000
(bootloader) partition-size:vendor_boot_a: 4000000
(bootloader) has-slot:vendor_boot: yes
(bootloader) partition-type:boot_b: raw
(bootloader) partition-type:boot_a: raw
(bootloader) partition-size:boot_b: 4000000
(bootloader) partition-size:boot_a: 4000000
(bootloader) has-slot:boot: yes
(bootloader) partition-type:lk_b: raw
(bootloader) partition-type:lk_a: raw
(bootloader) partition-size:lk_b: 500000
(bootloader) partition-size:lk_a: 500000
(bootloader) has-slot:lk: yes
(bootloader) is-userspace: no
(bootloader) serialno: TOSK9TD6WSV8OJE6
(bootloader) product: k6895v1_64
(bootloader) max-download-size: 0x4000000
(bootloader) version-bootloader: k6895v1_64_1b23f70_202205021705
(bootloader) version: 0.5
all: Done!!
Finished. Total time: 0.026s
其中(bootloader) unlocked: yes
这一行,就是bootloader已经解锁的意思。
进一步的,也可以直接使用fastboot getvar unlocked
来只获取bootloader解锁的信息。
2022-05-06
没有标签