裝置無法用fastboot update image,出現錯誤訊息 FAILED (remote: Partition flashing
is not allowed) 解決方法

開發專案時,發生用 fastboot 無法 flash image,並出現錯誤訊息如下
--
D:\8909img>fastboot flash boot boot.img
< waiting for any device >
target reported max download size of 262144000 bytes
sending 'boot' (8253 KB)...
OKAY [ 0.266s]
writing 'boot'...
FAILED (remote: Partition flashing is not allowed)
finished. total time: 0.281s
--
解決方法如下:
1.開機進入android,開啟developer options,開啟 oem unlock 選項
2.reboot 到 bootloader,輸入指令 fastboot oem unlock-go ,用來 wipe userdata
之後再進入 bootloader 模式,輸入 fastboot flashing unlock
就可以看到unlock成功
---
D:\8909img>fastboot flashing unlock
...
(bootloader) Device already : unlocked!
OKAY [ 0.000s]
finished. total time: 0.000s
--
3.之後就可以正常用 fastboot flash boot boot.img 指令了
備註:
在bootloader下可用指令 fastboot flashing get_unlock_ability 查看是否能 unlock (也就是oem unlock 選項 是否有開啟)
返回值 1 表示有開啟,0表示沒有開啟。
C:\Windows\system32>fastboot flashing get_unlock_ability
...
(bootloader) get_unlock_ability: 1
OKAY [ 0.000s]
finished. total time: 0.000s

開發專案時,發生用 fastboot 無法 flash image,並出現錯誤訊息如下
--
D:\8909img>fastboot flash boot boot.img
< waiting for any device >
target reported max download size of 262144000 bytes
sending 'boot' (8253 KB)...
OKAY [ 0.266s]
writing 'boot'...
FAILED (remote: Partition flashing is not allowed)
finished. total time: 0.281s
--
解決方法如下:
1.開機進入android,開啟developer options,開啟 oem unlock 選項
2.reboot 到 bootloader,輸入指令 fastboot oem unlock-go ,用來 wipe userdata
之後再進入 bootloader 模式,輸入 fastboot flashing unlock
就可以看到unlock成功
---
D:\8909img>fastboot flashing unlock
...
(bootloader) Device already : unlocked!
OKAY [ 0.000s]
finished. total time: 0.000s
--
3.之後就可以正常用 fastboot flash boot boot.img 指令了
備註:
在bootloader下可用指令 fastboot flashing get_unlock_ability 查看是否能 unlock (也就是oem unlock 選項 是否有開啟)
返回值 1 表示有開啟,0表示沒有開啟。
C:\Windows\system32>fastboot flashing get_unlock_ability
...
(bootloader) get_unlock_ability: 1
OKAY [ 0.000s]
finished. total time: 0.000s
全站熱搜