Problem:
When trying to flash a device using fastboot, i.e. via commands "fastboot -w flashall", get errrors like
"error: neither -p product specified nor ANDROID_PRODUCT_OUT set"
or
"error: error: could not load android-info.txt"
Solution:
First, you want to make sure the environment variable ANDROID_PRODUCT_OUT is properly set to the out/target/product/your_product/ directory
Second, double check if all images(boot.img, system.img, userdata.img, caches.img, recovery.img) are there in that directory and an text file "android-info.txt" exits.
If all images are generated and ANDROID_PRODUCT_OUT is set, then you might have to flash images one by one. It seems that the "flashall" command is problematic sometimes.
Commands:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
...
how to set environment variable ANDROID_PRODUCT_OUT??? command plz
ReplyDeletesolved via :
Deleteexport ANDROID_PRODUCT_OUT=/home/monika/SkypeFiles/grouper_new/