yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] andrewk2x:
Hello,i have full stock 4.3 from OTA..With this tool can i have full backup(apps,sd files),then unlock bootloader,root my device and restore my files??I will have any problem??
[Nexus 4 Original Android Development] parmijo11:
I'm wondering the same, just got my nexus a week ago so these tools are new to me. Thanks in advance for any help.
[Nexus 4 Original Android Development] aaatoel:
There weren't any issues with this so far, right? I mean with the whole re-flashing of the stock recovery.

Great job by the way!
[Nexus 4 Original Android Development] david251:
Just got a second nexus 4 last night and let it update OTA to Android 4.3.

I already had NRT on my pc because I used it to unlock/root my first Nexus 4 that was on Android 4.2.2 - great, great tool!! Anyway, I opened NRT today and it updated. Chose my phone from the dropdown and chose Android 4.3.0 Build JWR66V.

Unlocked the bootloader fine, as far as I can tell. Went to root it, and it seems to go through the process of rebooting and giving messages of pushing files, rooting, etc - but toward the end, the phone shows Android laying on it's back with the hood open and a red triangle with an exclamation mark. Stays there for 2 to 3 minutes, then reboots.

Afterward, the phone seems to work fine, but there is no bootloader and I have no root access. I've tried it several times, both with the custom recovery option checked and unchecked.

So.... what am I doing wrong?
[Nexus 4 Original Android Development] paul_viado:
you have a bootloader, you meet you have no recovery. go to the cmd prompt and manually push recovery through fastboot.
[Nexus 4 Original Android Development] david251:
As far as I can tell, I have no bootloader. If I hold the vol-down/power, it brings me to a start screen. At the top, "Start" is in green. Using the volume key to scroll, "Restart Bootloader" and "Recovery Mode" is in red - pushing the power on either of these returns me to the original "Start" screen. At the bottom of that screen, it does list "BOOTLOADER VERSION - MAKOZ20i" - but I can't get into a bootloader like can on my other rooted Nexus 4.

Maybe I'm stupid - just telling ya what I'm seeing.

Thanks for the reply.
[Nexus 4 Original Android Development] flava69:
just had same problem mate,not sure wot to do?
[Nexus 4 Original Android Development] ashik992:
Thanks.

I already got it form your thread in Nexus 7 (2013).
[Nexus 4 Original Android Development] maigre:
I had the EXACT same problems, so this is not an isolated event. But it ran deeper than using NRT with those non-results. I tried to use fastboot on a Mac from the command line to root. I've done that and used NRT multiple times with minimal difficulty on four different Nexus devices over the last year. But 4.3 has given me all sorts of problems with a pair of N4s.

After using 1.6.4 to go to a stock installation of 4.2.2 the other day so that I could do the 4.3 OTA (I couldn't successfully do the OTA, even after reflashing stock recovery and kernel — I'd been using Franco Kernel.), I couldn't flash custom recovery from the command line on the Mac, couldn't do it by any of the interface choices with NRT and couldn't reroot with NRT as per david251's problems. Finally, I was able to install TWRP custom recovery from the command line through NRT. Then, the rest was easy enough through TWRP. But that's after hours of failure on various levels and going so far as to completely return to stock, unrooted and locked again.

Now, I want to update another N4, but I'm fearing major hassles because it's been my daily driver the last 5 months and I don't want to have to start over again if I can avoid it. But it won't take an OTA, even after flashing stock recovery and stock kernel. In the meantime, since those flashes, I've had occasional slow, laggy performance. Really slow. At least I have and will update a backup and have found a road to success with the N4 I mentioned above.

---------- Post added at 03:41 PM ---------- Previous post was at 03:28 PM ----------

david and flava posted since mine. Both of you should try installing custom recovery via the command line from NRT. That's what worked for me.

Get the device into fastboot. Launch CMD Prompt from the Advanced Utilities window of NRT. Then, from the command line that appears, navigate down to the /Recovery_Custom/TWRP dir or the folder for whichever custom recovery you want to install.

From there, run the following command:

fastboot flash recovery openrecovery-twrp-2.6.0.0-mako.img

That's assuming you're using TWRP recovery.

After that, reboot into recovery and use TWRP to flash a zip. Navigate to the !ReadyToFlash/root_files folder on the N4. Select SuperSU and Busybox and install them. Then, reboot the phone. There's a command to do that in TWRP. When you're booted back up, you should be rooted. Run SuperSU and Busybox and you'll be good to go.

If you need more detail, ask. I'm doing this from memory, so some of my wording may be a bit off.
[Nexus 4 Original Android Development] david251:
Finally got mine done (sort of). I can tell you what I did, but not why it worked. Anyway, I ran a flash stock/unroot (everything I mention was through NRT). Powered the phone off, then held the vol.down/power keys which brought me to the start screen I mentioned earlier. Restart Bootloader and Recovery were still in red text, however, pushing the power on the recovery screen did take me into TWRP - so I got that. Rebboted and got a notice that SuperSU had an update, so I got the update but still didn't have root access. Went back to NRT and ran the root again with the custom recovery option checked (I figured... "why not.") It ran through the process again, but this time it did briefly go into TWRP during the process, which it hadn't done that before. Rebooted the final time of that process and got a notification this time that Busy Box had an update. Updated it, installed it and... I have root access.

So now I have TWRP and root access, but still no bootloader that I can get into. Even using Quick Boot to reboot into bootloader won't take me there. Also, when my phone is on and I push the power button, I'm given the option to turn the phone off or put it in airplane mode, but no option to reboot is given as it is on my other nexus 4.

Anyway, hope this will help someone out or inspire ideas.
[Nexus 4 Original Android Development] Dany-69:
What are you talking about man? -__-'

Someone already said you that you're already looking at the "bootloader", but it seems you don't want to understand.

That screen with the big android lying down, all the info, the green "Start", the red "Restart Bootloader", the red "Recovery mode" and the white "Power off".. THAT is your bootloader, even known as fastboot mode.

And if you had no bootloader, you could serenely hurl your N4 out of the window because it wouldn't be able to do ANYTHING, an event even known as HARD BRICK and that can be solved only by an hardware flashing procedure called "Jtag", or maybe with some qualcomm tool..

So please stop soiling the 3d with questions already answered and certainly inappropriate for the "original android development" section..

Then dont' complain if the developers vanish in the dark of the night, tired of answering to the same already answered noob questions.

About the problems with the recovery, every toolkit on XDA seems to have some problems with the 4.3

I hope in a fast fix, but you can temporarily use the fastboot command to flash the recovery, and then flash the zip for root.
[Nexus 4 Original Android Development] david251:
My bad, bro. But I did give a disclaimer in the post stating that maybe I'm stupid - so if you got bent out of shape... I warned ya. My experience with this thing is extremely limited and I thought perhaps the person who said I had a bootloader misunderstood what I was trying describe, mostly because of my own inability to communicate it. But I'll tell ya why I was thinking I didn't have one. The last time (a few months ago?) I was messing with my Nexus - my first one that still has 4.2.2 on it, if I went into bootloader, it looked completely different - white background and as I pressed the volume keys to navigate, it moved down a list on the same screen rather than changing screens. So I guess I was expecting to see that again. However, I now see what you guys are saying and appreciate the lesson.
[Nexus 4 Original Android Development] maigre:
I wouldn't worry about it, david251. There's no reason for anyone to be insulting. You had a question and looked for an answer. That's not my definition of stupid. This stuff can be a little complicated. Then, when it doesn’t work like it might, as we're seeing with 4.3, it's all the more difficult.
[Nexus 4 Original Android Development] david251:
He probably didn't mean anything by it. I learned something though, so that's cool. And I do appreciate all the help y'all have given me and others. I'll also say that NRT (from my limited experience) is an awesome help! It's designed to pretty much be a no-brainer with very clear, easy to follow steps. So I just wanted to point out that I knew there might be (and rightfully so) issues with the new Android that just rolled out - so for those who haven't yet tried NRT, it's definitely worth having and supporting, especially if you aren't well versed in rooting your phone.
[Nexus 4 Original Android Development] dunghnguyen:
Read what you all shared ...I conclude that we just select the option "Custom Recovery" then there is no issue during the unlock bootloader + root procedures ;)

WugFresh advised for this already since there is no TWRP update for 4.3? Am I right Sir WugFresh? :)
[Nexus 4 Original Android Development] parmijo11:
Working like a champ
[Nexus 4 Original Android Development] Nutsonfire:
10$ bucks from me, thanks for the app 5LN18716V9659541A

It didnt work for some reason with the official Google 4.3 image, download through your app would make some error while downloading and using local file would make some error from sig files missing.

No biggie just fastboot flashed everything manually from the cmd prompt.

Root worked ok without issues it seems.
[Nexus 4 Original Android Development] bringonblink:
Thanks, needed support for 4.3 so used this. Worked like a charm
[Nexus 4 Original Android Development] dunghnguyen:
I updated NRT 1.6.6 to run it then I have found connection error to NRT - WugFresh server ? Anyone has the same issue? Note I am on cook 4.2.2
[Nexus 4 Original Android Development] aaatoel:
I have installed OTA the 4.3 update on my N4 and I want to root it now but I have read many comments claiming that users many times end up facing a red exclamatory mark with the root failing to do its thing, so I am a bit hesitant to try it. Has anyone rooted it without any issues?
[Nexus 4 Original Android Development] alex6vasy:
+1
[Nexus 4 Original Android Development] WugFresh:
The message regarding sig files missing will always appear when issuing the standard fastboot -w update cmd on Google's factory img packages because Google does not include those files. They aren't included because an unlocked bootloader is required to flash stock, there those sig files are not needed.

Errors from downloading can happen when the servers are experiencing high traffic.

{{ WugFresh }}
[Nexus 4 Original Android Development] Nutsonfire:
Thanks for taking time to answer! All fine for me anyway, enjoy the donation to have a beer or something else you like !!!
[Nexus 4 Original Android Development] skyracer53:
was a quick and painless root! thanks! was looking for 4.3 support too!
[Nexus 4 Original Android Development] twowheeler:
Had the radio problem as well first. Flashed the radio and then updated to 4.3. Everything is running as it should I guess. So a happy user here
[Nexus 4 Original Android Development] rebj2007:
i'm using 4.2.2 can i back up my internal storage then flash 4.3 and restore my back-up?
[Nexus 4 Original Android Development] twowheeler:
Everything on the phone will be wiped. Back it up to your computer. Or copy the backup files to your computer.
[Nexus 4 Original Android Development] rebj2007:
i can use this toolkit?
[Nexus 4 Original Android Development] twowheeler:
Yes you could use the backup function from the toolkit. But this is what I did:

I made a backup with titanium backup, backup my SMS messages with the SMS backup and restore app and backed up my whatsapp messages. Copied all the things that were important to my to my computer (so the backup maps, whatsapp map, download map, camera etc...)

Flashed 4.3 and copied everything back after it finished.

I have never used the backup function of the toolkit, might be trying today cause I want to flash 4.3 again. Think there's something wrong for me. Was in a bit of a hurry
[Nexus 4 Original Android Development] favaroooo:
I tried this toolkit, it's better than mskip's toolkit in my opinion.

Congratulations ;)
[Nexus 4 Original Android Development] adil1508:
ok, first things first, this toolkit is ALOT easier to use than mskip's toolkit.

Anyways, i downloaded this toolkit to root my phone, in prep for whenever the official cm10.2 comes out. I have JB v4.3 on my phone from the official OTA. and my phone is completely stock in all aspects. So anyways, i cant seem to be able to install the ADB drivers.

Here's what i did

. Followed step 1 to the letter.

In step 2, the recommened solution was #1 but i went for the pdanet drivers. I followed the visual guide and everything seemed OK. yes, USB debugging was enabled and i took care when to plug in and unplug the phone.

the problem arised in step 3, when it checks for ADB. it says that ADB device was not found. But in the device manager, the 'Android Phone' is shown at the very top and when the small dropdown, it shows Android ADB interface ( im not exactly sure of the words because i uninstalled the drivers anyway )

So then i tried step 1 again and uninstalled the existing drivers and tried the universal drivers, it installed successfully and appeared in the device manager but the toolkit still couldn't locate the ADB.

Where am i going wrong? Im running windows 7, 64-bit
[Nexus 4 Original Android Development] twowheeler:
Had the same problem. choose for the raw instalation (option 3 i believe). That is the good old manual way. Did the trick for me.

Btw: why cant i use the file i downloaded myself (the stock image). It gives an error
[Nexus 4 Original Android Development] adil1508:
thanks, i just downloaded the AndroidSDK and used those drivers. Thanks for your reply though.
[Nexus 4 Original Android Development] WugFresh:
What error. Please elaborate or provide a screenshot.

{{ WugFresh }}
[Nexus 4 Original Android Development] toy187:
Did you finally get it working? I found that I had to switch my phone's USB mode as a Camera (PTP) instead of Media Device (MTP) for it to be correctly detected in ADB.
[Nexus 4 Original Android Development] andrewk2x:
Hello,i am on stock 4.3 from OTA..I want to unlock bl,root and put custom recovery...If i do a backup,unlock bootloader,root,flash cwm then can i restore my previous backup without losing any app or i will have problems??Thanks in advance!!
[Nexus 4 Original Android Development] adil1508:
I just ended up using the N'cry toolkit :P This toolkit wasnt rooting my phone. For some odd reason, when i clicked root ( i tried with both the custom recoveries and stock recovery ) the process would run, rebooting my phone a couple times or more but when it was all done, the phone wasn't rooted :( So i switched to the other toolkit for JB 4.3.

Anyways, i did end up with working ADB, all i had to do was download the SDK and connect the phone with USB debugging enabled. Oh yeah, you have to uninstall any previous drivers
[Nexus 4 Original Android Development] SinisterSHO:
Pardon my ignorance and noob-ness. But this will allow med to unlock, root, and flash to my nexus 4?
[Nexus 4 Original Android Development] nyepo:
Some nandroid backup files are not pulled to PC

Hi WugFresh! First of all, thank you for your rootkit, it's simply AWESOME! and perfect for people just wanting to be root withou installing any custom recovery.

I tried to do a full nandroid backup of my Nexus 4 with stock Android (as I did when I was on 4.2.1) with your rootkit on my 4.2.2 device. This time the backup completed 100% it's job too, like on 4.2.1, but then checking on my PC folder, I noted those files just were of 1kB size!

data.ex4.win000

data.ex4.win001

cache.ex4.win

system.ex4.win

Then I checked the TWRP folder on my Nexus 4 device, and found those archives (on the same folder backup) with their correct size (1.5GB, 460MB, 173MB and 508MB). I tried to copy those files to my PC folder, but it didn't work. I'm sure it's due to TWRP encryption and permissions. ADB pull it's supposed to be able to copy them, no matter what permissions, but those files are not being pulled to my local PC folder with the automatic toolkit procedure for nandroid backups.

Have you recieved any feedback like this? Is there any workaround for that?

(Note that I don't wanna install any custom recovery, just wanna be root in 4.3 with stock recovery as I did with your rootkit on 4.2.2. But first I wanna do a full nandroid backup "just in case" (you know, **** happens) but now I can't :rolleyes: )

Thanks
[Nexus 4 Original Android Development] parmijo11:
Yes, yes, & yes.
[Nexus 4 Original Android Development] twowheeler:
i tried to replicate it, but i think it had something to do with the radio. error didn't show op this time cause i already had it updated.
[Nexus 4 Original Android Development] WugFresh:
In the future if that happens, you can utilize force flash mode. The option is available in the toolkits options menu. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] WugFresh:
v1.6.7 is released. Update package live. This version inlcudes some code fixes. Enjoy!

{{ WugFresh }}
[Nexus 4 Original Android Development] nyepo:
Hi WugFresh, thanks. I've seen it's currently v1.6.8 now! :laugh:

I expected this bug I reported few posts ago to be gone, but unfortunately, it's still there ... same 1kb files there. Rootkit can't pull those 4 files to my PC local folder.
[Nexus 4 Original Android Development] WugFresh:
This appears to be a TWRP issue. I have heard of users using older TWRP versions with success however I have not tried this myself. Hopefully TeamWin will update TWRP for the Nexus4 soon with other fixes as well, like fixing its inability to fastboot boot. The toolkit will then automatically grab the latest version available, no need for a new full toolkit update. Try using the toolkits flash recovery button in advanced utilities, selecting other, and pointing the program to v2.5.0.0 . Once that older version is flashed try the backup again and report your results. Cheers.

{{ WugFresh }}
[Nexus 4 Original Android Development] SinisterSHO:
Also, does the backup feature back up text messages as well?
[Nexus 4 Original Android Development] WugFresh:
Please look at the interface:

{{ WugFresh }}
[Nexus 4 Original Android Development] sid21:
One question..

Plz i have been wandering around asking everywhere i could..

But no answer to satisfy..

With your toolkit..

I have illusion 4.2.2

And wanna flash pa 3.92 ie. 4.3

Later what if i wanna again revert to 4.2.2 rom??

Mind i always use sideload as flashing by doing a clean wipe each time..

So is it possible with your updated toolkit??
[Nexus 4 Original Android Development] WugFresh:
Different developers package their ROMs differently, ie one developer may package their ROM so that it takes care of all prerequisites - meaning it doesn't matter what ROM or build you are running prior; while other developers may specify that you need to be on a particular build or android version prior to flashing.

Typically if you just wipe data, cache and dalvik and then flash a ROM you should be fine. This can be accomplished and full automated with the toolkit using "Flash zip" "file is on this computer" in advanced utilities.

If you are concerned that you should be on Android 4.2.2 prior to flashing or just would like to be extra safe, then before you flash the 4.2.2 based ROM you can use "Flash Stock + Unroot" to fully reflash 4.2.2. and then proceed to flash the ROM. If you do that, since you would be downgrading you may want to enable "force flash mode" in the toolkits options menu prior.

Hopefully that helps answer your question.

{{ WugFresh }}
[Nexus 4 Original Android Development] sid21:
That answer is what i really wanted to know..

That means to be safe while downgrading my rom

I should flash the stock to be safe..

Okk i will now install the stock rom 4.2.2 as well

So i will flash pa 4.3 on illusion 4.2.2

By doing clean wipe by format data/cache/sd/etc

And then sideload pa 3.94 ie. 4.3

And later if someday i would want to be on illusion 4.2.2

Then i would have to flash stock 4.2.2 and then flash illusion on it..

Thanks for your reply
[Nexus 4 Original Android Development] aaatoel:
I just successfully rooted my 4.3 N4 with this toolkit! I read the comments in the author's site and the operation was fast and easy after changing to "Temporarily boot TWRP to complete the operation" in the options menu of the toolkit. I don't know If otherwise I would have had any issues, but I can assure you that this way everything was very smooth.

Thanks a lot Wug! :D
[Nexus 4 Original Android Development] agouracaguy:
Forgive my ignorance. I did a backup on your toolkit. Since my bootloader is locked and I can't do a nandroid backup, what will happen if I unlock my bootloader and root?

Will my restore get me back to where I was? In other words, will I have to configure my apps, passwords, homescreen, wallpaper, ringtones, etc?
[Nexus 4 Original Android Development] SinisterSHO:
Thanks. I had not downloaded yet. But I know what I am doing tomorrow after work.
[Nexus 4 Original Android Development] Under03Ground:
Wheres the download link?
[Nexus 4 Original Android Development] lord crapface:
hi, im stuck at the bootloader screen( google screen not bootloop) i got into fastboot and tried to flash stock and unroot using the toolkit. it connects to the device but fails to flash stock. i get an error message saying "too many links"

what else can i do?
[Nexus 4 Original Android Development] WugFresh:
Try an alternative usb port, disconnect other devices or emulated devices.

{{ WugFresh }}
[Nexus 4 Original Android Development] soroush0313:
Hi

I wanted to relock my device and get back to stock stat, so I've downloaded your great toolkit then 4.3 image manually and done the steps carefully but when my device reboot to bootloader and the command prompt screen show, nothing happens to my phone!!! Could you please help me with getting back to stock?!
[Nexus 4 Original Android Development] twowheeler:
did exactly that! your toolkit is the best
[Nexus 4 Original Android Development] lord crapface:
Thanks, i got it fixed, i had the toolkit installed on another laptop and it worked first time.
[Nexus 4 Original Android Development] Drmol:
Probably not the best place to ask but if I was to flash the factory images manually, what would I have to do to also root it manually? Just flash custom recovery and install SuperSU from there?
[Nexus 4 Original Android Development] original21:
Hi guys.

I get this error (see attachment) with the last 2 updates. Anyone knows how to fix it? Thank you.
[Nexus 4 Original Android Development] WugFresh:
Uninstall toolkit, reinstall.

{{ WugFresh }}
[Nexus 4 Original Android Development] original21:
I tried to uninstall using the Uninstall_NTR.exe file but all files remain. I am using windows 8 btw.

EDIT

.

I have managed to uninstall the program (had to run it as administrator), but after re installing latest update i still get the same msg.
[Nexus 4 Original Android Development] Slymobi:
are you using a desktop shortcut to execute the updater ? maybe its an old shortcut that's not recognised !

NeXuS⁴
[Nexus 4 Original Android Development] original21:
Just tried loading from folder and still get the same msg. I think the toolkit is working fine. I just can't automatically update any more.