Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: could not load android-info.txt

After I built the source code of android, I ran the following command and got the error.

#fastboot -w flashall
error: could not load android-info.txt

I had successfully built the source code for nexus one (build 5), and I found that there is a android-info.txt file in the directory out/target/passion/.

Also, I am sure that the phone is connected. When I run "fastboot devices", it shows the device.

Anybody know the reason?

like image 605
HChen Avatar asked May 01 '11 03:05

HChen


2 Answers

It depends on how the flash all script is organized. Try flashing into the partition directly.

Eg: fastboot flash system system.img

I observed this issue when trying to fastboot update an OTA package.

Eg: fastboot update xyz.zip.

Currect way to update via fastboot is

fastboot update updateImagename.img

like image 126
Akhil Avatar answered Oct 22 '22 13:10

Akhil


Old thread so sorry for reactivating it, but it's still one of the top hits and it's unanswered. My fix was to ensure I had the ANDROID_PRODUCT_OUT environment variable, and that it was pointing to /home/{usr name}/{build directory}/out/target/product/{taget}

Again, sorry for resurrecting a dead post.

like image 21
andrew Avatar answered Oct 22 '22 15:10

andrew