FORUMS
Remove All Ads from XDA

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

84 posts
Thanks Meter: 91
 
Post Reply Email Thread
N7Root - Nexus 7 Simple Root Tool

by @Complex360 (cyr0s on XDA-Developers)

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]

The Following 44 Users Say Thank You to cyr0s For This Useful Post: [ View ] Gift cyr0s Ad-Free
 
 
4th August 2012, 10:55 AM |#2  
cyr0s's Avatar
OP Member
Thanks Meter: 91
 
Donate to Me
More
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
The Following 2 Users Say Thank You to cyr0s For This Useful Post: [ View ] Gift cyr0s Ad-Free
5th August 2012, 12:55 AM |#3  
armyboy11b's Avatar
Senior Member
new orleans
Thanks Meter: 951
 
More
Kool stuff man should make it easier for new people
And for Linux users

Sent from my Nexus 7 using xda premium
7th August 2012, 07:32 PM |#4  
cyr0s's Avatar
OP Member
Thanks Meter: 91
 
Donate to Me
More
Quote:
Originally Posted by armyboy11b

Kool stuff man should make it easier for new people
And for Linux users

Sent from my Nexus 7 using xda premium

Thanks man!

I rectified the permissions... it should work properly now.
8th August 2012, 07:40 PM |#5  
jewnersey's Avatar
Senior Member
Thanks Meter: 592
 
Donate to Me
More
On Linux, gonna try this later today when my replacement arrives
8th August 2012, 09:32 PM |#6  
jewnersey's Avatar
Senior Member
Thanks Meter: 592
 
Donate to Me
More
loaded bootloader but never asked to unlock
9th August 2012, 03:14 AM |#7  
Member
Thanks Meter: 2
 
More
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 ----------

Quote:
Originally Posted by shawn.ferris

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
11th August 2012, 08:40 PM |#8  
Attictron's Avatar
Junior Member
Los Angeles, CA
Thanks Meter: 2
 
More
Quote:
Originally Posted by jewnersey

loaded bootloader but never asked to unlock

Same thing happened to me. It restarted and went into the bootloader screen but it just stayed there.
12th August 2012, 11:12 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Attictron

Same thing happened to me. It restarted and went into the bootloader screen but it just stayed there.

You must run the script as root on your Linux machine.
Code:
sudo sh n7root.sh
12th August 2012, 01:07 PM |#10  
Senior Member
Thanks Meter: 26
 
More
Quote:
Originally Posted by ianonavy

You must run the script as root on your Linux machine.

Code:
sudo sh n7root.sh


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.
12th August 2012, 10:22 PM |#11  
Attictron's Avatar
Junior Member
Los Angeles, CA
Thanks Meter: 2
 
More
Quote:
Originally Posted by ianonavy

You must run the script as root on your Linux machine.

Code:
sudo sh n7root.sh

Thanks, this worked for me.
Post Reply Subscribe to Thread

Tags
nexus7 n7 tool unlock root

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes