yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] Lord-D:
Hey guys,

after my favorite tool "N-Cry" is no longer supplied, I switched on Wug's. A very nice tool and self-explanatory. But I've got a problem.

I have my N4 completely displaced to factory image (stock, no root, and boot loader). With Wug's I unlocked, rooted and TWRP. So far so good.

Have a wipe in recovery and made ​​"system" formate.

In Wug's now I wanted to install a Rom, Gapps and SuperSU in one go.

It was a message that the data is pushed onto the phone, the phone has rebooted and it was "wating for device" and that was all.

On my N4, a black screen.I went to recovery and and installed independently through ADB sideload via N-Cry the ZIPs and got no problems. Why does this happen with Wug's? Has Wug's a problem with the fact that no OS is present through the formatting?
[Nexus 4 Original Android Development] WugFresh:
Try enabling *alternate fastboot syntax* in the main settings menu.
[Nexus 4 Original Android Development] 123egg:
Do we need a new modified boot.img for KRT16S? Or we can still use the KRT16O one
[Nexus 4 Original Android Development] WugFresh:
I making them now, but there is a 98% probability that the O will work. The worst that happens is you bootloop when using it.. Then you force power down.. And nothing is different.

Using 'Any Build' will work no matter what.
[Nexus 4 Original Android Development] RASTAVIPER:
I wanted to describe my problem to see if I made something wrong or it its a matter of the toolkit.

With rooted stock 4.3 and latest twrp, first I unrooted and then tried to flash one by one all img of 4.4

Problem was that the phone couldn't never boot in fastboot for every flash and I had to do it manually, by poweroff and then starting it with the 3 button combo.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
I don't understand your question. It sounds like you didn't use the toolkit at all and did it manually - then neglected to issue the fastboot reboot-bootloader cmd in between flashing each img.

If you want to use the toolkit to flash each IMG individually just enable force flash mode in the toolkits options menu and use the flash stock + unroot button.

I am honestly not sure what you are doing based on your description.

If you want to do it manually, then find a good guide or take a look at the flash-all.bat included in the factory packs or the flashstock.bat I made in this toolkit.

Cheers

{{ WugFresh }}
[Nexus 4 Original Android Development] RASTAVIPER:
Ok maybe my description was not right.

I use your toolkit since I got my N4 for flashing all roms, so all needed drivers etc are working and are installed normally.

What I probably didn't do right was not activating the force flash option.

But I flashed everything after pressing each item, like bootloader, radio etc.

Only problem was that the phone wasn't rebooting to fastboot automatically, after every flash.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
Oh... Now I understand what you did. You are making everything way more complicated then you need to.

The "Force Flash" option is just for using the "Flash Stock + Unroot" button, in the "Main Interface", which AUTOMATES the entire process of individually flashing each image file to their corresponding partition. You only press the one button "Flash Stock + Unroot"

What you did, was use the "Advanced Utilities" Flash (Permanent) buttons for individually flashing files (which force flash has nothing to do with)

Those buttons do exactly that (flash items to partitions), nothing more. They make no assumption about what the user wants to do next (like auto-reboot into bootloader), they just flash the file you tell it to flash; Simply issuing the fastboot flash command. They are explicit operations.

If you want to use Advanced Utilities to flash items that way, then you can simply use the "Quick Tools" Fasboot "Reboot Bootloader" button (which is in the same Advanced Utilities interface) anytime you want it to do that.

In the future, just use "Flash Stock + Unroot".. no need to use those individual buttons in advanced utilities unless you have an explicit reason to.. like upgrading to a new TWRP recovery, or flashing a baseband file.

I hope that clarifies things.

{{ WugFresh }}
[Nexus 4 Original Android Development] RASTAVIPER:
By using flash stock, does it flash whole image at once or again you can select which parts to flash?

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
It flashes the whole image.

{{ WugFresh }}
[Nexus 4 Original Android Development] RASTAVIPER:
Then this is not what I want.

Thanks anyway for your help.

Unleashed by my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
You can do exactly what you were doing before... And then hit the reboot bootloader button on the same interface...

You don't have to manually power down and use the three buttons.

I am not sure how else to explain it or what you are not understanding.
[Nexus 4 Original Android Development] DannyBiker:
Sooo...is there a way to flash the newest image without wiping ? I'm having heavy drivers issues with Windows 8.1 (basically, detection on the storage is hazardous and some copy actions won't work, most notably Titanium Back-Up files, which is problematic in case of a full wipe) and a full wipe means that I have think about workarounds (dropbox syncing), etc.

Thank you for this amazing software !
[Nexus 4 Original Android Development] SweetPant:
Can I now use this toolkit to flash KRT16S to my Nexus 4?

If yes, which option should I use "Back to Stock", "Flash Image to Boot", or "Flash Image to System"?

Thanks :)
[Nexus 4 Original Android Development] anonymous724:
Can I flash stock firmwares with no unlocked boot loader?
[Nexus 4 Original Android Development] TheeWolf:
You use flash stock & unroot.

A somewhat strange question. If your bootloader is locked, I assume you still have stock. In that case, you can factory reset from the settings in your phone.

Unfortunately, I don't know the answer to your question. I would try it for myself if I were you, as it is really really hard to brick Nexus devices.
[Nexus 4 Original Android Development] Kees-Jan:
KRT16S image

New factory image(s) on https://developers.google.com/android/nexus/images?hl=en-EN

ow, old news, I guess?
[Nexus 4 Original Android Development] miodrag7:
how to install cwm recovery insted of twrp?
[Nexus 4 Original Android Development] WugFresh:
You can't flash the factory packs but you can sideload the OTA update.zip; use the toolkits advanced utilities sideload update button.

Just Google for "OTA zip KRT16S"

This is just like getting the OTA. If it works it won't wipe anything and you will be updated.
[Nexus 4 Original Android Development] WugFresh:
Look in the toolkits options menu for setting the toolkit to use Cwm when it can (it will still use twrp temporarily for some processes). Or use advanced utilities flash recovery button.
[Nexus 4 Original Android Development] Comporellon:
[MENTION=3110798]WugFresh[/MENTION]

Hi!

Thank you for your great toolkit, when I got my N4 i was using it. But as you say it's not possible to flash the stock pack without wipe. It's not true. 2 days ago I installed the 16O and yesterday the 16S without wipe. Ok, not with your tool, but on my Ubuntu. I just removed the "-w" operator from the install script. And voila I have KitKat without wipe.

So you can implement it to your toolkit if you want to! :)

Have a nice day :)
[Nexus 4 Original Android Development] bobdarkside:
I was flashing stock 4.4 through the toolkit when I kicked the usb cord out of my phone. Now when I try to turn it nothing happens. All button combinations result in a flashing red light when plugged in, when not plugged in there is no light. I was at full battery when I started and had just started the flashing process. I tried to reflash just to see what happens and it cant access fastboot. My pc recognizes a device is plugged in but that is it. Any searches I've done for this issue haven't helped, so if anyone can help it would be greatly appreciated. Thanks
[Nexus 4 Original Android Development] Edvin73:
Have you choose the "bricked or bootloop" option with "flash stock and unroot" and when you cannot access fastboot just to click "okay" again? Force flash?
[Nexus 4 Original Android Development] twowheeler:
Hey wug, did you succeeded in automating the process of updating at your end?

I think that I will flash krt16s today.
[Nexus 4 Original Android Development] WugFresh:
Yes. Its been fun. I created code that downloads new factory packs, verifies their integrity, analyzes their naming convention, intelligently recognizes the new build information, extracts the package, makes all the modifications, recompiles the new mod boot.img's, renames the other stock files to the NRT naming convention, uploads everything to the server, and then the coolest part - updates my other script I use for generating the masterlists and runs it. My code now writes code :D

Now if only I could figure out how to make it make me breakfast :)

I am checking everything over now once more, but I am guessing that I will have the masterlists updated within 30 minutes or so.

In the future all I should have to do is tell my new script the new factory pack name and corresponding android version and it should do the rest. :)

I am looking into ways now to stay more on top of the latest TWRP, CWM, and SuperSU versions as well.. So maybe I can get notified and then automate the updating of that as well.

Stay tuned.

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
I totally agree about your second suggestion. I definitely overlooked that. I only considered the scenario when the user first sets an alternate recovery, not when they need to change which alternate recovery they want to use. That process you described to change it with my toolkit is totally annoying. I agree. Thank you for pointing that out, I will make sure to change that in the upcoming release.

Regarding your first suggestion. I am not sure if I agree, or what the benefit is. Can you explain your reasoning a bit more, or what exactly you want visible in that full screen version? The reason I ask is because the toolkit has lots of sub GUI's, like advanced utilities, the backup interface, the restore interface, flash manager interface, file permissions interface, and more. To me it makes more sense to have those interfaces have fixed GUI dimensions, and allow the end user to use their screen real-estate to position all those GUI's wherever they want so they have access to everything. Are you suggesting having a full screen GUI with both the basic features and advanced utilities in one window, and then still having the other sub GUI's come up separately? If so, even in that case.. I actually still disagree with that idea, because I like having those feature sets separated - I like the simplicity and limited button set of the basic features GUI, as not to intimidate new users with lots of buttons. Then when they accomplish the basic task they would like to perform, they can explore the advanced features GUI.

Or.. are you just suggesting that every GUI have the ability to maximize to full screen, as in.. to have all the buttons and everything resize, change position/dimensions, etc..? If that is your suggestion, I suppose that is possible.. just not sure of the benefit - it also is a bit of pain to program that. Can you elaborate more on this idea, and why you think it would be nice?

Thank you for your suggestions. I really appreciate your feedback. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] iH8ra!n:
Thanks for your fast feedback! :)

Sorry for making misunderstandings! Now strict and easy: I only want to be able to have this Toolkit on the whole screen like any other program too. So that there's a button for maximizing respectivelly minimizing the program. :)

Cheers! :)
[Nexus 4 Original Android Development] alex13809:
Does this tool also allow me to flash a CM10.1 onto my device or is this only to rooting/unlocking?
[Nexus 4 Original Android Development] lazer155:
Can I use this toolkit to keep the stock ROM but install a different kernel?
[Nexus 4 Original Android Development] HuckFinn:
I just wanted to post a huge thank you. I am not unfamiliar with doing this manually, but worrying about a typo messing something up I started looking for an automated solution when I got my Nexus 4. I've seen lots of positive feedback and great support in this thread so I gave it a shot. It worked easily without any real problems. The only strange thing was that when I used the tool to backup my applications & data before unlocking/rooting and then restore after, some applications were not restored. No big deal to me.
[Nexus 4 Original Android Development] FirelordAzula:
They ought to sticky this thread instead of the other toolkit. The creator of the other one wants money for the next update. Not a bad thing I suppose, but it is a bit skewed as it goes against the "donation" part the toolkit originally had.
[Nexus 4 Original Android Development] WugFresh:
v1.6.2 is up in the OP and the update package is also live via Help > About... in the toolkit. Enjoy! ^_^

updated changelog coming shortly...

{{ WugFresh }}
[Nexus 4 Original Android Development] Stea1thmode:
Fair say, it's probably the fact that he is a senior mod;)

Thank's for the update Wug:cool:
[Nexus 4 Original Android Development] SreePillai:
for me it gets stuck on 'installing Pdanet to you phone' debugging is on not sure what to do..also i accidently installed the the drivers from june fabrics...all help appreciated

P:S this is for my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
There are three driver solutions for a reason. If one fails, you can try another one. Go in control panel on your comp (add/remove programs) and uninstall the june fabrics. Then start back at step one in the driver guide, uninstall everything.. reboot etc. And then try another driver solution, like #3. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] SreePillai:
cheers will give that a go now
[Nexus 4 Original Android Development] muddyblues6392:
when im trying to download the factory images to flash stock and unroot (im on the newest version of he toolkit) when it hashchecks it, it says mismatch and it wont download and extract image (for the 4.2.0 and 4.2.1 image) what do i do to fix this???? thanks anyone
[Nexus 4 Original Android Development] WugFresh:
Use other/browse in the flash stock interface and download the package through your browser. The files are hosted on my site here:

http://goo.im/devs/WugFresh/stock/occam

{{ WugFresh }}
[Nexus 4 Original Android Development] muddyblues6392:
Thanks!!! I'm just curious...it didnt do that two days ago....any reason why its doing that now?
[Nexus 4 Original Android Development] WugFresh:
I am looking into it now. I think the issue is server side. Maybe high traffic to the files. I am not sure yet. I will let you know soon.

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
Restart the toolkit, and/or initiate a toolkit update, then try again now.

{{ WugFresh }}
[Nexus 4 Original Android Development] muddyblues6392:
seems to be working. its get past 1% now and seems to download correctly. cant try it out. did what you said and already flashed the image manually downloading it and set up everything. thanks again for getting on this so fast. really is apreciated! donations coming your way for sure. and not no buy yourself a beer with this 2 dollar donation but a nice donation lol:victory:
[Nexus 4 Original Android Development] ugene1980:
Thanks for this great tool Wug
[Nexus 4 Original Android Development] redeuxx:
This tool works great. I just had to figure out I needed to disable driver signing to install the drivers and everything else went smoothly.

Thanks!
[Nexus 4 Original Android Development] BattleBear3000:
Thank you for the great toolkit.

Till now I have no problems but I have a question:

Should I first restore my backup and then root my device or

should I first root my device and after that restore the backup?

Thanks

Edit:

At the Backup should it include system apps + data or shared data or both? My goal is to unlock my phone, root it and get it to the state it had before unlock, root and custom recovery. What's the right selection for this?
[Nexus 4 Original Android Development] Kushalized:
Hi i am facing a soft brick on nexus 4, while i was flashing kitkat krt160 .

I unlocked the bootloader. And then i forgot to turn onn the usb debugging and flash the package via 'flash-all' command in cmd. While flashing the krt160 radio got flash and after that there was no progress. Now the device doesn't start into 4.3 .

Please help me to fix it..
[Nexus 4 Original Android Development] yanleites:
Hi Wugfresh !

The new version of Nexus 4 is krt16s and it doesn't appear in you program.

Are you going to updat eit ?

Thank You !
[Nexus 4 Original Android Development] WugFresh:
Please don't quote the full OP.

FAQs - Help!!! My Nexus device is totally messed up. It has ______ problem. What do I do??

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
Before posting its a good habit to at least skim the last three posts before yours. ;)

I will usually try and get new builds listed within 48 hours.. And now even faster with the new system I coded.

{{ WugFresh }}
[Nexus 4 Original Android Development] joemcua:
Just wanna say thank you [MENTION=3110798]WugFresh[/MENTION] for this amazing toolkit. ?
[Nexus 4 Original Android Development] twowheeler:
This is just awesome! A lot of work that pays off later on.

Will wait till it's updated then, but take your time. Thanks again, amazing toolkit!
[Nexus 4 Original Android Development] WugFresh:
Thank you! =D I agree entirely, I much rather spend a lot of time at once writing code to automate tasks, then do those task manually over a duration of time. And it is even better when it works! =p Just ran the script and it went smoothly, all masterlist updated --> Toolkit now supports the new KRT16S builds. Enjoy ^_^

>> you can initiate a toolkit update with the hotkey Ctrl+u

{{ WugFresh }}
[Nexus 4 Original Android Development] evolution1g:
Update.

Just curious, when will the update go live? I have never used this toolkit or any other toolkit for that matter. My Nexus 4 is stock since the time I bought it. I have downloaded the factory image for 4.4 for Nexus 4. and I'm waiting for your update now. After that I'll try to flash 4.4 on my Nexus 4 via your toolkit. Can you just tell me a short procedure to do that? I tried searching in the last few pages, but couldn't find anything. Thank you so much for this amazing toolkit.
[Nexus 4 Original Android Development] WugFresh:
The toolkit version doesn't need to get updated for me to add support for new builds. Its still v1.7.8

If you have auto updates enabled which are by default. Just start the toolkit. The toolkit will grab the latest masterlists and the new KRT26s builds will be listed. Or use the hotkey Ctrl+u in the toolkit to initiate an update.

Edit:

to answer your question:

1. drivers

3. backup

2. unlock

3. flash stock

There are lots of videos on my site and guides for doing things with this toolkit all over the web.

{{ WugFresh }}
[Nexus 4 Original Android Development] evolution1g:
Thank you so much, man. It worked like charm! Thanks again.
[Nexus 4 Original Android Development] mistoffelees:
The KRT26s updates are not downloading properly. They get only to 1% then show complete, but there show a mismatch.
[Nexus 4 Original Android Development] WugFresh:
which file specifically for you. You can also download anything here: https://www.androidfilehost.com/?a=show&w=files&flid=8744

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
Give me 2 minutes. Reuploading everything. I think it got messed up on AFH.
[Nexus 4 Original Android Development] bobdarkside:
Yes and yes, it just says checking fastboot status, fastboot device not found and I've also tried flashing recoveries and get the error message adb device not found. Also my device gets recognized as QHSUSB_DLOAD(Qualcom High Speed USB Download Mode) in the device manager
[Nexus 4 Original Android Development] twowheeler:
Making a backup of the sd card now with the toolkit. (since moving it with windows explorer doesn't work). Works fantastic!

But one idea (if that's even possible). Selecting which folder you want to update from the sd-card.

For example: I'm now making a backup of the entire sd-card, but i'd normally only backup folders like whatsapp, smsbackup&restore, download, dcim etc.

Is this possible or would it create more problems than it solves?
[Nexus 4 Original Android Development] mistoffelees:
Thanks, I was able to download them from AFH. Was trying to grab the modded boot images for DEB and MAKO.
[Nexus 4 Original Android Development] Slymobi:
[MENTION=3110798]WugFresh[/MENTION]

Hi.

yesterday I used the toolkit to flash KRT16s factory image. I manually downloaded the zip from Google official and pointed the kit at this image via the " other " option I did not have force flash turned on but was already on latest boot and radio.

everything went smooth and my device for the 1st time also kept its full storage space ;)

The only thing that's occurred since the flash is no accept or reject toggle on incoming calls. a factory reset resolved this so I doubt it has anything to do with the NRT flashing.

Just wanted to let you know about the storage issue not occurring this time.

Sent from my Nexus 4
[Nexus 4 Original Android Development] WugFresh:
My bad about this. I will have it corrected in about 10 minutes. Tiny mistake in my update automator messed it up.

I will post shortly back when the new lists are live and its working properly again.

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
Everything is fixed. Issue another toolkit update.

{{ WugFresh }}
[Nexus 4 Original Android Development] mistoffelees:
Thanks again, both updates worked now. Great job and fantastic response time on the issue. Donation on the way.
[Nexus 4 Original Android Development] joemcua:
Thank you so much.. i'll be rooting mine later. Yesterday I sideloaded the 4.4 update but didnt root my phone yet because I cant find the new build number... :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] moneyolo:
I always get a black screen when I try to make a nandroid backup in NRT using TWRP latest version. - 2.6.3.3 any solution??
[Nexus 4 Original Android Development] int abacus:
just make a nandroid through TWRP without NRT... the backup will be saved in your device.
[Nexus 4 Original Android Development] moneyolo:
I know but it takes some space up in there. It would be great if it can get saved on computer and then I can delete it on my phone.
[Nexus 4 Original Android Development] WugFresh:
Enable alternate fastboot syntax in the toolkits main options menu.
[Nexus 4 Original Android Development] twowheeler:
Got something to report.

I didn't got the option to select krt16s after a new install. The latest build that than shows op is krt16o.

Krt16s does show up in the main menu after that
[Nexus 4 Original Android Development] WugFresh:
Yeah. I actually just realized this yesterday. I need to change it so that it initiates an update check on first run before it asks you to select your model the first time. I will integrate that change into v1.7.9.
[Nexus 4 Original Android Development] apurvdate:
my nexus is not rooted...i took backup when device was still on 4.3

i updated the device today by sideloading KRT16S zip via adb..

now i want to restore backup .ab file.. NRT detects device says rebooting & restoring data..

actually nothing happens..device is not rebooted & no prompts appear on device..

i guess restore is going to emulator..

any solution? or do i need restore everything normally?
[Nexus 4 Original Android Development] WugFresh:
You have an emulator running?? You need to close that first.