Home > Tips and Tricks

Fix fastboot: error: ANDROID_PRODUCT_OUT not set

In this guide, we will show you the steps to fix the fastboot: error: ANDROID_PRODUCT_OUT not set. When it comes to flashing any custom binary, then the two prerequisites that you need to checkmark is booting your device to Fastboot Mode and having Android SDK Platform Tools. However, even then, you might stumble upon a few issues.

For instance, many users were trying to flash the vbmeta.img to disable verity checks. However, whenever they are trying to do so, they are instead greeted with the fastboot: error: ANDROID_PRODUCT_OUT not set. if you are also getting bugged by this error, then this guide will make you aware of numerous methods that should help you rectify this problem. Follow along.

Fix fastboot: error: ANDROID_PRODUCT_OUT not set

fastboot: error: ANDROID_PRODUCT_OUT not set

It is recommended that you try out each of the below-mentioned workarounds and then see which one spells out success. So with that in mind, let’s get started.

FIX 1: Add SDK to Path

  1. First off, download and extract Android SDK Platform Tools on your PC.fastboot: error: ANDROID_PRODUCT_OUT not set
  2. Then add Android SDK Platform Tools to the environmental variables path.fastboot: error: ANDROID_PRODUCT_OUT not set
  3. Now transfer the file that you want to flash inside the platform-tools folder.
  4. Then type in CMD in the platform-tools folder address bar and hit Enter.fastboot: error: ANDROID_PRODUCT_OUT not set
  5. This will launch Command Prompt with the platform-tools folder directory
  6. Now boot your device to Fastboot Mode and connect it to your PC via a USB cable.fastboot: error: ANDROID_PRODUCT_OUT not set
  7. Finally, execute the desired flashing command and you will no longer get the fastboot: error: ANDROID_PRODUCT_OUT not set.

FIX 2: Disable vbmeta

  1. To begin with, download the same firmware that is currently installed on your device.
  2. Then extract it, copy the vbmeta.img from there, and transfer it to the platform-tools folder.
  3. Now open the CMD window inside the platform-tools folder
  4. Then execute the below command to boot your device to Fastboot Mode:
    adb reboot bootloader

    fastboot: error: ANDROID_PRODUCT_OUT not set

  5. Then type in the below command to flash the vbmeta.img file and check if it fixes the issue:
    fastboot flash vbmeta vbmeta.img
  6. If the issue is still there, then disable verity checks via any one of the three commands given below:
    fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img 
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification

    fastboot: error: ANDROID_PRODUCT_OUT not set

  7. Finally, reboot your device to the OS via the below command:
    fastboot reboot
  8. It should fix the fastboot: error: ANDROID_PRODUCT_OUT not set

FIX 3: Downgrade Android SDK Platform Tools

For the unaware, Google has recently rolled out a buggy version 34.0.1 of the Android SDK Platform Tools which has resulted in quite a few issues in Fastboot and FastbootD Mode. Therefore, you should consider downgrading it to its earlier stable version, as explained in this guide: How to Downgrade Android SDK Platform Tools.

fastboot- error- ANDROID_PRODUCT_OUT not set

These were the two methods to fix the fastboot: error: ANDROID_PRODUCT_OUT not set. 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: