yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Q&A, Help & Troubleshooting] Punchlinegott:
Already wrote in the toolkit thread but no help from there. I tried every command you gave me, here is the output:

adb shell cat /proc/mounts

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

rootfs / rootfs rw 0 0

tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,relatime 0 0

/dev/block/mmcblk0p4 /cache ext4 rw,relatime,user_xattr,acl,barrier=1,data=order

ed 0 0

adb shell cat /proc/partitions

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

major minor #blocks name

179 0 15466496 mmcblk0

179 1 12288 mmcblk0p1

179 2 8192 mmcblk0p2

179 3 665600 mmcblk0p3

179 4 453632 mmcblk0p4

179 5 512 mmcblk0p5

179 6 10240 mmcblk0p6

179 7 5120 mmcblk0p7

179 8 512 mmcblk0p8

179 9 14302208 mmcblk0p9

179 32 2048 mmcblk0boot1

179 16 2048 mmcblk0boot0

adb shell dd if=/dev/block/platform/sdhci-tegra.3/by-name/APP bs=1024 of=/dev/null

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

device powers off after a while

adb shell dd if=/dev/block/platform/sdhci-tegra.3/by-name/CAC bs=1024 of=/dev/null

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

device powers off after a while

adb shell dd if=/dev/block/platform/sdhci-tegra.3/by-name/LNX bs=1024 of=/dev/null

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

device powers off after a while

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

same with the rest of the commands

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

adb shell e2fsck -f -n /dev/block/platform/sdhci-tegra.3/by-name/APP

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

e2fsck 1.41.12 (17-May-2010) ...then nothing more

adb shell e2fsck -f -n /dev/block/platform/sdhci-tegra.3/by-name/UDA

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

e2fsck 1.41.12 (17-May-2010)

e2fsck: Device or resource busy while trying to open /dev/block/platform/sdhci-t

egra.3/by-name/UDA

Filesystem mounted or opened exclusively by another program?

Perhaps one of the big problems is that after my device got stuck at google screen i tried to enter TWRP and it got stuck there too. Then I entered fastboot and used the option to run TWRP without flashing it (this was an option provided from the toolkit) because i thought recovery was broken and if i run it from sideload I can flash my backup and everything is good again. But now I am stuck in the sideloaded TWRP and can't even enter fastboot.
[Nexus 7 Q&A, Help & Troubleshooting] -_Alex_-:
AWESOME thanks, I need to see if I can use the warranty.. Screen lift / creaking :(
[Nexus 7 Q&A, Help & Troubleshooting] fushla:
So today I'm going to try it manually again, without getting 8gb storage :D

(32G user here)

So, it should be like this:

Fastboot erase boot

Fastboot erase cache

Fastboot erase recovery

Fastboot erase system

Fastboot erase userdata

fastboot flash bootloader

Reboot

Fastboot flash radio

Reboot

Fastboot format system

Fastboot flash system

Fastboot format userdata

Fastboot flash userdata

Fastboot flash boot

Fastboot flash recovery

Fastboot format cache

Fastboot reboot...

Did I forget anything?

Sorry guys, just want to be 100% sure since my gnex doesn't require that extra steps :P

P.S.: I hope formatting cache is okay, since I don't have a cache image in the factory image...
[Nexus 7 Q&A, Help & Troubleshooting] bftb0:
[MENTION=4618832]fushla[/MENTION]

If the bootloader and radio that are currently installed on your tilapia device are current (that is, the same version as what you would be flashing), I see absolutely no upside to flashing them again. There is no reason to expose yourself to additional risks for no benefit gained.

Reading between the lines, are you having problems with a 32 GB N7 behaving as if the userdata partition ( /data ) was only 8GB? If that is the case, you should be concentrating exclusively on the userdata partition, and the

fastboot erase userdata

fastboot format userdata

sequence should be sufficient to getting it formatted back to 32 GB capacity.**

If you are trying to get the tablet back to stock and you already have the most recent radio & bootloader flashed, it should be sufficient to mess around only with the 5 principal Android partitions: recovery (SOS), boot (LNX), system (APP), userdata (UDA), and cache (CAC)

Make a backup of *everything* someplace off the tablet before you begin.

** if you have been using TWRP and you have experienced this mysterious "userdata partition is abnormally small" syndrome, consider setting the options toggle in TWRP to emulate filesystem formatting as a "rm -fr" command, and only perform the filesystem formatting (of system, userdata, or cache) using the "fastboot format" command

good luck
[Nexus 7 Q&A, Help & Troubleshooting] fushla:
I'm just getting back to 100% stock, I got that 8gb thing just because I forgot to format the partition. I only wanted to know if the steps are right :P

And yeah, I know of that bootloader and radio don't have to be flashed again, it was just an example :)
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Format the user data partition.

fastboot format userdata

Sent from my Nexus 4
[Nexus 7 Q&A, Help & Troubleshooting] jackjsa:
Thank

Hi all Thank mannnn
[Nexus 7 Q&A, Help & Troubleshooting] jackjsa:
what rom for my nexus 7 model 3G+Wifi

I'm sorry to interfere with me I want to know nexus 7 model 3G + Wifi to flash stock ROM which choose 3G or Wifi ? https://developers.google.com/android/nexus/images

---------- Post added at 10:39 AM ---------- Previous post was at 10:32 AM ----------

I'm sorry to interfere with me I want to know I use nexus 7 model 3G + Wifi to flash stock ROM which choose 3G or Wifi ? https://developers.google.com/android/nexus/images
[Nexus 7 Q&A, Help & Troubleshooting] backslashV:
Please let me know what userdata.img and bootloader-tilapia-4.18.img are.
[Nexus 7 Q&A, Help & Troubleshooting] jackjsa:
what type in dos ?

How to manual flash ??
[Nexus 7 Q&A, Help & Troubleshooting] saheelakm:
My tablet is not switching on. the power button make no sense.

How shall I flash it??

Thanks.
[Nexus 7 Q&A, Help & Troubleshooting] Yell0wSmileY:
thanks for all this info! really answered some important questions and helped me root.
[Nexus 7 Q&A, Help & Troubleshooting] hamiksu:
hi all..

i tried flashing using this guide.

steps from fastboor erase till erase userdata works fine.

but when it comes to "fastboot flash bootloader bootloader-grouper-4.18.img"

it comes out with an error "failed (command write failed (Invalid Argument))"

the same thing happens when i tried the command "fastboot flash radio radio-tilapia-1231_0.17.0_1025.img"

please note I copied the necessary bootloader files and radio tilapia files to platform-tools folder

really hope someone can help me in this. Thanks
[Nexus 7 Q&A, Help & Troubleshooting] EvoRocker:
Just used this guide to flash the 4.3 image, great guide!

Images: https://developers.google.com/android/nexus/images
[Nexus 7 Q&A, Help & Troubleshooting] HAK Devil:
Guide worked perfectly to get 4.3 on my tablet. Thanks :)
[Nexus 7 Q&A, Help & Troubleshooting] Remcotjuuh:
Flashing the radio and bootloader files fails because you guys are entering the file names of the 4.2.2 firmware and not 4.3! Make sure you enter:

Fastboot flash radio/bootloader [fullnameoftheradio/bootloader.img]

For example:

Fastboot flash bootloader bootloader-grouper-4.23.img
[Nexus 7 Q&A, Help & Troubleshooting] xolanir:
Just curious, have you been able to root your device after flashing 4.3? I've been reading that some users are having issues with root and some apps that require root.

Sent from my Nexus 7
[Nexus 7 Q&A, Help & Troubleshooting] EvoRocker:
I haven't rooted it yet honestly, I've yet to hear anything though. I've been hearing you should flash a .zip as usual in recovery to restore root with no problems.
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
Everything worked up to the last part, and now all I can do is get into the new boot loader. Here is what I get when I try to send the update.

Paul-R-Rezendess-Mac-Pro:nakasi-jwr66v paul$ ./fastboot-mac -w update image-nakasi-jwr66v.zip

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

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

Bootloader Version...: 4.23

Baseband Version.....: N/A

Serial Number........: xxxxxxxxxxxxxxxxxxx

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

checking product... OKAY

checking version-bootloader... OKAY

sending 'boot' (4896 KB)... OKAY

writing 'boot'... OKAY

sending 'recovery' (5432 KB)... OKAY

writing 'recovery'... OKAY

sending 'system' (529061 KB)... ERROR: usb_write failed with status e00002be

FAILED (data transfer failure (No such file or directory))

Paul-R-Rezendess-Mac-Pro:nakasi-jwr66v paul$
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
ok so I downloaded the factory recovery 4.2.2 and it worked just fine, so I dont get what's wrong with the new 4.3??
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Try updating to the latest platform tools version.
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
Is there a mini SDK for mac? I have the SDK installed, but can never seem to get it to work with the adb or fastboot that it came with, so Ive been using the mini sdk people zip up and do everything in that folder.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Not sure what a mini SDK is to be honest. I have a link to the osx platform tools in my signature. Or this: http://dl-ssl.google.com/android/repository/platform-tools_r18-macosx.zip
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
I just updated my SDK and got the 4.3 platform tools and made the path for ADB and fastboot work from any folder in terminal. I'll try to update using the factory image tomorrow, Its late now.
[Nexus 7 Q&A, Help & Troubleshooting] casonswag:
Can someone mirror the image file in this link it downloads so slow?
[Nexus 7 Q&A, Help & Troubleshooting] manolohd:
sry to all , i have updated my tilapia from my pc by fastboot with factory image ( boot radio system... all) and all work fine, but with this procedure i have updated also the binary or not?, i must update the binary?

thank you
[Nexus 7 Q&A, Help & Troubleshooting] Owawauba:
Thank you so much! Perfect tutorial, it all worked with no problems!
[Nexus 7 Q&A, Help & Troubleshooting] Mach3.2:
That's the file name of the boot loader and radio..

Beamed from my Maguro.
[Nexus 7 Q&A, Help & Troubleshooting] Remcotjuuh:
Correct, whats's your point?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
In an effort to minimise confusion, the OP has been updated to reflect the current factory image and related file names for nakasi and nakasig.
[Nexus 7 Q&A, Help & Troubleshooting] mwl1119:
Seems like a ton of work.

Install a sh*t ton of software on your pc.... blah blah blah

I'm not an Apple fanboy or anything (Never owned a iAnything and have had Androids since the G1) but google irritates me with this. There is no simple way to update any device.... including nexi (plural for Nexus I'd guess).

You should be able to go to website, plug in your device, click update, and wait.

Simple.
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
For anyone that was having trouble with the update from the official factory sources at google update your dev tools with the new 4.3 stuff. Thats all I did and the issues I was having are all gone now. My WiFi Nexus 7 is updated to 4.3 now.
[Nexus 7 Q&A, Help & Troubleshooting] npalmy:
Thanks all updated to 4.3. No problems.
[Nexus 7 Q&A, Help & Troubleshooting] soccerwuedo5:
This same thing happened to me, as well. Macbook to Grouper, first with June 2013 ADB/fastboot and then with July 2013 ADB/fastboot. No dice. I own a Chromebook and a Macbook (no windows machine in sight) so, after 2-3 hours of wrestling last night, I'm back on 4.2.2 factory images (which flashed system.img without any issues).

Any suggestions or resolution on this issue?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
This thread has nothing to do with Google's update process. The OP verbosely describes the process to return the device to stock using using Windows. The verbosity is intentional for educational purposes. Once one understands what is involved the toolset and process is very small and quite fast.

Regardless, let's keep the thread focused to returning a Nexus 7 to stock.
[Nexus 7 Q&A, Help & Troubleshooting] penguinjoe:
Thanks OP for the very useful thread. It will help a lot of folks that want to return their tablets to stock form.
[Nexus 7 Q&A, Help & Troubleshooting] keithD9:
Thank You!

Great tutorial. I had tried the adb sideload method but after that failed, this worked like a charm. On my way to learning how to work on my device myself instead of relying on toolkits. Thanks again!
[Nexus 7 Q&A, Help & Troubleshooting] mid-kid:
Will asus be able to see that you rooted your device before? Great tutorial anyway. Bookmarked.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Do you mean to say that your device will only boot to recovery? Can't say I've ever seen a situation where recovery was available and fast boot was not. What have you tried?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Rooting involves modifications to /system. Once the device has been restored to stock there is no way to tell if it was rooted or not.
[Nexus 7 Q&A, Help & Troubleshooting] mid-kid:
SWEET! Now i can screw up my nexus 7 without voiding warranty! Thank you!

EDIT: well... i can tell that it's been rooted because there is no "recovery-from-boot.p" anymore...
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
If you flash the factory images from Google there will be no trace of what was on the device previously. To my knowledge there is no internal flash counter. As a side note the 'recovery-from-boot.p' file has nothing directly to do with rooting.
[Nexus 7 Q&A, Help & Troubleshooting] sambualoy:
my nexus 7 always stuck in nexus boot animation

Hi good day!

I just want to ask why my nexus 7 always getting stuck on nexus boot animation,I followed the fastboot guides succesfully more than five times,and even using the tool kit,and even changing my laptop from vista to xp,but after rebooting,always stuck in nexus boot animation,any help please,i dont know what to do now.

Thanks
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
When referring to the 'boot animation' are you talking about the Nexus "X" animation? If so, how long are you waiting?

Please also provide the exact steps you are taking when using fastboot, otherwise I have to make assumptions or guesses and won't be of much help.
[Nexus 7 Q&A, Help & Troubleshooting] sambualoy:
Thanks for emmediate reply,

Yes the "X" animation,for more than one hour or two.

I'll follow exact steps for many times,and succesfully finished up to rebooting.and it will just stuck on "X" animation,I used the 3.34 and 3.41 bootloader and stock rom.

> fastboot erase boot

> fastboot erase cache

> fastboot erase recovery

> fastboot erase system

> fastboot erase userdata

> fastboot flash bootloader bootloader-grouper-3.34.img

> fastboot reboot-bootloader

> fastboot -w update image-nakasi-jro03d.zip
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Make sure you charge your device before going further. I notice you're using the 4.1.1 factory image (or cutting and pasting), try using the 4.1.2 JZO54K factory image instead. Please provide the output returned for each fastboot command as well.
[Nexus 7 Q&A, Help & Troubleshooting] sambualoy:
Actually i was used this image before and I will try to use it again today,but still no luck,same getting stuck on "X" animation,I'll try to attach the output during flashing.
[Nexus 7 Q&A, Help & Troubleshooting] AntonioGPS:
What is exactly the version and size in Kb of the stock rom file you have used?

Enviado usando Tapatalk 2
[Nexus 7 Q&A, Help & Troubleshooting] sambualoy:
2,142,784 - bootloader-grouper-3.41.img

270,068,592 - image-nakasi-jzo54k.zip

these was the room image that i used for many times,but still getting stuck on "X" animation
[Nexus 7 Q&A, Help & Troubleshooting] AntonioGPS:
I have successfully flashed a Nexus 7 with apparently the same files you have..

Before, my attempts failed because I was using a wrong file with a different size that was downloaded using a toolkit.. (262.126KB vs 265.840KB for the tar file, being the latest the correct one)

And this is why I asked for yours...

What I did is exactly what is being described in this thread but using fastboot commands all the time (that will not make any difference, anyway) by giving all these orders included in the flash-all.bat file included in the tar.

I have the SDK adb and fastboot installed in my Windows 7 Pro 64bits, so I run the commands from within a cmd windows myself, ENSURING that all commands gave the OK. I had to repeat some of them, and in some occasion, I had to unplug and plug the USB cable because the communications were broken for unknown reasons.

Note: Once the wipes are done, you don't have to repeat them..

Notice the commentary given to the latest line..

fastboot devices (finding the serial number and the fastboot state) (if numbers are seen, communications are OK)

fastboot erase boot (to wipe)

fastboot erase cache (to wipe)

fastboot erase recovery (to wipe)

fastboot erase system (to wipe)

fastboot erase userdata (to wipe)

fastboot flash bootloader bootloader-grouper-3.41.img (I ensured that 3.41 was indicated in the Nexus 7 screen) (if you already have it, you don't have to flash this again)

fastboot reboot-bootloader (if you have already 3.41 this step is unnecessary)

fastboot -w update image-nakasi-jzo54k.zip (if you have wiped Nexus before and has bootloader 3.41, this is the only step you need to run)

Good luck !!
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
There can be some confusion when it comes to file size vs size on disk. The correct way to verify that the image you downloaded is not corrupted is to verify the MD5 or SHA-1 checksum. The expected values are listed on the nexus factory image download page. For nakasi JZO54K the SHA-1 sum is 973f190e25cbafc29d9739fbe0ffb64ed8946946.

In order to calculate the checksum of a file in Windows, download FCIV and extract it to \Windows.

from a command prompt, run:

C:\Users\user\Downloads>fciv -sha1 nakasi-jzo54k-factory-973f190e.tgz

Which returns the following output:

//
// File Checksum Integrity Verifier version 2.05.
//
973f190e25cbafc29d9739fbe0ffb64ed8946946 nakasi-jzo54k-factory-973f190e.tgz

Pro-tip: the last 8 characters of the image filename should match the first 8 characters of the SHA-1 sum
[Nexus 7 Q&A, Help & Troubleshooting] sambualoy:
I did everthing what all you said,verifying using this fciv command and the output is correct,but for unknown reason I dont know still stuck on "X" animation.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Really strange. This is either a hardware issue, a Windows issue (drivers, etc), or user error. Given what you've shown I'm leaning towards one of the first two. From here, I recommend you try flashing from a different computer or OS (Linux). If you can to get this working from a different machine, consider RMA unless someone here has something else for you to try.
[Nexus 7 Q&A, Help & Troubleshooting] bbgt2:
Isnt there an easier way of returning to stock? This ADB thing I have never had any luck with but now my N7 is wiped and i need to go back to original.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
The instructions may seem long, but it's really not difficult. 99% of all issues that Windows users face with adb and fastboot are driver related. Once the drivers are installed this takes less than a minute to completely restore to stock. If you encounter problems in a specific step, post the issue here and myself or others will be able to help.
[Nexus 7 Q&A, Help & Troubleshooting] bbgt2:
Thanks for the reply bro, i got it flashed back to stock with WUG's tool so yet again I have escaped the need to learn ADB and ADK etc :o

Again thanks for the reply and making it sound fairly easy, now I wanna try it just for the next time I act like a moron and wipe a little too much before a new ROM install.:(
[Nexus 7 Q&A, Help & Troubleshooting] Mach3.2:
You can run for now, but you can't run forever, you still have to learn fastboot and adb at some point of time unless you stop messing around.

Beamed from my Grouper.
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
Yeah you just need to get the new ADB and fastboot that was released with the 4.3 tools the other day. It works like a charm.
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
That's what I suspected. Thanks for coming back and confirming it.
[Nexus 7 Q&A, Help & Troubleshooting] soccerwuedo5:
Maybe you can help me fill in the missing step, then. I d/l'ed the new SDK and moved the entire SDK to my root folder on the macbook. I had the previous SDK in that location and deleted it, emptied the trash, as well as used spotlight to find all other instances of "adb, fastboot, platform-tools, sdk, etc." and systematically delete and trash them. No luck.

Is there something I'm missing to update adb/fastboot? What version # is adb on now?

edit: Just in case anyone falls into the same trap, I was able to get everything going again by showing hidden folders in Finder, locating the .bin folder in the ~/ directory, deleting the "adb" and "fastboot" files in the .bin folder, erasing all traces of the sdk, re-downloading the sdk, locating the /sdk/ subfolder in the ~/ directory, and creating a $PATH entry for the ~/sdk/platform-tools/ directory. Boom, 4.3.
[Nexus 7 Q&A, Help & Troubleshooting] Acill:
This is starting to get off topic and I found out how to do it properly on my own with a simple search, but here you go. Follow this setup instructions it the link Im posting. When a new version of the SDK is released just download it and install the new tools. With your path set to where your tools are it should work after every update and you wont have to search for the old versions.= as they are replaced in the updates. Please note this is for OSX and not Windows.

http://blog.shvetsov.com/2012/08/install-adb-and-fastboot-on-os-x.html
[Nexus 7 Q&A, Help & Troubleshooting] n99hockey:
I followed all the steps and it right now says "sending 'system' <529061 KB>" for quite a while, 8+ minutes...

How long should this step actually take? I am flashing the 4.3 factory image.

Is it stuck? If so, how do I start it again without breaking it....?

Thanks!

--EDIT--

Changed the USB port, good to go!
[Nexus 7 Q&A, Help & Troubleshooting] xolanir:
Just wondering, if I flash the new bootloader, will that erase everything on my device, like the unlock process? Thx in advance for the help!
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Flashing only the bootloader will not erase or lock the device.

Sent from my Nexus 4
[Nexus 7 Q&A, Help & Troubleshooting] t.mark:
Well, something went wrong while I was flashing my N7 (I got google logo with start button from bootloader so I powered it off and.. bang) I've got "hard bricked" tablet (APX syndrome) :( I did RMA today but I'm curious about one thing. Does flashing to 4.3 unroot and lock the bootloader? I've had a rooted and ulocked 4.2.2 before flashing to 4.3 :rolleyes:

-edit-

I did flash with flash-all.bat from the archive and there's

fastboot oem unlock

fastboot erase boot

...

Is it possible to check if I had unlocked bootloader if I have "hard bricked" tablet?
[Nexus 7 Q&A, Help & Troubleshooting] xolanir:
Thanks for the response! I flashed the new bootloader successfully, and yup, nothing was erased. So what exactly are the benefits of having an updated bootloader?
[Nexus 7 Q&A, Help & Troubleshooting] comminus:
Typically bug fixes and other non-obvious code improvements. Sometimes specific boot loader versions are required for other software - radios, etc.

Rule of thumb is if you don't know better, use the matching boot loader version for the android build you're running.

Sent from my Nexus 4
[Nexus 7 Q&A, Help & Troubleshooting] xolanir:
Thank you again for your help. Everything is working like it should, with some noticeable smoothness overall.

Sent from my Nexus 7
[Nexus 7 Q&A, Help & Troubleshooting] DanielGalan:
Thanks!

It worked like a charm, thanks!:)