[Nexus 7 Android Development] bovirus:
I have a Nexus 7 2012 Wifi (nakasi) with Android 5.0 (LRX21P).

My bootloader is unlocked.

I patched it with NRT the recovery, kernel, etc.

I want to update it to 5.0.2 (LRX22G)

I checked that NRT doesn't have selection for this two combination in product(7firrmeare selection., What's teh matter?

I downloaded system image LRX22G an decompress it on a Window machine.

Now the batch erase all partition and wipe all data.

I copied in the same folder of the firmware the Android Platform tools (adb.exe/fastboot.exe).

I ran flash-all.bat

report

(bootloader) Bootloader is already unlocked

OKAY [ 0.031s]

finished. total time: 0.031s

erasing 'boot'...

OKAY [ 0.031s]

finished. total time: 0.031s

******** Did you mean to fastboot format this partition?

erasing 'cache'...

OKAY [ 0.125s]

finished. total time: 0.141s

erasing 'recovery'...

OKAY [ 0.031s]

finished. total time: 0.031s

******** Did you mean to fastboot format this partition?

erasing 'system'...

OKAY [ 0.312s]

finished. total time: 0.312s

******** Did you mean to fastboot format this partition?

erasing 'userdata'...

OKAY [ 7.875s]

finished. total time: 7.875s

sending 'bootloader' (2100 KB)...

OKAY [ 0.281s]

writing 'bootloader'...

FAILED (remote: (InvalidState))

finished. total time: 0.422s

rebooting into bootloader...

OKAY [ 0.031s]

finished. total time: 0.031s

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

archive does not contain 'vendor.img'

Creating filesystem with parameters:

Size: 30080499712

Block size: 4096

Blocks per group: 32768

Inodes per group: 8160

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 7343872

Block groups: 225

Reserved block group size: 1024

Created filesystem with 11/1836000 inodes and 159268/7343872 blocks

Creating filesystem with parameters:

Size: 464519168

Block size: 4096

Blocks per group: 32768

Inodes per group: 7088

Inode size: 256

Journal blocks: 1772

Label:

Blocks: 113408

Block groups: 4

Reserved block group size: 31

Created filesystem with 11/28352 inodes and 3654/113408 blocks

--------------------------------------------

Bootloader Version...: 4.23

Baseband Version.....: N/A

Serial Number........: 015d483baa480a1a

--------------------------------------------

checking product...

OKAY [ 0.031s]

checking version-bootloader...

OKAY [ 0.031s]

sending 'boot' (5152 KB)...

OKAY [ 0.672s]

writing 'boot'...

OKAY [ 0.203s]

sending 'recovery' (5688 KB)...

OKAY [ 0.734s]

writing 'recovery'...

OKAY [ 0.266s]

erasing 'system'...

OKAY [ 0.125s]

sending 'system' (648819 KB)...

OKAY [ 81.312s]

writing 'system'...

OKAY [ 36.531s]

erasing 'userdata'...

OKAY [ 4.922s]

sending 'userdata' (139157 KB)...

OKAY [ 17.391s]

writing 'userdata'...

OKAY [ 12.656s]

erasing 'cache'...

OKAY [ 0.078s]

sending 'cache' (9052 KB)...

OKAY [ 1.156s]

writing 'cache'...

OKAY [ 0.609s]

rebooting...

finished. total time: 156.891s

Press any key to exit...

Two problem

Error in bootloader. Please check the report.

writing 'bootloader'...

FAILED (remote: (InvalidState))

Second problem. Infinite bootlop on boot logo.

At the end of flash-all.bat when it ran reboot in normal modem, the tablet stuck on boot logo (color bar rotating) for long time.

I have to press POWER for few seconds.

The tablet reboot and after few seconds appear Android logo and start teh configuration Wizard (language selection).