yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Q&A, Help & Troubleshooting] sanvic15dj:
hung up in writing 'system'... step

Hi Droidmates,

I have tried all the above steps, still my nexus fails to boot using the stock rom.

my phone takes around 1600seconds in writing 'system'... step and still there is no change in the phone.

Have any one faced this error?

attached screen shot.

View attachment 2433863

Thanks in advance.
[Nexus 7 Q&A, Help & Troubleshooting] bootdoc:
cant flash factory image HELP

Hi, I have two Nexus 7 tablets. I successfully rooted and installed a custom rom on one of them. I tried again on my second one. I flashed twrp recovery on it but i forgot to download the custom rom onto the device before the flash. I can boot to the boot loader. adb devices shows nothing. fastboot devices shows

015d2d422353fe08 fastboot

i downloaded the nakasig-jwr66y-factory-bdbb7bd7.tgz

then ran

sudo fastboot flashall

sudo fastboot flashallerror: neither -p product specified nor ANDROID_PRODUCT_OUT set

then did fastboot oem unlock and its still waiting for device

ive run so many commands i cant remember everything.

please help shed some light.

im running linux mint 14.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Make sure you're using the latest platform tools and try a different USB port. If that doesn't help, you may be having driver issues.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Were you trying to flash before you unlocked the bootloader? When the device is in fasboot mode adb won't work, so adb devices listing nothing is normal. Once you have fastboot recognizing the device again (fastboot devices) either run flash-all.sh or run the commands in the shell script manually.
[Nexus 7 Q&A, Help & Troubleshooting] sanvic15dj:
Hi comminus,

I am pretty sure I dont have any driver issues since there is no error in any step and I have done the same on my friend's Galaxy Nexus only a week back.

I used the latest version of the Nexus root toolkit Version 1.7.9and still there is no luck.

Do I have some other option?

Thanks.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
I just noticed that the screen shot you provided is showing issues with Galaxy Nexus :) This is the wrong forum, but the method is the same.

If I had that problem, here's what I'd do:

First, try different USB port, different USB cable

Download factory image again and verify the sha1sum

Extract system.img from zip

fastboot format system

fastboot flash system system.img

If this does not work, try from a different computer - preferably with Linux. If you're experiencing the same issue it's possible there is a problem with the partition table or NAND.
[Nexus 7 Q&A, Help & Troubleshooting] sanvic15dj:
I have tried didferent usb port and tried to instal stock using ubuntu

Nothing worked.

If the problem is with the partition table or NAND the what's the procedure to correct the same.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
If the problem is with the NAND itself, the hardware will need to be replaced. This means either getting ASUS (or qualified repair shop) to fix it or just buy a new tablet.
[Nexus 7 Q&A, Help & Troubleshooting] rkanwar:
Hi I accidentally soft bricked my nexus 7 2012 wifi yesterday and am trying to flash factory 4.4 image via Wug's toolkit but at the moment it is taking a while as I am using force flash mode as i kept getting errors without the force flash mode active. I wish to now manually install the factory image if it doesnt succeed now.

Is the procedure the same as in the OP or do i need to change any files?

Thanks in advance.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
The procedure in the OP will work for any device that is operational in fastboot mode.

Sent from my Nexus 5
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
Well....it could indeed be a driver related problem:

I've spent only about 24h of my life with the N7 when I've filmed that video with flashing procedure according this lovely guide by comminus.

I've flashed the same firmware on two identic N7s, it was my friend's and his son's tabs.

Can you belive: I had to install the drivers again for the second tab! First N7 had stock 4.2.2 and second N7 had stock 4.2 I think. Is there any logical explaination for the different drivers for two tabs of the same kind?

sent from N7100 & CM10.2
[Nexus 7 Q&A, Help & Troubleshooting] nitu12345:
Thanks a lot for such a wonderful guide

plz tell can we use this process on non rooted Nexus 7(2012)
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Definitely. Rooting is irrelevant to flashing factory images.

Sent from my Nexus 5
[Nexus 7 Q&A, Help & Troubleshooting] somboons:
How to use fastboot command to flash without erase usedata?

I have used "fastboot -w file.zip" it' always erase userdata
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
The general problem of non-root devices is that one can't make a nandroid backup. That would save lot of troubles aftrr OS upgrsding, as it is in many cases possible to restore only /data from the last nandroid backup done before upgrading (no idea about N7, but this works perfectly well on many Samsung devices) so in the new 4.3 one can restore only /data from nandroid backup made while on the 4.2x

But saving your photos and music SMS, contacts etc on the PC is no big deal and if you have a Google account, all your apps will be installed back only few minutes after upgrading Android.

Maybe comminus can give you better information.
[Nexus 7 Q&A, Help & Troubleshooting] dejan16v:
Hi everyone,

I have Nexus 7 3G (2012) device with stock android KOT49H. Fastboot is locked (from the day one).

WiFi signal reception is not satisfying.

Is is possible to revert back to JWR66Y by using downloaded image file?

If yes, what is the safest way?

Can "Unified Android Toolkit v1.2.0" do the job?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
You can flash any of the available factory images for your device. The safest way is to use fastboot; avoid toolkits if you don't understand what is going on.

Sent from my Nexus 5
[Nexus 7 Q&A, Help & Troubleshooting] somboons:
I never flash userdata.img can solve my question.
[Nexus 7 Q&A, Help & Troubleshooting] jazzespresso:
This good instruction. I like to thank comminus for this steps.

I recently updated my Nexus 7 (WiFi, 1st gen) to 4.4.2 (KOT49H), but noticing some big lags, slowness..etc..so I am tempted to start over and clean install.

I don't want to go from 4.1.X, to 4.2, and then 4.4.2 (too much work), so I am going to download factory image for 4.4.2 (KOT49H), and follow these steps. I am hoping this would give me pure 4.4.2 stock rom.

i thought before I do, i ask here if there's anything I should be careful or any feedback, greatly appreciated.
[Nexus 7 Q&A, Help & Troubleshooting] hsl43:
fantastic write-up. thanks for putting in the effort.

i recently (and stupidly) tried to apply the OTA update on my rooted (2012) Wi-Fi Nexus 7. the update failed and i got stuck on boot animation. been in hell for the last few weeks. i'm getting ready to fly back to the US from China for the holidays, and the prospect of not being able to read my e-books or watch movies on a 14hr flight was, well... less than ideal.

you really saved my bacon!
[Nexus 7 Q&A, Help & Troubleshooting] hammafm82:
Thank you very much, it was very helpful and solve my problem with non booting nexus.
[Nexus 7 Q&A, Help & Troubleshooting] YayYouFixedIt:
Thank YOU OH YEah! I thought she was a gonner, FLASHING STOCK SOLVED THE CHARGE ISSUE
[Nexus 7 Q&A, Help & Troubleshooting] VideoSavant:
OK -- I followed these instructions to a "T" and received all the expected command line feedback all the way through. But my Nexus 7 2012 model is still useless, as it boots back into exactly the same state as it did before I followed your process -- my tablet boots to the lockscreen and begins loading apps and updating notifications, but eventually freezes and reboots anywhere from 90 seconds to 5 minutes after the lockscreen first appears.

So, I'm beginning to think that I have a hardware problem, specifically something that is preventing me from adding, updating or removing ANY file on the system. Worse, the OS is giving me zero indication that file operations are not taking place.

On the other hand, if I boot into Safe Mode, I have a reasonably long time before my tablet freezes and reboots, and in fact, it usually requires me to attempt to change something before the freeze/reboot happens. For example, I've tried to uninstall apps, thinking that maybe one of my recently installed apps is what's causing the problem. But if I go into Settings -> Apps, no less than 10 seconds later the tablet freezes and reboots. In a somewhat similar (and confounding) vein, if I go to Settings and do a Factory Reset, the tablet will behave as if it's doing a factory reset and eventually powers off. But when the tablet reboots, it's right back to the state it was in previously -- same home screens, same lock screen, etc.

I'd love to hear that this weirdness has happened to someone else, because at the moment I'm starting to think that my tablet and I have become residents of The Twilight Zone.

I tried to keep this brief, but I've posted about my problems in more detail here:

http://xdaforums.com/showpost.php?p=48682258&postcount=706

I'm feeling pretty frustrated about this, with the only consolation being that I've (so far) been able to muster enough control not to try to smash this thing into 50 different pieces. But not sure that condition is sustainable.

Thanks for any ideas or suggestions...
[Nexus 7 Q&A, Help & Troubleshooting] Drake008:
Will the recovery image be deleted also so that it is complete retail and no one can see that there was CM on it.

And would I need the other bootloader from the first post when I install 4.4.2?

We have a defective digitizer so that no finger is recognized and we want to ship it back to asus.
[Nexus 7 Q&A, Help & Troubleshooting] blaster44:
Hello !

Of course, shortly after I made tab unlock I soft- bricked it trying to run Ubuntu , but never mind .

There's been a need to restore the stock image , so I set to work, and here begins.

By chance i flash in my grouper images from tilapia ( not downloaded these I need ) by automatic script. Well, while the bootloader was working , I downloaded the appropriate images and made ​​a second flash .

Terminal print me some lines which make me restless:

writing ' bootloader ' ...

FAILED (remote : ( InvalidState ) )

So I downloaded previous version of images and flash again . There was similar, Invalid State .

And aftert this I was re-lock and unlock device again. I flashed TWRP and CM11. All working

Only one thing worries me if this is possible and what is the chance that I currently have bootloader from tilapia ? Because I dont check what terminal was printed while first flash(about bootloader) . Oh and something else. What a mistake with this Invalid State ?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Yes, the recovery position will be restored to stock, use the included bootloader when flashing 4.4.2

Sent from my Nexus 5
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
The bootloaders for tilapia and grouper have all been identical for matching versions. The invalid state message typically appears when attempting to flash an incompatible bootloader. The bootloader image in the 4.4.x factory images works fine; don't use toolkits.

Sent from my Nexus 5
[Nexus 7 Q&A, Help & Troubleshooting] thzalink:
Is it dead? Help!

device freezes when i run fastboot flash for system and userdata. returns the message: erasing 'system'...

OKAY [ 3.156s]

sending 'system' (625382 KB)...

OKAY [ 81.666s]

writing 'system'...

FAILED (remote: (FileWriteFailed))

after which I am forced to hold the power button to restart the device as vol up and down do nothing.

Using Mac book, flashing files for kit kat 4.4.2, nakasi, using jwr66v bootloader as jwr66y would not work. device (was?) rooted and bootloader unlocked, was able to flash stock as device had twrp before

This issue happened suddenly, device started lagging, then freezing forcing me to do hard reset. decided at the time there was some issue with the os (4.3) so decided to do a back up and update to kit kat with pure stock. while copying music to usb via otg (stick mount), device froze, reset the device and it would not boot beyond google screen with unlock below it. downloaded Android SDK as device kept freezing when loading custom recovery

also followed instructions from: androidbeat.com: 2013/11 flash factory image nexus device

NB. at one point i thought the device may just be taking a long time to boot as cache wipe was attempted when the device still worked, device stayed on google screen until battery died, same for twrp recovery screen.
[Nexus 7 Q&A, Help & Troubleshooting] kilometers4:
Delete
[Nexus 7 Q&A, Help & Troubleshooting] BelmontAl:
Trying to flash 4.4.2 - Fastboot bootloader InvalidState problem

Comminus, thank you for the excellent write-up.

PROBLEM SOLVED - see below

Anyone:

I have been going through your process to upgrade by 2012 Nexus 7 Wifi tablet to KitKat 4.4.2, but am running into an "InvalidState" problem.

I downloaded the factory image nakasi-kot49h-factory-5e9db5e1.tgz, verified that the md5 sums match, and extracted the various files using 7zip.

I successfully manually erased: boot, cache, recovery, system, userdata

When I try to manually run " fastboot flash bootloader bootloader-grouper-4.23.img", I get the following:

sending 'bootloader' <3911KB> ...

OKAY [ .0499s]

writing 'bootloader' ...

FAILED <remote: <InvalidState>>

Finished. total time: 0.731s

When I ran "flash-all", I got more information:

- confirmed "bootloader is already unlocked"

- erased boot, cache, recovery, system, userdata

- sending 'bootloader'...OKAY

- writing 'bootloader'...FAILED <remote: <INvalidState>>

- archive does not contain ‘boot.sig’

- archive does not contain ‘recovery.sig’

- archive does not contain ‘system.sig’

- Bootloader Version….: 4.18

- Baseband Version……: N/A

- Serial Number……….: xxxxxxxxxxxx

- checking product…OKAY [ 0.040s]

- Checking version-bootloader…

- FAILED

- Devise version-bootloader is ‘4.18’.

- Update requires ‘4.23’.

In reading the last few pages of the thread, my impression was that for 4.4.2 I should use the bootloader that comes with the stock image. I didn't see it in the post, but is that assuming that I am upgrading from 4.3? I was running Paranoid Android 3.10, which was based on Android 4.2.2. I think I need to upgrade to 4.3 (JWR66Y) first. Does this sound correct?

Guidance please!

Thanks much,

Al

PROBLEM SOLVED

I first upgraded to 4.3, then from there to 4.4.2. Success.

Thanks again comminus for your well written instructions.

Al
[Nexus 7 Q&A, Help & Troubleshooting] matt6879:
I'm trying to get the stock 4.4 image on the nexus 7 (wifi) and I've tried erasing and trying everything again twice but it always gets stuck here.I get to "sending 'userdata' (139197 KB)..." and then it it just stays there forever. Is there anyway to fix it?
[Nexus 7 Q&A, Help & Troubleshooting] GedBlake:
Hi, matt6879...

Oh... that's different:). For me, I usually get stuck on "sending system":(.

A change of connection to a different USB port on the PC usually fixes the problem.

Rgrds,

Ged.
[Nexus 7 Q&A, Help & Troubleshooting] pkinstle311:
"OH lord Jesus it's a fire!" Thank you for unbricking my Nexas 7:highfive::highfive::highfive:
[Nexus 7 Q&A, Help & Troubleshooting] anto_115:
Hello,

I'm trying to flash Android 4.4 on my nexus but when I run the command "fastboot -w update image-nakasi-kot49h.zip" all I get is a message that fastboot has crashed.

I tried using the bootloader from 4.4 and got an invalidstate error so I downloaded the on from the top of the OP and it worked. I still can't get it to install 4.4 :/. Any idea what's happening? I have the 2012 Wifi model.

EDIT: For some reason, that command is not working, but extracting the files from image-nakasi-kot49h.zip and using fastboot flash boot boot.img, fastboot flash system system.img, etc (not in that order!) worked for me. But I played it safe and used the image from 4.3.
[Nexus 7 Q&A, Help & Troubleshooting] conman33158:
Need help guys

Hey all, I went through the instruction from start to finish and now all I have is a screen with Start, Google and a lock icon on it and cannot recover it.

My device is the Nexus 7 (KOT49H) 2012 Version

When I get to:

fastboot flash bootloader bootloader-grouper-4.23.img

I get this: error: cannot load “bootloader-grouper-4.23.img”: No error

and when I get to

fastboot -w update image-nakasi-jwr66y.zip

I get this error: error: failed to load “image-nakasi-jwr66y.zip” No error

My Nexus 7 is now useless and hoping someone can help as I don't know what else to do. I have a 3 year warranty but worried in case if I bring it back they wont accept it as the bootlooder is now unlocked.

On the screen I have:

FASTBOOT MODE

PRODUCT NAME - grouper

VARIANT - grouper

HW VERSION - ER3

BOOTLOADER VERSION - 4.23

BASEBAND VERSION - N/A

SERIAL NUMBER (I left this out)

SIGNING - not defined yet

LOCK STATE - UNLOCKED
[Nexus 7 Q&A, Help & Troubleshooting] Erovia:
Have you tried Wug's Toolkit?
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
[MENTION=5682166]anto_115[/MENTION] why not to flash stock 4.3 like in the OP, lock oem and ugrade OTA to 4.4?

[MENTION=5704793]conman33158[/MENTION] did you update SDK to API 18 and 19 and install driver properly? Try another USB port, may work.
[Nexus 7 Q&A, Help & Troubleshooting] conman33158:
[MENTION=5704793]conman33158[/MENTION] did you update SDK to API 18 and 19 and install driver properly? Try another USB port, may work.[/QUOTE]

Yeah mate, the pc no longer recognizes the device but If I hit "fastboot devices" it shows my serial number and says fast boot

<0152dxxxxxxxx812> fastboot

This is my events as is:

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Conman>cd \Users\Conman\AppData\Local\Android\android-sdk\platform-tool

s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot erase

boot

erasing 'boot'...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot erase

cache

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

erasing 'cache'...

OKAY [ 0.078s]

finished. total time: 0.078s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot erase

recovery

erasing 'recovery'...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot erase

system

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

erasing 'system'...

OKAY [ 0.109s]

finished. total time: 0.109s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot erase

userdata

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

erasing 'userdata'...

OKAY [ 2.309s]

finished. total time: 2.309s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot flash

bootloader-grouper-4.23.img

unknown partition 'bootloader-grouper-4.23.img'

error: cannot determine image filename for 'bootloader-grouper-4.23.img'

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot reboot

-bootloader

rebooting into bootloader...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Users\Conman\AppData\Local\Android\android-sdk\platform-tools>fastboot -w upd

ate image-nakasi-jwr66y.zip

error: failed to load 'image-nakasi-jwr66y.zip': No such file or directory
[Nexus 7 Q&A, Help & Troubleshooting] fozzie:
Typo - you missed off the partition name i.e. it should be:

fastboot flash bootloader bootloader-grouper-4.23.img

Are you sure 'image-nakasi-jwr66y.zip' is in the same directory as where you're running fastboot from and the filename is correct?
[Nexus 7 Q&A, Help & Troubleshooting] conman33158:
Cheers mate, I didn't even noticed that...lol, I did notice I have put the files in "android-sdk\tools" instead of "platform-tools". Going to try again and hopefully get somewhere. Will update in a wee while...cheers:)
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
Yep, it should work now.... Same thing for recovery also, whenever you flash recovery image it has to be first determined in fastboot "flash recovery" followed by the file name.img
[Nexus 7 Q&A, Help & Troubleshooting] conman33158:
Cheers all, I got it sorted, thankfully it's for guys like you and the quick responses it saves an even bigger headache than it has to be although if I had paid more attention I would have probably done it without a hitch....but sure this is almost never the way for me and it's sorted now:)

Just out of interest, what would you say is the best version to use in this model?
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
Cool, mate! :)

Don't worry, it probably happened to all of us when we were new to the ADB, now it won't happen anymore :)

I remember that only few months ago many people were complaining about some problems with the stock 4.4 for the N7 and returned with this guide to 4.3. But maybe there is an update to much better stock 4.4 version meanwhile.

You should try it all yourself. It is a question that can not be answered as everybody uses his Tab different way. I remember 4.3 was sooooo smooth and fast on the Nexus 7. Why not a custom ROM, there must be some great ones. By this method you can return to stock any time.
[Nexus 7 Q&A, Help & Troubleshooting] conman33158:
I've went for the "4.4 (KRT16S)" as I think after the update things when wrong big time, wireless problems and screen issue amongst others so will give it a go and see what happens. As you say, if I have problems I can always try something else.

Cheers:)

UPDATE: This version is giving problems now as well so I'll try the "4.3 (JWR66Y)" is that fails then I might be looking at a hardware problem.
[Nexus 7 Q&A, Help & Troubleshooting] Petrovich7799:
Hi

Sorry for my english.

I looked at a lot of information but found no answer. I have asus padfone 2.

Where can I get these files for my phone : bootloader-tilapia-4.23.img, radio-tilapia-1231_0.18.0_0409.img, image-nakasig-jwr66y.zip or factory image?

I want to do this with my phone

> fastboot erase boot

> fastboot erase cache

> fastboot erase recovery

> fastboot erase system

> fastboot erase userdata

> fastboot flash bootloader bootloader-tilapia-4.23.img

> fastboot reboot-bootloader

> fastboot flash radio radio-tilapia-1231_0.18.0_0409.img

> fastboot reboot-bootloader

> fastboot -w update image-nakasig-jwr66y.zip

but i dont have these files and dont find them

Please, help me!
[Nexus 7 Q&A, Help & Troubleshooting] fozzie:
You most definitely DON'T want to do that with your phone; those files are for a completely different device. The fact you're even thinking of doing it suggests you've a lot more learning to do!
[Nexus 7 Q&A, Help & Troubleshooting] Petrovich7799:
I realized that these files from another device. I did not want to install them. I just asked where to get or how to make these files for my Padfon 2
[Nexus 7 Q&A, Help & Troubleshooting] Erovia:
Those files are for talipia (Nexus 7 3g) and grouper (Nexus 7 Wi-Fi).

If you flash any of these to your padfone, the only thing you'll get is an expensive paperweight.

I don't think you can get the proper factory images for your device. Manufacturers don't usually release them.
[Nexus 7 Q&A, Help & Troubleshooting] tetakpatak:
[MENTION=5716383]Petrovich7799[/MENTION] there is a development thread for your Padfone. Subscribe there and wait what will come. At this moment, not much can be done except unlocking the bootloader and root. It is a low legacy device and OTA update is more likely to come than good custom ROM.
[Nexus 7 Q&A, Help & Troubleshooting] aeldergoth:
How do I enable USB debugging on a tablet that doesnt bloody well boot???
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
If you can get your tablet to fastboot mode, then run the fastboot commands. USB debugging is for adb.