What is Bad Buffer Size Error in TWRP and How to Fix It
In this guide, we will list the steps to fix the Bad Buffer Size Error in TWRP and explain to you the cause of this error. If you are planning to step into the custom domain, then having a custom recovery like TWRP or OrangeFox is the most powerful tool that you could have in your arsenal. From flashing custom ROMs to taking Nandroid Backups, it has a slew of useful features up its sleeves.
However, due to the numerous types of partition styles that each Android device beholds, there doesn’t exist a uniform method of flashing the recovery. As a result of which, you might come across numerous errors while flashing the TWRP Recovery, one among which is Bad Buffer Size. When that happens, you are more likely to get stuck in the Fastboot Mode as well. So what exactly is this issue and more importantly how to rectify it? Let’s find out.
What is Bad Buffer Size Error in TWRP

Flashing a custom recovery usually takes three different routes: via recovery partition, using boot partition and ramdisk, and finally, via the vendor_boot partition. The Bad Buffer Size Error occurs when you are installing TWRP in the first type of device- via the recovery partition. Since these devices have a dedicated recovery partition, you could or rather should directly flash the recovery to that partition instead of using the boot command to temporarily boot that recovery.
How to Fix TWRP Bad Buffer Size Error
- First off, download and extract Android SDK Platform Tools on your PC.
- Then rename the recovery to recovery.img and transfer it to platform tools.
- Now open the Command Prompt inside the platform-tools folder.
- Moreover, as of now, your device should be booted to Fastboot Mode.
- If that is not the case, then use the hardware key combinations to force boot to this mode.
- Now type in the below two commands in the CMD window: fastboot erase misc fastboot set_active a
- Then type in the below command to flash the recovery to the recovery partition: fastboot flash recovery recovery.img
- Or you may also manually flash the recovery to both the slots as follows: fastboot flash recovery_a recovery.img fastboot flash recovery_b recovery.img
- Finally use the below command to boot your device to the newly flashed recovery: fastboot reboot recovery
- How to Flash TWRP Recovery in the Vendor Boot Partition
- How to Switch from OrangeFox to TWRP Recovery
- How to Replace TWRP with AOSP Recovery
- WiFi not working after flashing TWRP: How to Fix
(Cancel Reply)
Δ