Partition problem in AOSP build I am compiling the AOSP rom for Nexus 7 flo. After the build is completed, I always end up at this screen "type password to decrypt storage".

The factory images work correctly, and the device works. Also there has never been any password. I could understand that the problem seemed to be with userdata partition, so I flashed everything from the factory images, and then flashed only my own compiled userdata.img. And it works, so I am left clueless as to where the problem could be?

Any ideas?

Edit1:

So after some searching/asking around, it seems this problem can occur if partitions overwrite each other (any of the img files is too big, particularly boot.img). But how can I verify this? Any thoughts on this?
Are you using make -j# otapackage? If so it should result in a ZIP that should flash with no problems.
Also fastboot format all partitions to get rid of the decrypt error.
If the source is untouched, i.e. the ROM compiled is the same as the stock ROM, the images should flash without any such error.