I'm unlocked, rooted and running lean kernel, otherwise stock. I have a notification that 5.0.1 is downloaded and ready to install, will this affect root or otherwise mess things up?
My understanding is that this will not work because in lollipop, the update patches the system partition at the block level so it has so be a pristine image.
My question for the experts out there is this: can I just fastboot flash the system.img from the factory 5.0 image, then boot into twrp and flash the 5.0.1 update, then re-root? Or if I'm going to go to that trouble, should I just fastboot flash the system.img from the factory 5.0.1 image to accomplish the same thing?
While I'm at it, is there a new radio or anything else in the 5.0.1 factory image that I should flash?
What's the safe way to get to 5.0.1 from rooted stock 5.0 without losing the data partition?
Thanks
Related
I've been flashing phones since way back with the tmobile G1, but I just don't have the time to be constantly fiddling around with my phone. To that end, I want to update from 5.0 to stock but rooted 5.0.1 (or 2) but I don't want to have to do a full wipe. It takes forever to get everything back just the way I like it. Is it possible? I'm getting the stupid OTA update notification and its driving me crazy.
By the way I did search before I posted a new thread. Found lots that say you can't take the OTA but nothing specifically pointing me to a stock ROM that won't require a wipe.
Thanks for taking the time to help.
ripsphone said:
I've been flashing phones since way back with the tmobile G1, but I just don't have the time to be constantly fiddling around with my phone. To that end, I want to update from 5.0 to stock but rooted 5.0.1 (or 2) but I don't want to have to do a full wipe. It takes forever to get everything back just the way I like it. Is it possible? I'm getting the stupid OTA update notification and its driving me crazy.
By the way I did search before I posted a new thread. Found lots that say you can't take the OTA but nothing specifically pointing me to a stock ROM that won't require a wipe.
Thanks for taking the time to help.
Click to expand...
Click to collapse
Options are:
1) Download full factory image and remove the -w flag from the flash-all script (Will replace your recovery)
2) individually fastboot flash the system, boot and radio image using fastboot from above factory image
3) find a recovery flashable rom.zip if you have a custom recovery
If you want root, flash it from recovery before booting.
ripsphone said:
I've been flashing phones since way back with the tmobile G1, but I just don't have the time to be constantly fiddling around with my phone. To that end, I want to update from 5.0 to stock but rooted 5.0.1 (or 2) but I don't want to have to do a full wipe. It takes forever to get everything back just the way I like it. Is it possible? I'm getting the stupid OTA update notification and its driving me crazy.
By the way I did search before I posted a new thread. Found lots that say you can't take the OTA but nothing specifically pointing me to a stock ROM that won't require a wipe.
Thanks for taking the time to help.
Click to expand...
Click to collapse
Here are the steps I took to flash the factory image and not lose my settings:
Flash bootloader and radio:
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.05.img
fastboot flash radio radio-shamu-d4.0-9625-02.55.04.img
After flashing the bootloader/radio, you need to reboot the bootloader as shown below, don't skip this step!
fastboot reboot-bootloader
I then unzipped this file: image-shamu-lrx22c.zip
Now you can move on to the rest of the files
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
Finally, just reboot your device, and Android should start up.
fastboot reboot
After the phone restarted I then used CF-Auto-Root to re-root my phone. I did not lose any of my settings or installed apps. HTH...
I have read so much and information seems contradictory. One thing says if you root and take custom recovery you will never be able to update your phone via OTA. But I have been updating with fastboot so is updating like that still possible? And I understand you can get back to stock to take an OTA anyway. Is that correct?
It has been said that you cannot decrypt your N6 after taking 5.xx? (can't remember which) OTA. Is it not possible to decrypt with fastboot or adb after that particular update? If I just take all the OTA's before flashing twrp and rooting will I still be able to decrypt at the 5.1.1 version if I want to? And, there are custom kernels that allow things that the stock one won't allow. Currently using a 2013 Moto X rooted and twrp on 5.1. I've been updating by flashing stock recovery and system.img from sbf files and then taking the OTA successfully. Will the N6 still work that way?
Groid said:
I have read so much and information seems contradictory. One thing says if you root and take custom recovery you will never be able to update your phone via OTA. But I have been updating with fastboot so is updating like that still possible? And I understand you can get back to stock to take an OTA anyway. Is that correct?
It has been said that you cannot decrypt your N6 after taking 5.xx? (can't remember which) OTA. Is it not possible to decrypt with fastboot or adb after that particular update? If I just take all the OTA's before flashing twrp and rooting will I still be able to decrypt at the 5.1.1 version if I want to? And, there are custom kernels that allow things that the stock one won't allow. Currently using a 2013 Moto X rooted and twrp on 5.1. I've been updating by flashing stock recovery and system.img from sbf files and then taking the OTA successfully. Will the N6 still work that way?
Click to expand...
Click to collapse
OTA checks system and kernel and if anything is changed, OTA will fail. That includes root.
Fastboot flashing a system.img, boot.img and recovery.img would be enough to unroot and get back to stock however, you would only want to OTA if the rom you wanted didn't have a factory image.
Decryption is possible on all ROMs. It's just a custom kernel (boot.img) that doesn't force encryption on boot, then format userdata to get rid of existing encryption. Of course you're modified now so no OTA.
People care so pointlessly about OTA. Advice: forget about it and fastboot flash to update, or easier yet, wait for someone to package it up into a recovery flashable zip
I have a 1095 Moto X 2014, rooted, running stock OS (22.21.11.victara_tmo.tmo.en.US). For the past several weeks, my phone has been asking me to take an OTA upgrade (5.0 -> 5.1, I believe), which I've been avoiding because I'm concerned it will either fail due to root, or cause me to lose my root privileges, forcing me to wipe my phone to regain root. Does anyone have any advice for the best way to handle this? I'm okay with wiping my phone if there's some clear path to restoring my data and settings using Titanium Backup, Nova backup/restore, etc. I know this is sort of a general question, but I'm just looking for a clear workflow for backing my phone up, taking the OTA upgrade and then restoring everything while maintaining root. Any advice would be greatly appreciated.
There is no way to retain root for the upgrade. My suggestion would be to download the full 5.0 firmware, the flash just the system image and recovery image. This will remove root and everything should be back to stock. Then you can take the OTA to 5.1. After that just reroot the phone. No formatting or factory resets are necessary. However I do still recommend doing titanium backup before this just in case.
Sent from my XT1095 using Tapatalk
So, more or less do:
1. backup
2. fastboot flash recovery recovery.img
fastboot flash system system.img
3. reboot, take OTA update
4. re-root with CF-Auto-Root
Does that sound right?
Yes, assuming CF-Auto-Root will work with the latest firmware. I actually never tried it. Normally I flash back TWRP and flash the SuperSu.zip.
This worked perfectly! The only little hiccup was that adb had problems sideloading the SuperSu zip, but TWRP ended up taking care of root for me...it was totally seamless, actually. I am now 5.1 + root and retained all my settings, etc...thanks!
Ok, here's the rundown - I have a VZW Moto X (XT1096). I previously ran mofo on it had flashed the 5.1 img files to it and so had 5.1 rooted, but with a locked bootloader. After learning that JCase had gotten sunshine to work on it I unlocked my boot loader. I then decided that because I was worried about having the a kind of mish-mash of systems on it, i.e., 5.0 bootloader (unlocked) with hacked and modded 5.1 system files flashed from mofo, that I wanted to start fresh. I then used the XT1096 flash to stock script and flashed back to 5.0 (there were a bunch of problems and bootloops and force closes, but I am happy to report I am now on a fully stock 5.0 with unlocked BL). Following being stock I have tried to take the OTA but have been unable to do so. When I try it OTA on my device it just sits at 0%. When I tried using MDM it gave me an error message that it failed to install the update - on the device it said getjar: unlocked.
So, now that I am on 5.0 with an unlocked bootloader I am not sure how to proceed with my priorities, Root, WiFi tethering and upgrading to 5.1. My questions are this:
(1) How can I upgrade to 5.1 or does my bootloader unlock preclude that?
(2) How best can I achieve root?
(3) Once I am rooted what do I need to do in order to enable wifi tethering?
Thank you so much!
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot and flash the stock system.img and recovery.img before doing the update.
3. I don't have experience with Verizon network. I use T-Mobile on this Verizon device and I just enable WiFi Hotspot. In the APN settings, in the "APN type" field, I add the value "dun". And set everything to IPv4.
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
eksasol said:
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
Click to expand...
Click to collapse
Thank you for the reply - got the update to take and have gotten the device rooted properly.
Now I just need to enable wifi tether - anyone know what is done in the Mofo images that allows it - can i do the same here?
I am interested in this question as well. I am in the exact same boat as the OP, except I am still on a Mofo 5.1 img that is giving me issues. I'd like to flash back to stock and take the OTA. But wifi tether will be a must.
Thanks to mikeoswego we have the tethering answer.
http://forum.xda-developers.com/showthread.php?p=62379151
eksasol said:
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
Click to expand...
Click to collapse
I tried this but after I flash TWRP I can't boot to recovery. If I choose recovery from the bootloader it just turns off the phone (charging icon). If I send it adb reboot recovery I get error android "No Command."
Flashed it multiple times, tried mfastboot, no luck. Any ideas?
Edit: I feel dumb. I was using power button to try to select, it's volume up. Good to go.
GatorsUF said:
Thanks to mikeoswego we have the tethering answer.
http://forum.xda-developers.com/showthread.php?p=62379151
Click to expand...
Click to collapse
The other method (the one I used) was to install the Xtether xposed module for the 2013 Moto X - worked perfectly for me.
I feel like a complete noob for asking this in regards to my XT1096, but, how would I get rid of the unlocked bootloader warning message?
SargeStryker said:
I feel like a complete noob for asking this in regards to my XT1096, but, how would I get rid of the unlocked bootloader warning message?
Click to expand...
Click to collapse
Flashing this
http://forum.xda-developers.com/showthread.php?t=2871478
juliospinoza said:
Flashing this
http://forum.xda-developers.com/showthread.php?t=2871478
Click to expand...
Click to collapse
Thanks!
It's been a while since I meddled with my phone and I fear some of the adb basics are failing me. I had rooted my XT1092 a while ago and changed the DPI via a build.prop edit. Now since my device was rooted, I could not update to the subsequent 5.0.2 and later 5.1 via an OTA. As the damned "Update device" message keeps popping up and annoying the bejeezus outta me, I decided to take the 5.0.2 update via a zip (which again failed, since it needed stock unrooted 5.0 (Status 7 error, if I remember correctly).
I managed to unroot my phone, but the edited build.prop still stops me from an OTA/zipped stock update. I'd rather not do a full wipe of my device to get back to stock 5.0 (LXE22.46-19). So my question is this: can I get back to complete stock unrooted 5.0 by merely flashing the system.img files via mfastboot? Or would that cause an issue? Or flash all the files from logo.bin to fsg.mbn and stop there without wiping data? Or any other suggestion to get to 5.1 on a once-rooted phone with an edited build.prop? TIA!
You can always flash the same version of Android without a data wipe. Just download a stock firmware for same or higher Android version, follow all steps for flashing in the flashfile.xml, just don't use the command fastboot erase userdata at last. And you must flash from system image, the OTA won't work.