Fresh install 5.0.1 - Nexus 4 Q&A, Help & Troubleshooting

I am getting a few issues with 5.0.1 such as lost data connection and the dialer dropping calls. I have had this device since 4.4 so many OTA's so would like to do a complete fresh install. Should I download the factory image and use the flash-all command in adb? Will this erase all data, which is what I want, replace all radios etc.

_jay_uk_ said:
I am getting a few issues with 5.0.1 such as lost data connection and the dialer dropping calls. I have had this device since 4.4 so many OTA's so would like to do a complete fresh install. Should I download the factory image and use the flash-all command in adb? Will this erase all data, which is what I want, replace all radios etc.
Click to expand...
Click to collapse
Yes, the flash-all.bat will do what you want. Just boot into the bootloader and with your device connected to the pc double click the flash all
Sent from my Nexus 5 using XDA Free mobile app

Thanks for reply. I gather that I need the stock rocovery on there first.

You will get stock recovery from the stock retail rom.
Sent from my XT1033 using XDA Free mobile app

_jay_uk_ said:
Thanks for reply. I gather that I need the stock rocovery on there first.
Click to expand...
Click to collapse
No, you do not need the stock recovery to flash a factory image. You'll end up with when you flash
Sent from my Nexus 5 using XDA Free mobile app

I just flashed 5.0.1 with flash-all.bat and it is working fine. Yep, you will get the stock recovery if you update your n4 this way. By the way if you remove "-w" from flash-all.bat your device won't be wiped.

A little bit different question... factory image with Lollipop updates bootloader too... So when I will downgrade from LP to KK with factory image bootloader will be downgraded too, right?

parkourz said:
A little bit different question... factory image with Lollipop updates bootloader too... So when I will downgrade from LP to KK with factory image bootloader will be downgraded too, right?
Click to expand...
Click to collapse
You are correct. Factory image dues flash the bootloader too
Sent from my Nexus 5 using XDA Free mobile app

jd1639 said:
You are correct. Factory image dues flash the bootloader too
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
What happens if we install kk custom ROMs and lollipop custom ROMs ? I mean can I switch between KitKat and lollipop custom ROMs directly by flashing the zips in recovery or anything more is to be done?
Sent from my Nexus 4 using XDA Free mobile app

Related

[Q] Problem with OTA 4.3

Hey guys, got a problem here.
My nexus 4 is rooted running team win recovery. running 4.2.2
just got the notification about OTA update 4.3, really excited about it and clicked install.
phone rebooted, went to teamwin, and it looked to me trying to flash something. left it there and suddenly when back to the team win recovery home page. clicked reboot to system and don't know why i'm still in 4.2.2. checked for updates but says system is up to date.
can anyone help me with the solution?
thanks a lot
You need the stock recovery, as said in a thousand other threads. If u want 4.3 flash the system image and re-root
Sent from my Nexus 4 using xda premium
EddyOS said:
You need the stock recovery, as said in a thousand other threads. If u want 4.3 flash the system image and re-root
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Or he could just get any 4.3 ROM and flash it through TWRP.
Sent from my Nexus 4 using xda app-developers app
Aaaaand i am still waiting for my update :/
My two friends with Samsung GNex got the Update, but ME with the Latest Nexus 4 still using 4.2.2 and on stock how beautiful the feeling is haha
Thibaultvw said:
Or he could just get any 4.3 ROM and flash it through TWRP.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Or CWM
If you want it that bad. Just download the factory image from Google devs and flash it.
Then you also have stock ROM running.
Send from my Nexus 4
EddyOS said:
Or CWM
Click to expand...
Click to collapse
He uses TWRP.
Sent from my Nexus 4 using xda app-developers app
Is there any way to revert back to stock recovery in order to get the update?
Further more, is there an option to do so without re-flashing stock all together?
wizardwiz said:
Is there any way to revert back to stock recovery in order to get the update?
Further more, is there an option to do so without re-flashing stock all together?
Click to expand...
Click to collapse
You can extract the stock recovery from the factory image and flash through fastboot.
Hit thanks if I helped.
Sent from my Nexus 4 using xda app-developers app
You can get the stock 4.2.2 recovery from the 4.2.2 factory image. I did have it but as I only keep the current factory image I only have the 4.3 recovery to hand
EddyOS said:
You can get the stock 4.2.2 recovery from the 4.2.2 factory image. I did have it but as I only keep the current factory image I only have the 4.3 recovery to hand
Click to expand...
Click to collapse
OK, did some further investigations and here are my findings
1. If you have it, you can use Wugfresh's toolkit (V1.6.4 for now) and it has a utility that can simply restore stock recovery and if you want it, stock kernel as well.
2. The Toolkit will download all necessary files and prompted you before each step.
3. It will revert back permissions for the stock recovery as well
I'll give it a try later on at home.
Thanks guys
Ziv
I am a bit confused. According to the “Nexus OTA Help-Desk” thread, the way to do this is as follows:
Scenario #2
You are stock, with root. Custom Recovery without any modifications or deletions.
Continue to Section B
Section B: Flashing in a custom recovery
1) Download the OTA.zip and copy to your phone.
2) Boot into recovery
3) Flash the OTA
4) Flash Su.zip: (SU is being updated often so check Chainfire's G+ for the latest) https://plus.google.com/+Chainfire/posts
NOTE: Root on 4.3 is not stable. Your mileage may vary.
5) Reboot
So, what is different about using this method to install the OTA and just running the OTA from the notification, and is this the incorrect method?
Is returning to the stock recovery the preferred and more or less foolproof method?
I'm not sure why there's people saying otherwise, but from my experience you don't need stock recovery to take on an OTA...
I've updated my N7 several times now from when I first bought it to 4.3 currently, all the time with a custom recovery. Unless you've changed some other files which causes an error during the OTA update, I don't believe there is a need to re-flash stock recovery at all.
@mlj11, lots of people have the OTA failing on them, even if they are on rooted factory image 4.2.2.
Why the OTA fails on rooted 4.2.2 is still unclear.
My N4 with rooted factory image 4.2.2 also updated like it should without error.
Maybe the unlocked bootloader is the issue letting the 4.3 OTA fail.
Send from my Nexus 4
@DecypherT
I'm not saying that rooted users will have no problems updating. My post was in response to people on this thread saying that a custom recovery will stop the OTA. This is false.
It can't be the unlocked bootloader (and it has never been) causing the problem otherwise you or I wouldn't have been able to take the OTA, for example. More likely it's something else.
If any of a user's system files have been altered, there's a good chance the OTA will fail. In the past that happened to me because the Stickmount app changed one of the system files. Once I replaced it though, I could update without any problems.
Ok, good points you're proving here.
Still, it looks like the (OTA) android 4.3 is very unstable.
I'm on rooted 4.3 and experience no big bugs or flaws though.
I do see a very large decrease of battery life when using the phone (screen on) and a big increase when in deep sleep. When the phone is off I almost use no battery.
Send from my Nexus 4

Flash OTA with TWRP

Today I received the ota for 4.4 on my Nexus 4 and when I pressed "restart and install" it went to my custom recovery (which was flickering BTW Idk why never seen it do that before) and when I restarted it I wasn't running 4.4. I found the download location for the OTA would it be OK for me to boot into twrp and simply flash it like I would any other custom rom? Just wanted to ask before I did it.
Sent from my Nexus 4 using xda app-developers app
tsmith9191 said:
Today I received the ota for 4.4 on my Nexus 4 and when I pressed "restart and install" it went to my custom recovery (which was flickering BTW Idk why never seen it do that before) and when I restarted it I wasn't running 4.4. I found the download location for the OTA would it be OK for me to boot into twrp and simply flash it like I would any other custom rom? Just wanted to ask before I did it.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Hi, What format is it in? Unless it's in a zip format (which I doubt) then flagging it through recovery won't work I think .. I'll have a poke about and see what I can find ..
K
Sent from my Nexus 4 using Tapatalk 2
Hi can you tell me where you found the ota folder I am looking for it but can't locate it.I had the same problem as you.I think we need to be on stock recovery for it to install.
Sent from my Nexus 4 using xda app-developers app
Usually a root browser go to root and it is under the cache folder.
Sent from my Nexus 4 using xda app-developers app
krrunch said:
Hi, What format is it in? Unless it's in a zip format (which I doubt) then flagging it through recovery won't work I think .. I'll have a poke about and see what I can find ..
K
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
OK and yes it is in a zip format
Sent from my Nexus 4 using xda app-developers app
tsmith9191 said:
Today I received the ota for 4.4 on my Nexus 4 and when I pressed "restart and install" it went to my custom recovery (which was flickering BTW Idk why never seen it do that before) and when I restarted it I wasn't running 4.4. I found the download location for the OTA would it be OK for me to boot into twrp and simply flash it like I would any other custom rom? Just wanted to ask before I did it.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Depending on how the ota image is packaged you may want to take a look at this thread here
http://forum.xda-developers.com/showthread.php?t=2010312
[HOW-TO] How to flash a factory image / return to stock / unlock / root #
Hth
K
--------
:: Nexus 4 :: SlimKat :: Faux mainline ::
---------- Post added at 10:13 PM ---------- Previous post was at 10:08 PM ----------
tsmith9191 said:
OK and yes it is in a zip format
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Then I see no reason why you can't give it a go Make sure you have a backup of everything though before you go ahead .. I'm assuming you already have an unlocked bootloader ..
--------------------------------------------------------------
:: Nexus 4 :: SlimKat :: Faux mainline ::
Yes I do have an unlocked bootloader
Sent from my Nexus 4 using xda app-developers app
guys you can't flash the OTA while running custom recovery or roms. If you want to be on kitkat why not just download one of the many stock rooted roms out there? Make your life simple and for future reference like I said custom recovery will not flash OTA unless its been manipulated by someone
I tested flashing OTA using latest TWRP successfully on a 100% unmodified stock rom with no root. CWM on the other hand is not compatible for flashing OTA.
I do not recommend doing this, modifications to your /systems partition or root can cause it to fail and softbrick. I have heard people hardbricking their device too due to the bootloader getting corrupted in the process.
Make a backup before you flash.
I have installed franco kernel but I backed up the stock kernel and restored it. I have also used xposed but I uninstalled that as well as disabled and uninstalled the only module I was running which was gravity box.
Sent from my Nexus 4 using xda app-developers app
eksasol said:
I tested flashing OTA using latest TWRP successfully on a 100% unmodified stock rom with no root. CWM on the other hand is not compatible for flashing OTA.
I do not recommend doing this, modifications to your /systems partition or root can cause it to fail and softbrick. I have heard people hardbricking their device too due to the bootloader getting corrupted in the process.
Make a backup before you flash.
Click to expand...
Click to collapse
What do you recommend I do to receive the 4.4 update without losing data?
Sent from my Nexus 4 using xda app-developers app
tsmith9191 said:
What do you recommend I do to receive the 4.4 update without losing data?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Backup your data partition first, then follow either of the two guide links in my signature to flash 4.4 factory image without wiping data.
I had the same problem yesterday where the OTA made absolutely no changes (This method worked fine when I went from 4.2 to 4.3 under the same conditions; TWRP, unlocked bootloader, and stock ROM). It may be related to a new conflict with TWRP. I also had a hybrid radio installed, but I put the stock radio back in before I tried the OTA; however there were a couple changes associated with this such as build prop changes and LTE activation that I did not revert. Who knows. After searching this forum I came across a fix in the "Nexus 4 OTA Help-Desk" thread...fancy that. If you have the Android SDK installed, this is a really quick and easy fix.
1) Under "Factory Images "occam" for Nexus 4" I downloaded "4.4 (KRT16S)".
https://developers.google.com/android/nexus/images#occamkrt16s
2) I then followed these directions (WARNING: Note the instructions to remove the "-w" from the flash-all.bat file before you run it. This will retain all your existing data, apps, settings, etc.).
http://forum.xda-developers.com/showthread.php?t=2527142
3) I then installed the latest versions of TWRP (for recovery) and superuser (for root).
Now I have a fully functioning 4.4 install with no loss of data. I am holding off on the new hybrid radio until things stabilize a bit with that.
pjc123 said:
I had the same problem yesterday where the OTA made absolutely no changes (This method worked fine when I went from 4.2 to 4.3 under the same conditions; TWRP, unlocked bootloader, and stock ROM). It may be related to a new conflict with TWRP. I also had a hybrid radio installed, but I put the stock radio back in before I tried the OTA; however there were a couple changes associated with this such as build prop changes and LTE activation that I did not revert. Who knows. After searching this forum I came across a fix in the "Nexus 4 OTA Help-Desk" thread...fancy that. If you have the Android SDK installed, this is a really quick and easy fix.
1) Under "Factory Images "occam" for Nexus 4" I downloaded "4.4 (KRT16S)".
https://developers.google.com/android/nexus/images#occamkrt16s
2) I then followed these directions (WARNING: Note the instructions to remove the "-w" from the flash-all.bat file before you run it. This will retain all your existing data, apps, settings, etc.).
http://forum.xda-developers.com/showthread.php?t=2527142
3) I then installed the latest versions of TWRP (for recovery) and superuser (for root).
Now I have a fully functioning 4.4 install with no loss of data. I am holding off on the new hybrid radio until things stabilize a bit with that.
Click to expand...
Click to collapse
Hybrid radios are fine I have been running 4.4 and .27/84 with no issues for weeks... No need to flash the 97 if you have a hybrid radio that was already working fine. sometimes just cuz its new dont make it better...
playya said:
Hybrid radios are fine I have been running 4.4 and .27/84 with no issues for weeks... No need to flash the 97 if you have a hybrid radio that was already working fine. sometimes just cuz its new dont make it better...
Click to expand...
Click to collapse
Good to know. By the way, the 27/84 hybrid radio is the only one that would work for me (quick GPS lock). I don't have LTE in my immediate area anyway (Straight Talk AT&T), so I am in no rush, and will see how the .27/97 works out for users.
pjc123 said:
I had the same problem yesterday where the OTA made absolutely no changes (This method worked fine when I went from 4.2 to 4.3 under the same conditions; TWRP, unlocked bootloader, and stock ROM). It may be related to a new conflict with TWRP. I also had a hybrid radio installed, but I put the stock radio back in before I tried the OTA; however there were a couple changes associated with this such as build prop changes and LTE activation that I did not revert. Who knows. After searching this forum I came across a fix in the "Nexus 4 OTA Help-Desk" thread...fancy that. If you have the Android SDK installed, this is a really quick and easy fix.
1) Under "Factory Images "occam" for Nexus 4" I downloaded "4.4 (KRT16S)".
https://developers.google.com/android/nexus/images#occamkrt16s
2) I then followed these directions (WARNING: Note the instructions to remove the "-w" from the flash-all.bat file before you run it. This will retain all your existing data, apps, settings, etc.).
http://forum.xda-developers.com/showthread.php?t=2527142
3) I then installed the latest versions of TWRP (for recovery) and superuser (for root).
Now I have a fully functioning 4.4 install with no loss of data. I am holding off on the new hybrid radio until things stabilize a bit with that.
Click to expand...
Click to collapse
So the directions you have listed are the ones you found at the help desk?
tsmith9191 said:
So the directions you have listed are the ones you found at the help desk?
Click to expand...
Click to collapse
Yes, and since then in other forums, and since then in eksasol's post above.
I was in the same boat as you. Flashed stock 4.4 (entire image, not just the ota) and never lost data. I did have to reroot though.
Sent from my Nexus 4, while driving in my Evo9.

Update problem

I am trying to update my tablet to lollipop. But every time I do the OTA update it makes it halfway through and says Error. I would like to update to lollipop and then root it again. What should I do. I was rooted at one time. I even did a factory reset and can't get it to update.
Sent from my SM-N900P using XDA Free mobile app
gatoremt said:
I am trying to update my tablet to lollipop. But every time I do the OTA update it makes it halfway through and says Error. I would like to update to lollipop and then root it again. What should I do. I was rooted at one time. I even did a factory reset and can't get it to update.
Sent from my SM-N900P using XDA Free mobile app
Click to expand...
Click to collapse
Is your bootloader unlocked? Have you tried flashing the official factory image through fastboot? The most friendly utility in this situation is Nexus Root Toolkit. You can get root easily with it as well as unlock bootloader, flash kernel, rom, basically everything. I'd really suggest downloading that.
It was and it updated to 4.4.4 and I lost root. So I can use the root tool kit to update to lollipop?
Sent from under my bed.
I'm not sure, but I think you can. Search the web for that one. Your bootloader NEEDS to be unlocked in order to update to lollipop. If I were you, I'd flash the image using flash-all script provided in the factory image package. It is fully automated and I haven't experienced a problem with it.
I got it fixed thanks
Sent from my SM-N900P using XDA Free mobile app
No problem, glad to hear that!
Fobos531 said:
Is your bootloader unlocked? Have you tried flashing the official factory image through fastboot? The most friendly utility in this situation is Nexus Root Toolkit. You can get root easily with it as well as unlock bootloader, flash kernel, rom, basically everything. I'd really suggest downloading that.
Click to expand...
Click to collapse
Found this post through Google after having the same problem trying to apply the 5.1 OTA to a formerly rooted Nexus 7 Grouper. Using the Skipsoft Toolkit to unroot didn't work right, kept producing a aituation where it wouldn't boot Android and attempting to flask the stock image would fail too.
Used Nexus Root Toolkit "Flash Stock + Unroot" option to return to stock, and then applied the 5.1 factory image using the no wipe option and regain root and everything worked PERFECTLY. All my user data is even still intact.
Thanks very much for this!
That is what I did too.
Sent from under my bed.

How do I update to M build without factory reset

Hello,
This is probably a noob question & I tried to research around myself. I've always rely on someone making a flashable stock rom for every update. I usually keep my phone rooted but run on stock rom with xposed. There's hasn't been a stock rom for m build published. Could anyone share the appropriate adb manual update instructions without factory resetting my phone? Thanks in advance.
Try this. http://forum.xda-developers.com/showpost.php?p=63774219&postcount=15
jimbotron said:
Hello,
This is probably a noob question & I tried to research around myself. I've always rely on someone making a flashable stock rom for every update. I usually keep my phone rooted but run on stock rom with xposed. There's hasn't been a stock rom for m build published. Could anyone share the appropriate adb manual update instructions without factory resetting my phone? Thanks in advance.
Click to expand...
Click to collapse
All you need to do is flash the factory images, see section 9 of my guide:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
Heisenberg said:
All you need to do is flash the factory images, see section 9 of my guide:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
Click to expand...
Click to collapse
Won't flashing the factory image wipe his data any way?
I think only when you unlock and relock the bootloader is when it'll erase data.
B_I_N_G_E said:
Won't flashing the factory image wipe his data any way?
Click to expand...
Click to collapse
No, you can do it without erasing data.
gqukyo said:
I think only when you unlock and relock the bootloader is when it'll erase data.
Click to expand...
Click to collapse
Using the flash-all batch file in the factory images will wipe the device, but you can do it manually without wiping.
Do I need to flash everything if I want to keep root? Or can I skip bootloader, recovery, and boot image files since the k build boot image works with m build?
Thanks in advance again
Sent from my Nexus 6P using XDA Free mobile app
jimbotron said:
Do I need to flash everything if I want to keep root? Or can I skip bootloader, recovery, and boot image files since the k build boot image works with m build?
Thanks in advance again
Sent from my Nexus 6P using XDA Free mobile app
Click to expand...
Click to collapse
You can only skip the boot, recovery, and userdata images but all other files need to be flashed.
OK. How about bootloader file? Can I skip that too? Do I need to do anything new with su?
Sent from my Nexus 6P using XDA Free mobile app
jimbotron said:
OK. How about bootloader file? Can I skip that too? Do I need to do anything new with su?
Sent from my Nexus 6P using XDA Free mobile app
Click to expand...
Click to collapse
As I said, you need to flash everything except for recovery, boot, and userdata. Just follow the usual process to root the updated build.

Getting my 6p tomorrow. Suggested first steps?

Been looking through the root guide and of course will be unlocking and rooting. Should I first unlock, flash TWRP, load stock. Set up stock with my accounts and settings. Reboot to TWRP. Make NAND back up. Then root and then flash a rom? I'm still confused about the library IMG file. Will I need to do anything with it assuming the phone I receive was manufactured within the last 2 months?
Any other tips/suggestions would be much appreciated.
Sent from my LG-D851 using XDA Free mobile app
If you plan on unlocking bootloader, do that first. Device has to be wiped clean when doing so.
update to the March MHC19I update before modifying the system partition. It'll save you the headache of doing it via fastboot and re-rooting.
sirdizzle415 said:
update to the March MHC19I update before modifying the system partition. It'll save you the headache of doing it via fastboot and re-rooting.
Click to expand...
Click to collapse
So unlock bootloader. Flash TWRP. Load stock. Update to latest update (can I do this via OTA?) Then NAND back up and flash ROM?
Sent from my LG-D851 using XDA Free mobile app
Don't forget to flash SuperSU
Sent from my Dope 6P using Tapatalk
Unlock Bootloader, Ota or flash by other means, then root and flash twrp
Sent from my Nexus 6P using Tapatalk
Starzboy77 said:
So unlock bootloader. Flash TWRP. Load stock. Update to latest update (can I do this via OTA?) Then NAND back up and flash ROM?
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
I'll give it a try. Comments from anyone?
Unlock bootloader then upgrade to latest FW by OTA (or vice versa?), then flash TWRP and nandroid. Now root.
Great. I hope the OTA will pop up as soon as possible or is there a way to manually search for updates through system settings? By the way, thank you everyone.
Sent from my LG-D851 using XDA Free mobile app
Starzboy77 said:
So unlock bootloader. Flash TWRP. Load stock. Update to latest update (can I do this via OTA?) Then NAND back up and flash ROM?
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
Unlock your bootloader, then take the OTA(s) to the latest build (MHC19I). You can't take an OTA with TWRP installed so don't flash that first. If for some reason the OTA doesn't appear you can just flash the factory images for the latest build in order to update. Once you're fully up to date you can flash TWRP and make a nandroid backup. Then just flash whatever ROM you want to use. Keep in mind that after flashing the ROM + gapps you also need to flash the appropriate vendor image to suit the build of the ROM you're flashing. You can flash it with fastboot, or use the "install image" option in bottom-right corner of the install menu in TWRP (TWRP can flash some images now).
I have detailed instructions in my guide:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928

Categories

Resources