已解决Writing ‘modem_a‘FAILED (remote: ‘Operation not permitted‘

今天用可视化工具FastbootEnhance线刷,没有注意到日志报错,开机后黑屏,电脑能检测到是开机状态,电源键按下有声音。

排除线刷包问题,翻看FastbootEnhance的日志,它的日志放到记事本全屏方便观看)

Sending 'keymaster_a' (360 KB)                     OKAY [  0.011s]  
Writing 'keymaster_a'                              OKAY [  0.005s]  
Finished. Total time: 0.023s  
Invalid sparse file format at header magic  
Sending sparse 'modem_a' 1/1 (223893 KB)           OKAY [  6.441s]  
Writing 'modem_a'                                  FAILED (remote: 'Operation not permitted')
...
fastboot: error: Command failed  
Sending 'oplus_sec_a' (344 KB)                     OKAY [  0.011s]  
Writing 'oplus_sec_a'                              OKAY [  0.006s]   
...
Writing 'my_stock_a'                               FAILED (remote: 'No such file or directory')

...

然后更新platform-tools:http://t.csdnimg.cn/mxDGx
使用命令行手动刷入镜像文件
参考格式:

     adb和fastbooot 工具
-----------------------------------------
         adb和fastboot命令示例  
 adb命令:  
        adb devices             :列出adb设备  
        adb reboot              :重启设备  
        adb reboot bootloader   :重启到fastboot模式  
        adb reboot recovery     :重启到recovery模式  
        adb reboot edl          :重启到edl模式  

 fastboot命令:  
        fastboot devices                        :列出fastboot设备  
        fastboot reboot                         :重启设备  
        fastboot reboot-bootloader              :重启到fastboot模式  
        fastboot flash <分区名称> <镜像文件名>  :刷写分区  
        fastboot oem reboot-<模式名称>          :重启到相应模式  
        fastboot oem device-info                :查看解锁状态  

具体操作 :

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot>  adb reboot bootloader
-----------------------------------------
E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot> fastboot devices
6d770525         fastboot

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot>fastboot flash modem_a C:\Users\Spencer\Videos\tt\modem.img
Sending 'modem_a' (281620 KB)                      OKAY [  7.496s]
Writing 'modem_a'                                  OKAY [  0.501s]
Finished. Total time: 8.530s

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot> fastboot reboot fastboot
Rebooting into fastboot                            OKAY [  0.003s]
< waiting for any device >
Finished. Total time: 18.225s

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot> fastboot devices
6d770525         fastboot

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot> fastboot flash my_stock C:\Users\Spencer\Videos\tt\my_stock.img
Resizing 'my_stock_a'                              OKAY [  0.003s]
Sending sparse 'my_stock_a' 1/9 (262140 KB)        OKAY [  7.420s]
Writing 'my_stock_a'                               OKAY [  0.378s]
Sending sparse 'my_stock_a' 2/9 (262140 KB)        OKAY [  7.316s]
Writing 'my_stock_a'                               OKAY [  0.376s]
Sending sparse 'my_stock_a' 3/9 (262140 KB)        OKAY [  7.389s]
Writing 'my_stock_a'                               OKAY [  0.367s]
Sending sparse 'my_stock_a' 4/9 (262140 KB)        OKAY [  7.411s]
Writing 'my_stock_a'                               OKAY [  0.369s]
Sending sparse 'my_stock_a' 5/9 (262140 KB)        OKAY [  7.375s]
Writing 'my_stock_a'                               OKAY [  0.368s]
Sending sparse 'my_stock_a' 6/9 (262140 KB)        OKAY [  7.421s]
Writing 'my_stock_a'                               OKAY [  0.374s]
Sending sparse 'my_stock_a' 7/9 (262140 KB)        OKAY [  7.333s]
Writing 'my_stock_a'                               OKAY [  0.372s]
Sending sparse 'my_stock_a' 8/9 (262140 KB)        OKAY [  7.369s]
Writing 'my_stock_a'                               OKAY [  0.365s]
Sending sparse 'my_stock_a' 9/9 (120692 KB)        OKAY [  3.402s]
Writing 'my_stock_a'                               OKAY [  0.244s]
Finished. Total time: 68.399s

E:\AllBackup\TWRP-3.3.0-0420-wzsx150-fastboot>


清除DATA分区后开机,显示logo,欢迎页正常显示。

补充说下,遇到反复重启、不能开机(例如刷入magisk更换boot),关闭AVB校验试试


echo 关闭AVB校验
platform-tools\fastboot.exe --disable-verity --disable-verification flash vbmeta_a firmware\vbmeta.img
::platform-tools\fastboot.exe --disable-verity --disable-verification flash vbmeta_b firmware\vbmeta.img
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值