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.
Table of Contents
Fix 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
- First off, download and extract Android SDK Platform Tools on your PC.
- Then add Android SDK Platform Tools to the environmental variables path.
- Now transfer the file that you want to flash inside the platform-tools folder.
- Then type in CMD in the platform-tools folder address bar and hit Enter.
- This will launch Command Prompt with the platform-tools folder directory
- Now boot your device to Fastboot Mode and connect it to your PC via a USB cable.
- Finally, execute the desired flashing command and you will no longer get the fastboot: error: ANDROID_PRODUCT_OUT not set.
FIX 2: Disable vbmeta
- To begin with, download the same firmware that is currently installed on your device.
- Then extract it, copy the vbmeta.img from there, and transfer it to the platform-tools folder.
- Now open the CMD window inside the platform-tools folder
- Then execute the below command to boot your device to Fastboot Mode:
adb reboot bootloader
- Then type in the below command to flash the vbmeta.img file and check if it fixes the issue:
fastboot flash vbmeta vbmeta.img
- 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
- Finally, reboot your device to the OS via the below command:
fastboot reboot
- 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.
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.