I'm looking at taking my Nexus 4 back to stock. I'm running TWRP, CM11, modified modem files, etc and for some reason I'm getting terrible battery life I'd just like to go back to stock. Can anyone tell me if I can keep root and Xposed and still get OTA updates?
Thanks
There is an app called OTA RootKeeper. Try it out, but from what I know this app doesnt support 4.3+
Instructions from Other Guides Available on xda
@jcicora Did you just want to flash stock radio and kernel? Or just wanted to start over with stock ROM?
Stock Radio and Kernel
Grab the official Android 4.4.4 image for the Nexus 4 here along with Android Studio here
Extract the occam-ktu84p-factory-b6ac3ad6.tgz and open folder to extract image-occam-ktu84p.zip
Open into platform-tools of Android Studio (Android Studio>sdk>platform-tools)
Copy radio-mako-m9615a-cefwmazm-2.0.1701.03.img and boot.img into platform-tools
Open command window inside platform-tools (Shift+Right click)
With USB Debugging enabled on your phone, use commands adb reboot bootloader, fastboot flash radio "radio.img", and fastboot flash boot "boot.img"
Stock ROM
Grab the official Android 4.4.4 image for the Nexus 4 here along with Android Studio here
Extract the occam-ktu84p-factory-b6ac3ad6.tgz
Open into platform-tools of Android Studio (Android Studio>sdk>platform-tools)
Copy all files extracted from occam-ktu84p-factory-b6ac3ad6.tgz into platform-tools
Open command window inside platform-tools (Shift+Right click)
With USB Debugging enabled on your phone, use commands adb reboot bootloader and flash.all
That's a lot of steps. Just extract the factory image, boot into the bootloader and double click the flash-all.bat while connected to your pc
Sent from my Nexus 5 using XDA Free mobile app
A Little OCD about my Files
@jd1639 Same thing! I just like keeping my things organized, so I keep all my img files, SuperSU, TWRP, and kernels inside of platform-tools folder.
To as answer the original question, rooted will let you get OTAs, xposed will cause them to fail - but you can just disable xposed then re enable after the update.
Sent from my Nexus 7 using XDA Free mobile app
Follow up question, this will completely wipe my phone right? "SD card" included?
jcicora said:
Follow up question, this will completely wipe my phone right? "SD card" included?
Click to expand...
Click to collapse
Yes. You might want to keep a backup.
kittuboy said:
Yes. You might want to keep a backup.
Click to expand...
Click to collapse
Ordinarily I would do a nandroid backup, however since I won't have a custom recovery is there another method I should use?
Titanium backup works great. Requires root.
Sent from my Nexus 4 using XDA Free mobile app
But will it create a file I can flash over to restore everything, ROM, recovery, apps, etc? Or should I just make a nandroid backup and use MTP to transfer it over to my pc?
A flashable zip is creatable, but Titanium Backup only back up applications and the data of the applications. Flashing the zip will restore your app and app data only. The only way to backup the ROM and all that other stuff is through a nandroid, which you said you don't have access to. In this situation I believe Titanium Backup is better than nothing.
Sent from my Nexus 4 using XDA Free mobile app
a
Hard
Related
i downloaded a custom rom and gapps to flash to my nexus, went to recovery to flash, wiped everything including system, when i go to flash the custom rom, BAM !!!!! it didnt download only the gapps did. now i have NO OS , no nandroid backup and no Custom Rom to flash
Pretty stupid of me not to have a nandroid backup but with the storage limitations of 8GB, i didnt do one to save space for other stuff, So basically i have an unlocked bootloader and custom recovery installed, can someone point me in the right direction on how to install an OS to my phone again
You could download ROM to your computer and use adb push to copy it to the phone where you can flash it,
Sent from my GT-P3110 using Tapatalk 2
CptanPanic said:
You could download ROM to your computer and use adb push to copy it to the phone where you can flash it,
Sent from my GT-P3110 using Tapatalk 2
Click to expand...
Click to collapse
I see an option on TeamWin recovery called ADB Sdeload, but i have no idea how to use it.
edit.. see below for command
just download a complete rom and name it rom.zip and put it where you have your adb.exe and fastboot.exe files, make sure to run the command from where you have the files, then just go into recovery and flash it
AW: [q] wiped android system, no nan backup
Go in with "ADB push c:\rom.zip /SDCARD/" this will copy your ROM from your PC to your Nexus. Then you can flash it via your recovery.
In general you can look if a ADB connection is working properly with typing "adb devices". After this you can push your file to your phone.
Gesendet von meinem Nexus 4 mit Tapatalk 2
Could you possibly push it with the nexus4 tool kit it has a flash stock option? Just my two cents just got the phone so I could be wrong
Sent from my Nexus 4 using xda premium
http://forum.xda-developers.com/showthread.php?t=1995688
Install the Nexus 4 Toolkit from the link above... It will install on your C: drive... C:/Google Nexus 4 Toolkit...
Follow the instructions and download the adb files for 4.2.2 found on this page...
Extract them to the folder above, writing over the ones that already exist.
Next, go to https://developers.google.com/android/nexus/images#occam and download the factory rom for 4.2.2
Paste the rom in C:/Google Nexus 4 Toolkit/put_google_factory_image_here
Next, open the .exe called Toolkit in this folder.
Check for update? Say no.
What build do you have? 1
You are now at the main menu...
Select the number 9
Now put your phone in Fastboot mode..
Once its in fastboot mode, type yes and press enter... it will now flash to stock.
This version of the toolkit will not root, b/c adb is different or something... But it will still flash touch recovery, using option 6.
From there you can do what you want, flash a new rom or root stock.... Have a nice day! And click the Thanks button please,
I'm not on often enough to get Thanks....
P.S. I did the same thing yesterday... I'm so used to just wiping everything on my stupid skyrocket.... lol.
But I wanted to do a fresh install b/c I was having some issues with my titanium backup files from the lates rom i was
using on my skyrocket... so now i'm going old school, reinstalling everything one by one from the market... Then i'll do another
titanium backup and a full backup to have a restore point... Makes for a fun weekend...
jpierce1987 said:
http://forum.xda-developers.com/showthread.php?t=1995688
Install the Nexus 4 Toolkit from the link above... It will install on your C: drive... C:/Google Nexus 4 Toolkit...
Follow the instructions and download the adb files for 4.2.2 found on this page...
Extract them to the folder above, writing over the ones that already exist.
Next, go to https://developers.google.com/android/nexus/images#occam and download the factory rom for 4.2.2
Paste the rom in C:/Google Nexus 4 Toolkit/put_google_factory_image_here
Next, open the .exe called Toolkit in this folder.
Check for update? Say no.
What build do you have? 1
You are now at the main menu...
Select the number 9
Now put your phone in Fastboot mode..
Once its in fastboot mode, type yes and press enter... it will now flash to stock.
This version of the toolkit will not root, b/c adb is different or something... But it will still flash touch recovery, using option 6.
From there you can do what you want, flash a new rom or root stock.... Have a nice day! And click the Thanks button please,
I'm not on often enough to get Thanks....
P.S. I did the same thing yesterday... I'm so used to just wiping everything on my stupid skyrocket.... lol.
But I wanted to do a fresh install b/c I was having some issues with my titanium backup files from the lates rom i was
using on my skyrocket... so now i'm going old school, reinstalling everything one by one from the market... Then i'll do another
titanium backup and a full backup to have a restore point... Makes for a fun weekend...
Click to expand...
Click to collapse
Bro you're a lifesaver, i wish i could hit the thanks button 20 times lol. Thanks a lot
Hey all...I'm sorry for sounding like such a noob (trust me i'm not as big as one as you may think) I'm just having a hard time grasping the idea of updating my Nexus. Let me explain:
I'm currently running stock rom but have Matr1x kernel on my phone. The only thing I've changed so far are a few icons (by pulling files from the nexus toolkit, replacing the icons and pushing them back to my phone).
I would prefer not to have to go through and redo all my icons, and would just like to get 4.2 onto my phone.
I looked over the directions on how to do this, but for the life of me (and IDK why) i can't seem to get my head around it...and it's making me feel real real stupid...
can someone please explain to me like i'm 5 how to do this? Or maybe just point me in the direction of a youtube video that will walk me through it...?
Thanks in advance and sorry for being such a noob...
Why not just backup the apk's+data you edited, save them to your computer, flash the stock images, root and restore the apps+data?
Edit: And flash a 4.2.2 kernel.
estallings15 said:
Why not just backup the apk's+data you edited, save them to your computer, flash the stock images, root and restore the apps+data?
Edit: And flash a 4.2.2 kernel.
Click to expand...
Click to collapse
Do I backup via toolkit or with titanium backup?
Also, i tried getting back to stock but for some reason couldn't get it to flash the img file...idk what i was doing wrong...maybe u can give me some pointers on it.
Idk y i'm having such trouble with this, i've been on android since the very begining (had a g1 2 months after it came out)...I guess I was just spoiled with my vibrant being so easy...
zbt1985 said:
Do I backup via toolkit or with titanium backup?
Also, i tried getting back to stock but for some reason couldn't get it to flash the img file...idk what i was doing wrong...maybe u can give me some pointers on it.
Idk y i'm having such trouble with this, i've been on android since the very begining (had a g1 2 months after it came out)...I guess I was just spoiled with my vibrant being so easy...
Click to expand...
Click to collapse
First of all, ditch the toolkit. You don't learn anything when you use toolkits. Probably why you're in the situation you're in.
Backup with titanium, or just make a nandroid and use titanium to extract the apps later.
To flash stock images:
Reboot into bootloader.
Open command prompt and "cd" to the directory where fastboot lies.
Type these commands -
fastboot flash system system.img
fastboot flash boot boot.img
Optional -
fastboot flash bootloader bootloader.img
fastboot flash radio radio.img
Then reboot
estallings15 said:
First of all, ditch the toolkit. You don't learn anything when you use toolkits. Probably why you're in the situation you're in.
Backup with titanium, or just make a nandroid and use titanium to extract the apps later.
To flash stock images:
Reboot into bootloader.
Open command prompt and "cd" to the directory where fastboot lies.
Type these commands -
fastboot flash system system.img
fastboot flash boot boot.img
Optional -
fastboot flash bootloader bootloader.img
fastboot flash radio radio.img
Then reboot
Click to expand...
Click to collapse
Here's where the confusion lies...what do u mean cd where fastboot lies...I know how to cd, but not sure what you mean by where the fastboot would be...
zbt1985 said:
Here's where the confusion lies...what do u mean cd where fastboot lies...I know how to cd, but not sure what you mean by where the fastboot would be...
Click to expand...
Click to collapse
I extract the adb folder from the android SDK and drop it in C:\.
So for me, it's "cd C:\adb"
I believe in the SDK it's in platform-tools or some such jazz. You can always do a search on your computer...
You have installed the android SDK, right? If not, your toolkit might have the adb and fastboot files in it. Grab them from there. Make it work. You can do it.
estallings15 said:
I extract the adb folder from the android SDK and drop it in C:\.
So for me, it's "cd C:\adb"
I believe in the SDK it's in platform-tools or some such jazz. You can always do a search on your computer...
You have installed the android SDK, right? If not, your toolkit might have the adb and fastboot files in it. Grab them from there. Make it work. You can do it.
Click to expand...
Click to collapse
Yes I have the SDK as I use eclipse to complie the apps i make (i cheat)...
I see adb.exe, but not the folder for adbe...
Thanks for all the help man, I hit the thanks button for u!
zbt1985 said:
Yes I have the SDK as I use eclipse to complie the apps i make (i cheat)...
I see adb.exe, but not the folder for adbe...
Thanks for all the help man, I hit the thanks button for u!
Click to expand...
Click to collapse
There should be a fastboot.exe and a few .dll files, as I recall.
Could someone upload all the latest files needed for adb and fastboot in a zip for him? Won't take you 5 minutes. I'm not by my computer.
Why not flash CM10.1 or latest Xylon.
Back up apps with titanium, flash ROM, flash gapps, restore via titanium.
Or do you want stock?
[Nexus⁴]
dEris said:
Why not flash CM10.1 or latest Xylon.
Back up apps with titanium, flash ROM, flash gapps, restore via titanium.
Or do you want stock?
[Nexus⁴]
Click to expand...
Click to collapse
I wanted stock...i only want this for 1) getting updates faster than cm 2) being able to update the hard way and not be a kiddy about it...
Better for me to learn...
http://forum.xda-developers.com/showthread.php?t=2145848
Scenario #3
Continue to section C.
Sent from my Nexus 4 using xda premium
just follow efran's guide, he got the step by step: http://forum.xda-developers.com/showthread.php?t=2010312
gravitysandwich said:
http://forum.xda-developers.com/showthread.php?t=2145848
Scenario #3
Continue to section C.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
That's what is confusing me...
Sent from my Nexus 4 using xda app-developers app
Download this http://d-h.st/iy0. Unzip it. Plug your phone I'm the computer, go to the directory where you installed the toolkit. (Right click on the shortcut/properties it should say it there) go in the directory, FLASH ITEMS HERE folder. Put the boot.img and system.img in there. (Radio.img is optional). Open the toolkit and go to flash images. Flash boot.img first. The directions should be on the toolkit. Then system and etc... Make sure you put it in fast boot or type no when the toolkit asks if your in fastboot mode. This will NOT delete your data. When you flashed everything, go to settings on your phone. (If there is a bug with updating it through settings, clear cache and data for Google services framework and force stop it. Then go to cache on root explorer (/cache) and delete the corrupt/partial update and try Again). Once you reboot, cwm will ask if you want to install update. Hit yes and install untrusted package. Then it will try to replace cwm with stock recovery so hit no. If you lost your root then get supersu from the play store and install the binaries via cwm.
Hope this helps.
Sent from my Nexus 4 using xda premium
---------- Post added at 12:11 AM ---------- Previous post was at 12:02 AM ----------
Btw I chose to flash it through toolkit because I was afraid you would've got the commands mixed up and you would never get it. One day you probably will
Sent from my Nexus 4 using xda premium
Muchos gracias.
Would thank but on my phone
Sent from my Nexus 4 using xda app-developers app
zbt1985 said:
Muchos gracias.
Would thank but on my phone
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You can thank you your phone.
So it worked? Your welcome. I'm guessing you lost root. Here is the zip if you need it
http://download.chainfire.eu/314/SuperSU/UPDATE-SuperSU-v1.20.zip
Sent from my Nexus 4 using xda premium
gravitysandwich said:
So it worked? Your welcome. I'm guessing you lost root. Here is the zip if you need it
http://download.chainfire.eu/314/SuperSU/UPDATE-SuperSU-v1.20.zip
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Haven't had a chance to try it, doing it now...thanks!
Anyone release an installer to install 4.3 from a .zip to install from a flash yet?
lol wut?
naa keep an eye on the android development subforum and on the other 30000000000000000 4.3 threads
You could always flash this 4.3 link.
https://developers.google.com/android/nexus/images#nakasi
Google provides such an easy flash. Just download, extract, and run the flash-all.bat. Will do everything for you (mind you it erases everything on your device).
And walah, android 4.3 Then you can root and unlock bootloader and even flash over cwm or twrp i believe.
stuff said:
You could always flash this 4.3 link.
https://developers.google.com/android/nexus/images#nakasi
Google provides such an easy flash. Just download, extract, and run the flash-all.bat. Will do everything for you (mind you it erases everything on your device).
And walah, android 4.3 Then you can root and unlock bootloader and even flash over cwm or twrp i believe.
Click to expand...
Click to collapse
Yeah I know how to fastboot but its nice to be able to flash right in the device from recovery and make a nandroid before so you can return to cm or whatever you were using.
Sent from my Nexus 7 using xda premium
Well, you might be able to use the Nexus 7 toolkit to create a backup of your device (similar to nandroid) and if you don't like the stock 4.3 you might be able to restore it. Don't take my word on it because I've never tried it.
stuff said:
Well, you might be able to use the Nexus 7 toolkit to create a backup of your device (similar to nandroid) and if you don't like the stock 4.3 you might be able to restore it. Don't take my word on it because I've never tried it.
Click to expand...
Click to collapse
Who wouldn't like new official Android release?
Want a single click ADB setup? Go to my thread I've made a Tool for that. No need to download the whole SDK it's just 2MB
http://forum.xda-developers.com/showthread.php?t=2374071
What to know how to easily pull ota link with ADB follow my thread.
http://forum.xda-developers.com/showthread.php?t=2270429
For official nexus 7 windows 7 - 8 driver download them from ASUS site. No trickery needed.
Sent from my SPH-L710 using Tapatalk HD
Team SXTP
Yesterday I took a crash course in understanding how to root the Nexus 4.
I've been following the directions:
1. Download the Android SDK to PC.
2. Push the openrecovery TWRP 2.6.3.3 mako img to the Nexus.
3. Unlock the device (device was previously not unlocked.)
Step 4 should be pushing the SuperSU v1.69 to the device, but the pce cmd won't let me do this as it doesn't recognize the device.
I was able to get the TWRP interface to load on the device.
When I turn device on, it launches the google screen, but then it shows the 4 colored discs, but will not advance from there-so that's not right.
When I attempt to reboot to recovery, the TWRP launches (success) but I am unable to move the SU zip to the device to launch.
Any help would be greatly appreciated.
TIA.
smw718 said:
Yesterday I took a crash course in understanding how to root the Nexus 4.
I've been following the directions:
1. Download the Android SDK to PC.
2. Push the openrecovery TWRP 2.6.3.3 mako img to the Nexus.
3. Unlock the device (device was previously not unlocked.)
Step 4 should be pushing the SuperSU v1.69 to the device, but the pce cmd won't let me do this as it doesn't recognize the device.
I was able to get the TWRP interface to load on the device.
When I turn device on, it launches the google screen, but then it shows the 4 colored discs, but will not advance from there-so that's not right.
When I attempt to reboot to recovery, the TWRP launches (success) but I am unable to move the SU zip to the device to launch.
Any help would be greatly appreciated.
TIA.
Click to expand...
Click to collapse
You messed something up along the way if it doesn't boot. You may have to flash the factory image, but I'd start with just flashing the system image in fastboot.
The su version your using is really old, the latest is 2.0.1. Google, supersu zip and you should find the latest. If you can boot your device you can just download it to your phone rather than using abd push.
http://forum.xda-developers.com/showthread.php?p=34744793
Sent from my Nexus 5 using XDA Free mobile app
Thanks.
Can you advise on how to flash the system image in fastboot? Or flash the factory image? Is this within the TWRP program? Or?
Thanks for the headsup on the SU version, I will check that out.
jd1639 said:
You messed something up along the way if it doesn't boot. You may have to flash the factory image, but I'd start with just flashing the system image in fastboot.
The su version your using is really old, the latest is 2.0.1. Google, supersu zip and you should find the latest. If you can boot your device you can just download it to your phone rather than using abd push.
http://forum.xda-developers.com/showthread.php?p=34744793
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
So, I had some success. I flashed 4.4.4 which I downloaded from Google directly. What's not explicit in tutorials that I saw is that one has to extract files twice! So once I figured that out, I was able to grab all the necessary image files and run the flash-all command. The rest was a breeze.
smw718 said:
So, I had some success. I flashed 4.4.4 which I downloaded from Google directly. What's not explicit in tutorials that I saw is that one has to extract files twice! So once I figured that out, I was able to grab all the necessary image files and run the flash-all command. The rest was a breeze.
Click to expand...
Click to collapse
Just an fyi, you don't need to extract it twice to run the flash-all.bat. You only extract the zip file if you want to flash system, boot, recovery, etc individually in fastboot. Just extracting the .tgz is enough to run flash-all
Sent from my Nexus 5 using XDA Free mobile app
Is there is an easy to do this without having to wipe everything and start over fresh?
Will this work? http://forum.xda-developers.com/general/paid-software/flashfire-t3075433
WiFivomFranMan said:
Is there is an easy to do this without having to wipe everything and start over fresh?
Will this work? http://forum.xda-developers.com/general/paid-software/flashfire-t3075433
Click to expand...
Click to collapse
I'm on the same boat, but I think our answer will come soon. Today I found out that WugFresh will be updating the NRT Toolkit to support the Nexus Player. See this post.
Why not just download the image and flash it? Plenty of guides on how to do this
lafester said:
Why not just download the image and flash it? Plenty of guides on how to do this
Click to expand...
Click to collapse
I didn't know that there were difficulties with 5.1.1. I used Wugfresh's tool to install 5.1.1 with the "no wipe" option and I had 5.1.1 just fine - but can't figure out how to get root back!! And I need root to expand the storage!! Right now I have a fresh, clean, 5.1.1 install on my NP.
I tried Wugfresh's tool, I sure wish it told me that it didn't work with the firmware that it had already detected!!
I also tried the Chainfire root.img that I used back on 5.0 and it seems to work until I tell SuperSU to update the binaries. At that point it basically times out and asks me to reboot.
What next?! Wait for Wugfresh? Is there another way to root?
I flashed the cm recovery from dhacker and used it to flash the newest beta of supersu. After that the app didn't show up until I installed it from the store but now it works fine
I just want to upgrade it without losing all my stuff (Saved games for my NES ROM, etc...)
Why don't you locate the save data in es file explorer and copy it to the cloud. Reimage nexus player and set up es file explorer, cloud and copy the saved data back to where you stored it.
would anyone be so kind to point me to one of the guides on how to use factory image/OTA to update from 5.0 rooted to 5.1.1? I don't care about keeping my settings, and I don't care about root. just want the latest and greatest.
thanks in advance
The Nexus Player is a Nexus device, and you can always upgrade to the latest version by using the factory images found here: https://developers.google.com/android/nexus/images. The procedure to flash a factory image on any Nexus device has not changed since the Nexus One was released, so you can look at any of the guides for Nexus devices.
Essentially it boils down to this: The factory image contains a few files in an archive format. There are a few images within that you need: bootloader (I can't remember what the name of the file is but it's something like xxxxbootloaderxxx.img), system.img, boot.img, recovery.img). Extract those images from within the archive and flash them. You do this by booting into the bootloader, opening a command prompt in the same folder that you downloaded the image files) on your PC and type the following commands:
fastboot flash bootloader bootloader.img
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot format cache
If you also want to start fresh and wipe all your data, execute the following command: fastboot format userdata
Then execute: fastboot reboot
Done.
Notes:
1) You need to extract these files in the same directory as where you downloaded the images before proceeding.
2) if you are using Windows, you need to install the the driver (found here: http://developer.android.com/sdk/win-usb.html)
3) The procedure above assumes your bootloader is unlocked. If not, you will need to unlock it (using: fastboot oem unlock) and it will wipe all your data.
efrant said:
1) There is currently no way to get root on 5.1.1 without modifying the kernel (so that it boots SELinux in permissive mode).
Click to expand...
Click to collapse
??
I have root on my NP... I used SkipSoft's Toolkit - details are here: http://forum.xda-developers.com/nexus-6/orig-development/toolkit-skipsoft-unified-android-t2967053
etnpnys said:
??
I have root on my NP... I used SkipSoft's Toolkit - details are here: http://forum.xda-developers.com/nexus-6/orig-development/toolkit-skipsoft-unified-android-t2967053
Click to expand...
Click to collapse
You are correct. I was reading another thread talking about Android M, and then I replied to this thread, so my mistake.
I've edited my post.
efrant said:
You are correct. I was reading another thread talking about Android M, and then I replied to this thread, so my mistake.
I've edited my post.
Click to expand...
Click to collapse
Ok - whew! I know that I went through the process but I couldn't be 100% sure because I have tried so many things to get expanded storage working to no avail that I've kinda given up for the time being...
It's a nexus - use custom recovery to flash supersu and your rooted.... Done
Toneman07 said:
It's a nexus - use custom recovery to flash supersu and your rooted.... Done
Click to expand...
Click to collapse
Not necessarily... You still need a modified boot.img to get the whole thing working...
etnpnys said:
Not necessarily... You still need a modified boot.img to get the whole thing working...
Click to expand...
Click to collapse
Thats interesting considering both my nexus phone and samsung tablet are running stock kernels (boot.img) and rooted just fine using the above method.