yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] atlharp:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

The main issue I had was updating the drivers and locating the files. For some reason SDK wants to dump its files in the Program files and you have to move them to some place that allows you access. Make sure you have fixed your permissions on the computer before you proceed. Fastboot is actually pretty simple as long you figure out how to change directories and fix permissions on your computer.
[Nexus 7 Android Development] jfed:
I try to do this the fastboot way but when I use command prompt: fastboot is not reconized as a internal or external command. ok so what am i doing wrong?

thanks
[Nexus 7 Android Development] azoller1:
download the fastboot and adb files i uploaded in the op
[Nexus 7 Android Development] dems86:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

You have to run adb first.lemme get the command

Edit, from another post I copied.

1) put bootloader in your platform-tools/adb folder

2) run cmd

3) enter cd C:/SDK/platform-tools/ - or wherever your platform-tools/adb folder is located

4) adb devices. check correct.

5) adb reboot-bootloader

6) fastboot devices. check correct.

7) fastboot flash bootloader bootloader-grouper-4.18.img
[Nexus 7 Android Development] scream4cheese:
It took me awhile to do it but I got it. I finally learned how to use command prompt to flash files on to my device. (After watching a few videos on youtube on how to use adb and fastboot) It was pretty easy!
[Nexus 7 Android Development] dems86:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Yeah, once you've used it a few times it almost becomes second nature, congrats!!
[Nexus 7 Android Development] :
I maybe do it in my nexus 7 ^^ but what are the real advantages? does it improves battery life? boot time? performance of the rom? I am actually in PRIME 4.2.2 02-13 and Im very impressed with everything I give a 10 to this rom so thats why im not sure if I should stay the same or update the bootloader!
[Nexus 7 Android Development] veroby:
Noob question - how do you know you have correctly flashed the boot.img

reason i ask is the commands seem to have changed somewhat. It used to be adb devices which does not work once you are in the bootloader. Now its fastboot devices. But once your device is loaded up and debugging on, the command adb devices comes up trumps. I dont know if its just the setup with windows 8 making things awkward or what.

Any ways i flashed the 4.18.img and it appeared to have flashed on the command line. But in my device i dont know or see any change. Anyone know where it is i can look. thx
[Nexus 7 Android Development] mulletcutter:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Dont see the point in upgrading, 4.2.2 works fine. Stock and dirty aokp. My computer will not recognize my n7, so I'm unable to use adb. And there's no other way.
[Nexus 7 Android Development] gpzbc:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

It tells you the bootloader version when you go to the bootloader screen.
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Actually I missed a step cause you have to update your device driver with the adb and fast boot driver from the SDK I'll upload a link to those in op later today
[Nexus 7 Android Development] azoller1:
updated op with more instructions if fastboot did not work for you
[Nexus 7 Android Development] TheDarkDefender:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

I have a question. Will the bootloader get updated automatically if I flash a stock 4.2.2 image using Wugs toolkit?
[Nexus 7 Android Development] dems86:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Yes
[Nexus 7 Android Development] jschill31:
Hello,

Has anyone tried using Flash Image GUI with the 4.18 image? Seems like it would be a easy solution for those not able to Fastboot flash? Not sure if it would work but I assume it would treat it like a kernel flash.

Cheers
[Nexus 7 Android Development] Droid117:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

+1. Safer too!
[Nexus 7 Android Development] i3am5not8real13:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

as far as i know u can only flash kernels and recoveries on flash image gui, not bootloaders so i dont think thats possible
[Nexus 7 Android Development] azoller1:
When I flashed this version for some reason I couldn't download anything it was weird
[Nexus 7 Android Development] icytrey:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

The last updated bootloader was flashable, but this ones seems more difficult. Won't have my computer for at least another week so I'm bummed. Wanna update badly.:(
[Nexus 7 Android Development] Protibus:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

For those having trouble with using ADB command line, you might want to use the Nexus 7 Toolkit. The tool is easy to install and installs the boot loader image easily.
[Nexus 7 Android Development] jfed:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

I agree nexus tool kit was a breeze. I updated nexus tool kit then I but the nexus in boot loader hooked up to pc started toolkit select flash file and followed toolkit instructions.
[Nexus 7 Android Development] bASKOU:
Thanks for the bootloader, flash successful with fastboot as always.
[Nexus 7 Android Development] putomacao:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Is it okay to use 4.0 toolkit and flash the image file? I hope op can compile this to flashable zip. :D
[Nexus 7 Android Development] jfed:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

I am not sure if 4.0will work I am a believer in using the latest updates to possibly save trouble trying figure things out. I just donated a small dollar amount and the nexus tool kit guys updated me. I will post later step by step how I did it in nexus toolkit. My 16 month old is up and hungry
[Nexus 7 Android Development] l3s:
Bootloader Flash with Linux

First: Make shure ADB and fastboot properly working on your devices, you can find a nice guide in here

1. Download the bootloader image from OP and rename to 4.18.img

2. Copy to your home folder root on your computer ( /yourusername )

3. Plug N7 to computer

4. open a terminal on your computer type and enter:

Reboot to bootloader:

adb reboot-bootloader

Make shure your device properly recognized:

fastboot devices

Flash the bootloader image:

fastboot flash bootloader 4.18.img

Reboot bootloader, and check the bootloader version on N7 screen:

fastboot reboot-bootloader

If it is 4.18, well your finished, reboot your device and enjoy:

fastboot reboot
[Nexus 7 Android Development] sgt. meow:
fastboot worked at first go. Can't see why many people face problems.

Anyways all's good now.
[Nexus 7 Android Development] jschill31:
Hello,

For those of you who do not have ADB set up or Fastboot just use the Nexus 7 Toolkit (version 4 works fine). The only step you need to do is to update the tools by downloading and unzipping his 4.2.2 update files which he has posted directly under the download tab. Once you extract the new files into the toolkit directory (copying over the old files and replacing) launch the program and install the drivers for your OS. Once you have done this simply place the 4.18.img file in the folder (put_img_files_to_flash_here) and boot into fastboot. Once in fast boot choose option 11 to flash the img file. Then just follow the instructions to complete. I did this on a work computer that never has seen an Android device before. This only took 5 minutes from download to complete. I suggest this route for all who are not comfortable using command line.

Cheers
[Nexus 7 Android Development] Element515:
thanks for the .img.

Used fastboot and updated... apparently i forgot to even upgrade to 4.13 and was still on 3.41... maybe that's why some things were buggy for me haha. I had a little trouble but nothing 5 minutes didn't fix. My drivers were out of date for the N7 and I had to download them form ASUS again. After that, everything worked great. Plugged it in, adb reboot, fastboot devices, fastboot flash bootloader 4.18.img, fastboot reboot. Awesome.
[Nexus 7 Android Development] :
Thanks, flashed without probs ;)
[Nexus 7 Android Development] bonesy:
Looking in the zip file it doesn't contain the flash command. Only extract, I don't have as PC so if anyone knows the command that weoukd be great
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Well I thought just extracting it there would work but I'll look for the flash command I saw around here somewhere earlier on
[Nexus 7 Android Development] bonesy:
AFAIK it has took be flashed as well using the flash_image command
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

OK thanks that gets me one step closer
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Wouldn't it be the write_raw_image?
[Nexus 7 Android Development] Dark Jedi:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

I had it hang but I forgot to rename the IMG file lol. After that it loaded quick for me.
[Nexus 7 Android Development] bso44:
Flashed with Wugfresh's Nexus Root Toolkit and it was easy as pie. Thanks!
[Nexus 7 Android Development] ju1da:
Small Source

I have this for you. Go download and extract it in C:/ all files needed: https://www.box.com/s/jvspi1bnp7mcyf9lvfkq

Now all needed files are in C:/Fastboot folder

GUIDE HOW TO FLASH (I modified it from I forget the source, WORKS!):

1.	Download bootloader to hard drive (NO NEED: already include in the extracted file).

2.	Boot device into bootloader (make sure you have usb driver installed and CONNECTED).

3.	Open a command prompt in the folder where your fastboot.exe and bootloader file (*.img) are (the C:/Fastboot folder). Tips: in the folder, Hold SHIFT and RIGHT CLICK then select “Open Command Prompt Here”

Type in: fastboot flash bootloader bootloader-grouper-4.18.img

and press enter.

4.	Wait for successful flash.

5.	Type in : fastboot reboot-bootloader

and press enter

or reboot manually

DONE
[Nexus 7 Android Development] azoller1:
guys can you please try to not repost my exact instruction that are already posted in the OP? I mean we dont need a ton of the same posts with the same instructions, come on guys...
[Nexus 7 Android Development] zFr3eak:
wondering what changes when i update the bootloader ? 4.2.2 builds are working great on old bootloader aswell :cyclops:
[Nexus 7 Android Development] dparrothead1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

I wonder the same thing. I am still on 3.4 and have had no problems flashing any 4.2.2 ROMs.
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Its just the latest boot loader nothing else really to it
[Nexus 7 Android Development] heccubusxda:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Perfect. Thanks OP.

Good instructions made it completely painless.
[Nexus 7 Android Development] ju1da:
To be honest, I don't steal your work, I don't copy a single word from the OP. Perhaps looks similar, because it does the same think. I just want to help readers if only they didn't succeed flashing bootloader, my post will be an alternative. I don't mean to compete with you ;).

Sorry!
[Nexus 7 Android Development] putomacao:
I used Nexus Toolkit v.4, running in Windows 8, and everything went well. :good:
[Nexus 7 Android Development] Mikey:
Are you sure you're not confusing people with this: "2a. Rename The File To "4.18.img" so take off a .img"

should state rename file 4.18

The file will rename an image, since MANY on here dont have extensions of files being shown ;)

#JustSaying :)
[Nexus 7 Android Development] azoller1:
well you can see the extra .img line when you download the file before hand, yeah i guess you could rename it just to 4.18
[Nexus 7 Android Development] Foggy79:
Thanks man, my very first fastboot action and it worked great!! :good::laugh:
[Nexus 7 Android Development] ryomakun:
if i already on 4.2.2 have to flash 4.18?and how to check bootloader version?thx you
[Nexus 7 Android Development] Letitride:
If you are on 4.2.2 with an older bootloader and everything is fine, there's no NEED to update it (like me, bootloader was the older 3.x and it worked just fine, adb flashed the zip file directly from 4.1.2 to 4.2.2 with no issues. I decided to bring it up-to-date like the rest and it took less than 10 minutes to prepare & flash it, quick & simple.

To check your verison, restart into bootloader - and it will show your verison on the first screen.
[Nexus 7 Android Development] Diable Jambe:
if i update the bootloader to 4.18? do i need wipe or factory reset?
[Nexus 7 Android Development] bsoplinger:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Nope just flash and reboot and you're all done.

I plan to update the bootloader just for the much faster boot time if nothing else even though the previous version is working fine. I'm just waiting for the hope that I can avoid fastboot since that means that I have to start my laptop.
[Nexus 7 Android Development] -Asskicker-:
Is there still no flashable zip?
[Nexus 7 Android Development] Twist79:
AW: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

It's this boot loader the same for the 3g version of the nexus 7? Found the right one...thanks
[Nexus 7 Android Development] suchavibrantthang:
worked like a charm. quick and painless.
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Yeah I'm still waiting for a flashable zip. I dropped my tablet once and now it's gone kinda crazy. The usb connector doesn't work perfectly anymore. My laptop and desktop both say it's malfunctioned T___T
[Nexus 7 Android Development] l3s:
4.18 Flashable Zip

If someone need, I made a flashable zip.

You can flash via recovery.

MD5:

5c6f1201a1e83232591b0e22e6097909

The zip temporary removed
[Nexus 7 Android Development] bobloadmire:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Anyone confirm this working? Didn't work for me.
[Nexus 7 Android Development] Aletheia:
Didn't work for me... Nothing happened when I flashed it.
[Nexus 7 Android Development] l3s:
Ok, it looks like my mistake...

I temporary remove the file, try to fix....

sorry guys....

edit: When I made the zip, after I tried one of my grouper, after I checked, the bootloader was 4.18 (so i tought the zip working, and I sucessfully update my bootloader via recovery), but I flahed in the wrong device, because this device has 4.18 bootloader already, so it was my mistake.

I tired in my another grouper (4.13 bootloader) and I realized the zip not working....

Actually I can't fix the zip...
[Nexus 7 Android Development] Makxx:
Works really quick. Steps are very easy to follow even for a noob like me.
[Nexus 7 Android Development] cnewsgrp:
Guys: I flashed 4.18.img via fastboot. Everything went right but my Nexus is now bricked. It does not power on. adb devices does not display anything, same for fastboot devices. I see "APX" under device manager

Any help? Am I screwed?
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

You see APX under Device Manager means your computer recognizes your tablet. If you plug it in and see the battery shows up, means it's still working but somehow it didn't turn on.
[Nexus 7 Android Development] C.Hatfield:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

On an unhelpful, but more positive note, it's very hard (impossible ?) to hard brick a Nexus device. I'm fairly certain that you are NOT screwed. The answers are very likely here (XDA) already. I do know it's a good thing you see APX under device manager ! Sorry I cannot be of any help though.
[Nexus 7 Android Development] Skyrocket2Paradise:
how can I do this on mac?

I enter this and it says it writes it but its always 4.13 it never changes

./fastboot-mac flash boot 4.18.img

---------- Post added at 07:14 PM ---------- Previous post was at 07:02 PM ----------

ok no I cant boot my tablet if i just lost everything im going to flip i cant mount it to the computer for some reason in recovery
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

It should be

./fastboot-mac flash bootloader 4.18.IMG

Not boot, but bootloader
[Nexus 7 Android Development] Skyrocket2Paradise:
when i enter that command it tries to send and then says command failed
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Update your fastboot
[Nexus 7 Android Development] .torrented:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

What exactly did you type in to the console? Did you check MD5SUM?
[Nexus 7 Android Development] cnewsgrp:
Battery does not show up. Its black screen. All I hear is a click when I plug in. Nothing else in any scenario

I looked everywhere and also created a thread. I was told if bootloader is corrupted, there is no way to fix it.

http://xdaforums.com/showthread.php?p=38801630#post38801630

Maybe I had a bad download from this thread. :crying:

Here is what happened

I have clean rom and wanted to update to latest version. It said I should upgrade boot loader.

I followed instructions to upgrade from this thread

I noticed that it would always hang at "fastboot flash bootloader 4.18.img" (step 7 instruction 3 in first post)

Someone in the thread (post # 55) suggested I should use root kit to flash same file.

I used root kit and copied 4.18.img to a location and flashed it to bootloader.

Now its bricked. I don't know what I did wrong Maybe a bad file?
[Nexus 7 Android Development] Skyrocket2Paradise:
how do i do that?

---------- Post added at 04:33 PM ---------- Previous post was at 04:29 PM ----------

I just downloaded the sdk yesterday shouldnt that be the latest fastboot?
[Nexus 7 Android Development] cnewsgrp:
Yes md5 matched. I use program called md5summer to check md5 sum. Here is its output
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Just to make sure, run SDK and update it
[Nexus 7 Android Development] Skyrocket2Paradise:
Ok i decided to retry it today and it worked it changed to 4.18 buttt the tablet will not boot it just says boot failed..

NVM i reflashed the rom and it booted SO happy lol
[Nexus 7 Android Development] Jonnyredcorn:
So I'm about to do this, but it says to rename the file to 4.18.img and to remove a .img...well the file is already named 4.18.img...am I supposed to remove the .img from the file so it is just 4.18?
[Nexus 7 Android Development] azoller1:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

It should be "4.18.img"
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

What says?
[Nexus 7 Android Development] vn00914361:
Re: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

Finally got the bootloader installed. Got blame this frigging usb port. Lol
[Nexus 7 Android Development] discomega:
Sv: [BOOTLOADER][4.2.2] JDQ39 4.18 FASTBOOT FLASH Image Instructions

How did you solve it?

Skickat från min Nexus 7 via Tapatalk 2
[Nexus 7 Android Development] Carlis:
Thank´s .. had no problem with the update :)
[Nexus 7 Android Development] Carpet161:
Thank you for this step by step...worked great for this newb.
[Nexus 7 Android Development] redrol:
My n7 did the same thing. Bricked in APX mode. With this update. Also was checked with md5 sum. I really dunno what happened
[Nexus 7 Android Development] coolek33:
Ive flashed this image with wug's nexus root toolkit. It works like a charm.
[Nexus 7 Android Development] tigrey:
Can I run this fastboot thing without having ADB recognise my device at all?

I'm on Windows 8, and ADB is totally, totally ****ed.

Fastboot works, though, so do you guys reckon I could install the new bootloader without bricking anything?

Ignore what I said- it does work with fastboot on windows 8 if you haven't got ADB installed. It works perfectly.
[Nexus 7 Android Development] marcgo:
Worked fine for me, using Wug's Nexus Root Toolkit
[Nexus 7 Android Development] DigitalJedi:
*deleted original post*

I researched and found reason to believe that this bootloader is necessary if you are on 3.41 because of some bug that prevents that bootloader from playing nice with certain kernels. That would probably be why the M-Kernel didn't want to boot for me the first time I tried it.

I followed the directions verbatim and had 4.18 installed in less than 10 minutes. Thanks!
[Nexus 7 Android Development] Pinktank:
Thanks a lot, I kinda forgot to flash 4.18...
[Nexus 7 Android Development] FlatEric0074:
flashable zip

Hi there,

here´s another try of a flashable zip for recovery for the 4.18 bootloader ;) !

hope it works ...:D
[Nexus 7 Android Development] BigJPNut:
Recovery flashable worked great! Ty!!!
[Nexus 7 Android Development] bsoplinger:
Which recovery exactly did you use for the flash? In case I have troubles I can then try with whatever you used.

Edit: Decided to just give it a try and the flash worked. CWM touch, current version as of today.

Sent from my Nexus 7 using Xparent Purple Tapatalk 2
[Nexus 7 Android Development] bftb0:
thanks [MENTION=4203847]FlatEric0074[/MENTION] !

What was the trick to making it go?

package_extract_file("bootloader.raw", "/dev/block/platform/sdhci-tegra.3/by-name/USP");

I thought that azoller1 had tried this, but TBH I never looked carefully into his original trials. What is apparent is that the bootloader delivered in the OTA updates ("bootloader.raw", written into USP) is slightly bigger than the "Factory Image" bootloader images (flashable by fastboot).

I assume that what happens is that every time the bootloader resets, it peeks into the USP partition. If it finds something in there that it likes, the existing bootloader overwrites itself (to eMMC flash memory, not it's in-memory loaded image obviously) and then reboots.

e.g.

2,146,892 bytes (md5 bffa744a6847b5bede2bf445427ef80e) bootloader-grouper-4.18.img
2,146,968 bytes (md5 67e3e7c142141188174dbb1e1c477d0f) bootloader.raw

A difference of only 76 bytes. A little bit of work with `dd' will convince you that the longer file is identical to the shorter file if you simply prepend these first 76 bytes to the shorter file:

00000000 4d 53 4d 2d 52 41 44 49 4f 2d 55 50 44 41 54 45 |MSM-RADIO-UPDATE|
00000010 00 00 01 00 3c 00 00 00 3c 00 00 00 01 00 00 00 |....<...<.......|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 45 42 54 00 |............EBT.|
00000040 4c 00 00 00 4c c2 20 00 01 00 00 00 |L...L. .........|

Hmmm. Doesn't look like crypto to me (nearly zero entropy). And your .zip is not signed correctly (jarsigner --verify reports problems with updater-script), so I guess that this form of bootloader updating really isn't very secure.

Anyway, I wonder - since it is apparently the pre-existing bootloader that gets to decide whether or not it will proceed with the blob it finds in USP, Asus/Google could code each bootloader to only accept version improvements. I suppose I could try and patch earlier ".raw" bootloaders from prior OTAs into your zip and see if bootloader rollbacks can also be done this way.

I guess for completeness I should also ask - are the grouper and tilapia bootloaders identical (at the same release level)?

.
[Nexus 7 Android Development] thelangosta:
So after all that are you saying that this works and is safe? Anyone try it with TWRP yet?