yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] tatelucas:
Universal Nexus Linux Toolkit v2.3.0

NOW COMPATIBLE WITH MAC OSX!!!

Universal Nexus Linux Toolkit is a bash script based program that offers an easy way

to do all you need to do before flashing a custom ROM on your Nexus device.

It works with:

1. Nexus 4 [mako]

2. Nexus 10 [manta]

3. Nexus 7 (WiFi) [grouper]

4. Nexus 7 (GSM) [tilapia]

5. Galaxy Nexus (GSM) [maguro]

6. Galaxy Nexus (Verizon) [toro]

7. Galaxy Nexus (Sprint) [toroplus]

8. Nexus S (worldwide version, i9020t and i9023) [crespo]

9. Nexus S (850MHz version, i9020a) [crespo]

10. Nexus S (Korea version, m200) [crespo]

11. Nexus S 4G (d720) [crespo4g]

With this toolkit you will be able to:

- Unlock the bootloader.

- Flash CWM recovery (Standard or Touch).

- Root the phone.

- Lock the bootloader.

- Flash Google Factory Image. (Not available for Sprint Galaxy Nexus)

DOWNLOAD IT FOR LINUX HERE

DOWNLOAD IT FOR MAC OSX HERE

Galaxy Nexus Linux Toolkit is Open Source! See the CODE

HOW TO EXECUTE:

Please extract the .tgz in the place you want, for example in /home/user

Open a terminal and type the following:

>user@linuxormac: cd "THE PATH WHERE IS THE unltlauncher.sh FILE"

>user@linuxormac: bash ./unltlauncher.sh

If you extract it in /home/user/unlt, the path to the .sh must be /home/user/unlt

so you have to type:

>user@linuxormac: cd /home/user/unlt

>user@linuxormac: bash ./unltlauncher.sh

Note: If you're running on a 64 bits OS, please install 32 bits libraries. If you're running on Linux and you didn't configure UDEV rules for your device, please run the script with superuser permissions (sudo bash unltlauncher.sh)

Here are some SCREENSHOTS::good:

I hope you will find it useful! :laugh:

P.S. Sorry for my English. I'm from Argentina!
[Nexus 7 Android Development] TheChaoticLlama:
Spot on mate. Thanks :D Work's fine in Ubuntu 12.10 and 12.04.
[Nexus 7 Android Development] tatelucas:
You're welcome! :) Please tell me which options you tried.
[Nexus 7 Android Development] brando56894:
You beat me to it! I was going to do something like this, but solely for the Nexus :)
[Nexus 7 Android Development] tatelucas:
LOL! :p If you want, you can review my code at http://code.google.com/p/galaxy-nexus-linux-toolkit/source/browse/src/unlt.sh :good:
[Nexus 7 Android Development] pixiebob:
tatelucas: big thanks to thinking about linux users. will try on my archlinux and report when i will receive my nexus on france in 2 weeks ;)
[Nexus 7 Android Development] brando56894:
Looks good! That's a hell of a lot more complex than what I was going to do lol
[Nexus 7 Android Development] gnuworldorder:
the bootloader unlock works for me but neither cwm install or the root work. i just get the standerbootloader and the root doesnt work because it never boots into cwm. im using fedora 17
[Nexus 7 Android Development] tatelucas:
Please copy the .sh in another path and run it again (it will start downloading all the data again). Then copy all the output here. Sorry for the inconvenience.
[Nexus 7 Android Development] gnuworldorder:
I already tried that originally. I decided to do it from my work laptop on windows and it worked fine. Could it be possible that I was missing a library?
[Nexus 7 Android Development] tatelucas:
I don't know. I will be very grateful if you could run it again on Fedora because I really want to fix it.
[Nexus 7 Android Development] gnuworldorder:
it didnt give me any errors besides having to install libncurses.so.5 libstdc++.so.6 ld-linux.so.2 this time it rooted but the clockwork mod didnt install
[Nexus 7 Android Development] tatelucas:
But for rooting you have to install in CWM the su.zip file. I don't understand how root worked if you couldn't first flash CWM.

Did you try Manual Mode? Maybe, in Auto Mode I have to put a longer wait time for booting into Bootloader Mode.
[Nexus 7 Android Development] tatelucas:
You're welcome! I also use Linux and like I was tired of waiting the Toolkit, I decided to do it myself! Please post here how it worked when your tablet arrives. :good:

LOL! Did you try it on your Nexus 7? Please tell me how it worked :D
[Nexus 7 Android Development] gnuworldorder:
I thought I unrooted it before I tried it again. I know I put the stock bootloader back on with the windows tool
[Nexus 7 Android Development] tatelucas:
Sorry for being so annoying, but can you try the toolkit in Manual Mode instead of Automatic Mode? I must fix it and I don't have the Nexus 7.
[Nexus 7 Android Development] gnuworldorder:
Only the touch cwm works for me. Once I get the touch cwm installed the root worked. I'm not sure if this was the case originally because I tried the standard cwm.
[Nexus 7 Android Development] tatelucas:
That's weird... I check the Standard CWM recovery file and everything's OK. I don't know why you couldn't get it work. All the people says it works fine. :confused:
[Nexus 7 Android Development] winnuker:
The toolkit work's fine with Scientific Linux 6.3 64bit (a RedHat clone).

Install 32bit libs:

yum install ncurses-libs.i686 libstdc++.i686

And then run the script.
[Nexus 7 Android Development] :
Ditto for me. I am running 12.04 Lubuntu. Just hangs when I enter Y for the "Do you want to start the process?" both in Auto mode with both Touch or Standard, and the same in Manual mode with both Touch or Standard.

No error messages at all, stuck with stock recovery, no root. And yes, I unlocked the bootloader first!

So how long should we wait before we know the CWM load process is dead/hung?

When I restarted Bootloader, here's what popped up in the Command Line Interface:

1. Power off the device.

2. Press Power for a second, and press Volume Down when bootloader logo appears.

3. Your device screen should show an image of an opened android.

You're now in the Bootloader Mode! If you don't see the image,

you must follow the instructions again.

4. Please connect the device to your PC via USB.

5. Do you want to start the process? [Y/N]: Y

error: protocol fault (no status)

sending 'recovery' (6480 KB)...

OKAY [ 0.886s]

writing 'recovery'...

OKAY [ 0.224s]

finished. total time: 1.111s

Press ENTER to return to the main menu...

Well sh......ucks! Fifth time pushed CWM through. Will try the next step.

From another posting on another site (I have not seen this step mentioned on XDA at all!) this is a critical point:

Go into the system folder and long press on the recovery-from-boot.p file and delete it. This is necessary as otherwise CWM recovery will get overwritten by stock recovery after a reboot.
[Nexus 7 Android Development] nickelghandi:
I love you for this. Windows 8 sucks so bad and does not support the nexus 7 drivers yet so ubuntu is my only option. This worked like a charm to save me from having a very pretty looking brick.. Thank you so much!
[Nexus 7 Android Development] tatelucas:
You're welcome!! :good:
[Nexus 7 Android Development] oscarba:
Quick question(s) - Does this toolkit work with 4.1.2? Root process deletes user data (factory reset)?

Thanks

OBA
[Nexus 7 Android Development] tatelucas:
Yes it works. If you've already unlocked the bootloader you won't lose data. But if it's your first time, you have to unlock the bootloader and you will lose all your data.
[Nexus 7 Android Development] tatelucas:
For those who download unlt201.sh the toolkit will not work for Nexus 7. Please donload the new version unlt202.sh
[Nexus 7 Android Development] jago25_98:
Suggest adding:

"Once you have the image of the opened android lying on it's back you will need to press the power and a vol key to get the cwm recovery menu up. Recovery version 3e is a locked version that only allows signed images to be installed"

For whatever reason flashing touch or standard CWM isn't working for me (have the unlocked sign). I will look at the script and try to emulate what it does by hand.

(it's unlt202/platform-tools/fastboot flash recovery recovery.img when in the bootloader menu)

edit: Forgot to say thanks for a brilliant tool! Much slicker than Windows and USB/odin/superoneclick confusions!

---> replied to the other thread regards this here http://xdaforums.com/showthread.php?p=34450211#post34450211

with this --->

user@laptop /run/media/jjj/OSDisk/Downloads/sph-720d-i9020-toroplus/unlt202 $ /run/media/jjj/OSDisk/Downloads/sph-720d-i9020-toroplus/unlt202/platform-tools/fastboot flash recovery ../recovery-clockwork-touch-6.0.1.5-toroplus.img
sending 'recovery' (5990 KB)...
OKAY [ 0.826s]
writing 'recovery'...
OKAY [ 0.818s]
finished. total time: 1.644s
user@laptop /run/media/jjj/OSDisk/Downloads/sph-720d-i9020-toroplus/unlt202 $

Then I select "RECOVERY" in the bootloader menu, only to see "Google" logo with the lock sign at the bottom rather than the ClockWorkMod (CWM) menu and only a battery pull will get me out of this.

p.s. The md5sum checked out ok. Also tried

fastboot flash recovery [B]twrp-toroplus-2.1.2.img [/B]
sending 'recovery' (5396 KB)...
OKAY [ 0.746s]
writing 'recovery'...
OKAY [ 0.737s]
finished. total time: 1.483s
[Nexus 7 Android Development] Bawl:
Now rocking root on my Nexus 7

Hey tatelucas

Thx a bunch for making this tool Linux-based.

It's simple, slick and doesn't mess around.

I did however have a small problem, which I couldn't figure out;

I'm currently on openSUSE 12.2 & Ubuntu 12.10, and found I couldn't use your tool with the "Automatic" setting, for anything other than unlocking the bootloader on my brand-spanking-new Nexus 7 (32GB) (JOP40C).

Flashing CWM failed, 10-15 times on both openSUSE and Ubuntu.

But when I finally went the way of following the "Manual", CWM went through in the first try.

SU flashed immediately after, and I'm now rocking root on my Nexus 7.

Keep up the good work.

/Bawl
[Nexus 7 Android Development] etrnldrk:
Finally...

I'm glad to see this working in Fedora 17-64bit without issue.

:good: Nice work, brohan.
[Nexus 7 Android Development] tatelucas:
Thank you guys!!! I'm so happy to hear that!!! :laugh:
[Nexus 7 Android Development] Bawl:
Difficulties upgrading/updating stock ROM from 4.2 to 4.2.1 (JOP40D)

I'm probably a bit off topic, but thought I might ask anyways, as there might be others in my situation, having only rooted, (using this method) still running unmodified stock and not having flashed a custom ROM.

I'm currently trying to update my stock ROM from 4.2 (updated pre-root) to 4.2.1 (JOP40D).

I've tried two differents approaches:

1) Following the standard notification, letting the system reboot into (custom) recovery (CWM), choosing to flash the the unsecure?!?! file, and then watching it fail with "status 7"

2) Downloading the update-file from AndroidPolice, and manually flashing it, again just to watch it fail, with "Status 7".

I read somewhere that option 1 (letting the system do it on it's own), didn't always unmount /system, and sure enough, option 1 doesn't, (at least in my case, unmount /system, but even unmounting system through CWM "mount management", didn't do anything.

And just using option 2, /system is not mounted, and yet it still fails.

Did anyone experience the same difficulties as I am currently facing? And how did you get past them?
[Nexus 7 Android Development] PCHelper:
Nexus 4: unlock the boot loader works but rooting gets me a dead android with red !
[Nexus 7 Android Development] sirlinux03:
does this work with N7 4.2.1?

Nexus 7 completely stock

Ubuntu 12.10 64bit - 32bit libs already installed

pt: hope it works, I want to root, but I'm a linux usr and I dont have any windows PC.
[Nexus 7 Android Development] sirlinux03:
Im getting the same with N7 4.2.1
[Nexus 7 Android Development] Bawl:
Do as I did, and follow the manual method for rooting your N7.

For whatever reason, I couldn't get it to working with the automatic method, but using the manual, which really wasn't harder, CWM flashed in the first try.
[Nexus 7 Android Development] jumpman1229:
Well I've tried running the commands posted and it seems to be stuck at the terminal. After it prompts me for a password, it just hangs and doesn't show any sign of progress. Btw, I'm running Ubuntu 12.10 on my MacBook. When I go to close the terminal, it tells me "There is a process running in the terminal. Closing the terminal will kill it." so I know it is doing something but this is all I'm seeing:
[Nexus 7 Android Development] tatelucas:
Updated to 2.1.0
[Nexus 7 Android Development] Maxrunner:
How's this version? will it work with nexus 7 and 4 for automatic root mode?
[Nexus 7 Android Development] ddz334:
if you have already found out

from the image you have posted, you dont have to paste ' >user@linux ' part.

after downloading

1) become superuser with the command "sudo su" and pass word ( without double quotes ")

2) change to the folder you have downloaded with the command "cd pathname"

3) give the command "sudo bash ./unltlauncher.sh" (unitlauncher100 if that is your file name"

hope it helps
[Nexus 7 Android Development] oldarney:
poopy

... Im used not having to flash the custom, proprietary, bootloader before rooting. Specially after the nexus 10 kerfufle with custom bootloaders not supporting the OTA.

I read the messages to root carefully, no where did it say I needed to flash a custom bootloader to root the phone with option 3. Luckly, it didn't get stuck in bootloader mode.

Thanks for the work on this... I'm rooting from a chromebook on a chrooted xubuntu.

EDIT: I tried manually doing

And it works! as long as you trick the UNLT.sh to downloading the proper files.
[Nexus 7 Android Development] BenBen_:
thanks man, so easy! **** this windows 8 **** with unsigned drivers....
[Nexus 7 Android Development] melp57:
How do I get my linuc to recognizes my N7? It starts charging but nothing else happens. I am running 32bit Linux Mint.

thanks
[Nexus 7 Android Development] !crazy:
The toolkit is not working for you or you are trying to do something else, like files copying?

This toolkit doesn't require something particularly to happen when you connect Nexus with your computer.
[Nexus 7 Android Development] melp57:
No, I wasn't trying to copy files or do anything else. I was just unassuming that like when I plug my phone in, that it pops up, meaning that drivers are installed. Maybe it is different with using Linux. I guess your script communicates in a different way. I loaded up the program in a terminal. but didn't try to execute anything. I will try that next.

thanks
[Nexus 7 Android Development] wildestpixel:
Will the OP be updating for 4.3 or should I fork / branch the source ?
[Nexus 7 Android Development] tatelucas:
I have just updated SuperSU, CWM recoveries and factory images links.
[Nexus 7 Android Development] marathone:
Thanks. Donation on it's way. Confirmation number: 54H26414N6077264J

I'm having difficulty getting my Nexus 7 recognized via USB (shows it charging) but not mounting on GNU/Linux since the 4.3 update. Someone suggested this might because of an outdated version of ADB, although it worked prior to the update. What do you think? Shows the same on GNU/Linux and Windoze.

So, the original post has the newer SU?
[Nexus 7 Android Development] tatelucas:
Thank you so much for your donation! I will be updating adb and fastboot on the next 24 hours. When you launch unltlauncher it will automatically download the last version.
[Nexus 7 Android Development] tatelucas:
I will need some days more because I'm in a trip in the US. For now, try downloading the Android SDK latest platform tools and replacing the old fastboot and adb binaries with the ones you can download from the Android SDK tools package called Platform Tools. Here is the Android SDK Tools download link if you don't have it http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz Sorry and let me know if you could make it work.
[Nexus 7 Android Development] ganassa:
It looks like the platform-tools adb version is not updated, it needs to be 1.0.31 version at least, otherwise the device results as "offline" - source and solution (download latest adb) HERE

BTW: once the device has been recognized by the new ADB, I still have a problem: the Recovery was restored to stock by the 4.3, and trying to install it via UNLT results in a "FAILED" message. I'll give you further and more useful details when I'll try again.
[Nexus 7 Android Development] marathone:
Not yet working. This is for NeXus 7, still shows as offline. I can wait to root this until you have some time. Meanwhile I'll bang away at it.
[Nexus 7 Android Development] jamsh:
basics

I would love to use this as I only have an old laptop running 12.04 and would like to try a new rom on my Nexus 4. When I download your link, I get a small sh file and I'm not sure how to proceed from there. You say extract tgz to wherever, how do I do that?????
[Nexus 7 Android Development] marathone:
Does the file you downloaded have a .tgz extension? If so use your archive manager to extract it.

You should have one file (unltlauncher100.sh) which when invoked will download what it needs. You run it from your shell, as root. I had to enable the file as an executable 1st though, but I'm not on Ubuntu, so your mileage may vary.

The instructions in the OP are pretty clear. ;)
[Nexus 7 Android Development] jamsh:
When I click the download link, I get this - /unltlauncher100 .sh - downloaded. What do I do next??

Thanks.
[Nexus 7 Android Development] marathone:
You run it as root in your shell (aka terminal). Like so '. /unltlauncher100.sh' without the quote and as root. Then follow the prompts.
[Nexus 7 Android Development] jamsh:
Thank you so much! Works perfectly and NOW seems so simple, thanks again.
[Nexus 7 Android Development] marathone:
Glad you got it done.

You should thank the developer who made this sophisticated bash script by (hint) buying him a beer or two. ;)
[Nexus 7 Android Development] jamsh:
Done that.
[Nexus 7 Android Development] bogdan_wrc:
any update to include the new nexus 7 (2013) ?
[Nexus 7 Android Development] marathone:
Have you tried it?
[Nexus 7 Android Development] bogdan_wrc:
i must say a i havent. i am about to buy it, i was gona try it. i was making sure it was available until then.

i opened it last night, and i saw no mention of the new N7, thats why i asked. is it compatible? when i select N7 does it fit for both models?
[Nexus 7 Android Development] marathone:
I dunno, but would try 1st.
[Nexus 7 Android Development] bogdan_wrc:
perhaps somebody with new N7 could try it. thats why i was asking.

at this moment, the N7 is not available in my county.
[Nexus 7 Android Development] marathone:
Sure, there is a separate forum for the NeXus 7 2013. Probably be further ahead to ask there, referencing this thread.

The developer of this app is on vacation, so if any update is required, won't be forthcoming until he's back.
[Nexus 7 Android Development] Mr Impossible:
I will try when get home
[Nexus 7 Android Development] tatelucas:
Updated to latest factory images, superSU and CWM recoveries.
[Nexus 7 Android Development] Konstigt:
Thanks, just tried it because I needed to restore to factory before returning for service.

Why do you start the program with sudo-access? Worked fine without for me.

Also, when flashing recovery, it is always nice to have the option to keep recovery or flash stock.
[Nexus 7 Android Development] marathone:
Might be an idea to include TWRP as an option. Don't care for Kush's CWM, font is too small, besides TWRP has nice touch controls without needing to pay for an upgrade. :D
[Nexus 7 Android Development] melp57:
There are no files inside the various folders created, is this right?
[Nexus 7 Android Development] tatelucas:
There will be files once you run the toolkit. It only downloads what it needs.
[Nexus 7 Android Development] melp57:
Thanks, just wanted to make sure I had it set up correctly. I guess it pretty much automatic, as a script should be :)
[Nexus 7 Android Development] ganassa:
Hi

I've successfully rooted my N7 2012 when it was 4.2.1

Now, after upgrade to 4.3, I repeated the whole process. I could unlock the bootloader, install recovery, but when I try to root:

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

* Universal Nexus Linux Toolkit v2.3.0 by tatelucas *

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

Root the device

Before starting the process your device must be in Android Debugging Mode.

In the following instructions you will learn how to do it:

1. Power on your device and connect the device to your PC via USB.
2. Go to 'Settings' >> 'Developer options', turn ON the switch,
and check 'USB debugging'. You're now in Android Debugging Mode!
Note: If you're running Android 4.2 or above, first go to
'Settings' >> 'About phone' and tap 7 times on 'Build number'.
3. Do you want to start the process? [Y/N]: Y

4. Wait for automatically reboot in Recovery Mode.
5. Go to 'install zip from sdcard' >> 'choose zip from sdcard' >> 'UNLT'
and choose 'su.zip'.
6. Go to 'Go back' >> 'reboot system now'.
[COLOR="Red"]mkdir failed for /sdcard/UNLT, File exists
[/COLOR]532 KB/s (1192075 bytes in 2.187s)

Press ENTER to return to the main menu...

Now, If I choose "Install zip" and "choose zip from sdcard", I see no "UNLT" folder. Consequentially, I can't root it.

Nexus 7 GSM Version
[Nexus 7 Android Development] tatelucas:
Please find it inside the folder called "0", it should be there.
[Nexus 7 Android Development] ganassa:
yes it is, problem solved, thank you :)
[Nexus 7 Android Development] deejay6901:
it worked for me also. this looks great. finally i can move in my root apps from my note 2 to N7. thanks a lot!! :)
[Nexus 7 Android Development] tatelucas:
I'm really happy to hear that! :D
[Nexus 7 Android Development] stexyn:
Hi, I have mac osx 10.7.5

I try to launch the sh file but I get this error:

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

* Universal Nexus Linux Toolkit Launcher for Mac OSX by tatelucas *

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

Updating Toolkit...

Succesfully Updated.

Initializing...

bash: unlt.sh: No such file or directory
[Nexus 7 Android Development] klima:
I've the same problem, but if I launch unlt.sh directly, it work fine...

I think the launcher for osx have some problem, because it remove unlt.sh

but don't update with the new one...
[Nexus 7 Android Development] swamp2:
I have exactly the same problem and I don't understand the reply (#77) just above. Any additional tips? Thanks.

Edit:

OK making progress. Downloaded http://galaxy-nexus-linux-toolkit.googlecode.com/git/stable/unlt.sh and it runs.
[Nexus 7 Android Development] birch25:
I keep getting this error when running on OSX:

unlt.sh: line 767: md5sum: command not found
ERROR: Google Factory Image is Corrupted. Erasing...
Erased. Please try again later.

I don't know nearly enough to know how to debug this problem. I'm trying to restore my Nexus 7 to factory defaults from a custom ROM. This should be possible, right?
[Nexus 7 Android Development] ubcxzhang:
It looks everything works successfully, but my nexus 7 (2012 version 32GB) is still not rooted.

I am using stock rom 4.3 and osx 10.9

Any suggestions?
[Nexus 7 Android Development] bellanano:
Do you think to update the UNLT for Nexus 5 ?

:good:
[Nexus 7 Android Development] Alrahambra:
Tested with Ubuntu 12.04 and working just as it promises, good job man!
[Nexus 7 Android Development] tatelucas:
That's because Mavericks doesn't ships with md5sum binary anymore, I will update this in the next days.

Yes of course, but please wait because I'm too busy with the university right now.
[Nexus 7 Android Development] tatelucas:
Thank you! I'm really happy to hear that! :D
[Nexus 7 Android Development] neo1691:
I am using debian v7 64 bit. I tried running the script both as root and as normal user. I want to root the phone first before unlocking the bootloader so that I can backup my apps and data. So the script runs well and reboots my nexus 7 2012 (wifi) but nexus 7 ends up with a dead android and a red symbol with no command written below it.

Tried both manual and automatic mode

Edit: I am running 4.3 stock build JWR66Y
[Nexus 7 Android Development] martindesu:
Ah! That explains it :)

Time to boot Ubuntu... :)