Android OS Forum banner

[Guide] Nexus 7 Bootloaders/Recoveries/Root/Back to Stock

190961 Views 124 Replies 66 Participants Last post by  superwrench1
Thanks to:
Google
birdman

CWM
Team Win
chainfire
and any others whom I am unaware of (please pm and I will include you)

OEM UNLOCK:
WARNING: This will wipe your device. Backup all your photos and whatnot.
  1. Boot device into bootloader.
  2. Open a command prompt in the folder where your fastboot.exe lives. Typically this is the platform-tools directory in the SDK.
  3. Type in
    Code:
    fastboot oem unlock
    and press enter.

  4. Follow prompts on device to unlock bootloader.
  5. Profit!
BOOTLOADERS:
See Post 2 -> here

RECOVERIES:
See Post 3 -> here

BACK TO STOCK:
See Post 3 -> here

ROOT:
  1. Load CWM onto your device as described in the RECOVERIES section
  2. Download the SU binary for JB
  3. Put it onto the device
  4. Boot into recovery
  5. Install zip from sd card
  6. Choose zip
  7. Navigate to the file you downloaded and put onto the device
  8. Flash
  9. Profit!
See less See more
  • Like
Reactions: 5
1 - 20 of 125 Posts
BOOTLOADERS:

HOW TO FLASH:
  1. Download bootloader to hard drive.
  2. Boot device into bootloader.
  3. Open a command prompt in the folder where your fastboot.exe lives. Typically this is the platform-tools directory in the SDK.
  4. Type in
    Code:
    fastboot flash bootloader <location/name_of_bootloader_file.img>
    and press enter.
  5. Wait for successful flash.
  6. Type in
    Code:
    fastboot reboot-bootloader
    and press enter.
  7. Profit!
  • Like
Reactions: 5
RECOVERIES:

HOW TO FLASH:
  1. Download recovery to the computer.
  2. Connect the device to the computer.
  3. Boot device into bootloader.
  4. Open a command prompt in the folder where your fastboot.exe lives. Typically this is the platform-tools directory in the SDK.
  5. Type in
    Code:
    fastboot flash recovery <location/name_of_recovery_file.img>
    and press enter.
  6. Wait for successful flash.
  7. Type in
    Code:
    fastboot reboot-bootloader
  8. Profit!
LIST OF AVAILABLE RECOVERIES:PREVENT RECOVERY OVERWRITE:
  1. After flashing recovery as described above, BEFORE you boot into device, boot into recovery.
  2. mounts and storage
  3. mount system
  4. Open a command prompt in the folder where your adb.exe lives. Typically this is the platform-tools directory in the SDK.
  5. Type in
    Code:
    adb shell
    and press enter.
  6. Type in
    Code:
    cd /system
    and press enter.
  7. Type in
    Code:
    mv recovery-from-boot.p recovery-from-boot.bak
    and press enter.
  8. Profit!
See less See more
  • Like
Reactions: 5
BACK TO STOCK:

HOW TO DO:

[background=rgb(245, 245, 245)]WARNING: This will wipe your device. Backup all your photos and whatnot.[/background]
  1. Download the Nexus 7 JOP40D OEM image -> here.
  2. Extract the compressed file to the folder where your fastboot.exe lives. Typically this is the platform-tools directory in the SDK.
  3. Open a command prompt window where your fastboot.exe lives.
  4. Type in the following commands and press enter after each one.
  5. Code:
    fastboot erase boot
  6. Code:
    fastboot erase cache
  7. Code:
    fastboot erase recovery
  8. Code:
    fastboot erase system
  9. Code:
    fastboot erase userdata
  10. Code:
    fastboot flash bootloader nakasi-jop40d/bootloader-grouper-4.13.img
  11. Code:
    fastboot reboot-bootloader
  12. Code:
    fastboot -w update nakasi-jop40d/image-nakasi-jop40d.zip
  13. Wait for the image to flash.
  14. Type in
    Code:
    fastboot reboot-bootloader
    and press enter.
  15. If you just wanted to return to stock software and not relock, you are done here. Boot into the device.
  16. If you want to relock the device, type in
    Code:
    fastboot oem lock
    and follow the prompts on the device.
  17. Profit!
See less See more
  • Like
Reactions: 5
there will always be awesome development on nexus devices.
Stickied and added the "fastboot oem unlock" command for unlocking the bootloader as not everyone will be coming from a GNex or knows how to unlock. :) Great post so far and can't wait to see it once we all have the device!
thank you sir, i will try to keep it updated as often as possible. right now a little bit of a copy paste effort since i havent actually gotten mine yet. definitely will have lots more details once i get it.

im not sure i can edit the title, if i can let me know how, or else if you would remove the (placeholder) and replace it with "+ Root" or something.
Since it's a wifi only device, is the radios section needed??
isnt the wifi controlled by a radio? atleast thats what i thought. if it happens that we dont need a section, i'll remove it.
Remove the radio section since there are no radios. Wifi has drivers that are in the kernel. Radios are only for Cell Radios.
I'll remove the section and make a restore to stock guide instead. Thanks.
Is there anywhere else I can get SU? The link gives me a 404 error.
updated.
I'm sure I'll eventually play with ROMs, etc., but getting it today and want to try it out stock and maintain ability to watch Google Play Movies without having to temp unroot everytime. Can you unlock the bootloader, flash CWM and do the mv command in order to be able to backup the system without flashing SU and breaking Movies?
yes.
Is the bootloader listed in post #2 the stock bootloader, or is modified somehow?
it is stock...

also to the person curious about root and movies, i just rooted my newly arrived 7 and movies works just fine on it.
Thank you K.electron for the great write up. Followed to the tee and now I profit. :)

Sent from my Nexus 7 using Tapatalk 2
glad i could help.
In the prevent recovery overwrite section.. I do mounts and storage, and it just hangs.. I never get to the "next menu" I guess

actually.. now i'm stuck in recovery.. any option I pick.. I get "a hat".. (I installed CWM)

so if I try to reboot system now... a hat

mountsa nd storage.. a hat

etc etc

crap, day 1, no more nexus hah
do the back to stock guide and u'll be golden.
Question folks.
My shiny new 7 will be arriving tomorrow.. I know there has already been a 4.1.1 OTA update pushing out.
should i power up and sign in, and wait to get this OTA, and THEN unlock?

or should i power up, sign in, and immediately unlock. if i do that, will i still be able to install the 4.1.1 initial OTA?
bootloader locking / unlocking has no effect on the ota.
Code:
fastboot -w update nakasi-jrn84d/image-nakasi-jrn84d.zip
And I get this error:

Code:
archive does not contain 'boot.sig'<br />
archive does not contain 'recovery.sig'<br />
archive does not contain 'system.sig'<br />
< waiting for device >
interesting.
never had this problem myself. thanks for bringing it to everyones notice.
does "fastboot -w update" work with any rom? or does it have to be the factory image?
i think the community roms are structured differently and therefore need to installed via recovery and not fastboot. i personally would never try a custom rom with fastboot. just flash cwm and you are good to go.

experts: if i am wrong, please dont shoot me.
What is the reasoning behind re-flashing the bootloader?
Is this not enough? oem Unlock -> new recovery -> recovery overwrite blocker -> flash root
there is really no reason to flash bootloaders until they have more than one and have some discernible benefit over each other.
Shouldn't it be
Code:
<br />
fastboot flash bootloader nakasi-jro03d/bootloader-grouper-3.34.img<br />
corrected. thanks.
try reflashing the bootloader.
Nevermind i figured it out thanks to google! just in case anyone else has the cant load recovery problem. you have to open the command prompt from inside the platform tools folder (shift button and right click the mouse) otherwise fastboot wont know the command path to get the file. Got her up and running unlocked,rooted, and twrp. IT was really pretty easy. I dont know why I let adb scare me for so long! now i gotta go delete these tool kits.
good job leaving toolkits behind. u dont need them.
1 - 20 of 125 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top