Question

I am stuck flashing android to my nexus 7. Steps to build image:

branch: refs/tags/android-4.4.2_r1

lunch : aosp_flo-userdebug

What i´ve done so far after building the image:

  1. Like descibed in docs: http://source.android.com/source/building-running.html

    sudo fastboot flashall -w -p /home/stefan/bin/out/target/product/flo/

    Gives me the following error: could not load android-info.txt: No such file or directory.

    So no luck with that, tried searching google but didnt find anything.

  2. Downloaded an official rom 4.4.2 (KOT49H) from the nexus driver page:

    https://developers.google.com/android/nexus/drivers

    Deleted everything in the update package (zip) and putted my files in.

    Then did sudo sh flash-all.sh

    This method do flash the rom onto the device, but it also wont boot.

    It hangs on the google splash screen.....

Is there anybody who can tell me how to properly flash my AOSP rom to device?

Was it helpful?

Solution

Your number 2 definitely will not work, and you shouldn't bother going down that route.

So the first issue you might have is you may be trying to build the wrong image, there are two Nexus 7s. Grouper is the designation for the first generation Nexus 7 and Flo is the designation of the 2013 Nexus 7, so make sure you have those right.

The second issue you may be having is the build may be failing. Are you sure that your make completed successfully? Your final message should say something similiar to

Install system fs image: out/target/blah/blah/blah/system.img

If you didn't see a line like that your build failed in which case you should diagnose that.

The third issue is you may be pointing at the wrong file. The line you are giving expects a full package, and you may not have created one. Try doing this instead:

sudo su
. build/envsetup.sh
lunch aosp_flo-userdebug
fastboot flashall -w

This will look for the generated files from the build automatically without you having to point at them, so long as you have selected the proper lunch option. Another issue you may be having is you may be confusing your shell with sudo, I am guessing you haven't bothered setting up the proper USB Permissions (see configuring USB access on the AOSP Build Guide. If you don't want to bother setting up USB permissions, then just initialize your environment as the super user after you have built when you need to flash (not before, or all your files will belong to root!)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top