yashsingh1/xdaforums huggingface dataset:
[Moto X General] kayserxx:
upload the stock recovery lollipop please!!!!
[Moto X General] r_diaz13:
Good work, love your detailed explanations always .
[Moto X General] KidJoe:
I don't have it. Nor do I have the leaks of 5.02 that had been posted.
[Moto X General] louiscypherbr:
I'm on 5.1 with all updates till now, with BL unlocked and recovery untouched, so I can grab the stock recovery if someone tell me how to do it on fastboot/mfastboot.

I'm waiting since I can make a backup before installing twrp. My aim is just to root, but I have to install twrp to do it, so I would like to backup stock recovery, flash twrp, flash cf-root, and then flash stock recovery again.

edit: I have xt1058 retail BR
[Moto X General] bronko15344:
The easy way on a nexus device would be to use fastboot to boot directly a recovery image without prior flashing and make a full backup

fastboot boot path-to-your-twrp-recovery.img

But actually I'm not sure if that is supported by our phone. If not I will check later for a different approach.
[Moto X General] KidJoe:
That doesn't work on the 2013 Moto X.
[Moto X General] KidJoe:
The DD Commands to use are posted somewhere, I don't recall which thread.. :(
[Moto X General] louiscypherbr:
I know how to use dd (I'm a Linux user), but we have to use it with adb with root, and the only way I know to root it is installing twrp or cwm, and that's why I need to backup it before.
[Moto X General] louiscypherbr:
Nobody knows how to do it? Isn't it possible to get stock recovery directly from the phone before rooting it (which is required to use dd on adb)?
[Moto X General] daddylonglegs:
I have a Developer's Edition of this phone so I don't think I installed any custom recovery, but it's been a while so I do not remember. Is there any different process for those with Developer Editions of the phone other than not locking the bootloader? I never installed a custom ROM or anything. I don't even think I installed a custom recovery since the unlocking came right from Motorola. Also, I really do not want to do a factory wipe; I just want to be able to go to "about phone" and get the update. :)

I am still on 4.2.2 and would like to go to Lollipop (Motorola's page doesn't even have a download for 4.2.2 for Verizon! So now I don't know what to do!)..
[Moto X General] jamesino:
I am running Verizon 4.4.4 with unlocked bootloader with TWRP recovery and I just downloaded the 5.1 OTA today. After I follow the first set of instructions and return my phone to stock, I don't need to follow the instructions for sideloading right? I can just go ahead and directly install the downloaded OTA?
[Moto X General] KidJoe:
NOTE: this is being dicusssed in another thread... -> http://xdaforums.com/moto-x/general/guide-newbies-how-to-revert-to-stock-t3104208/page2 starting at post #21
[Moto X General] KidJoe:
So where did you download the 5.1 OTA for Verizon from today? I got an OTA on my VZW XT1060, but its to 212.166.3 build KXA21.12-L1.26-3 which is still 4.4.4. And I've not seen the forums come alive with "ITS HERE" type posts, nor a link to the 5.1 OTA zip file for Verizon phones..

I used the process in the OP of this thread to flash stock recovery back on my phone, then I took the OTA. Then I used the process again to flash TWRP back on.

NOTE: I'm unlocked bootloader, rooted, running TWRP, with Xposed instaled (MotoXNetActivity module installed).

If you used the Software Update feature on the phone to download the update, you don't need the SIDELOAD instructions. The only time you need the SIDELOAD steps are if you downloaded the OTA ZIP file from a thread in the forums or someplace, and you are trying to manually install it.
[Moto X General] JulesJam:
Supposedly the newer OTA updater scripts are more stringent. I always flash completely back to stock.

---------- Post added at 05:51 PM ---------- Previous post was at 05:46 PM ----------

If you wait and don't take the OTA and instead use Motorola Device Manager to update your OS, it leaves a copy of the fxz on your computer in

C:\ProgramData\Motorola\SUE\Firmwares
[Moto X General] jamesino:
My apologies, my OTA turned out to be the same as the one you received after I restored my phone to stock. I thought it was the 5.1 update, but it was just the VZW maintenance update. Sorry for the confusion.
[Moto X General] KidJoe:
The 212.166.3 build KXA21.12-L1.26-3 (which is still 4.4.4) OTA that just pushed to Verizon users flashed fine with my just putting stock recovery on first. I did not have to disable Xposed or do anything else.

But it really seems to be based on exactly what is being upgraded.. i.e. the more parts touched by the update, the more the extensive the pre-flash checks are ... hence some updates could seem "more stringent" than others... With the amount of changes in 5.x over 4.4.4, I expect the pre-flash checks will be substantial in comparison to say the 4.4.2 to 4.4.4 update.

Thanks for the reminder, but the whole point to this thread is for those who are impatient, get notified about the OTA when they are "on the go" and away from their PC, but want to try to take the update "now." The process in the OP allows them to put stock recovery back on their phone so they can attempt to do so. If they retain root, they can use the same process to flash TWRP or other custom recovery back on their phone, after the update. But yes, it does not address any changes to /system or other tweaks or such they might have done to their phone.

The additional notes on side loading the OTA can also be used by those who can't wait, the update hasn't been pushed OTA to them, nor has it appeared via Moto Device Manager app on their PC, or on anyone of the sites hosting FXZ/SBF files (including Moto's web site), yet someone posted a copy of the OTA ZIP online.
[Moto X General] JulesJam:
I understand but I am pointing out that by being impatient, they are losing the ability to capture the fxz. They may not know that.

---------- Post added at 06:14 PM ---------- Previous post was at 06:05 PM ----------

I don't see what the big deal is about flashing stock system and recovery before you take the OTA. You don't erase your data partition or sdcard so the only thing you lose is what is stored on system, which isn't your apps, settings or media. Takes under 5 minutes to flash back to stock system and recovery and then after you take the OTA, takes another under 5 minutes to reflash twrp and root.

The method in the OP takes about as long.
[Moto X General] KidJoe:
The fastest way back to stock is usually, go to your PC with Android SDK/Platform Tools, Moto Drivers, and Moto's fastboot... reboot the phone to Fastboot AP menu, then use mfastboot on the PC to flash system.img, recovery.img and boot.img (if running custom kernel). For example, see -> http://xdaforums.com/moto-x/general/faq-kit-kat-how-to-prepare-carriers-t2536735 and -> http://mark.cdmaforums.com/MotoX-OTA.html

Flashing /System (system.img) will undo any host file changes, build.prop changes, put all bloat back, etc. Yes, return your /system to "out of the box" undoing ANY customization done... (But since it doesn't uninstall apps, you might still need to disable Xposed).

BUT Again, the OP is about not being in front of your PC.

When I rooted my X, I copied stock recovery.img onto my phone's /SDCard location, along with twrp.img... so I have them with me.. so I can flash if/when needed, no matter what.

Example: a couple days ago, Verizon started pushing a 212.166.3 build KXA21.12-L1.26-3 (which is still 4.4.4) OTA update. I had TWRP on my phone so I couldn't take it... I just opened Rashr, flashed stock recovery.img that was already sitting my my /SDcard/Download folder, and then was able to take the OTA. No running for my PC to do anything. It was way faster. In this case, the Pre-flash checks were successful, and I didn't even have to disable XPosed, so this was quicker than going to my PC and doing stuff. After everything was working, I used Rashr to flash TWRP back on there.

NOTE: I have NOT tried using Rashr to flash anything else. I've only used it for recovery.

Does everyone need to do it this way? No. But it can be helpful!!
[Moto X General] JulesJam:
OK well if you have done a lot of changes to /system then it is a bigger deal. I just use Titanium back-up pro to freeze the bloat rather than uninstall it. Freeing up space on the system partition by uninstalling /system bloat doesn't increase the space on your sdcard or data partition and so it is useless to do that unless you have the specialized expertise to mod the system image pre-flash, which the overwhelming majority of people do not have.
[Moto X General] KidJoe:
Back in the early days, people WERE deleting apks/odex files to remove bloat. With the first few updates, even items frozen with Titanium Backup had to be unfrozen, etc. When PwnMyMoto, RockMyMoto, etc were used to root and disable write protection... mfastboot flashing system.img, recovery.img and boot.img were the norm.

However, not everyone went nuts like that. There were many like me who rooted just to run things like Greenify, Ad blockers, or other apps that need root permissions, and did not modify anything else. In those cases, only recovery.img was needed.

But we are getting way off topic from the OP.
[Moto X General] euro1990:
Thanks for this reset method. I flashed CWM and rooted my phone forever ago, this was an awesome quick method to get back to the stock recovery and do a factory reset. I should be all set for the OTA, whenever it comes. I filled out a SurveyMonkey survey after getting an email for "Motorola Feedback Network - invitation to participate". Dang, that was 6 days ago. I hope I didn't miss the OTA due to just now doing the reset.
[Moto X General] MrHaroldA:
I reveived the official OTA today, but didn't check if I could install it on my rooted Moto X 2013 without any issue. Now I'm stuck in a boot loop ;)

2323.038.123.00R

212.44.26.ghost_row.Retail.en.DE

KXA21.12-L1.26

Is "XT1052_RETAIL-DE_4.4.4_KXA21.12-L1.26_54_cid7_CFC_1FF.xml.zip" a good match with my phone to go back to plain vanilla 4.4.4?
[Moto X General] miju12:
first boot your device to bootloader and check your bootloader version. If your bootloader is updated to 30.BE or if your bootloader isn't 30.B7 than flashing 4.4.4 will brick your device.
[Moto X General] euro1990:
OTA didn't work for me either, but no boot loop. Just an error, then it boots back into 4.4.4 and tells me the install failed.

After getting the stock recovery back on my phone (XT1053) I did a factory reset from stock recovery. Phone totally wiped, 4.4.4 was as fresh as new. However, I still ended up with root access. I guess the "factory reset" wasn't exactly factory. Looks like I need a full re-flash via USB first. Hopefully I don't lose the opportunity to do OTA after the re-flash. I guess I'll see. Just glad my device is fine otherwise (other than now bothering me to install an update I'd really like to try).

Mine goes from "installing update", gets about 20% done, then this pops up for a split second and the device reboots.
[Moto X General] MrHaroldA:
It is 30.B7 ;)

File Factory is really slow, so I read a couple of things in the few hours it takes to download the original ROM. Since I'm still on the original ROM, but rooted and with TWRP recovery, I probably only have to fastboot recovery.img instead of a full factory restore.

---------- Post added at 11:32 AM ---------- Previous post was at 10:43 AM ----------

Update: My Moto X gave up on the upgrade (after like 5 fails?), so it stopped the boot loop!

I now have some more time to revert the recovery to the original.

---------- Post added at 12:27 PM ---------- Previous post was at 11:32 AM ----------

Another update: I downloaded and extracted the factory ROM XT1052_RETAIL-DE_4.4.4_KXA21.12-L1.26_54_cid7_CFC_1FF.xml.zip and used fastboot to flash recovery.img.

I'm currently downloading the OTA again; fingers crossed! ;)

---------- Post added at 12:54 PM ---------- Previous post was at 12:27 PM ----------

The install starts, but fails after like 20% and reboots. I have reverted my hosts file, and am downloading the OTA again. Too bad the device doesn't keep the downloaded OTA after a fail ...

Trying it once more, and then it's time to restore the original ROM instead of a recovery only reflash.
[Moto X General] .Memphis.:
Exact same problem here, OTA keeps failing. Phone was completely stock except for root, recovery and xposed. Already disabled and uninstalled xposed, disabled root in supersu, flashed standard recovery, but OTA keeps failing at 20-30% during installation.

And indeed very annoying to have to download the complete OTA file again after each failed attempt, takes almost 45 minutes here...

Thanks for keeping us updated if you find a method that is successful. I'm out of time to keep on trying at the moment. New attempt tomorrow...
[Moto X General] zackpack:
same here.

I've also returned to stock recovery with no better results.
[Moto X General] Tamuzp:
Hi everyone, XT1053 here.. And exact same issues, unrooted, xposed disabled and reverted to stock recovery. I really really don't want to factory reset so hoping that someone comes up with a solution.. Seems to be a reacurring thing with the XT1053.
[Moto X General] JMccovery:
Good thing I scrolled down to the bottom of this thread, I was getting set to restore the bootloader and flash the OTA on my XT1053.

I think I should hold off for a bit (now if my phone will stop nagging me about the update).
[Moto X General] Neel.I:
Worked like a charm for me!

Unfroze apps from titanium, enabled all disabled apps, flashed Xposed disabler as well as unistalled the installer.

Downloaded stock file, flashed boot, recovery and system via mfastboot.

Booted up in stock, took the OTA.

Installation went on for 20 odd minutes, boot up went for around 20 mins again(well app optimization took a bulk of it)

On 5.1 now!

Thanks again [MENTION=1165307]KidJoe[/MENTION]!
[Moto X General] herrdrchili:
update fails? then try mfastboot system.img ...

I had similar problem to those mentioned -i'm starting from an unlocked rooted 1053 de. I flashed back to stock recovery, then it kept 'almost' updating but reverting to 4.4.4. I was really dreading a clean reset, so on a whim I decided to go ahead and mfastboot the system to clean it up. After that, smooth sailing. I'm guessing that ANY difference from the stock system file will make the OTA error out. I have never used Xposed, but did have adblock which I think made minor additions to the system folder. anyway, this worked for me so i wanted to share. good luck!
[Moto X General] ajsonofgod:
Did you sideload the ota?

Sent from my XT1052
[Moto X General] Neel.I:
Nope.. Once I booted on stock, took the OTA from system updates and let it run by itself!
[Moto X General] zackpack:
I've resolved:

-unrooted via Moto X Toolkit

-removed custom recovery by installing the stock one

-downloaded OTA but not installed

-copied OTA into the "sdcard" via app OTA snatcher

-rebooted in recovery

-tap install zip from sd card

voilà
[Moto X General] ajsonofgod:
Will you provide a link to moto x toolkit please?

Sent from my XT1052
[Moto X General] eliasf21:
This!

For anyone having tampered with /system in any way (root, xposed, adaway etc) and having trouble getting through the verification, it is highly recommended you flash system after stock recovery. As KidJoe suggested, it seems the validation checks are quite extensive, I personally tried undoing anything I could think of that might interfere, but not until flashing system.img did I get on 5.1!

*Great tip as mentioned elsewhere, copy the ota from cache to sdcard so it doesn't need to be downloaded again every time ti fails to install.
[Moto X General] MrHaroldA:
mfastboot seems to be non-functional on my Arch Linux installation ... the one posted in AUR doesn't work, as does the one linked on this thread: http://xdaforums.com/moto-g-2014/development/unix-mfastboot-linux-mac-os-x-how-to-t2941888
[Moto X General] MrHaroldA:
Installed all kind of Java-shizzle, Android SDK's, Motorola Device Drivers, etc on my ancient W7 partition, and I got the Windows version of mfastboot to work! I used the instructions on http://xdaforums.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515 to flash the original ROM onto my Moto X, and booted the stockest ROM available ;)

"Your software is up to date" .... da fck? :(

Updated all apps by adding my GMail account and running all Play Store updates, including the Motorola Update Services; I'm back to downloading the OTA! 11 minutes remaining though ...
[Moto X General] KidJoe:
Keep in mind... as the original post says... this is for only if you are completely stock and have only changed recovery to root.

The OTA's still have pre-flash validation checks, which in the case of the Lollipop update are more strict.

If the OTA fails after you put stock recovery back.. then you are likely far enough from stock to cause the OTA to fail. See -> [FAQ] How to prepare for and take an OTA update (All Carriers)
[Moto X General] MrHaroldA:
Updating as we speak ;) The "factory ROM restore" has been successful! ;)
[Moto X General] herrdrchili:
great job getting mfastboot set up (I'm on a mac and it was a challenge for me as well) and I'm glad it worked for you and you got the update fine.
[Moto X General] ajsonofgod:
What is complete stock???

Sent from my XT1052
[Moto X General] .Memphis.:
thanks, flashing stock system.img did the trick in the end, finally on 5.1.
[Moto X General] KidJoe:
Well, like you flashed TWRP, rooted, and only installed apps like Root Explorer, Wifi Tether For Root, etc.. things that use root access, but do NOT make any changes... Apps like that don't cause the OTA's pre-flash validation checks to fail.

While BigTinCan's Adfree changes the hosts file, it too does not cause interfere with what the pre-flash validation checks.

Once you start doing things like installing Xposed, Busybox, using Xposed modules, modifying your build.prop, DELETING "bloat", mixing parts of roms or flashing the leaks, etc.. you are no longer completely stock, or close enough to stock and the pre-flash validations will fail causing the OTA to not install... In those situations, just flashing stock recovery (what the OP is about) will NOT be enough... Hence the thread in my signature about preparing to take the OTA...

that is why these last few posters in this thread are having issues, because they vary enough from stock which will cause more than just Stock Recovery to be flashed in order to take the OTA.
[Moto X General] zackpack:
http://xdaforums.com/moto-x/development/tool-moto-x-toolkit-v1-4-0-t2477132
[Moto X General] ajsonofgod:
Thanks for the info... And can you provide the instructions to get complete stock to receive ota?

Sent from my XT1052
[Moto X General] KidJoe:
Sure, already posted the link in this thread, plus its in my signature...

[FAQ] How to prepare for and take an OTA update (All Carriers) Hint: Post 1 explains some background and whys.. Post 2 has the hows..
[Moto X General] newbiemoder:
Hey! I have a 2013 moto x (not the developer edition). I just want to ask whether the recovery.img file of the moto x dev edition will work in the non dev edition moto x ???
[Moto X General] ajsonofgod:
/system/etc/install-recovery.sh has unexpected contents

i am getting this when i tried to sideload lollipop ota on my moto x XT1052,

android version: 4.4.4

System version: 212.44.26.ghost_row.AsiaRetail.en.03

Bulid no. : KXA21.12-L1.26

what should i do?

---------- Post added at 09:18 AM ---------- Previous post was at 08:56 AM ----------

Dont bother... I've got the solution by myself.

and for everyone else:

i went to /system/etc/

there i found install-recovery_original.sh and install-recovery.sh

i just renamed install-recovery.sh to install-recovery-2.sh

and install-recovery_original.sh to install-recovery.sh

and its done!!!

now i am on Lollipop...:laugh::good::cool::D
[Moto X General] bryan.gayagoy:
Request for original install-recovery.sh

First of all, I would like to express my sincerest thanks to XDA and all the generous developers out there. I am not a developer but have been benefiting from all the guides, roms, and apps since my galaxy nexus, nexus 4, nexus 5, and now my moto x.

For my particular concern, I would like to address it to Sir "Ajsonofgod" since I am encountering the same error as described below but the problem is I can no longer find the original install-recovery.sh. I might not have backed it up when I rooted my Moto X and flashed a custom recovery. If it is not to much to ask sir, may I ask if you can provide me a copy of your original install-recovery.sh since we have the same model of Moto X and also running on the same firmware. Thanks in advance sir.
[Moto X General] ajsonofgod:
here is the link for the file from my google drive:

https://drive.google.com/file/d/0B45dOHQNtoKLRkd6UnQ3TkhMSFk/view?usp=sharing

just put it in /system/etc and then rename it to install-recovery.sh

i hope this might help.:)

reply with results. :good:
[Moto X General] ComputeRescue:
Thanks, I needed the refreasher; my VZN XT1060 is sporting Android 5.1;

[IMG="About Phone: MotoX-XT1060-LPA23.12-39.7_1"]https://drive.google.com/file/d/0B6B_Efy9Fq7iMVFZTWNzYmR4aXo5WWtZX09tMEdmbi1nSTFR/view?usp=sharing[/IMG]
[Moto X General] bryan.gayagoy:
Moto X XT1052 Asia Retail Stagefright OTA

Good day to all. First, I would like to thank all as I was able to run 5.1 by following this thread.

Today, I was able to capture the OTA.zip file (only 8.9 MB) for the stagefright update but wasnt able to update my Moto X since it is rooted and running custom recovery. For anyone interested with the file, just PM me for me to send it through your email since I cannot post yet the link of my google drive for this particular file.

Thanks.

Bryan
[Moto X General] vivekswaraj:
I want stock recovery image for my Moto x play.. please send me
[Moto X General] bryan.gayagoy:
Hi! Sorry for late response but mine is not the Moto X Play, instead it is the 1st gen Moto X
[Advantage X7500, MDA Ameo General] richardq:
not sure if i am allowed to post this here.... so please feel free to remove if it's not permitted.

we have 4 units of the Ameo / Athena available... upgrades on our company lines.

anyone who is interested

drop me a line

richardq@bluebottle.com

i am aware of many scammers on the internet ... this is genuine ... happy to give credentials...etc.... can meet in London if prefered.
[Advantage X7500, MDA Ameo General] softswitch:
Hello richard!

Can you response our emails plz?

When you'll make the payment, Its already 2 months!!

Thanks
[General Paranoid Android Discussion] mattgoldey:
In the most recent [CHANGELOG] post, I saw this:

"For OnePlus and Oppo users, you *must* flash the latest CM nightly before flashing this release. The CM nightly contains firmware updates necessary to avoid bootloops and broken sensors."

Does that imply that there will be no OTA to go directly from PA 4.6 to 5 once 5 is ready? Or will that firmware get incorporated into the PA 5 release?
[General Paranoid Android Discussion] Pirateghost:
5 is already out. What do you mean by "ready"?

No, we will not have ota from 4.6-5

#stayparanoid
[General Paranoid Android Discussion] mattgoldey:
By "ready" I meant something beyond alpha, I suppose.

But you answered my question.
[Android Q&A, Help & Troubleshooting] azertguigui:
Hi guys

I don't know if you know that smartphone, it's the Wiko Cink Slim

[IMG="Wiko Cink Slim"]http://img1.lesnumeriques.com/produits/678/14995/wiko-cink-slim_1354807200.jpg[/IMG]

It has a special feature I haven't seen before, I can use a Nokia ca-75u with the 2,5mm jack to output some video through a video projector for example

[IMG="Nokia ca-75u cable"]https://www.subtel.fr/out/pictures/generated/product/1/665_665_75/912238_1(4).jpeg[/IMG]

But the problem is I only can broadcast what I see on the phone screen, while I'd like to be able to broadcast anything I want

Do you know a way to do that ?

Many thanks in advance!