Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,000 Members 47,497 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE]-Updated 17March - Unlock/Root - Return to Stock/Unbrick - Nexus7 3G - 4.2.2

Tip us?
 
philos64
Old
(Last edited by philos64; 17th March 2013 at 07:02 AM.)
#1  
philos64's Avatar
Recognized Contributor - OP
Thanks Meter 2,661
Posts: 3,396
Join Date: May 2010
Service [GUIDE]-Updated 17March - Unlock/Root - Return to Stock/Unbrick - Nexus7 3G - 4.2.2

[GUIDE] UNLOCK - ROOT - RETURN TO STOCK and/ or UNBRICK your Nexus 7 3G “Nakasig- Tilapia” v4.2.2

- Disclaimer: I don't take any responsibility for anything you do to your tablet, which is to transform it into brick, break, or transform it into coffee machine -

Quote:
Requirements:
1. You must have the sdk (ADT Bundle for Win) installed on your Pc and you are able to access, and use adb and fastboot.
NOTE: Notice the install location. This defaults to C:\Users\<user name>\AppData\Local\Android\android-sdk the platform tools (adb, fastboot) and usb drivers will be downloaded to this location. This will be referred to from here on as your sdk directory

But in case you haven't install all SDK, you can use only fastboot by the easy way.(Go here if you want to use the easy way to fastboot)

2. You must have ticked USB Debugging mode in your Nexus 7 3G

3 You must download and install - USB DRIVERS r_06 for Windows 7 & 8

4. Download one of both root-tool
CF- Auto-Root by Chainfire - Download link for Version Tilapia - Nakasig

or the Superboot r4 by Paul O’Brien - Actually I'm not sure if Superboot is functionnal for version 4.2.2 - I tested with my Grouper v4.2.2 and I stayed in Google screen with bootloop.

5. Download your recovery special for your Tilapia - Nakasig
CWM (Touch version or not)
TWRP - latest versions
ClockworkMod - Google Nexus 7 (GSM) - Superuser (fixed) for Android 4.2.
and rename your select with the name of the recovery image you chose to download.

6. The factory image for the Nexus 7 3G => 4.2.2 (JDQ39) - nakasig-jdq39-factory-0798439d.tgz - md5: ee8db1ed6ff1c007fe12136d4bc65cd8- size: 279.9MB - The Version Zip if you prefer
Quote:
AND DON'T FORGET THAN IT'S BETTER FOR YOUR SPECIAL N7 3G+
TO USE THE SPECIAL RECOVERIES "TILAPIA - NAKASIG"
and NOT "GROUPER" WHICH ARE DIFFERENTS

************************************************** ************************************************** ************************************************** ****************
Pre-Steps
To make this easier,
1 - you should put the root-tool.zip selected on the folder “fastboot” (if you use the easy way - Goto post #2)
2 – You should put the recovery.img selected on the folder “fastboot”

Quote:
UNLOCK YOUR NEXUS 7 3G+
To unlock your device, you must go to your bootloader. To do that, you have possibilities;
1. Turn your device on while pressing volume down
or
1. Connect your device and go to cmd terminal
Code:
> cd \Users\<user name>\AppData\Local\Android\android-sdk\platform-tools  (it's common localization for an auto install)
> adb devices
# the following output should be returned
List of devices attached
<device serial number>       device
2. Boot to the bootloader by use adb
Code:
adb reboot bootloader
or
2 Bis. Boot to the bootloader by use fastboot
Code:
fastboot reboot-bootloader
3. Unlock your device* by
Code:
fastboot oem unlock
*You will have to accept and erase all of your data on the tablet.
You are unlocked

By Fastboot only easy way - Unlock you device
Code:
C:\Users\Username>cd c:\fastboot
Code:
c:\fastboot>fastboot oem unlock
************************************************** ************************************************** ************************************************** ****************

Quote:
FLASH THE RECOVERY
You can choose one of both recoveries - CWM or TWRP

Quote:
Flash ClockworkMod Recovery as Permanent recovery
(You're still inside the bootloader and connected through the usb cable)

1. Flash CWM especially for your N7 3G
Code:
fastboot flash recovery recovery-name of your recovery.img
To make CWM Permanent recovery
2. Boot into recovery by pressing “volume up” and when the menu says ‘recovery mode’ press the power button
3. Go to “Mounts and Storage” menu
4. select “mount system”
5. Type in cmd terminal
Code:
adb shell
cd /system
mv recovery-from-boot.p recovery-from-boot.bak
exit
If you having trouble gaining shell, try
Code:
adb kill-server
then
Code:
adb start-server
. And restart the lines command above
* For some people, it has been reported that you don't have to replace recovery-from-boot.bak. The flash is enough to make the recovery stick.

************************************************** ************************************************** ************************************************** ****************

Quote:
Flash TWRP as Permanent recovery
(You're still inside the bootloader and connected through the usb cable)

1. Flash TWRP especially for your N7 3G
Code:
fastboot flash recovery recovery-twrp-tilapia-2.4.4.0.img
To make TWRP Permanent recovery
2. Boot into recovery by pressing “volume up” and when the menu says ‘recovery mode’ press the power button
3. Go to “Mounts and Storage” menu
4. select “mount system”
5. Type in cmd terminal
Code:
adb shell
cd /system
mv recovery-from-boot.p recovery-from-boot.bak
exit
************************************************** ************************************************** ************************************************** ****************

Quote:
FOR THE ROOT
What's installed
- SuperSU binary and APK
- Nothing else, that's it.

Installation and usage
- Download the ZIP file (see post below for link)
- Extract the ZIP file (you will see - 2 folders=> images & tools and 3 files: root-windows // root-mac // root-linux)
- Boot your device in bootloader/fastboot mode. Usually this can be done by turning your device off, then holding VolUp+VolDown+Power to turn it on.
- Connect your device to your computer using USB

- Windows:
Code:
Run root-windows.bat
- Linux
Code:
chmod +x root-linux.sh
Code:
Run root-linux.sh
- Mac OS X
chmod +x root-mac.sh
Code:
 Run root-mac.sh

How to use Superboot - Windows, Linux and OSX

- Download the Superboot zip file above and extract to a directory
- Put your device in bootloader mode - Turn off the phone then turn on with the 'volume up' and 'volume down' buttons both pressed to enter the bootloader (as pictured below)
- WINDOWS - double click 'superboot-windows.bat'

- MAC - Open a terminal window to the directory containing the files,
and type
Code:
chmod +x superboot-mac.sh
followed by
Code:
./superboot-mac.sh
- LINUX - Open a terminal window to the directory containing the files,
and type
Code:
chmod +x superboot-linux.sh
followed by
Code:
./superboot-linux.sh
************************************************** ************************************************** ************************************************** ****************
Quote:
RETURN TO STOCK and/or UNBRICK your N7 3G+
Before you begin, please make sure you have ADB and Fastboot drivers installed and working.

1. Download the factory image for the Nexus 7 3G=> 4.2.2 (JDQ39) - nakasig-jdq39-factory-0798439d.tgz - md5: ee8db1ed6ff1c007fe12136d4bc65cd8- size: 279.9MB - The Version Zip if you prefer

2. Extract the factory image into the same directory as your ADB and Fastboot executables (e.g. "\android-sdk\platform-tools")

3. Plug in your device. If you are booted into Android, open a command prompt to your ADB and Fastboot directory, then type:
Code:
adb reboot bootloader
If your device is powered off, press and hold both volume keys and the power button simultaneously. After holding all three buttons for a couple of seconds, your bootloader should launch. This should reboot you into the bootloader.

4. Type:
Code:
fastboot flash bootloader bootloader-tilapia-4.18.img
5. Type:
Code:
fastboot reboot-bootloader
6. Now type:
Code:
fastboot -w update image-nakasig-jdq39.zip
7. Optional: If you would like to relock your bootloader for warranty or security purposes, make sure you are in your bootloader screen again and type:
Code:
fastboot oem lock
8. If your tablet hasn't already rebooted automatically, you can type
Code:
fastboot reboot
Well done. You should now be back on stock Android 4.2.2


************************************************** ************************************************** ************************************************** ********************************
These root tools are actually the easy way for rooting your device, so you can use them without problems.



For my part I’ve used
the easy way by my fastboot guide for unlock my device,
Adb lines command for flash TWRP as permanent recovery,

Thanks for @mateorod, @Chainfire, @paulobrien and all members who helps for the development about the Nexus 7 3G+
The Following 15 Users Say Thank You to philos64 For This Useful Post: [ Click to Expand ]
 
philos64
Old
#2  
philos64's Avatar
Recognized Contributor - OP
Thanks Meter 2,661
Posts: 3,396
Join Date: May 2010
Wink The EASY WAY TO USE FASTBOOT LINES COMMAND

HELP FOR FLASH MORE FASTER WHEN YOU USE FASTBOOT LINE COMMAND


If you have got a problem with your adb or fastboot or recovery....it's very simply and faster
use this:
Download this file "fastboot.zip"
Install this file somewhere in one folder which is named "fastboot" on your PC
=> disk C: root
Unzipped this file on the folder "fastboot" and you will find 3 files:
- adb.exe
- AdbWinApi.dll
- fastboot.exe

and when you need to push something by the bootloader, you can use it.
Don't forget to push on this folder the file that you need. For exemple: boot.img or a recovery.img, etc...

The line command is :
Code:
c:\fastboot>
Enter
Code:
c:\fastboot>fastboot flash recovery recovery.img
Enter
If you want to flash the "recovery.img" file

************************************************** ****************
************************************************** ****************

If you want to know all lines of command
Code:
c:\fastboot>fastboot
Code:
usage: fastboot [ <option> ] <command>

commands:
  update <filename>                        reflash device from update.zip
  flashall                                 flash boot + recovery + system
  flash <partition> [ <filename> ]         write a file to a flash partition
  erase <partition>                        erase a flash partition
  getvar <variable>                        display a bootloader variable
  boot <kernel> [ <ramdisk> ]              download and boot kernel
  flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it
  devices                                  list all connected devices
  continue                                 continue with autoboot
  reboot                                   reboot device normally
  reboot-bootloader                        reboot device into bootloader
  help                                     show this help message

options:
  -w                                       erase userdata and cache
  -s <serial number>                       specify device serial number
  -p <product>                             specify product name
  -c <cmdline>                             override kernel commandline
  -i <vendor id>                           specify a custom USB vendor id
  -b <base_addr>                           specify a custom kernel base address
  -n <page size>                           specify the nand page size. default: 2048
The Following User Says Thank You to philos64 For This Useful Post: [ Click to Expand ]
 
philos64
Old
#3  
philos64's Avatar
Recognized Contributor - OP
Thanks Meter 2,661
Posts: 3,396
Join Date: May 2010
Reserved in case
The Following User Says Thank You to philos64 For This Useful Post: [ Click to Expand ]
 
piski93
Old
#4  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Mar 2011
Hello, this is my first post on xda.
When i tried use "adb fastboot bootloader" cmd say to me : no device. Where is problem?
 
philos64
Old
#5  
philos64's Avatar
Recognized Contributor - OP
Thanks Meter 2,661
Posts: 3,396
Join Date: May 2010
Quote:
Originally Posted by piski93 View Post
Hello, this is my first post on xda.
When i tried use "adb fastboot bootloader" cmd say to me : no device. Where is problem?
Try the easy way on first
Use the post 2.
You can use it for all the install, except for for the permanent recovery where you will have to use ADB line command.
The best you can do, it's to use fastboot easy way and when you have finished, you learn and install correctly your sdk and check all your parameters. And when you will be ready you will be able to use adb lines command easily to install your recovery in a permanent way.

It's too long for a course about sdk, the best you can do it's to to search and read. Go to my index, and read the General guides
 
znejk
Old
#6  
Senior Member
Thanks Meter 27
Posts: 348
Join Date: Mar 2011
Location: Malmö
Gonna try this later today. Though something is a bit fishy. When I use adb from the fastboot.zip it can't find my device but from the platform-tools dir it seems to work fine. Are they different versions? How big risk is it to brick the device while unlocking/rooting and installing recovery? Pls tell me its unbrickable. cheers

Skickat från min GT-I9300 via Tapatalk 2
 
philos64
Old
#7  
philos64's Avatar
Recognized Contributor - OP
Thanks Meter 2,661
Posts: 3,396
Join Date: May 2010
Quote:
Originally Posted by znejk View Post
Gonna try this later today. Though something is a bit fishy. When I use adb from the fastboot.zip it can't find my device but from the platform-tools dir it seems to work fine. Are they different versions? How big risk is it to brick the device while unlocking/rooting and installing recovery? Pls tell me its unbrickable. cheers
I can't says it's unbrickable !!!
The differences between these versions is:
If you use sdk/platform tools it's the more complete install and the easy way for fastboot, that just if you need to use fastboot line command, but it's not more complete for using with adb lines command.
If you go to the post 2, you will see all the lines command for fastboot.

If your sdk install is correct, you can use it without problems.
The easy way by fastboot is just a shotcut
 
znejk
Old
(Last edited by znejk; 31st December 2012 at 12:37 PM.)
#8  
Senior Member
Thanks Meter 27
Posts: 348
Join Date: Mar 2011
Location: Malmö
Quote:
Originally Posted by philos64 View Post
I can't says it's unbrickable !!!
The differences between these versions is:
If you use sdk/platform tools it's the more complete install and the easy way for fastboot, that just if you need to use fastboot line command, but it's not more complete for using with adb lines command.
If you go to the post 2, you will see all the lines command for fastboot.

If your sdk install is correct, you can use it without problems.
The easy way by fastboot is just a shotcut
I tried and everything seemed to work fine ... i Unlocked/flashed twrp then "mv recovery-from-boot.p recovery-from-boot.bak" didnt work cause it couldnt find the file... :/ i continued and flashed superboot and it seemed to work fine. Downloaded latest cm and gapps rebooted inte recovery and flashed them. Now I only have bootloop with cm10.1...

I know it aint bricked cause I think I can get into bootloader.

Edit: After a factory reset it worked! :>
 
phonic
Old
#9  
phonic's Avatar
Senior Member
Thanks Meter 411
Posts: 1,129
Join Date: May 2008
Location: Florida

 
DONATE TO ME
Quote:
Originally Posted by znejk View Post
How big risk is it to brick the device while unlocking/rooting and installing recovery? Pls tell me its unbrickable. cheers
The Nexus7 is very difficult to brick. It still is possible, but as far as I know there is only one way to do it - remove or destroy the bootloader.

Under normal circumstances, the only time you do anything with the bootloader is unlocking/locking it, which simply does a minor modification. That's perfectly fine. And the normal custom-recovery/root process doesn't touch it, so that's fine too. Doing system updates (even legit OTA ones) might upgrade the bootloader, as might flashing custom roms. But as long as you don't interrupt the process during that critical step, it should be OK.

So outside of erasing the bootloader or flashing a completely incompatible bootloader and rebooting, your N7 should be safe.
The Following User Says Thank You to phonic For This Useful Post: [ Click to Expand ]
 
anoopcheckingin
Old
#10  
Junior Member
Thanks Meter 2
Posts: 26
Join Date: Oct 2012
Location: Mysore
Default adb command line Linux support

Hi All,

Am new to this forum and also to my newly bought N73G. So I am unsure about the complete process though explained step by step. One thing that i wanted to confirm was Does ADT Bundle for linux work the same as that of windows? Cause I run the same on my PC; these command line instructions would they work the same way on Linux terminal?
Press THANKS if it helps.

Samsung Galaxy SL i9003
running crDroid by LoLaTiOn ::: Powered by dhiru1602


FRIED Asus Google Nexus 7 Stock

LG Google Nexus 5 Stock
powered by XPosed Framework thanks to rovo89

Tags
flash, guide for n7 3g, install, recovery, root
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes