yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] supertanno:
Well, two reasons. Firstly, my bad history with phones. Take a look at my signature, it's not good. Also, Google's guide on flashing closed with relocking the phone and I'm that guy that always follows guides to the letter.

Well crap. Guess rooting's out of the question then :/
[Nexus 5 Android Development] madbat99:
Wiping is no big deal. Just drag and drop every file you need to your PC. Most apps come back with a simple log in. Only tough thing to backup without root is a game. And you can copy those files too. Android/data/name of game, or android/obb/name of game.
[Nexus 5 Android Development] Charles Collins:
system.img

Hi

Tried to install a new rom and it recommended a full wipe before installing it. Couldn't install it via sideload and now when I try to use the NRT it keeps saying it cannot load the system.img file from the Wugfresh folder on the laptop.

I've tried fastbooting the files individually and it still fails on the system.img file.

I've been pulling my hair out all day about this, not literally, as I'm bald but you know what I mean :)

Can anyone help me out, please?

First time I've had an issue with NRT

EDIT: Sorted I think. Put phone into bootloader. From NRT went to Advanced Utilities and under Fastboot Boot clicked Custom Recovery. In TWRP mounted system, then was able to copy a different custom rom, gapps and SuperSU to phone and install via TWRP. Booting up as I type. Phew
[Nexus 5 Android Development] Johnny75_:
Android 5.1.1 update

New factory image of Android 5.1.1 is out. When is not going to be updated? Thanks
[Nexus 5 Android Development] donnabelmartie:
You don't need the program to be updated. Just download the factory image yourself and when flashing stock, select the option "I downloaded bla bla and select the image you downloaded". However, when rooting, be mindful when the program will tell you to flash manually the root files then click okay for the script to finish.

Love you wugs! Don't know where will I be if not because of your masterpiece.
[Nexus 5 Android Development] WugFresh:
I added it late last night. Typically you can expect me to get new builds listed within 24-48hours max, unless its a major android version jump like when google went from kitkat to lollipop.. then it takes me a bit to figure everything out.

{{ WugFresh }}
[Nexus 5 Android Development] fatspirit:
[MENTION=3110798]WugFresh[/MENTION], please modify system.img flashing procedure, since it says "cannot load system.img" too often. "fastboot -S 512M flash system system.img" should fix the problem.
[Nexus 5 Android Development] WugFresh:
Interesting, thank you for the info. Will check it out and consider implementing.
[Nexus 5 Android Development] wdwms:
Resolved
[Nexus 5 Android Development] coffeecore:
Can I flash the Android M Preview with Wug's awesome toolkit? I think it should't be a problem.
[Nexus 5 Android Development] luisangel89:
Can you try and let us know? Thanks
[Nexus 5 Android Development] coffeecore:
I will try now!
[Nexus 5 Android Development] inspeckta_dek:
It works perfectly
[Nexus 5 Android Development] SacredDeviL666:
you can flash using wugs toolkit but root seems to bootloop for the moment
[Nexus 5 Android Development] luisangel89:
As far as I know root still doesn't work. Chainfire said he would look at it tomorrow.
[Nexus 5 Android Development] SacredDeviL666:
some says you can flash if you have changed the selinux to permissive. if the boot completes of mine will try to flash uber with permissive selinux and try to root....

that is if only i complete the boot :p

---------- Post added at 11:09 PM ---------- Previous post was at 10:47 PM ----------

sucess with uber kernel on selinux permissive mode with m preview build.

let me try to root now using 2.49supersu
[Nexus 5 Android Development] jetbruceli:
Ok I figured out the missing system.img problem

Go to the folder where wugs toolkit extracts the file, in there, there is the radio and some other files but you need to take the zip file out and extract those and copy them back to the folder

then restart the process like before, and it will work

so again, select already downloaded

then let it extract the file

then go to the folder c program x86, wugs toolkit, data, factory images

find the folder on the one your flashing

copy the zip file to the desktop because it would not allow me to unzip in that folder

exctract the files and copy those files back the folder you copy the zip

start again with the same way as before
[Nexus 5 Android Development] WugFresh:
Just enable force flash, it extracts the zip itself.
[Nexus 5 Android Development] jetbruceli:
OK didnt see that, i havent used a nexus device in awhile. Thanks for your toolkit!
[Nexus 5 Android Development] encinocr:
Is it possible, under "fastboot flash" a selection button to integrate, where it may be desired that after flash no reboot is done?
[Nexus 5 Android Development] WugFresh:
I have already made this change for the next version. I didn't make it an option though, but rather the default behavior - the user can then reboot with the quick tools. So stay tuned on that. :)
[Nexus 5 Android Development] encinocr:
Thank you for your message :good:
[Nexus 5 Android Development] Spudsicles:
Android M...

Hey Wug,

Just curious if you are going to add the Android M preview to your wonderful NRT? :good::good:
[Nexus 5 Android Development] donnabelmartie:
For now you can flash android m by downloading yourself, select "I have downloaded myself bla bla" with force flash enabled.
[Nexus 5 Android Development] Puneet Singh Chauhan:
http://www.cnet.com/how-to/how-to-install-the-android-m-developer-preview/
[Nexus 5 Android Development] Spudsicles:
Thanks guys, I was just hoping he would of put out a file for rooting... cause I doubt setting it to Android *.*.* is gonna do it.

Just flashed Android M this morning, gonna give this a whirl!
[Nexus 5 Android Development] madbat99:
Gotta see if chainfire has SuperSU working on M yet. Wug can't use files in his toolkit that don't exist yet.
[Nexus 5 Android Development] WugFresh:
This is true, although I have always wanted this super power. :)
[Nexus 5 Android Development] chuckwow69:
love this kit works like a charm every time,thanks.
[Nexus 5 Android Development] Midomad:
successfully flashed the M image!

Cheers.
[Nexus 5 Android Development] ntegra:
bootloop vs modified bootimg

Posted this on the Nexus 7 development forum (WHO KNEW I needed to search for a specific Nexus Root Toolkit thread - :p)... ANYWHOO, Since I'm talking bout a Nexus 5 I'm reposting.

bootloop vs modified bootimg

So.. I wound up with the black screen of death on my Nexus 5 running 5.1.1. The only thing I can do is factory wipe (or flash stock) which get's me back up and running however losing all my apps and data. But if I restore nandroid (twrp) OR restore data partition.... Immediate BSOD!

I was able to find a 5.0.1 nandroid (cwm) that semi works (its a few months old) to rebuild me (I had a couple of apps that I could only use if recovered from backup). I used NRT, like I normally do, and upon reboot after flash I am in a boot animation (4 colored dots) loop. I've restored multiple times, let the loop run as much as 24 hours with no progress. The only thing I have been able to do to get into the phone was to "fastboot boot modified boot.img" from advanced utilities. This works as long as I don't have to reboot my phone.

My question(s) is would it be NOT adviseable to permenantly flash the modified bootimg to my phone to survive a reboot? What's the difference between stock and modified? Any idea why my nandroid fails without using the modified boot.img?
[Nexus 5 Android Development] kattara:
Hey guys!

Sorry if I'm posting in the wrong section,... But was wondering if somebody could help me? I've been using NRT successfully for quite a while now, but somehow soft-bricked my phone last night when flashing stock. Here's the original error encountered in NRT:

Since then, I've tried manually installing stock, but I always get stuck at the same place - it won't flash system.img. I've tried flashing the system.img using -S 512M and also adb stop/start, etc but to no avail. I've also restarted my comp, tried different usb ports/cables. My phone is currently stuck at the Google screen. Help?
[Nexus 5 Android Development] qu4nd:
I would highly recommend to place the img files in the folder where your ADB and Fastboot is located.
[Nexus 5 Android Development] kattara:
Hi there! I've done that already. :confused:
[Nexus 5 Android Development] qu4nd:
The screenshot shows the system.img is located deep inside the Wugs directory
[Nexus 5 Android Development] kattara:
Yeah. That was the original error message I was getting when flashing with NRT. After that, I flashed manually and was having the same problem. But I'll give it another shot. Thanks for the suggestion!! :fingers-crossed:

UPDATE:

Ok, I got my phone working again. I updated my SDK platform-tools to the lastest preview version, and then manually flashed each img. To get system.img to flash, I had to add the -S 512M to get it to work. So, basically, the only new thing I did was update my SDK platform-tools to the latest preview version. *ughhh*
[Nexus 5 Android Development] weaselskhs:
There is a super SU for M out it is version 2.49 and I had it installed it on preview 1. BTW here is the link for it.

https://download.chainfire.eu/740/SuperSU/BETA-SuperSU-v2.49.zip
[Nexus 5 Android Development] bekasulaberidze:
error: update package missing system.img I'm noob )) any help ?
[Nexus 5 Android Development] fatspirit:
Try Force Flash Mode.
[Nexus 5 Android Development] AkaGrey:
Hi guys,

Does relocking the phone makes the counter back to zero? (if there's one, the one which samsung has)
[Nexus 5 Android Development] fatspirit:
Using Flash Stock & Relock button (or something like that) - yes.
[Nexus 5 Android Development] AkaGrey:
last thing last, autodetecting says that i have 5.1.1 normal , instead of choosing custom lp build (that is the one i have, cataclysm).

Or maybe i'm so noob, that since it's a custom rom based on source, it gets autodetected like a stock rom?
[Nexus 5 Android Development] Spudsicles:
Update for the security updated 5.1.1 (LMY48I)?... and Nexus 7 (2013) too. ;)
[Nexus 5 Android Development] Ultraboss:
system.img size too big ???

When I try to "flash stock + unroot" for lmy48i upgrade, flashing system partition fails :

>fastboot flash system system.img

target reported max download size of 1073741824 bytes

error: cannot load 'system.img'

system.img file is 1*046*364*912, which is smaller...

It worked well with lmy48b build, but if I try to flash it back, it fails too :rolleyes:

I have the Nexus 5 16GB

Thanks helping me
[Nexus 5 Android Development] fatspirit:
Try Force Flash option.
[Nexus 5 Android Development] Ultraboss:
It's already checked...
[Nexus 5 Android Development] Scartozzi:
did anyone tried to flash m preview 3?
[Nexus 5 Android Development] ralphodog:
Am I the only one getting a 404 from the website?
[Nexus 5 Android Development] milleirish:
quick question, will this tool help me out on my phone being stuck on the google splash screen? I attempted to flash a custom rom and something went wrong. I get errors on attempting to flash the rom and can only access the bootloader, TWRP. Will I be able to flash down a new rom and flash it through the tool or at least be able to get back to stock and reroot?
[Nexus 5 Android Development] dokie80:
open just fine here.. http://www.wugfresh.com/nrt/

if you need the download link, its here : https://androidfilehost.com/?fid=95916177934547093

---------- Post added at 12:04 PM ---------- Previous post was at 11:57 AM ----------

yes it will..

you can do all of it: flash new rom, back to stock, reroot etc.

actually, since u already have a working recovery (TWRP), all you will need to flash custom rom is the zip file of the rom, and flash it via twrp.

and to go back to stock, u ll need to flash the factory image file (.img?) via fastboot command (this tool / NRT will do that for us).
[Nexus 5 Android Development] milleirish:
So all have to do is download a new rom to my computer, run the tool and it should push the rom to my phone?
[Nexus 5 Android Development] dokie80:
no.. you will need to push the file to phone manually, and then boot to recovery, flash. no need to use NRT (although NRT probably have the option to do that, will look about it later).

steps without NRT:

- try to connect ur KF to PC, and boot to recovery, mount sdcard/internal storage, and copy the rom's zip to the phone.

- i suggest wipe data, system, cache

- flash rom

edit: see attachment to use NRT to help u push the zip file and flash it.

1. launch advanced utilities

2. boot to recovery (probably no need to boot to recovery first, step 3 will do that for u, not sure :D, try skip this step)

3. flash zip, follow the instruction.
[Nexus 5 Android Development] jaibar:
As you were told- forget the tool for now, as you already have the best tool installed in your device for this task- twrp recovery.

Once you made it to copy the ROM's zip file into the phone, go into TWRP and use the buttons to wipe data, cache and system. Do b not wipe sdcard as it will erase the zip you have just copied...

Then use the install button and select the zip. When it has finished, you'll see the reboot button...

Actually once you have the phone in working condition, all you'll ever need in the future is to download zip files directly from phone (rom updates etc), then install them from twrp, use it to make backups etc.

I used nrt a couple of times, it's a good tool and all, but interface is cluttered, not so user friendly, not intuitive and confusing. In that aspect, don't be intimidated by twrp recovery- it is much more user friendly and easier to use than nrt.

Plus- big plus- you don't need connection to PC. Believe me, when something goes wrong you'll appreciate having your precious backup handy in your device, not start frustration with faulty cables, problem with drivers, device not recognized by PC and all that crap that happens much too often.

TWRP Recovery is your friend.[emoji2]
[Nexus 5 Android Development] milleirish:
Yup my dumbass forgot to do a backup before i tried to install the rom.
[Nexus 5 Android Development] Scartozzi:
i've read that using the root option doesn't work with m previews so i was thinking can i flash a recovery using the toolkit and then root manually flashing a custom kernel?
[Nexus 5 Android Development] dokie80:
From what i read, u ll need custom kernel that support root, stock kernel doesnt support root. Flashing recovery should work as long as fastboot works. Flash custom kernel, then root app. Only assuming though.
[Nexus 5 Android Development] srqrob:
I've used Wugs toolkit to stay current on my Nexus 5 LG-D820. This Stagefright threat has been all over and Lookout's Stagefright vulnerability detector, one that I've been told is trustworthy, says I'm vulnerable. I'm on 5.1.1 LMY48B. Have I missed an update that includes this protection or is Wug planning one? My device is telling me a system Update has been downloaded. Search of this thread on stagefright comes up blank.
[Nexus 5 Android Development] fatspirit:
This update has stagefright fix included. New build version will be lmy48i.
[Nexus 5 Android Development] srqrob:
Any idea when Wug will have lmy48i included in NRT? I've gotten so spoiled, which I guess is his goal.
[Nexus 5 Android Development] fatspirit:
I was talking about this:
[Nexus 5 Android Development] madbat99:
Just download the new factory image. You can still use the toolkit to install it.

---------- Post added at 01:03 PM ---------- Previous post was at 01:01 PM ----------

Why would wugfresh plan a fix for stagefright? Or why do you think it would be anywhere in this thread? I'm not surprised that searching this thread for stagefright came up empty, it has nothing to do with a root toolkit.

It sounds like your phone already downloaded the update. Install it.
[Nexus 5 Android Development] srqrob:
Sorry I apparently got on your wrong side. Part of the functionality of the NRT is to install updates as they are released. One has been released. The NRT is telling me my N5 is up to date. It's not. That's why Wug would issue a new update. Seems clear to me. But yes, I can install the downloaded update.
[Nexus 5 Android Development] madbat99:
Not on my bad side. Not sure I have one. Just seems silly that, if the tookit shows no update, you wouldn't just download it yourself and use this tookit to install it. Wug can't be expected to find every update for every nexus and push it out immediately. What will you do when this kit stops finding all the files for you?

Just letting you know that you can get files on your own right from Google's factory image page, and still use this kit to install them (especially if you're that worried about stagefright ).

Sent from my Nexus 9
[Nexus 5 Android Development] CuriousTux:
what are the steps and settings to get root on the M Preview 3 thanks because when I try it now it just hangs during the restart on the boot animation
[Nexus 5 Android Development] CGA231:
I've been using the nexus root toolkit for quite a while now because when I flash a new factory image I can use the no wipe mode and I've tried flashing build LMY48I a few times already and everytime I did, it failed. It said something about a missing recovery.sig and something else. It says my device might have bootlooped and the i just reboot my device with no update. Any suggestions?
[Nexus 5 Android Development] rc_enzo:
This has probably been asked before, but using NRT it's possible to temporarily boot from a custom recovery. Has anyone ever tried to root their N5 using this temp-recovery method? I need a quick root without wiping my device, because of some major WiFi issues.
[Nexus 5 Android Development] Globespy:
Firstly, thanks for your very kind offer to help offline - truly a nice gesture.

Good idea about setting things up for the N4, but I had exactly the same issues with the N4 and your toolkit. I got it working using MrSkip's Toolkit - it worked first time, phone found in ADB etc. Thing is, even though the N4 was setup to work flawlessly with MrSkip's toolkit, it still wouldn't work with yours - same issue with ADB, which is perplexing as I can only assume they all use the same drivers? I guess my computer just doesn't like your toolkit! I ended up getting it rooted using the Kwonger kit, which needs some work as it's a little rough around the edges - I had a soft brick before I ironed it out, but at least it picked up my phone 1st time on ADB without any trouble.

My laptop just seems to be 'Wugged-Out' ;)

Thanks again for all you do.
[Nexus 5 Android Development] delgadodelbarrio:
OTA Updates?

Thanks for the hard work. Have used this kit to root Galaxy Nexus, Nexus 7, and Nexus 4. Used to flash roms and do other mods but my knowledge beyond the few basics is really limited. Just got my Nexus 5 and am on T Mobile 30/mo 100 minutes + data plan.

Want to remain with stock and be able to get the OTA updates and also want root so I can get the free hotspot functionality. Can I root, select to keep the stock recovery, and have the hotspot functionality AND still get OTAs without jumping through hoops? Thanks again!
[Nexus 5 Android Development] Globespy:
Yes. Use OTA rootkeeper to backup your root, then just temp unroot, install update, and restore root. Catch is, if you make any system changes that you can only make with root permissions, you'll likely not be able to get OTA updates. So just keep your system stock. I think that will mean that you can't use any apps that require root, so the question is, is it worth rooting given your needs?

I could be wrong, but that's my understanding.
[Nexus 5 Android Development] reefrunway:
Hello! I was gonna use the toolkit to unlock and root my new N5. Seems very straightforward but I also think the videos posted on your website are really helpful. Would the one by DroidModderX -- the first one listed, but geared toward the N7 -- apply to the N5?

This one: http://goo.gl/HFH417

Just curious. ;)

Thanks!

-reef
[Nexus 5 Android Development] delgadodelbarrio:
Just want root so I can get the hotspot functionality without the additional charge and would like to retain OTA capabilities.
[Nexus 5 Android Development] Globespy:
Are you on T-Mobile?

If so, you can't use the portable hot spot features without paying for it on a plan, regardless of whether you have root or not.

I ran into this recently on my N4, and had previously been able to do this.

You can create the hot spot, but see what happens when you connect a device and open a browser... You will be welcomed by the T-Mobile page telling you that you need to add to your plan.

No workarounds that I've found.

Fortunately their new plans gave me 500MB of tethering free for the same price as my old plan.
[Nexus 5 Android Development] nadieaqui:
just wanted to say thank you!

worked on 2nd gen Nexus 7
[Nexus 5 Android Development] delgadodelbarrio:
It was the same on my N4 pre-root, but with root the hotspot worked just fine for a year. Looks like they really want me to spend more than 30/ month. Thanks for the help.
[Nexus 5 Android Development] deeznutz206:
Since you mentioned root and wanting to use the Hotspot/tether function with the $30 T-Mobile plan, I'm assuming that you know a hack is needed so that you don't get redirected to the T-Mobile sign in page.
[Nexus 5 Android Development] Globespy:
There are no more working hacks. I recall the last one was shut down in May or June.

They do have an unlimited plan (2GB data before it's throttled) that comes with 500MB free tethering per month for about $70 a month.

A great deal when you compare to Verizon plans.
[Nexus 5 Android Development] Nero325:
I did all the steps the tutorial said and now I have a rooted N5

But I'm unable to connect the device in MTP.

I tried to uninstall all the drivers installed with NRT, but every time windows installs the ADB google driver. The first time it installed 3/4 drivers and the N5 appeard like a MTP device (whit autoplay window)

How can I install those drivers so I can use the N5 in MTP?
[Nexus 5 Android Development] bigup7:
i used this yesterday was very good and easy

but i notice don my n5 the down volume button stopped working after rooting, unlocked and installing custom recovery, a reboot does cure it for a while then it stops working again

anyone else get the same?

ive gone back to factory stock, locked etc now and volume button working 100%
[Nexus 5 Android Development] WugFresh:
I can assure you that rooting and your volume button functionality are unrelated. All rooting does is install Superuser and corresponding binaries to your system partition - it doesn't make any fundamental changes to your device. You may want to send it back to google asap if you can. There is a chance that you have faulty hardware.

{{ WugFresh }}
[Nexus 5 Android Development] bigup7:
thanks, ive had the phone for a week and its been fine, but as soon as i rooted it the down volume button stopped working, im now back to factory stock and button is back to normal and no instance of it not working

strange one it seems.
[Nexus 5 Android Development] Jubakuba:
I hate that these programs even exist for nexus devices...

If the users have an opportunity to learn SOMETHING themselves without the risk of harm (arguably less so) to their devices...

WHY do they need to be spoon-fed in a development forum?
[Nexus 5 Android Development] pkelly517:
Add a global entry

tether_dun_required 0

to /data/data/com.android.provider.settings/databases/settings.db
[Nexus 5 Android Development] Grondinm:
I don't think this is meant to take away the learning the user should do before using this tool. It simply makes it faster to do...I understand and know pretty much what every function in this tool will do but i would still rather use it then have to type out all the commands(not that i don't know them) if a user uses this tool without understanding or caring what it is going to do that is on them.