yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] twowheeler:
Yes

Do you have the busybox app installed that comes with the rooting procedure when you use the toolkit? If yes: open it and update your busybox.
[Nexus 4 Original Android Development] howard bamber:
As good as your tool kit is does it warrant 10 places at the top of the thread??

Sent by reversed alian technology.
[Nexus 4 Original Android Development] SweetPant:
Yes the busybox I have is the one comes with rooting procedure. But it's a free version. I tried to update in app but it said I need pro version.
[Nexus 4 Original Android Development] indieguy:
Sorry if maybe this is a bit off-topic.

I have tried to unroot my Nexus 4 to go stock KRT16S and sideload the 4.4.2, ota but when I went to unistall Busybox from the Uninstall button in the application itself, it said that the uninstall process wasn't successful.

Now I am on a weird situation, where it seems I don't have root permissions (root checker doesn't terminate the check and "su" command in term. emul. remains stuck at "$ su").

If I try to flash latest SuperSu zip it doesn't show the application.

So, what should I do? I'd like to keep my apps data. The worst solution would be flashing stock 4.4 KRT16S and updating via ota and then going on with TWRP and root.

Thanks everyone will help me :)
[Nexus 4 Original Android Development] WugFresh:
FAQs - I am unlocked/rooted and OTA is not working – how do I update to the latest android version (without loosing all my data and/or root)?
[Nexus 4 Original Android Development] indieguy:
Thanks Wug.. Another question:

If I install busybox in /system/xbin folder, will it be compatible with ota updates?

Thanks and keep up the good work :thumbup:
[Nexus 4 Original Android Development] WugFresh:
It should be, just be aware that there are many other root apps that make other system mods.
[Nexus 4 Original Android Development] wwazman:
following those directions, it wants a tgz, not a zip file.
[Nexus 4 Original Android Development] WugFresh:
Two different things:

Tgz file is a full factory image package

OTA update zip is an incremental package in zip format

Re-read the instructions in that article. Tgz is for "Flash stock + unroot", zip is for Sideload.
[Nexus 4 Original Android Development] wwazman:
trying to update and quite ticked at the phone :P

I initially had to choose "force flash mode" to get it to flash KRT16S to my nexus 4, now it won't do the Nexus 4 OTA update and it won't do the sideload.

I follow the instructions and get as far as the sideload attempt, when it fails with error code 7.

"Now send the package you want to apply to the device with "adb sideload<filename>"...

Finding update package...

Opening update package...

verifying update package...

Installing update...

"verifying current system.."

"/system/build.prop"has unexpected contents

E:error in /tmp/update.zip

(status 7)

aborted

(edit) I am using the LTE Enabler if that makes any difference

edit 2

ok, got it to work with the sideload, I see, I needed to flash the stock krt16s rom back over itself to remove the lte enabler, then retry the sideload, (which worked, thank you) then reflash the LTE enabler (as LTE wouldn't work without it as usual) .. didn't lose anything yay! :D (though I did back up first)

Thanks!
[Nexus 4 Original Android Development] Zecanilis:
4.4.2 factory images:

http://xdaforums.com/showthread.php?p=48386449#post48386449

Cheers
[Nexus 4 Original Android Development] twowheeler:
Awesome! finally time to update for me
[Nexus 4 Original Android Development] SweetPant:
I cannot Flash stock + Unroot. In DOS screen, it did nothing but just display some message and let me exit.

http://puu.sh/5MvRq.png

PS. Nexus 4 with Kitkat 4.4.2
[Nexus 4 Original Android Development] WugFresh:
Where did you install the toolkit too? The default location or the root of your c drive? The toolkit needs to be in at least one folder. Otherwise I can't imagine how that happened. Can you explain how you went about doing the "Flash Stock + Unroot". As in, what buttons did you press, what options did you select, etc.

{{ WugFresh }}
[Nexus 4 Original Android Development] SweetPant:
I installed the toolkit to default directory (C:\Program Files (x86)\WugFresh Development).

I opened up NRT and selected my Nexus 4 device with Android 4.4.2 (latest). Clicked Flash Stock + Unroot option ("Device is on" checked). Clicked OK to confirm and select image file I have downloaded from Google Factory Image (occam-kot49h-factory-02e344de.tar). Verified hash check. Then the toolkit brought me to bootloader screen and that dos screen comes up. It was fast and like nothing is installed or flashed but that dos screen told me like it's finished and let me press any key to exit.
[Nexus 4 Original Android Development] WugFresh:
Can you do me a favor and try changing the file extension from tar to tgz and trying again. I thought I programmed that in but maybe its not working properly. Let me know. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] SweetPant:
Yes, it was the cause. I changed the extension to .tgz and it installed successfully. Thank!
[Nexus 4 Original Android Development] WugFresh:
Thank you for the feedback, I will be sure to fix that. Cheers.
[Nexus 4 Original Android Development] goattee:
Rooting should be this easy on every platform

A big thanks for your tool! I got a Nexus 4 on the last day of availability as Google was clearing 'em out. I've previously rooted Samsung and ASUS devices following listed steps. But the experience using your tool to root and install TWRP was a real pleasure.

After successfully rooting, I even made the dumb mistake in SuperSU of "cleaning up." This unrooted my phone just minutes after rooting it. No problem. All I had to do was redo the steps in your tool and I was back where I wanted to be.

You made my Nexus experience very satisfying. Due to both the simplicity of the Nexus unlock procedure and your tool, I will give Nexus devices my first consideration whenever I am in the market again.
[Nexus 4 Original Android Development] xX NeOnShK Xx:
Rooted Stock Just Now

Just rooted 4.4.2 build KOT49H using this awesome software!!! :good:
[Nexus 4 Original Android Development] daddlefan:
[MENTION=3110798]WugFresh[/MENTION]

Hi, I am getting a bit mixed up. Which file-type do I have to put in your folders subdirectory Wugfresh\data\factory_images?

The complete factory-file as it comes from google eg.........tgz , or partially decompressed eg .......tar, or the decompressed folder which has within the flash-all.xxx (bat or sh) and the occam..zip, or the six images by fully decompressing the .zip as well?

Or does NRT works with just all file-types inside the factory_image folder!

Thanks for your time daddlefan
[Nexus 4 Original Android Development] WugFresh:
"Flash Stock + Unroot" > Other/Browse, I downloaded myself.

Then give the program the tgz.

Don't try manually extracting things into toolkit sub directories. Let the program manage files.

Cheers,

{{ WugFresh }}
[Nexus 4 Original Android Development] daddlefan:
Thanks for the quick answer and the super work you do!

Learned a lot by reading all of your faq´s as well!

PS. I thought of a...tgz was rather called a container than a file. This was confusing me.Just a little.
[Nexus 4 Original Android Development] WugFresh:
Thanks for your feedback. Yes, that is technically a more appropriate word. I guess I could change that. Or at least refer to it as a "package". I just need to make sure I use language that is familiar/recognizable to all end users.

{{ WugFresh }}
[Nexus 4 Original Android Development] daddlefan:
Fully understood. Even before. Just came to thinking precisely, trying to prevent mistakes the "logic array" inside my brains gave me a little HiccUp !

But indeed it might be misunderstood the other way round too! So "tgz-package " will be fine, I think.

Cheers
[Nexus 4 Original Android Development] SweetPant:
I could not create a full backup (nandroid). After I have chosen which partition to backup (which I selected all except the last two items which are disabled) and the process brings me to "Boot TWRP Temporarily". My phone booted into TWRP but no backup process took place. Here was what displayed on toolkit.

PS: Nexus 4, Rastakat ROM (Kitkat 4.4.2). Tested ADB and fastboot in toolkit and passed.
[Nexus 4 Original Android Development] WugFresh:
What build do you have selected in the toolkit as your device?
[Nexus 4 Original Android Development] SweetPant:
Nexus 4, CUSTOM ROM - KK
[Nexus 4 Original Android Development] WugFresh:
Ok, Custom ROM selection assumes a modified boot.img. This might not be the case for your ROM - try switching the build in the toolkit to the latest build available or the one that most closely matches the ROM.
[Nexus 4 Original Android Development] Atomsk:
I just cant get to pass the full drive test with my nexus 4 (4.2.2 non rooted). After doing all the steps like 4 or 5 times just like they are described in the step tips, my nexus just cant be detected at the full drive test.

Dont know what to do anymore :/
[Nexus 4 Original Android Development] WugFresh:
.. Maybe try an alternate driver solution.

FAQs - I installed the drivers but it still says ADB/Fastboot device not found! What should I do?
[Nexus 4 Original Android Development] SKYLINESSUCK:
Stock OTA'd to 4.4.2. I had previously unlocked, rooted, and flashed TWRP on the same computer on 4.4. Updated to 1.7.9 of the toolkit as well. All the drivers work, and the phone is recognized. I am trying to root and flash TWRP again. It flashes TWRP, but SuperSU never appears in the app list and busybox says no root. I've tried it a bunch of times. I've even installed the rootkit on another computer and tried it from there. No dice. No idea why root won't stick. No errors and the root kit reports everything went smoothly, but no root. Any ideas?

Nevermind. Dropped my phone this morning and shattered the screen :( Oh well, time to order a Nexus 5 :)
[Nexus 4 Original Android Development] scotyard:
thanks wug
[Nexus 4 Original Android Development] :
has anyone use this to flash back to stock rom before? did it work?
[Nexus 4 Original Android Development] RaphaDroid:
Obviously... It works.

Sent from my
[Nexus 4 Original Android Development] spacedkadet:
Thanks!

I have been using this app for a while now, while I can do the commands and everything manually this app makes it much quicker and saves me time which is always good!

Thank you Wug!
[Nexus 4 Original Android Development] chrisrozon:
No, there's 134 pages of this thread because it doesn't work.
[Nexus 4 Original Android Development] Persechini:
Hi, is there any news about compatibility with 4.4.2? the factory images have been out for a while now
[Nexus 4 Original Android Development] WugFresh:
Its been compatible with 4.4.2 since less that 10 hours after they released those images..

Initiate a toolkit update and you should see it listed.

Report back if it doesn't.
[Nexus 4 Original Android Development] WugFresh:
Lol.

{{ WugFresh}}
[Nexus 4 Original Android Development] Persechini:
Hmm, it didn`t update either automatically or manually, I had to reinstall to get 4.4.2 to show up
[Nexus 4 Original Android Development] SweetPant:
In case that I have to change new ROM and wipe data (using TWRP), what backup option is appropriate for backing up apps and data so that I don't have to reconfigure each app settings again.
[Nexus 4 Original Android Development] int abacus:
you can use titanium backup to backup your user apps and data to your internal sdcard. when you wipe data, you won't delete information stored in the internal sdcard. flash your new rom and restore all apps using the app that can be found in the playstore.
[Nexus 4 Original Android Development] SweetPant:
After flashing a new rom and booted, should I log into Google account and let it finish syncing first or I should restore TiBu backup first. Thank!
[Nexus 4 Original Android Development] Persechini:
You can set it up as soon as you like in any order, the only thing I recommend is, if your contacts are stored in your google account (i.e. gmail contacts) don't restore contacts with any backup app, there is a chance of duplicating the contacts. Gmail has a rollback feature, so if this happens you can just roll back to 1 hour earlier. If you store your contacts locally on the phone, then no need to worry
[Nexus 4 Original Android Development] SonicYan:
Hey guys, still kinda new to this whole rooting thing. This is my second root, did it manually on a Nexus One before but went with the root kit on a Nexus 4 this time. Anyway, need some help, I used the root kit and was able to successfully update to 4.4. I'm trying to flash 4.4.2 but can't seem to be able to since I always get the android with the red exclamation point. Tried googling and searching on the forums but can't seem to find the answer. Any help would be appreciated. Thanks!

Edit: Nevermind, found the TWRP manager on the play store. Finally on 4.4.2 stock and rooted! Now just need to flash radios to get that sweet T-Mo LTE.
[Nexus 4 Original Android Development] RealSlimShadyMC:
Cheers [MENTION=3110798]WugFresh[/MENTION] for implementing the auto device detection :D I'll take it you got my hangout message :)
[Nexus 4 Original Android Development] WugFresh:
Yes. If that was you, props for a great suggestion. That feature was fun to code and is very useful. Makes it way easier to switch between devices.

I also decided to implement it with no additional message boxes or anything, so its just a one click operation. And if the users build is unknown to the toolkit but it recognizes the device - it automatically sets it to the suggested "Any build" mode.

I am happy with the way that feature turned out.

Thanks again for the suggestion. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] RealSlimShadyMC:
No problem :) it will help greatly if you have multiple devices, and help avoid derp-flashing stock stuff and causing bricks like I managed to do.
[Nexus 4 Original Android Development] gigsaw:
One question: what happens if I OEM lock the bootloader while I have a custom recovery and custom rom in it? Will it brick the device?
[Nexus 4 Original Android Development] RealSlimShadyMC:
I think so, because then it prevents any unsigned recoveries to work
[Nexus 4 Original Android Development] WugFresh:
No. It will still work fine. In fact you could still flash custom ROMs. You would just have to unlock again (which wipes data) if you needed to flash stock or any img file (like a new TWRP recovery etc).
[Nexus 4 Original Android Development] WugFresh:
As an additional note to my response :

If you are trying to relock a Nexus while remaining rooted then you may prefer to use this app: https://play.google.com/store/apps/details?id=net.segv11.bootunlocker

Will allow you to lock/unlock a device that is already rooted without data wiping - a great solution for managing your bootloader once you have already gained root access.
[Nexus 4 Original Android Development] WugFresh:
Duplicate post glitch. Deleted.

{{ WugFresh }}
[Nexus 4 Original Android Development] Slymobi:
Happy new year Wug.

we are all just evolved organism's
[Nexus 4 Original Android Development] krjadejesus:
Yup, also having this thing. :(
[Nexus 4 Original Android Development] caveleira:
Hi, I am new at Nexus 4 so I am getting informed to root. I think this kit is the easiest way. I understand this kit helps me also to backup all my data before rooting, am I right? My first fear is lossing APPs data in the process.

Last question, what means to build in these instructions from the blog?
[Nexus 4 Original Android Development] daddlefan:
Yes, you can backup, doing a nandroid, and you can select different options including separate backups for data/media, SMS, APNs, Contacts etc. Just check in the Start-screen Backup&Restore, and it will open a second window to check your choices.

Build means Android-Version you use, like Android 4.4.2 KOT49H!

daddlefan
[Nexus 4 Original Android Development] drharisis:
Please help..I have stock 4.2.2 and after unlocking I cannot root it...it sayes nrt download file mismatch..What I have to do??????pleasee
[Nexus 4 Original Android Development] daddlefan:
You have to redownload it!
[Nexus 4 Original Android Development] ken_alpha24:
All files downloaded and properly installed adb drivers. I then pressed the button to make sure all is okay but it says that ADB driver is not found? How do I fix this?
[Nexus 4 Original Android Development] daddlefan:
You have to install drivers twice. One for ADB-mode, second for Bootloader-mode = fastboot-mode!

Check in Windows with device-manager if your phone is correctly identified as "Android Phone" > Android Composite ADB Interface, then keep device-manager on screen and reboot into bootloader, and check if you find "Android Phone" > Android Bootloader Interface! If not, there should be an entry like" Unknown Device" with yellow exclamation mark or the wrong sub entry for Android phone. Then install or correct the driver whilst in

bootloader mode.

Or use in wugfresh´s driver-Installation an other driver solution. e.g. if you used Driver Solution 1 try Driver-Solution 3, or vice versa. You can always control progression in the opened device-manager.

Or use driver solution 4 "Raw Drivers", as detailed above.

daddlefan
[Nexus 4 Original Android Development] fish72:
Hi !

First of all thank you for this AMAZING piece of utility. I have a nexus 4 E960 16gb, And it saved my butt while i was in CWM after formatting my system without being able to flash a stock rom....

All is well now and I did a full backup to my PC, But in the end I got this error :

Line 13623 (File "C:\Program Files\WugFresh Development\NexusRootToolkit.exe"):

Error : Subscript used with non-Array variable.

Any ideas why is that ?

p.s. I couldn't choose to also backup the secure android folder. Why is that ?

Thank you !
[Nexus 4 Original Android Development] ken_alpha24:
By bootloader mode you mean recovery mode?
[Nexus 4 Original Android Development] daddlefan:
Hi, read my posts first line! It all stands in there!

Don´t understand your question!

PS.: Into bootloader-mode you get by pressing and holding "Volume down" and pressing "Power on" for about three seconds,

To get into recovery you navigate in the bootloader with the volume keys twice up or down, until you see "Recovery mode", confirm by pressing power!

Then the phone reboots into stock-recovery prescreen-mode with a lying robot with open belly and a red exclamation mark, now pressing and holding power-button and shortly pressing Volume-Up brings you into recovery-menu!

With custom-recovery it boots directly into it´s own recovery-menu!
[Nexus 4 Original Android Development] ken_alpha24:
Sorry but I don't know how to go to fastboot mode. Any tips on how I can go to that? Pls take it easy on me bud. 1st time Nexus user here. If this was samsung then i wouldn't be asking such noob questions lol

Ohhh so that's it! Thanks!
[Nexus 4 Original Android Development] daddlefan:
See postscriptum of my former post!

You should do some more reading, before asking "noob"-questions, especially being a "senior member"! :rolleyes:
[Nexus 4 Original Android Development] ken_alpha24:
Well I don't want to argue with you. But I want to thank you.
[Nexus 4 Original Android Development] daddlefan:
I am not arguing, but stating. Thanks accepted anyway!

But, I do think before I ask for help and take time from other helpful people, I myself first have to invest some time and get to know the basics for my device, informations which are easily to be obtained: Manuals, Googlé´s or LG´s website, reading of faqs concerned with my device, etc., and I will learn a lot in short time, having consecutively the advantage of knowing what I am doing and/or understanding it. And, important, being able to ask the right questions, without making it a puzzle for the guiding user!

Last week in Germany a user asked seriously how to accept a phonecall on his Nexus4! Ridiculous, isn´t it? daddlefan
[Nexus 4 Original Android Development] ken_alpha24:
LOL. That's exactly why I am here asking. I tried for like 3hrs by myself and no luck.
[Nexus 4 Original Android Development] daddlefan:
Lots of lol ! :cyclops:! :laugh:
[Nexus 4 Original Android Development] SikeMo:
I hope this hasn't already been answered, but I just installed 4.4.2 and my 16GB N4 just dropped to 5GB storage. Anyone else having this problem?
[Nexus 4 Original Android Development] ken_alpha24:
Reflash
[Nexus 4 Original Android Development] daddlefan:
Hi,

check this thread: http://xdaforums.com/showthread.php?t=2033692&page=5
[Nexus 4 Original Android Development] ken_alpha24:
A little OT. Anyone knows where I can get CWM SuperSU 1.89 flashable? And if I decided to root my phone using the adb way, how can I do it? Ty
[Nexus 4 Original Android Development] daddlefan:
Google or use search function (your favorite ;) ) for "UPDATE-SuperSU-v1.89.zip".

What do you mean by "routing the adb-way"???" you always do it with flashing zip in custom-recovery (which uses the "adb-way"), after flashing(or booting) recovery in fastboot

fastboot flash recovery namerecovery.img

Or: Install the App SuperSU while booted into android, boot temporarily a custom recovery:

fastboot boot name-of-recovery.img

, install SuperSU-zip in recovery, reboot and in System start the App ! Evtl. it says "binaries need to be updated", so say yes, if it asks to do it "Normal or in CWM/TWRP", choose normal. That´s it!

Edit: By the way, you are in the Wugfresh´s thread, why don´t you use his toolkit, it is doing these sort of things for you !?
[Nexus 4 Original Android Development] musa47:
Has anyone come up with a solution for Nexus 4 not being detected as an mtp or mass storage mode on Windows 8.1? I've tried the tool kit, but my laptop does not detect and adb devices.
[Nexus 4 Original Android Development] Persechini:
The nexus 4 doesn't have a mass storage mode, but as for MTP, the problem is likely that you ended up setting adb drivers for the device when it was in mtp. I'd try these steps to fix

1. Connect the phone via usb with adb on and mtp/ptp off

2. Go to device manager and delete the device from the list

3. Repeat 1 and 2 but with adb on/mtp on and adb off/mtp off (this should clear all assigned drivers)

4. Connect the device again with adb off and mtp on, and let windows do it's thing, mto should work from this point on

5. Connect the device with adb on and mtp off

6. Set the device driver to the adb driver that you were using

This should make your device show up as mtp when adb is off and as an adb device when adb is on
[Nexus 4 Original Android Development] musa47:
I did that already, but now my phone isn't showing the option for mtp/camera mode selection in notification drawer at all since i disabled them both once. What is the way to bring that back?

Upon connection of device to laptop, device manager fails to recognize my phone now. It is categorized in other devices with a question mark along with device name i.e. Nexus 4. Strange though.
[Nexus 4 Original Android Development] Persechini:
just go to settings > storage > click the 3dot menu > usb connection, and you will reach the same screen where the usb notification would take you

As for not recognizing the device, that's where you come in. Windows will only auto detect the phone in mtp mode, for adb and fastboot mode you have to set them yourself following the instructions on the toolkit

The messup happens because turning on adb makes windows think it's another device, so when you finally change the drivers, you can accidentally replace the association with the mtp driver, instead of adding the association with adb driver