yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] lcp:
Solved!

Flash stock again (the same firmware)

Thanks
[Nexus 4 Original Android Development] 26.2man:
Currently rooted running a custom rom and kernel. I want to go back to factory but have root so I can at least install a custom kernel. Do I have to go all the way back to flash stock and unroot and then re-root? Do I have to lock and unlock the phone as well or since its already unlocked will it stay that way? I also assume that if I do this I will lose all my data, pics, and stuff I can normally backup and will truly start clean?
[Nexus 4 Original Android Development] Blackherted:
Edit: Finally rooted my phone and installed a custom rom, If I knew how easy it is with your toolkit I would've done it from the start and not wait half a year :)

thank you so much Wugfresh! amazing piece of software.
[Nexus 4 Original Android Development] mlovesu:
FREINDS PLEASE HELP... i am stuck on boot loop...my nexus 4 screen was cracked so i could not factory reset it...so i erased the user data through fastboot using wugfresh toolkit...now my screen has been replaced but i am unable to install any rom...as the data folder is not mounting and the twrp recovery is showing no internal storage. i am unbale to push any data to the device as the storage is not mounting..what should i do
[Nexus 4 Original Android Development] acejavelin:
Your partitioning or file system is corrupt, do a restore factory images and start over from the beginning.
[Nexus 4 Original Android Development] morganmf:
When trying to download since yesterday this shows up:

Error 522 Ray ID: 11c707d1aee105cf

Connection timed out

Anyone could share newest ?
[Nexus 4 Original Android Development] skidaway:
Wug posted a mirror download link on his G+ page:

https://plus.google.com/113329792100896065459/posts/RrXSbdSjrY5
[Nexus 4 Original Android Development] xallrons:
Thanks! Working flawlessly!
[Nexus 4 Original Android Development] Vaetheran2107:
Patiently waiting for an update to install the newest Android Update :)

Gesendet von meinem Transformer TF101 mit Tapatalk
[Nexus 4 Original Android Development] ken_alpha24:
Just download the factory image and flash it using adb fastboot
[Nexus 4 Original Android Development] axlrvx:
Updated to v1.8.3

Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 Original Android Development] RASTAVIPER:
For one more update of Android, Wug toolkit helped me (as for all other previous versions since 4.2) to fix everything fast and with just a few clicks of my computer.

Thanks again WUG for this great tool.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] Vaetheran2107:
Was working prefect for me again.

Thank you WUG

Gesendet von meinem Transformer TF101 mit Tapatalk
[Nexus 4 Original Android Development] MeowNYC:
is it normal the rsa fingerprint msg not popping out ? 1st time-to-root-nexus5 user. 0.0?
[Nexus 4 Original Android Development] migatxu:
Waiting for an update for 4.4.4 :D

Edit: Manually rooted, can't wait xD
[Nexus 4 Original Android Development] showbo:
I would be to. If 4.4.4 actually meant something. :) after researching it, I was like... Meh.
[Nexus 4 Original Android Development] migatxu:
4.4.4 -> Important security patch
[Nexus 4 Original Android Development] WugFresh:
Toolkit updated. Updater live. Enjoy! ^_^

{{ WugFresh }}
[Nexus 4 Original Android Development] server3249:
Updater goes in loop and seems to be chaos, it opens multiple process and downloads which never seem to finish.
[Nexus 4 Original Android Development] WugFresh:
I have never seen that. I am confused. The updater from 1.8.3 or the file downloaded from 1.8.4. Can you provide more details as to what you are doing and what happens.
[Nexus 4 Original Android Development] balaaje:
stops

update stops @ 1 percent . need to manually download and install

edit:update from server failed
[Nexus 4 Original Android Development] server3249:
Issue got resolved, it got downloaded after 5-6 tries. I guess the updater module is creating multiple processes which are all trying to execute simultaneously. I have not yet tried the program but am sure it's fine since it says everything is up to date now.
[Nexus 4 Original Android Development] RolF2:
Same here - automatic update stuck on 1% and downloading... Just canceled update, started program and then checked for update manualy - this time percentage go to 100% and program was updated...
[Nexus 4 Original Android Development] :
when I want to upload a pack of zip on my phone, installed on my phone

supersu program and TWRP custom recovery, even though I did not choose this option for installation. Version 1.8.3 of this problem was not there.
[Nexus 4 Original Android Development] WugFresh:
Yeah, its just the issue with so many people getting the notification that the update is out all at once. So everyone is trying to download the same file from that server. When that happens, you just have to try again. For future notice, you don't need to restart the kit to initiate an update - you can use the menu item at the top for "Update", or the hotkey Ctrl+U

Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] SrijitC:
Thanks WugFresh - rooted N4 4.4.4, everything was so smooth. had to install busybox manually don't know why. :)
[Nexus 4 Original Android Development] CptanPanic:
At least my /data and /cache partitions are messed up, and am stuck in a boot loop. Can I use any features here to fix to try to keep the data that was on /data ?
[Nexus 4 Original Android Development] WugFresh:
You should try to get out of the bootloop. Then backup manually. Clear cache in recovery.
[Nexus 4 Original Android Development] spider623:
L preview port is here and works, any chance of getting it as a selection in the app?
[Nexus 4 Original Android Development] Bilge656:
Wug,

I enabled alternate fastboot syntax in the toolkit's options menu because I was getting a black screen when trying to make a nandroid backup, but it just boots into TWRP's main screen while my computer says "Waiting for the backup to complete and for your device to boot back up"

What is wrong?
[Nexus 4 Original Android Development] WugFresh:
You probably have the wrong device and/or build selected. What build is your device, which device.
[Nexus 4 Original Android Development] Bilge656:
I have a Nexus 4 on purity rom 4.4.4. I selected nexus 4 Custom Rom KK. It is F2FS, if that makes any difference.
[Nexus 4 Original Android Development] WugFresh:
If you select custom ROM, as you should - it won't automate the backup but rather instruct you how to make the backup manually in TWRP.

Follow the instructions on that dialogue, or try again with a 4.4.4 stock build selected, it may work automated for you.
[Nexus 4 Original Android Development] Bilge656:
I tried it again, and the dialogue said "Waiting for the backup to complete and for your device to boot back up." I then proceeded to create a backup on my device, but I can't name it until after it has been made, so I rebooted and it didn't copy.
[Nexus 4 Original Android Development] WugFresh:
Hmm. That is not the right behavior. I will look into it and see if I can reproduce it.

Like I said, you can probably set the toolkit to the stock equivalent of your custom rom, so 4.4.4 and it will automate it.
[Nexus 4 Original Android Development] jkxklutz:
I'm at my wit's end here. I'm also stuck on the google logo during the rooting process, and I can't flash a custom recovery.

Specifically, I've found that it's the modified boot image that the device just won't load, as that's when it gets stuck on the Google logo. The program just says "Waiting for your device," of course, because it's stuck trying to boot up.

Any ideas? I've actually rooted in the past but always stayed on stock rom, and actually ended up going OTA to 4.4.4

Is it the bootloader that's causing the issue?

EDIT: GOT IT TO WORK. I uninstalled and reinstalled, and this time the program showed a different build than last time. I thought I did auto detect the last time but maybe not? No more getting stuck at google logo! Modified boot image loaded wonderfully, along with the temporary TWRP.

THANKS!!
[Nexus 4 Original Android Development] arturaraujo:
Hey guys! I'm having a little problem with my toolkit. When I try to update or download something, an error called "mismatch" appears. I wonder what might be causing this and what the solution. Thanks!
[Nexus 4 Original Android Development] gogYCH:
My nexus 4 gives me a headache.Tryed flash with NRT1.8.4,android 4.4.4 it's been good

Mobile has worked for half an hour

after which it restarted and got stuck in boot after boots goes into recovery where I can make not do nothing,tryed reset on factory but just standing on it and does nothing.Afther that,tryed again flash with flash stock and unroot (its not rooted and is unlocked bootloader) but the error you see in the picture.

Tryed many times,occam-ktu84p-factory-b6ac3ad5

What do I do, help me please.

Tryed many times,occam-ktu84p-factory-b6ac3ad5
[Nexus 4 Original Android Development] gogYCH:
anyone help?

what it means

FAILED (remote: Bogus chunk size for chunk type Raw) ??
[Nexus 4 Original Android Development] elitemeat:
Won't update

Why can't the toolkit update to v1.8.4? It downloads the file fine, but when it reaches 100 percent nothing happens. It is stuck on the old version I have.
[Nexus 4 Original Android Development] toanau:
I am on a custom rom and wanted to back to stock. Do I have flash the modem separately and also is there bootloader I have unlock again . I am on a 4.4.2 ROM

Sent from my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
I usually only test it to go up from the last version. Like 1.8.3 > 1.8.4. You can just install the full package over your previous installation, it will work the same - I designed it so that would work. Just make sure you force close any instances of adb.exe if they are running before you do the install. Cheers.
[Nexus 4 Original Android Development] elitemeat:
Lost all data

So I wanted to updated my girlfriend's phone to 4.4.4. Her phone is rooted but everything else is stock. I thought the basic process was to unroot it first, and then update to 4.4.4 and re-root it.

I used the wugfresh toolkit to "Flash Stock+Unroot." After this process, I clicked Root (and checked "And Also flash: Custom Recovery").

I thought this process would do a factory reset but did not know it would completely wipe all the data on her phone, including everything in the SD card. I backed up using TitaniumBackup but everything was wiped, so couldn't recover anything. Now I know better and backup to PC every time.

How can I avoid completely wiping the phone next time? I frequently flash custom ROMs on my own phone all the time and factory reset, but always keep my SD card contents.
[Nexus 4 Original Android Development] -iNCEPTiON-:
The toolkit says that it will wipe the data , so on the first place you should always backup ! I always flash my wife's phone with custom ROMs and she loves it :) flashing custom roms and flashing back to stock is two different things.. you should always back up to the PC first to be on the safe side :)
[Nexus 4 Original Android Development] elitemeat:
I know that now and will never make that mistake again.

However, one thing I forgot to mention is that I have updated her phone in the past. I believe I went through a similar process: unroot, flash updated version of stock, then root again.

I used the wugfresh toolkit for this. However, not exactly sure if I did the same exact steps. So that is why I'm confused why it deleted everything this time.

Also, last time I updated her phone, I didn't even use TitaniumBackup. I believe her apps restored themselves from Google server backups. Now that I think about it, I have no idea what I did last time to successfully upgrade her phone. All I know was that, in the past, I've upgraded her Rooted phone from a lower Android version to a higher version, without losing data...and without completely wiping the phone. (and then rooting it again).
[Nexus 4 Original Android Development] Bilge656:
Hey Wug,

I love your toolkit, and I was hoping to use it on my new computer. I am in the process of setting up the drivers, but for some reason, when I am on step 1 (uninstalling the current nexus 4 drivers from device manager), the device stays under "other devices." This never happened on my other computer, and I was wondering if you know how to fix it.

Thanks a lot for the help and the awesome toolkit!
[Nexus 4 Original Android Development] tonysac:
I have stuck in bootloop because by mistake I flashed a wrong recovery for my nexus 4..what is the proper tab I have to push to flash a new custom recovery? Recovery tab in advanced utilities?
[Nexus 4 Original Android Development] RASTAVIPER:
You can always install correct custom recovery through wug, under root option.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
That shouldn't be an issue. Is it showing up with a yellow exclamation point next to it, under other devices? That's fine, your comp is recognizes that it is a device, just not configured yet - so it just identifies it as "other" - things should work out as you proceed to configure it with the correct drivers. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] ashutoshchauhan211:
oem lock

i performed flash stock and unroot using this toolkit but when i performed oem lock after going into bootloader it says waiting for your device. what should i do now???? please help..does i need to do something after this in bootloader menu..??
[Nexus 4 Original Android Development] cramu:
[MENTION=3110798]WugFresh[/MENTION]

Will you update your Toolkit when N4 Lollipop images are available?
[Nexus 4 Original Android Development] WugFresh:
For sure. :)

{{ WugFresh }}
[Nexus 4 Original Android Development] 26.2man:
Have you fixed the root issue yet for 5.0. It fails st the point where it adds the root file
[Nexus 4 Original Android Development] cramu:
Here we go: https://developers.google.com/android/nexus/images#occam
[Nexus 4 Original Android Development] wwazman:
yaaaaaaaaaaaaaaaaaaaaay! Just discovered that myself a fe moments ago and got it downloaded... DOH.. but Wugs isn't updated to know Lollipop yet??
[Nexus 4 Original Android Development] Mihnea1996:
Download the image from Google and copy the MD5. Open NRT, go to Flash stock and select the option to import the image from computer, it's the third one, I think. Then select the factory image, paste the MD5, plug your phone and wait.
[Nexus 4 Original Android Development] wwazman:
Got it, thanks. In my impatience, I flashed it with the SDK platform tools ( A first ) .. and had a nice install of Lollipop.. well, I still have it! .. but using Wug's NRT I can't seem to be able to Root it? It does everything, it installs TWRP, it sees the files, it doesn't show any errors, it installs SU2.19 and busybox and perm root.. but when it boots up, SU says there's no Binary installed and it can't install it... busybox says it can't open because it has no root access :P.. and of course, rootcheck says "not rooted" ..

I've tried manually booting into TWRP and installing SU 2.16 and 2.19.. but I cannot seem to get this to work with Lollipop.. any help getting this rooted would be much appreciated!
[Nexus 4 Original Android Development] Mihnea1996:
We need a modified kernel to root Nexus 4. NRT will be updated with a root method, just wait.
[Nexus 4 Original Android Development] RASTAVIPER:
Just wanted to say thanks to Wug for the fast upgrade.

Rooting is working fine.

Only a small hiccup during flashing, where I got stuck after flashing new boot.img. Phone couldn't reboot and toolkit couldn't make anything else like rebooting into recovery.

I solved my problem by manually entering recovery and then flashed through Wug the system.img.

Lollipop booted after that and needed like 7 minutes during animation and another 10 minutes during upgrading 281 applications.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] stefat77:
I flashed 5.0 with Toolkit but now i'm on bootloop :(

The boot started 17 min ago... how can i do? :(

solved: i went to recovery (power button and then volume up button to enable recovery menu), factory reset + wipe cache), reboot :)
[Nexus 4 Original Android Development] justibasa:
Having the same problem. Will try this. Thanks.

Ok. I'm not able to get into the stock recovery for some reason. Phone was booting for more than half an hour. Is the phone bricked? I've used nrt on this phone dozens of times and never had this problem. Any help would be appreciated.

Nevermind, got it to recovery finally. Was worried add it's my wife's phone. Will see if this works.
[Nexus 4 Original Android Development] Aashuk Mehta:
Please report back if it works
[Nexus 4 Original Android Development] bibihub:
Hi,

I'm not sure about what you say. Is the installation of android 5.0 working whith the toolkit v1.96 ?
[Nexus 4 Original Android Development] ejchis:
I'm getting the red triangle when I try to go into recovery. How did you end up getting there?
[Nexus 4 Original Android Development] Il tiny:
I do like explained in this post and work for me:
[Nexus 4 Original Android Development] diabolik711:
Yeah man I am getting same issue just did soft-bricked/bootloop but already going past 10mintues and does not look like booting up and my recovery is gone just android guy with a red triangle.
[Nexus 4 Original Android Development] justibasa:
Yeah it works. Manually boot to recovery, factory reset, wipe cache, reboot. Bout takes about 10 minutes so be patient.

---------- Post added at 10:33 AM ---------- Previous post was at 10:31 AM ----------

When you get to the android guy red triangle thing, hold power and volume up. Should take you into recovery.
[Nexus 4 Original Android Development] ejchis:
Use the advanced utilities in the toolkit to get into TWRP. Once I did that and wiped cache and did a factory reset, I finally booted successfully. Thanks all.
[Nexus 4 Original Android Development] scamex:
Does it work. I`m in the same situation....
[Nexus 4 Original Android Development] ejchis:
Yes, I am up and running.
[Nexus 4 Original Android Development] fangthorn:
I can confirm that this option also worked for me, thanks
[Nexus 4 Original Android Development] NooBs7yL3:
Does the option to root and install the recovery work now for lollipop?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] divvykev:
Just for those with bootloop. The wipe cache thing didnt work for me. I had to lock the bootloader and unlock to get from bootloop.

Otherwise all well with TWPR and rooted via NRT. :)
[Nexus 4 Original Android Development] oxxshadow:
So i am about to flash the stock image, coming from a custom ROM using the toolkit. Does this toolkit provide Chainfrie's new root method, or would I have to root it seperatley.
[Nexus 4 Original Android Development] Roxxas049:
I've Flash to stock + unroot method to get 5.0 onto my phone and it bootloops for 10 minutes. So I installed the temporary recovery and wiped data/factory reset and it still bootloops for 10 minutes. I also tried to choose the factory image myself but it just tells me that my ADB interface isn't active.

What now?
[Nexus 4 Original Android Development] Papa Midnight:
MD5 Mismatch

Since updating to NRT 1.9.6, I've been unable to download anything using the NRT auto-downloader. On each attempt to do so, it reports a mismatch: "NRT File Download incomplete/hashcheck-mismatch." Attempting to manually load the file results in the same.

I manage to load 5.0 using a round-about method (by telling NRT it had already used the file, and manually extracting the relevant factory image), but I'm now faced with a need to obtain the modified Boot.img, Root Kernel, and TWRP Recovery, and am being faced (once more) with errors.

Any one seeing the same, or is it just me?

Edit: Managed to get around the issue by placing the boot file in the "Modified_Boot" directory, the recovery in "Recovery_Custom/TWRP", and the kernel in "Root_Files".
[Nexus 4 Original Android Development] ukjohnd:
Thanks

Same fix worked for me from Stock 4.4.4 with encrypted phone.
[Nexus 4 Original Android Development] uploder:
^I can confirm I also had the same issue. Temp booted into TWRP >wiped> rebooted. After like 10 mins it boots to lollipop. Had to do a factory reset again cause my storage was wonky. Restoring apps as we speak :) Also guys seriously, BE PATIENT! that first boot feels like forever. dont be hasty and start doing unneeded things to your phone. It took like 15-20 mins for me.
[Nexus 4 Original Android Development] WugFresh:
My overall procedure is different, but the technical aspects of the root method is the same as Chainfires.
[Nexus 4 Original Android Development] aceranto:
Works

Thanks
[Nexus 4 Original Android Development] WugFresh:
That is "pre screen" to android recovery. You have to do a button combination to bring up the menu:

How To Factory Reset Nexus Devices

Follow the "from recovery" instructions.
[Nexus 4 Original Android Development] RASTAVIPER:
Guys I have tried all functions of toolkit yesterday and everything is working.

So, you can flash stock or custom recovery, boot to bootloadet, flash whole rom or single img, root with

one click.

So, if you have problems, first make sure that you have correct android drivers, which are needed for this app to work correctly.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] aceranto:
I did it and it works, the only think is that the internal memory is only 5.7GB, I also did factory reset again but still 5.7GB ...

Any idea to solve the problem?

Thanks
[Nexus 4 Original Android Development] Slymobi:
It tells you how to fix this at the end of the process, I have always had this issue and liased with wug regarding just this.

factory wipe is the answer your seeking ;)

Regards as always
[Nexus 4 Original Android Development] BxingFetus:
Hey all, I was having the same issue updating to 5 but like some mine needed a factory reset ( do that in the utilities, temp recovery) and yeah it was like fifteen minutes to boot up! After that, my storage was wonky but a factory reset helped all. Now I'm fully rooted, recovery'd and multirom'd! By the way kit kat seems to work fine as secondary and tertiary builds. Thanks Mr fresh for your work. Will donate!
[Nexus 4 Original Android Development] Scipizoa:
hey [MENTION=3110798]WugFresh[/MENTION], Might wanna exclude quickboot for lollipop installs, it doesn't work on the lollipops root much like the older unupdated root apps don't
[Nexus 4 Original Android Development] WugFresh:
Yeah, ok. There is a way to exclude it in the options. But I could override its install on lollipop.
[Nexus 4 Original Android Development] Scipizoa:
Please don't be annoyed, it was just a suggestion. I mean us advanced users know that method i was just referring to first timers who are usually to scared to tinker with options xD it'll also cut down in the 'y aint dis working' posts lol
[Nexus 4 Original Android Development] WugFresh:
I wasn't annoyed at all. Sorry if my post sounded blunt - I get so many questions and comments, sometimes I just write responses very quickly and don't think about its "tone" :) I agree with you - and I meant what I said. I could override it, and I will. Installing an app that doesn't work is bad, especially if its the first root app on the users device. No worries. I appreciate the feedback.

Cheers,

{{ WugFresh }}
[Nexus 4 Original Android Development] w4rheart:
Just did the Flash Stock + Unroot Method using the newset 1.9.7 Version and it worked perfectly fine.

Didn't even have to do a factory reset after install, as I have 12,96 GB of internal memory (16GB).

First boot took like 10 minutes and booted straight into the OS. Running Android 5.0 now.

Just installing and recovering some Apps from the Play Store now. Will root afterwards and check back here if it all worked.

EDIT: It worked!

regards
[Nexus 4 Original Android Development] Aashuk Mehta:
Please report back if further things go well