yashsingh1/xdaforums huggingface dataset:
[Moto X General] summit15:
KidJoe, thanks for the help. I have an XT1095. All I am pretty sure I did was root. I've never installed TWRP or even used root apps other than Greenify. In that state I was not able to accept the recent 5.1 OTA. I used the option in Supersu to full unroot (which also uninstalled Supersu). That did not fix the problem. I am now just finding your guide but other searching has led me to your conclusion that Option 2 should be all I need to do plus it won't wipe my phone.

The confusion I have now involves the system.img file. I requested the 5.0 download from Moto, but they never responded. I found the proper zip file elsewhere (TMO_XT1095_5.0_LXE22.46-11_cid9_CFC.xml.zip). When I unzip it, I see all the files. The recovery.img file is there but the system.img file is broken up into eight different files all named system.img_sparsechunk.0, system.img_sparsechunk.1, system.img_sparsechunk.2, etc.

Do I have the right files? Do I flash all of them individually? I'm not very experienced in this and don't want to screw this up. Any information you could provide would be greatly appreciated. Thanks.

Edit: After posting this, I found this site: http://www.usoftsmartphone.com/t279221.html that showd me how to extract the system file from all the sparse files. Step one creates a system.img file from all of them. Step two seems to unzip them. I am guessing that the file created after step 1 is the file I would need to flash?

Again, thanks for your help here!
[Moto X General] KidJoe:
Keep in mind that the XT1095 is NOT a 2013 X, so its files may be different.
[Moto X General] Cristian314:
So I'm using a cm12 based rom and I've wanted to return to stock lately, let me see if I got this straight. Using rsd lite and erasing the line:

<step operation="erase" partition="userdata" />

Won't erase internal memory like music, photos, etc?

It's safe? I'm wondering if I'm going to have problems with the apps since they're running on ART on lollipop or if the system settings will have issues when I return to stock KitKat
[Moto X General] summit15:
OTA Accepted

For anyone who finds themselves in my same situation (all I really did to my phone was root it and install Supersu, no custom recovery or big time changes and I wanted to apply the OTA without wiping my device), I got my OTA update applied by doing the following:

Did a "Full Unroot" from within the Supersu app which then uninstalled itself.

I found the proper Moto ZIP file that contained Lollipop 5.0.

I then used mfastboot to flash the boot.img and the recovery.img

I then boot the phone up and told it to check for system updates.

It found the update, downloaded it, and then applied it.

It worked and I can move on with my life now.

NOTE: Most of my confusion in this process centered around my being told I needed to flash the system.img file. My problem was that inside the Moto ZIP file were eight different system_sparse files. I didn't know what to do with all them. I found a site in the previous link that showed me how to essentially combine all them into one system.img file. I followed those directions and it created the file. However, when I tried to flash it, I got an error that seemed to suggest that the file was corrupt.SO, this was after I had already flashed the boot and recovery files. I gave the OTA a shot just hoping it would work. Turned out it did.

Thanks again to KidJoe for this guide.
[Moto X General] KidJoe:
Again.. you have an XT1095... which is NOT a 2013 X... this guide is in the 2013 X section, so things can/will be different for a 2014 X...

But thanks for sharing.
[Moto X General] Malba14:
Awsome Tutorial!!

I'm really a noob, so I still have some questions...

After that you should get the OTA update by going to setting -> about phone -> update??

because if so, I'm not.

Another thing i may done something wrong. On this step:

4. Download ROM/SBF files for the ROM currently on your phone!!!! from one of the sites listed HERE. Failure to use the EXACT SAME ROM/SBF that is on your phone now can cause problems!!

I needed to move the ROM/SBF to the phone right? At any folder? Because I didnt do that and I opened the command prompt in the pc folder that the ROM/SBF was unziped. Nothing wrong happened to my phone, apparently.

Should I remake the tutorial moving the unziped file to the sdcard folder of my phone?

sorry for so many doubts.
[Moto X General] KidJoe:
The OTA update hasn't rolled out for all phone models and carrier variants yet. So there is a VERY GOOD chance it wont be available for you yet.

No, you do NOT move the SBF, or parts of it, to your phone. Leave it on your PC.

The tools to flash (RSDLite and mFastboot) are tools ON YOUR PC... they need the file to be on your pc.

In the post I talk about figuring out what file to download and use the example of the Rogers XT1058, and the correct file being XT1058_RCI-CA_4.4.4_KXA21.12-L1.26_59_cid14_CFC_1FF.xml.zip so sticking with that example.. you visit one of the sites (from your PC), download XT1058_RCI-CA_4.4.4_KXA21.12-L1.26_59_cid14_CFC_1FF.xml.zip ... and unzip it on your PC to a folder... If you are following option 2, 5 or 6 and using mFastboot, then you need to open a command prompt and change drive and directories to where you unzipped XT1058_RCI-CA_4.4.4_KXA21.12-L1.26_59_cid14_CFC_1FF.xml.zip to BEFORE you start entering the mfastboot commands. NOTE: you could just SHIFT-RightClick on the folder and "open command window here" as that will open a command prompt in that path/folder.
[Moto X General] Malba14:
The thing is that the update was rolled out for me before. But kept regecting it until one day that I clicked on "stop bothering me, I'll do it when I want" button and then every time I turned my phone on, after 30 seconds it rebooted to TeamWin. This kept going until I clicked on recovery or system (I dont remember - under the reboot page) and the cycle went off saying that has been some kind of problem with the update.

This part I did it right, i think. I fount the one that describe my phone better.

XT1058_VIVO-BR_4.4.4_KXA21.12-L1.26_59_cid12_CFC_1FF.xml

Actually I just reallized it is .xml. Is that ok? On my PC it opened with winrar just like any zip.
[Moto X General] KidJoe:
Rebooted to TeamWin and said there was a problem with the update?? Yeah, because you need STOCK recovery on the phone. (as stated in the OP)

There maybe an XML inside the ZIP... you need to uncompress the entire file (extract all) BEFORE you can flash it, other wise RSDlite or mFastboot wont find the files you are trying to flash.
[Moto X General] Malba14:
Thanks for the help man. I'm sorry for the noob questions.

I actually did the hole tutorial before. I extracted this hole file and opened the command prompt in it and did the tutorial number 5.

Sorry if I wasnt clear before but the problem with the update was just a backgroud history to what I was aiming to know. That is: after I do the tutorial, what I have to do to get the OTA update now?

And how can I know that I did it right?

Your are awsome man!
[Moto X General] KidJoe:
I forgot to mention... for the models IT has started pushing for, they were sending it out in waves... IF you missed your turn (which you eventually did by not installing), you usually need to wait until the end, when the waves are done.. Because of when the BR Xt1058 push was started, I'd say that might be in the next week, or two.

As long as you flashed the latest 4.4.4 rom, your bootloader is consistent with the ROM you flashed, are you 100% completely stock, you just sit and wait until the OTA becomes available to your phone again. You can manually keep checking...

OR you can see if the 5.1 SBF is available for your carrier/model in this thread -> http://xdaforums.com/moto-x/general/official-collection-firmwares-fxz-sbf-t3146628 download and flash it instead, which will take you right to 5.1...

OR you can see if the official OTA zip has been posted, download the zip to the /SDCard of your phone, and follow the SIDE LOAD section of -> http://xdaforums.com/moto-x/general/ref-return-to-stock-recovery-rooted-t3027079
[Moto X General] Malba14:
Thanks a lot!!!
[Moto X General] RohanAditya:
Hey.

I wanted to return to stock by flashing the parts manually.

I followed your steps but when i executed the command a message popped out saying 'Variable not supported' and it continued the execution.

I did not find any change in the system when I checked after the whole process was completed.

The message I mentioned earlier was shown for every step.

Example Code:

mfastboot flash partition gpt.bin
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'partition' (32 KB)...
OKAY [ 0.280s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
OKAY [ 0.534s]
finished. total time: 0.819s

I also flashed boot, logo, system and the others parts.

But the same message was shown every time.

And after the process was complete I restarted the phone but the 'Bootloader Unlocked Warning' screen appeared.

I hadn't removed this after I rooted the phone.

I thought it would be removed when I flashed motoboot, boot and logo.

Phone Details:

Current Android Version: 4.4.4

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

Build Number: KXA21.12-L1.26

Kernel Version: 3.4.42-g50861a7

I used this image:

Drive Link:

https://docs.google.com/file/d/0B5XNxZ2OcfKtdDROTk5kb21ObU0/edit?pli=1

File Factory Link:

http://www.filefactory.com/file/3qr..._4.4.4_KXA21.12-L1.26_18_cid7_CFC_1FF.xml.zip

I desperately need your help.

What should I so to flash the stock image properly?

Thanks in advance.
[Moto X General] KidJoe:
Based on what you posted, I'm not completely sure of your question. I mean if you think you are not stock because you still have the unlocked bootloader warning message after flashing, that is normal if you've ever unlocked your bootloader.

Out of box LOCKED bootloader shows Locked Status 0... After unlocking, it shows Unlocked Status 3. If you attempt to relock it, it will show as Locked Status 2. We don't have a way to get back to Locked Status 0. That being said... If the status is NOT 0, you'll always get the Unlocked Bootloader Warning when using the stock/standard LOGO.BIN.
[Moto X General] RohanAditya:
Okay I unlocked it. The code is 3.

Thanks

But how do I know if I'm ready to receive the OTA?

Is there a way to find out if I can receive it without it resulting in a brick?

And is the Variable not supported message normal?

Or have I done something wrong?

Thanks in advance
[Moto X General] KidJoe:
Variable not supported is normal and nothing to worry about.

Because each OTA is different and looks at different aspects of the phone (based on what it will upgrade, or not), there is no way to tell you exactly what should be checked.

If you returned to stock by flashing the COMPLETE STOCK ROM (all parts of SBF) for your carrier/model with mFastboot, and received no errors (other than variable not supported), and your bootloader version is consistent with the ROM on your phone (i.e. you didn't attempt to downgrade), then you should be ready for the OTA...
[Moto X General] RohanAditya:
Thanks a lot buddy
[Moto X General] regular_:
If I currently have Xposed installed and uninstall it via TWRP, could I use this method to only flash stock recovery.img?

Also, does this procedure erase root from the phone?

----------------------------------

Edit: So, what I did was the following:

1. Backup via TWRP

2. Uninstall Xposed Framework via TWRP (with official uninstaller zip)

3. Followed the steps in Option #5

4. Updated via OTA

5. Profit.

Everything went fine, no errors (except some "Variable not supported messages), no bootloops, no FC's. I lost Root, but I'll just flash Super SU again. Thank you KidJoe!
[Moto X General] jkalsch:
I am using a Dev edition XT1060 with twrp and SU, I don't think I changed anything else. I tried to flash stock recovery and I recieved the maintenance update and my system is now 212.166.4 and the update is unsuccessful when I try to get OTA to Lollipop. Can I use the file I got from Verizon labeled with system 212.55.26 and use option 5 even though the version is older or do I need a different recovery file? What are my other options?
[Moto X General] KidJoe:
I would just get the FXZ/SBF and flash it..

See -> http://xdaforums.com/moto-x/general/xt1060-lollipop-5-1-ota-fxz-thread-t3139519
[Moto X General] PackerDroid:
Stock boot image before OTA?

Hello, I posted this elsewhere but I think I might have better luck here. Do you have any feedback/guidance for my issue in my situation? Thank you!

-----------------------------------------------------------------------------------------------------------

I was just able to take the EMR update first through system update OTA. Now it won't give me the 5.1 OTA. I currently have stock recovery, no root, with no system mods. I tried manually installing the 5.1 OTA but it doesn't work. It says it was aborted because the package expected a different build fingerprint. But I'm on 212.154.2.ghost_row.RepublicWireless.en.US Any suggestions for getting the OTA to work, or do I have to get root and TWRP back and flash the 5.1 SBF? If so, is the 894.64 MB zip from file factory for sure the one I need for Republic Wireless? I just don't want to brick my phone. Thanks!

-----------------------------------------------------------------------------------------------------------

I was doing some research and I think I forgot 1 step to make sure I'm 100% back to stock. I made no system mods and I did flash stock recovery, but I forgot about the boot image I was using so I wasn't seeing the bootloader unlocked message. Would that make the manual OTA fail/abort and/or also make system update not recognize 5.1 is needed? I'm guessing it does. So I'll try getting TWRP back and flashing the correct stock boot image for 4.4.4, then remove root/TWRP again and see if it will take the OTA, either from system update or manual OTA. Hopefully this works, or at least reminds others to take this step if necessary. Thanks for any feedback!

-----------------------------------------------------------------------------------------------------------
[Moto X General] KidJoe:
So you have a Republic Wireless XT1049, and you want to update it to 5.1? The best way is to just download the 5.1 SBF/FXZ file -> http://www.filefactory.com/file/27kl2ef9ngk7/XT1049_GHOST_REPW_5.1_LPA23.12-39-R-15_cid6_CFC.xml.zip and use Option 5 in the second post of this thread to flash it.

If your bootloader is already unlocked, it will stay unlocked after flashing this way. Also, you'll get the stock logo.bin file, so you'll get the "Unlocked bootloader warning" graphic on reboot.

NOTE: if your bootloader was NOT unlocked already, and you want to root 5.1, you need to unlock your bootloader BEFORE you flash 5.1. I haven't paid attention lately, so I don't know if there was a way to use Sunshine to unlock the 4.4.4 and up bootloaders. Last time I looked it was for 4.4.2 and lower.
[Moto X General] PackerDroid:
Thank you so much for your reply! I'm sure that option 5 is the best/safest route, but I'm wondering if there might be another easier way that would still be safe, especially since I remembered that I flashed non-stock logo bins and animations. From what I can remember, I think I flashed the 5.1 logo bin and animation, even though I was on 4.4.4, not realizing it would create an issue for the OTA. That must be why the OTA aborted. So, if I just flash back the stock logo bin and animation for 4.4.4, then I think I should be able to take the OTA. Is that correct? Yes, I am unlocked having used sunshine, but all that I did with root was install the xposed framework (and flash different boot logos/animations). I uninstalled xposed, disabled superSU, flashed stock recovery (I had TWRP), PLUS I did a factory reset and wiped internal storage. So now I know I have stock system, stock recovery, and now I can flash stock logo bin and animation. Then I should be able to take the OTA, right?

If I still can't get the OTA to work, and I have to flash the full 5.1 SBF, can I do that through TWRP? Or do I have to use a PC? I'm asking because I recently erased my PC to do a fresh installation of Windows 10. So I'd have to get all of the files/ADB/drivers again to use the PC method. Right now I have an app that allows me switch back and forth between stock and custom recoveries.

Thank you again for your help!
[Moto X General] KidJoe:
Here is the problem.... custom Logo.bin does not get in the way of an OTA update. Nor does non-stock boot animiation (at least usually)...

Notice the BOLD I highlighted in your reply? Its possible that you will forget something else that you tweaked or customized... OR you won't sufficiently undo your changes. That is why OTA updates will fail for users who customize their phones. "Undoing the changes" and doing a factory reset does not ensure you are stock. The only 100% sure and fool proof way to return the phone to stock is fully flash it with the SBF (either parts or whole). Now, if all you did was modify contents of the system partition, then sure, flashing only system.img via mfastboot might be enough.

Based on what you are typing, I'm willing to bet you miss something and the OTA fails.

To flash a STOCK ROM you either use RSDLite or mFastboot. You can not flash a stock rom/SBF via TWRP. If you could, it would be one of the options in the 2nd post. Sure for RECOVERY, IF you are still rooted, you can use something like Rashr to flash stock or custom recovery (see -> http://xdaforums.com/moto-x/general/ref-return-to-stock-recovery-rooted-t3027079 ). And *IF* you haven't changed much of system, you can use that thread to take the OTA... BUT it relies on /system and the other parts not being modified so it can pass the the pre-flash validation checks.

I know you don't want to hear it, but your best, safest, and quickest way to 5.1 is to just use mfastboot or RSDLite and flashing the entire 5.1 SBF since you have it.

At this point, if you really want to go the ota route your process will be this...

1. Hope you undid root, Xposed, SuperSU, and any other customization done to your phone. (to pass pre-flash checks)

2. revert to Stock recovery

3. make sure all parts of your phone match and are consistent with the rom version on your phone. (includes bootloader, modem, etc)

4. Attempt to take the OTA.

5. If the OTA fails, spend the time trying to figure out why it failed, and fix that.

6. attempt to re-download the OTA Zip file and try to install it again.

7. If it fails, go back to step 5.

Or, you could take 10 minutes to install Android PlatformTools/ADB/mFastboot, the Moto drivers, and flash the 5.1 SBF directly and be done. (if you wont be customizing or tweaking the phone again so you don't want to install the Android SDK on your PC, you might be able to find a portable Platformtools/adb setup to try... then the only that will be "left" installed on your PC would be the moto drivers. just keep in mind that the "portable" ADB installs that you just "unzip" can get out of date which could cause issues)
[Moto X General] PackerDroid:
Thanks again for your help. I'll try the OTA again and if it fails then I'll move forward with option 5. If I have difficulty with option 5, will a full manual flash including data retain the unlocked status from sunshine?

One other question just for my own knowledge/learning about this... I've flashed custom ROMs on one of my tablets with TWRP before with no issues. What's the difference between flashing custom or stock ROMs through TWRP that allows custom to work but not stock?

The only step I may have a question about is step 3 of option 5, "open a command prompt and change to the folder you unzipped the ROM/SBF file to." I can't remember, what do I actually type to change to the folder I need? For example, if the folder is on my desktop and it is called "SBF file" then what do I need to type for the command prompt?

I'm not sure when I'll get a chance to work on this again, but when I do, I'll try to remember to post back with how it goes. Thanks!
[Moto X General] bvsbutthd101:
I'm having trouble locating the SBF file. I'm on Megatron007 AICP 11.0 unofficial rom but I'm still on the kit kat bootloader. Trying to update to the lollipop one. I was hoping to do option 5 so I could keep my data and apps.
[Moto X General] KidJoe:
you're signature says VZW XT1060 Dev... SO look at -> https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images there are Moto X, VZW Dev Edition: images of 4.4.2, and 4.4.4. flash back to those and take the OTA's, or..

in the OP of this thread, as well as my signature I point to -> http://xdaforums.com/moto-x/general/info-tip-web-sites-official-leaked-roms-t2923347 which has sites which host some of the roms... take a look through each site... I know at least the file factory link works.. and if you scroll through, you should find XT1060_GHOST_VERIZON_5.1_LPA23.12-39.7_cid2_CFC.xml.zip
[Moto X General] bvsbutthd101:
So only one those links works in OP. I found the XT1060_GHOST_VERIZON_5.1_LPA23.12-39.7_cid2_CFC.xml.zip file. Since I'm on a marshmellow rom is using that file gonna be a problem? I was hoping to keep my data
[Moto X General] KidJoe:
You said you have a KK bootloader... but you are running a custom rom based on 5.1 now.. I usually suggest wiping data when doing that, only because I don't know what tweaks, etc were done in that rom vs stock, and if that will have any impact.

If it was stock KK, and you wanted to flash stock 5.1, then I'd say go for it (make sure you don't exectue the erase userdata parts), you're chances of not needing to wipe are better.

Also keep in mind that fully flashing a STOCK 5.1 rom will update your bootloader, motoboot.img and gpt.bin. That being said, I've seen some have issues trying to keep KK bootloader and only upgrading parts of their phone with Stock 5.1.
[Moto X General] bvsbutthd101:
Thanks for the help. I was able to successfully update my bootloader while still retaining my data. Everything appears to be working fine now. All the problems I was having before seemed to be fixed. I was having the speaker phone bug and when people would call me they couldn't hear me. Would have to call them back. Working now :good:
[Galaxy S 5 Q&A, Help & Troubleshooting] zeroze:
Hi,

My old phone was an Galaxy S (i9000) and now I have bougth the Galaxy S 5.

The i 9000 was rooted and I have backedup all Apps + Data to the SD card.

The S5 is new and I dont want to losst the warranty if I Root the phone, so I was wondering if it is possible to Restore all Apps data from the old phone to the new one without root.

Is it possible to do it without a PC?

Thanks,
[Galaxy S 5 Q&A, Help & Troubleshooting] *Detection*:
Titanium Backup should be able to do it, not sure if it needs root though

But also not sure it's a good idea to restore data from a different model phone, which is likely running a different version of Android

You could turn on Google Backup on the old phone, and log into the same G Account on the new S5, and it might restore some things for you that way
[Galaxy S 5 Q&A, Help & Troubleshooting] zeroze:
The data I was talking about is from games and apps (some games, whatsapp, notes, etc.).

I was not talking about system data.
[Galaxy S 5 Q&A, Help & Troubleshooting] -PiLoT-:
neither was he. hes alerting you to a possible conflict with the data from the galaxy s backups as they were on a different version of android
[Galaxy S 5 Q&A, Help & Troubleshooting] zeroze:
Ok, sorry didnt know that.

That means that there is no way to restore some game data?

on the galaxy s i was running the CM 10
[Galaxy S 5 Q&A, Help & Troubleshooting] lingowistico:
He said POSSIBLE conflict. It means maybe and maybe not. Try it for yourself.
[Galaxy S 5 Q&A, Help & Troubleshooting] zeroze:
I wold like to try, but the problem is that i dont know how.

Thats why i asked for your help. Lets imagine that there were no conflict. How could i transfer data from apps?

Thanks