[LINUX] n7root - Unlock, Root, CWM, TWRP, SuperSU

Search This thread

cyr0s

Senior Member
Apr 28, 2012
84
88
N7Root - Nexus 7 Simple Root Tool

by @Complex360 (cyr0s on XDA-Developers)

hNmCN.png
Code:
#include 
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
Description:
I saw people complaining earlier on XDA-Developers about a lack of Linux N7 rooting tools, so I made one.

This tool will unlock the Nexus 7 bootloader, transfer SuperSU, and flash either TWRP or ClockWorkMod recovery images

Features:
  • Easy to follow instructions
  • Unlocks the Nexus7 bootloader
  • Flashes either ClockWorkMod or TWRP
  • Roots the Nexus 7 and installs SuperSU
  • Uses either bundled binaries or ones found in /usr/bin/

Changelog:
Code:
V1.5 - Minor changes to adb/fastboot selection code
V1.4 - Added "build.sh" build script for configuring from git repo
V1.4 - Added support for custom adb/fastboot paths
V1.3 - Changed expected TWRP image to "twrp.img" for future-proofing
V1.2 - Discontinued Windows binary
V1.2 - Merged brando's improvements into script
V1.2 - Added platform detections
V1.2 - Added FAQ PDF
V1.1 - Fixed file permission error in Linux package (Thanks to Mark Lord)
V1.0 - Fixed Windows version (included driver bridge libraries)
V1.0 - Linux version rewrote.
Feeling generous?


Thanks:
Code:
Mark Lord - Permissions fix

Bug reports: [email protected]

 
Last edited:

cyr0s

Senior Member
Apr 28, 2012
84
88
EDIT: FIXED ERRORS
EDIT: N7Root Linux now just uses a bash script. Far easier.


Just realised there may be a bug on Windows. Will be fixed today

Sent from my Nexus 7 using xda app-developers app
 
Last edited:
  • Like
Reactions: !n0x and ortrigger

shawn.ferris

Member
Sep 17, 2010
38
2
Looking at the script, it doesn't look like it does a wipe, but i wanted to confirm..This leaves everything intact, correct?

Sent from my Nexus 7 using Tapatalk 2

---------- Post added at 08:14 PM ---------- Previous post was at 07:42 PM ----------

Looking at the script, it doesn't look like it does a wipe, but i wanted to confirm..This leaves everything intact, correct?

Nm.. question withdrawn.. looks like by virtue of unlocking, it does a wipe.

Sent from my Nexus 7 using Tapatalk 2
 

steevp

Senior Member
Apr 11, 2011
103
62
I've run the script as root but nothing happens on the Nexus 7.

It says...

Code:
./n7root.sh: 18: ./n7root.sh: ./files/adb: not found

But the file is there.

You may also get that error if you are on a 64-Bit system without 32-Bit compatibility libs installed.

Use:
Code:
sudo apt-get install ia32-libs
to install them on Ubuntu amd64
 
  • Like
Reactions: cyr0s

cyr0s

Senior Member
Apr 28, 2012
84
88
You may also get that error if you are on a 64-Bit system without 32-Bit compatibility libs installed.

Use:
Code:
sudo apt-get install ia32-libs
to install them on Ubuntu amd64

Thanks for posting this, I completely overlooked the fact that this could be an issue.

Updated original post.
 

brando56894

Senior Member
Dec 16, 2010
1,881
257
Jersey City
Hey I expanded upon your script to check for root rights, check to see if adb and fast boot are installed (if not it uses the included binaries), give the user the choice on whether or not they want to unlock their device, and to give them the choice of flashing the version of CWM that you installed or TWRP v2.1.2.15. Here's the link: http://www.mediafire.com/?yqt2du8uv3am1dp
 
Last edited:

ferossan

Senior Member
Jan 19, 2011
108
38
Santiago
  • Like
Reactions: cyr0s
G

Guilden_NL

Guest
THANK YOU!!!!

Download link updated, script slightly improved.

Also released n7ui, check it out in my signature.

Didn't work for me, hung up on looking for the device. After attempting 5-6 times, I did it the good old fashioned way - manually using adb. It was a heck of a lot faster than trying this over and over.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 44
    N7Root - Nexus 7 Simple Root Tool

    by @Complex360 (cyr0s on XDA-Developers)

    hNmCN.png
    Code:
    #include 
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */
    Description:
    I saw people complaining earlier on XDA-Developers about a lack of Linux N7 rooting tools, so I made one.

    This tool will unlock the Nexus 7 bootloader, transfer SuperSU, and flash either TWRP or ClockWorkMod recovery images

    Features:
    • Easy to follow instructions
    • Unlocks the Nexus7 bootloader
    • Flashes either ClockWorkMod or TWRP
    • Roots the Nexus 7 and installs SuperSU
    • Uses either bundled binaries or ones found in /usr/bin/

    Changelog:
    Code:
    V1.5 - Minor changes to adb/fastboot selection code
    V1.4 - Added "build.sh" build script for configuring from git repo
    V1.4 - Added support for custom adb/fastboot paths
    V1.3 - Changed expected TWRP image to "twrp.img" for future-proofing
    V1.2 - Discontinued Windows binary
    V1.2 - Merged brando's improvements into script
    V1.2 - Added platform detections
    V1.2 - Added FAQ PDF
    V1.1 - Fixed file permission error in Linux package (Thanks to Mark Lord)
    V1.0 - Fixed Windows version (included driver bridge libraries)
    V1.0 - Linux version rewrote.
    Feeling generous?


    Thanks:
    Code:
    Mark Lord - Permissions fix

    Bug reports: [email protected]

    3
    Hey I expanded upon your script to check for root rights, check to see if adb and fast boot are installed (if not it uses the included binaries), give the user the choice on whether or not they want to unlock their device, and to give them the choice of flashing the version of CWM that you installed or TWRP v2.1.2.15. Here's the link: http://www.mediafire.com/?yqt2du8uv3am1dp
    3
    The script has been updated to incorporate brando's improvements, and also a few other things.
    2
    EDIT: FIXED ERRORS
    EDIT: N7Root Linux now just uses a bash script. Far easier.


    Just realised there may be a bug on Windows. Will be fixed today

    Sent from my Nexus 7 using xda app-developers app
    1
    I've run the script as root but nothing happens on the Nexus 7.

    It says...

    Code:
    ./n7root.sh: 18: ./n7root.sh: ./files/adb: not found

    But the file is there.

    You may also get that error if you are on a 64-Bit system without 32-Bit compatibility libs installed.

    Use:
    Code:
    sudo apt-get install ia32-libs
    to install them on Ubuntu amd64
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone