yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] zhukoz:
Cheers spider623, much appreciated...that was my line of thinking thanks for the confirmation. I did end up flashing Slimkat which I like but having some wifi issues. Think I'll hang on for the LS rebase.
[Nexus 4 Original Android Development] russells.android:
So... is it possible to root nexus 4 with latest 5.1 update with this? thanks in advance.
[Nexus 4 Original Android Development] WugFresh:
Yes. Use "Any build" for now.

I really wish google would push their ota's and factory image releases at the same time.
[Nexus 4 Original Android Development] zephyr79:
Couldn't agree with you more:rolleyes:

Sent from my Nexus 4
[Nexus 4 Original Android Development] coffeecore:
Hey man [MENTION=3110798]WugFresh[/MENTION]

Could you add 5.0.1 and 5.1 to your toolkit. I know it is working but you know.

Probs for your work, thanks for automating the process for me :D

:victory:
[Nexus 4 Original Android Development] WugFresh:
Added :)
[Nexus 4 Original Android Development] lion7718:
Upgraded to 5.1 today without any problems...thanks Wug :good:
[Nexus 4 Original Android Development] salxtai:
stuck on "extracting factory image package"

I downloaded NRT tonight to get my Nexus 4 from 5.0 to 5.1 as the OTA that my phone downloads keeps failing.

My phone setup is: unlocked bootloader, rooted, stock ROM, stock recovery, no other additions/modifications.

I have the drivers etc all installed and verified to be still working via the NRT "step 3" test.

I hit the "flash and unroot" button, and ticked "force flash" and "no wipe", and selected 5.1 as the build I wanted to flash. I used the "let NRT download factory image for me" option, which it did, and hashcheck was a match.

Since then (1.5 hours so far), there's been a pop up box saying "extracting factory image package; please be patient..." - and I can't find any information anywhere on just how patient I should be?

I'm happy to wait it out, but I have no wait of telling if it is even doing anything (nothing on the log etc).

Should I cancel / abort it somehow and restart it? My phone is still perfectly functional and charging on my USB as we speak.

For what its worth, I do run peerblock on my PC - usually this will only affect webpages themselves and has never been an issue for downloading content to my hard drive, but just thought I'd mention it - its the only other thing that may not be typical on a PC. I also run anti-virus, but again, there's never been any problem with downloads and didn't get any error from it to think it could be interfering.

Any help would be appreciated!
[Nexus 4 Original Android Development] WugFresh:
It's using 7zip to extract. It shouldn't take that long. Just force close things and start again.
[Nexus 4 Original Android Development] salxtai:
Forced closed and it started trying to hashcheck while "downloading" was incomplete (it restarted itself automatically.)

Going to restart PC and start again. Fingers crossed it will work this time.

thank you for the quick reply!
[Nexus 4 Original Android Development] lion7718:
...and turning off PeerBlock couldn't hurt...you can turn it back on after you flash your phone.
[Nexus 4 Original Android Development] salxtai:
Thank you for the replies, WugFresh and Lion - after patiently waiting for a fair while for the download to happen again, it didn't hang on the extraction phase, and rest of it went smoothly.

Now sporting 5.1 stock and back to rooted.

Gut tells me there problably won't be another lollipop update for a while, so time to get back onto custom kernels to maximise my ageing Nexus 4's battery life :)

---------- Post added at 11:26 PM ---------- Previous post was at 11:24 PM ----------

Just as a suggestion, perhaps this sort of information may be worth mentioning somewhere in the FAQs for future users?

Its often the case that a delay of sorts is to be expected when fiddling with rooting and flashing, but its hard to tell how long is too long a wait, especially if you can't see anything working to confirm it hasn't frozen :)
[Nexus 4 Original Android Development] lion7718:
Android 5.1.1 Released
[Nexus 4 Original Android Development] puritan007:
Just a quick thank you your a life saver
[Nexus 4 Original Android Development] rseiler:
Probably a silly question, but the Fastboot Flash column in Advanced used to have a temporary/permanent choice that's now gone or extremely well-hidden. So when I go to downgrade my baseband, which I'm forced to do for reasons not worth getting into, once the phone reboots (which happens as part of the process), it's as if I did nothing.

Is everything supposed to be permanent now?

Update: OK, so having found an old NRT version, I see that "temporary" was only possible with Boot, not Baseband, so I guess all the rest were always permanent? Perhaps the issue then is that I'm running the update when the phone is already in bootloader mode? I would normally not do that, but the phone is in a reboot loop, so there isn't time to do it anyplace else.

Update2: I think it's bad EMMC at this point.
[Nexus 4 Original Android Development] lion7718:
5.1.1 factory images were released today.
[Nexus 4 Original Android Development] WugFresh:
Thanks for the heads up. I been coding like crazy on some cool stuff for NRT 2.0.6, hadn't noticed to new factory images. Will get it sorted tonight when I get a chance.

I am really looking forward to finishing the new NRT version, it has new checks and failsafes that will make it way more reliable and better at dealing with comp specific connectivity anomalies/weirdness. Was a challenge to build my new system but its working great so far. :) Stay tuned.
[Nexus 4 Original Android Development] NYLimited:
Your efforts are much appreciated!

As an aside, have you ever thought about making it available for other devices, such as the LG G2 series? I know it isn't a Nexus but it is an intriguing thought.

----

You can chose to ignore reality, but you cannot ignore the consequences of ignoring reality.
[Nexus 4 Original Android Development] WugFresh:
Cheers! Technically, any device with an unlockable bootloader and stock firmware available is something I could support. Its just a matter of time. Even with porting lots of code, it seems to take forever. At least it did with the one plus one.

But yes - I really should support lots of devices because I already have highly adaptable and powerful code now for dealing with android automation.

One of these days I will go on another major coding bender, and start tackling another device line. Maybe HTC one series, LG G series, or Moto devices.

The most annoying thing about other devices is how they name their firmware. Its so random. With nexus, the factory packs have a standardized naming convention that makes my time coding much easier. If other companies followed suit I probably would have done it already.
[Nexus 4 Original Android Development] NYLimited:
By

Hey, if it was easy everyone would do it. ;)

Yeah, I also like the ease of a nice, clean AOSP ROM, .img files for each partition.. My old nexus 4 is working well but who knows. The Nexus 6 is nice but not as nice as the new G4. Anyway, I appreciate your thoughts and know just what you mean about lack of time..

----

You can chose to ignore reality, but you cannot ignore the consequences of ignoring reality.
[Nexus 4 Original Android Development] lion7718:
Flashed factory image 5.1.1 this afternoon, no problems.
[Nexus 4 Original Android Development] TheDarkDefender:
+1

No problems with 5.1.1.

Been using Wug's toolkit since 2012 (N7). Never faced an issue. Great work.
[Nexus 4 Original Android Development] :
Need help

Hi,

I need some help. I was updating my CM12.1 ROM on my Nexus 4, but the installation has failed.

I've use NRT to restore completeley my Nexus 4 in 5.1.1, I have used the recommanded settings, but when finished, it reboot on the android on his back with an exclamation point.

After I don't arrive to finished the process.

Someone can help me ?

Edit : finally it's OK, I've just unchecked the recommanded settings and after a long wait : my Nexus 4 reboot correctly.
[Nexus 4 Original Android Development] salxtai:
I've run into some problems which I suspect is a mixture of 5.1.1 / NRT.

In chronological order, this what I've been doing tonight:

1) tried to install stock kernel to update to 5.1.1, but it failed and I saw on the TWRP screen (which stayed on the phone instead of the phone rebooting back to normal, which was already a sign that something wasn't working)

E: unable to mount '/usb-otg'

... done

Full SELinux support is present.

Processing OpenRecoveryScript file...

Setting 'tw_signed_zip_verify' to '0'

Installing '/sdcard/!readytoflash/stockkernel.zip'

..

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

E:Failed to sysMapFile '/sdcard/!readytoflash/stockkernel.zip'

E:Error installing zip file '/sdcard/!readytoflash/stockkernel.zip'

Done processing script file

MTP Enabled

- to be fair I didn't think too much of the above error at the time because I had the realisation that installing 5.1.1 would just override my custom kernel, so I didn't try to flash stock kernel again, and instead I did (2).

2) NRT installed 5.1.1 image without wiping user data, but clearing data and davlik.

- no apparent issues, including successful root + superSU/busybox all working etc.

3) tried to install my custom kernel again, which I had confirmed would be compatible with 5.1.1 (Hells core), and once again I ran into the same error as above, bar a different file name for the zip.

- I tried putting the file into my internal memory and flashing it through TWRP that NRT installs, but I still continue to receive an error that, while it is slightly different wording, points to a problem with mounting '/usb-otg'

Updating partition details...

E:unable to mount '/usb-otg'

... done

Full SELinux support is present.

MTP Enabled

Installing '/sdcard/hC-b78-L.zip'...

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

E:Failed to sysMapFile '/sdcard/hC-b78-L.zip'

Error flashing zip '/sdcard/hC-b78-L.zip'

Updating partition details...

E:Unable to mount '/usb-otg'

... Done

Now I'm comletely lost because I'm not sure how to troubleshoot this in terms of whether it is the 5.1.1 image that has disrupted the usb-otg mounting, or if it's something from NRT's end when it flashed the image or rooted, so I'm posting here to get an idea if anyone else has encountered this problem since specifically installing 5.1.1.

I have used NRT to install my custom kernel when I was on 5.1 with no issues.

My phone stats:

Stock ROM 5.1.1 build; stock kernel; rooted + unlocked.
[Nexus 4 Original Android Development] lion7718:
[MENTION=3733810]salxtai[/MENTION]:

Try changing MTP to PTP (camera)...this is the only way that will work with my Nexus 4.
[Nexus 4 Original Android Development] WugFresh:
Link me to the zip in pm. My guess is it's just not packed correctly, and maybe is meant to be unzipped.
[Nexus 4 Original Android Development] salxtai:
Thanks for the suggestion - unfortunately, tried this just now and it still fails with the same error in both TWRP and via NRT.

Can also confirm that it still listing it as "MTP" in the error, so apparently the PTP change isn't sticking either.

---------- Post added at 11:33 AM ---------- Previous post was at 11:28 AM ----------

Have sent this to you via pm - not seeing a copy of the message in my inbox though, so let me know if it somehow failed and didn't end up sending.
[Nexus 4 Original Android Development] emvau:
Ouch. :(

I must have done something terribly wrong. I had a rooted Mako with Omnirom 4.4.4 final. I wanted do factory reset. Unfortunatly I read the poping window wrong and relocked the bootloader. I recognized that and unlocked it again to start factory reset.

Now im stuck with twrp 2.8.7.0 asking me for a password. I the thing is, i never ever encrypted anything. What can i do?

Problem solved: Bootloader was still open, so i could factory-adb-flash.

:)
[Nexus 4 Original Android Development] HugoSilva:
So i need help guys, PLEASE!

Today my phone crack the screen, so i have to send them back to get a new screen, altough i must unroot my phone, i did that, i did all the things needed, but at the very end, i must press the power button+the volume up ( that was said in the screen that shows up) , i did that but the only thing that show is a android with a ! . now the phone is on the boot screen and never turn on. ( have waited at least 25min) , help guys, don´t know what to do and i must delivery the phone

When ask me for click Power Button+Volume Up i press, the phone restart, and then a red light turn on and on pc the sound that makes when you put a usb and then take it off, that sound is present.

HELP PLEASE GUYS

P.s: Sorry for the bad english
[Nexus 4 Original Android Development] lion7718:
5.1.1 (LMY48I) released for StageFright.

Installed it this afternoon, no problems.
[Nexus 4 Original Android Development] kryzeK:
[deleted]
[Nexus 4 Original Android Development] shobuddy:
Deleted
[Nexus 4 Original Android Development] Saad Ali:
I'm getting device is corrupt msg when I root my n6 on android m dev 2. Nothing hapeens, just the message appears on the boot and device turns off.

Reflashing M solves the issue. Have anyone rooted the latest M build?
[Nexus 4 Original Android Development] Poor Grammar:
Flashed 5.1.1 (LMY48l) today no problems +1 Wug Fresh

I been using toolkit awhile by far the easiest

Welcome to Nexus Country
[Nexus 4 Original Android Development] lion7718:
[MENTION=3110798]WugFresh[/MENTION]: It looks like All T-Mobile Nexus devices are getting an update later today.

http://www.tmonews.com/2015/09/nexus-4-5-6-7-2013-and-9-all-getting-updates-today-says-t-mobile/

http://phandroid.com/2015/09/08/nexus-september-security-update/
[Nexus 4 Original Android Development] ksfno1:
It would be real good if Wug could update and add LMY48M bugfix :fingers-crossed: I have updated to that build; however, I fail to flash my fonts :(
[Nexus 4 Original Android Development] lion7718:
He can't do it till the factory images are released...even then, give him a few days.
[Nexus 4 Original Android Development] lion7718:
Just flashed factory 5.1.1 LMY48M & rooted...thanks Wug :D
[Nexus 4 Original Android Development] NYLimited:
Are you planning support for the two upcoming Nexus devices and Android M?

----

You can chose to ignore reality, but you cannot ignore the consequences of ignoring reality.
[Nexus 4 Original Android Development] grgana:
hello i got the same situation.. so how long did you have to wait ? or what should i do ''

..i managed also to get in bootloader mode after and flash 5.1.1 again without reccomended settings and flash factory image but now its booting like 20 min. and nothing yet .(
[Nexus 4 Original Android Development] ibbi.ir7:
Root problem

dear developers i unlocked my Nexus 4 with wug fresh toolkit successfully but it was unable to root my device as it was having problem pushing root files to my device i am on Android 5.1.1 with build number LMY48T please suggest me the solution so i can root and install recovery on my device with wug fresh toolkit kindly as it is easy way.

Q: Should i first flash recovery through wug fresh toolkit and then flash supersu through TWRP recovery as i have unlocked boot loader plzz help
[Nexus 4 Original Android Development] lion7718:
If your Bootloader is unlocked already...just turn on USB Debugging, open Wug's under Root check Custom Recovery, then click on the Root button.
[Nexus 4 Original Android Development] ibbi.ir7:
I tried it only root option but adb fails to push root files to my phone sdcard that is the only problem i am having. if you say i will post log report over here .
[Nexus 4 Original Android Development] lion7718:
Try changing USB computer connection from Media Device (MTP) to Camera (PTP).

This is the only way it works on my N4.

Settings/Storage/USB computer connection (3 Dots).
[Nexus 4 Original Android Development] ibbi.ir7:
should i also select recovery under root for your above solution

---------- Post added at 03:37 PM ---------- Previous post was at 03:30 PM ----------

md5sum.exe "C:\Program Files\WugFresh Development\Nexus Root Toolkit\data\Root_Files\BETA-SuperSU-v2.52.zip"

\1e61d4691e6aa25ae0ea563b0763155b *C:\\Program Files\\WugFresh Development\\Nexus Root Toolkit\\data\\Root_Files\\BETA-SuperSU-v2.52.zip

Verifying hash of transferred file...

adb shell /sbin/busybox md5sum "/sdcard/!ReadyToFlash/Root_Files/BETA-SuperSU-v2.52.zip"

md5sum: can't open '/sdcard/!ReadyToFlash/Root_Files/BETA-SuperSU-v2.52.zip': No such file or directory

Mimatch. Giving up... Try another USB port and start the process over.

This time i configure it to ctp and root without checking recovery
[Nexus 4 Original Android Development] lion7718:
No need.

If you have root already, why not just download SuperSU from the Play Store..??
[Nexus 4 Original Android Development] ibbi.ir7:
i don't have root as wug tool is unable to push files to my sd card and can't flash it, is there any other way
[Nexus 4 Original Android Development] lion7718:
OK, try this...

Open NRK, click on Full Driver Installation Guide, go to Step 4 Full Driver Test.

If that passes, go back to main screen & click on Update/Automatic Update to download any files not pushed to your computer already.

You mentioned a mismatch above, so this should give you the updated files.

If you still can't get Root, try another USB post & USB cable.
[Nexus 4 Original Android Development] ibbi.ir7:
i tried it but no success drivers are installed correctly when i click automatic update it says all files are updated and then tried to root it first with MTP and then PTP but no success it shows this error pasted below, is there any other way to flash super su and install recovery means with out wug fresh or i should first install recovery and then by putting super su in my phone sdcard and then going to custom recovery and flash super su ? I tried on two diffrent laptops with 3 diffrent usb cables no luck till now.

md5sum.exe "E:\New folder\data\Root_Files\BETA-SuperSU-v2.52.zip"

\1e61d4691e6aa25ae0ea563b0763155b *E:\\New folder\\data\\Root_Files\\BETA-SuperSU-v2.52.zip

Verifying hash of transferred file...

adb shell /sbin/busybox md5sum "/sdcard/!ReadyToFlash/Root_Files/BETA-SuperSU-v2.52.zip"

md5sum: can't open '/sdcard/!ReadyToFlash/Root_Files/BETA-SuperSU-v2.52.zip': No such file or directory
[Nexus 4 Original Android Development] lion7718:
Try this file https://download.chainfire.eu/696/supersu/

---------- Post added at 01:35 PM ---------- Previous post was at 01:33 PM ----------

Until you have Root, you won't be able to flash anything.
[Nexus 4 Original Android Development] ibbi.ir7:
how to do it means what is the process i downloaded the above file now what to do ?
[Nexus 4 Original Android Development] lion7718:
That's just a newer version of SuperSU, you can't do anything with it till you get Root. Are you sure you unlocked the Bootloader..??

When you start your phone do you see an unlocked padlock..??
[Nexus 4 Original Android Development] ibbi.ir7:
yes i see a padlock under google logo i try to remove the su file which was with NRT when i started NRT it dowloads the same file but now it checks the hashcheck and it was fine but still unable to root the same error exists ,the current version i have is the beta-supersu v2.52 which NRT downloaded

---------- Post added at 07:53 PM ---------- Previous post was at 07:48 PM ----------

in fastboot mode it says boot unlocked
[Nexus 4 Original Android Development] lion7718:
But is the padlock unlocked..??
[Nexus 4 Original Android Development] ibbi.ir7:
disclosed the device id

before bootloader unlocked there was no padlock it appears afterwards when device was wiped and yes fastboot mode says locked state unlocked and also log state that the bootloader is unlocked pad lock is unlocked

Checking Fastboot Connectivity

fastboot devices

xxxxxxxxxxxxxx	fastboot

Connectivity Status: Fastboot Device Connected

+ Confirmed: Bootloader Unlocked.

Temporarily Booting modified boot.img to enable running privileged commands...

fastboot boot "E:\New folder\data\Modified_Boot\modified_boot_occam_5.1.1_LMY48T.img"

---------- Post added at 08:21 PM ---------- Previous post was at 07:59 PM ----------

is there any manual process by passing adb commands through command promt as i have installed drivers and by passing adb commands like first flashing img and then flashing super su as a tutorial found here http://xdaforums.com/nexus-4/help/guide-ultimate-nexus-4-root-guide-t2018179. I am a noob and don't know what to do i just found it by searching on xda should i follow this or any other process you will suggest.

---------- Post added at 08:50 PM ---------- Previous post was at 08:21 PM ----------

its now rooted i tried again with ptp and voila its done and also installed latest twrp and made a nandroid but it show E: unable to mount otg what is this for hence thanks buddy for helping me i also click the thanks button so should i flash roms because i am not very much familiar with E: unable to mount otg suggestion is required is this warning is meaning full or only telling that there is no otg.
[Nexus 4 Original Android Development] lion7718:
http://xdaforums.com/showpost.php?p=36329662&postcount=8

Glad to know you got it working.
[Nexus 4 Original Android Development] kaalatittar:
I just want to thank you WugFresh, for making thsi tool, I recently reactivated my ID and your tool helped me root / flash and mod 4 Nexus 4 in my family !

Thank you thank you thank you
[Nexus 4 Original Android Development] XxMikeMasterxX:
Help with USB Cable Charging as AC

HI all,

Firstly I love these forums and you all rock and are the friendliest bunch of dudes and ladies (and others) I've seen on an online forum.

I have a quick question about getting NRT to recognize my N4, which has very little to do with NRT but rather what I believe to be the firmware (perhaps Android version) itself. Whenever I plug my USB cable into various USB ports, the phone appears as charging in AC mode - always. I used to have a kernel that allowed for USB fast charge, which I enabled, but I have since factory reset my phone three times (back to 4.3, JWR66Y), tried USB Host Diagnostics by ChainFire, and reloaded the stock configurations for kernel, radio, and system image. I am completely stumped and have no clue what to do. I have tried many different cables and software configurations to no avail. I would appreciate any and all guidance with this as it has certainly caused me undue hardship. I might just throw in the towel and get a Moto X Play.

Currently I`m using faux123`s kernel on 4.3, stock system, stock radio, TWRP 2.7.1.0. I have tried everything stock except the recovery. I worry that if I format the data on my SD card it will leave me without a solution and all of my data, which would be a large spoon of salt in the wound.

I'm willing to try anything to get my computer talking to my phone again. Maybe they had a weird fling one night while I was sleeping and now it's awkward so the phone just charges as AC to ignore my computers calls...

Thanks again, all,

--Mike
[Nexus 4 Original Android Development] lion7718:
Hey Wug, I updated my Nexus 7 2013 to MOB30X yesterday for August's Security Update...been trying to re-root it, but all I get is this.

EDIT: I got around it, I read the instructions more closely & downloaded the file...

I didn't notice the link above the Browse button :p
[Nexus 4 Original Android Development] hauckk@sfreserves.org:
thanks for this toolkit i used an updated version it saved me from multirom bootloop hell :D:D
[Nexus 4 Original Android Development] alphazzz:
GREEEEEAT! Thanks for this, save my phone lol
[Nexus 4 Original Android Development] guyderam:
Hello guys. Im running on clockworkmod v6.0.4 and on kitkat. Planning to flash nitrogen rom. Question is how to i get twrp? Can i just use this toolkit or can i just flash twrp.img in the clockworkmod recovery?
[Nexus 4 Original Android Development] hauckk@sfreserves.org:
Use the twrp manager App avaliable on Google play Store requires a rooted device and an unlocked bootloader
[Nexus 4 Original Android Development] nexusanphans:
Links are dead.