I'm worried about "fastboot flash userdata userdata.img", because
you're flashing a sparse filesystem onto a partition that might not
have been erased, and because you might be flashing a filesystem of
the wrong size (if can't know if your device has 8GB or 16GB of
storage).
The best approach is "fastboot format userdata" (which is supported on
Galaxy Nexus and Nexus 7). At least, and especially on Nexus 7, I'd
strongly recommend to first erase any partition you flash, and
especially userdata and cache.
JBQ
On Fri, Jul 27, 2012 at 1:26 PM, JF Dionne <
jeanfra...@gmail.com> wrote:
> adb reboot bootloader
> fastboot flash boot boot.img
> fastboot flash system system.img
> fastboot flash userdata userdata.img
> fastboot reboot
>
> It's in a script... I don't manually type this each and everytime...