Home > Tips and Tricks

Fastboot FAILED (remote: Operation not permitted): How to Fix

In this guide, we will show you the steps to fix the Fastboot FAILED (remote: Operation not permitted) error. “The only thing that remains constant is change”- this quotation fits perfectly in the custom development. In the past couple of years, we have seen a plentitude of new and intriguing changes in this domain.

Flashing of files in FastbootD Mode as opposed to Fastboot, flashing vbmeta_vendor, vbmeta_system, and vendor_boot IMG files, and using the flash-all command instead of manually specifying the slots are just some of those changes. In more technical terms, you are now more likely to interact with the following commands:

fastboot reboot bootloader // for booting to FastbootD
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img // for flashing vbmeta system file
fastboot flash --slot=all abl abl.img  // instead of fastboot flash abl_a abl.img and fastboot flash abl_b abl.img

So with such drastic changes happening in custom development, your PC should also be having all its ADB and Fastboot binaries up to date. However, with such a plethora of drivers and software scattered all around, users might end up missing an update or two. And when that happens, errors such as the one shown below are bound to happen. If you are also currently facing the Fastboot FAILED (remote: Operation not permitted) error, then this guide shall help you fix it once and for all. Follow along.

Sending sparse 'system_a' 1/6 (262140 KB) OKAY [ 7.812s]
Writing sparse 'system_a' 1/6 OKAY [ 1.291s]
Sending sparse 'system_a' 2/6 (262140 KB) OKAY [ 7.735s]
Writing sparse 'system_a' 2/6 OKAY [ 1.345s]
Sending sparse 'system_a' 3/6 (262140 KB) OKAY [ 7.645s]
Writing sparse 'system_a' 3/6 OKAY [ 1.295s]
Sending sparse 'system_a' 4/6 (262140 KB) OKAY [ 8.050s]
Writing sparse 'system_a' 4/6 FAILED (remote: 'Operation not permitted')
Finished. Total time: 35.338s

How to Fix Fastboot FAILED (remote: Operation not permitted)

Fastboot FAILED (remote: 'Operation not permitted')

The reason for this error is the fact that you are still using an older version of Google’s Android SDK Platform Tools. So you need to update it to the latest build right away, using the instructions given below:

  1. To begin with, download the latest version of Android SDK Platform Tools
  2. Then extract it to any convenient location on your PC. This shall give you the platform-tools folder.
    Fastboot FAILED (remote: 'Operation not permitted')
  3. Copy all the files inside that folder and transfer them to your older platform-tools folder.
  4. It will now ask if you wish to replace the existing files, reply YES for all the files.
    Fastboot FAILED (remote: 'Operation not permitted')
  5. With this, the Platform Tools are successfully updated and this should fix the fastboot error as well.

One question you might ask is why did we update it this way? Well, you could have left the newer platform tools at a different location. But this would then lead to further complications. First off, you will then have to add the new ADB path to your PC’s environmental variables. Secondly, having two instances of ADB and Fastboot binaries is never a good idea.

Fastboot FAILED (remote: 'Operation not permitted')

So to avoid these issues in the first place, we decided to replace the older files with the newer ones inside the same folder. This way, the path of the environmental variables remains preserved and you only have a single ADB directory on your PC.

On that note, we round off the guide on how you could fix the Fastboot FAILED (remote: Operation not permitted) error as well. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

Share: