yashsingh1/xdaforums huggingface dataset:
[Moto X Android Development] OrlandoAlex:
Edit 3: I worked it out. Here are the steps:

1. Acquire the update package (mine is GHOST_VERIZON_5.1_LPA23.12-39.7_cid2_CFC.xml.zip

2. Unzip the package and open flashfile.xml in a text editor (I used Notepad).

3. Edit out the commands to flash gpt.bin and motoboot.img. These should be consecutive instructions in the XML file. Mine were:

<step MD5="afd21e2d7a4fb267182fda9bc635e01f" filename="gpt.bin" operation="flash" partition="partition"/> and <step MD5="d089f063b897f108729d6ffcf63679e2" filename="motoboot.img" operation="flash" partition="motoboot"/>. You're removing these because otherwise flashboot will cancel the update flash. It does this because it compares the gpt.bin and motoboot.img files you want to flash with the one it already has in memory and aborts the update sequence. Since these two were already flashed during the unbricking procedure VitaTaf described in post #1043, the phone is already on its way to having 5.1. If you simply skip over these two files, the rest of the flashing procedure works.

4. Using RSD Lite, select the flashfile.xml from the ... menu as the source of the batch commands for flashing the remaining information to your phone. Then start the flash. It will run through flashing/erasing as required and then reboot into 5.1. For me the phone stayed on the Verizon splash screen for about 5 minutes, then finished booting into the OS.

---------- Post added at 03:20 PM ---------- Previous post was at 03:18 PM ----------

It looks like you and I were typing posts at the same time. Thank you again for replying and for your help. I posted my solution above.
[Moto X Android Development] VitaTaf:
The reason you needed to edit the file is because the firmware that you've downloaded is not the newest version (LPA23.12-39.7 vs LPAS23.12-39.7-1). The latter version includes the security update from April, I believe. Here's the updated version that you can flash directly using RSD Lite.
[Moto X Android Development] OrlandoAlex:
Thanks for the clarification. I'd suspected within the first 12 hours of this bricking that the culprit was that the OTA somehow had newer images in it than the 5.1 package I had, even though all evidence I could find showed that I had the most current package. Turns out the one I had was slightly older, probably the initial Moto release of the 5.1 update. That caused a lot of frustration and needless dispondency. It was only within the hours before you gave me the magic formula that I even found LPAS. Literally every resource I'd seen before had LPA and treated it like it was the latest.
[Moto X Android Development] stefanowall:
Hi ! What is this new software version, XT1052_GHOST_RETEU_5.1_LPAS23.12-15.5-1_cid7_CFC.xml.zip? Can we flash it via Twrp? Thanks
[Moto X Android Development] VitaTaf:
Hello, that zip file is the full firmware, and can be flashed using fastboot or RSD Lite, but not using TWRP. It is identical to the ROMs (that can be flashed in TWRP) posted on the first post.
[Moto X Android Development] GeekyTanuj:
Since the next generation of Android -7.0 nougat has been announced and released can any developer try to build the "modded 2.0" for all the ghost variants to get the nougat functionalities even still retaining up all the stock moto features? I would build by myself but I M a complete noobie so please???
[Moto X Android Development] Ryuller_br:
I support your idea ...
[Moto X Android Development] diegomartinezlovey:
Download and install Android N-ify and configure To get N style
[Moto X Android Development] stefanowall:
Hi! It could seem an odd question...anyhow, is it possible to flash stock US modded2 rom over my xt1052? After that, I would flash the right modem et voilà! Or do I risk a brick? Alternatively, I would flash one of the existing xt1052 modded versions, over my xt1052 retEU... Can you tell me, please?
[Moto X Android Development] VitaTaf:
I would recommend flashing CM13 (and hopefully CM14 if it becomes stable) if you wish to get some updated features. The only stock features missing from the current CM13 nightly are activating voice command when the screen is off and Android Pay.

Yes, it is possible, but I would not recommend it. Always make a backup first before attempting anything. The worst-case scenario is have strange bugs such as the home button not working.
[Moto X Android Development] stefanowall:
Thank you so much! :good: VitaTaf, you are always so kind and fast to answer to all, you are great! My former question derived from the consideration that almost all cm based custom rom for Europe are built on xt1052 retDE, not on xt1052 retEU...ever noticed that? So I thought that it isn't so important what version to flash, taking care to flash the right modem after the rom... Have a nice day
[Moto X Android Development] GeekyTanuj:
My wish to upgrade to the newest Marshmallow build is intense but that would lose a handy feature of the moto voice and active display.

So can u suggest a good mm rom with these features??????
[Moto X Android Development] Ryuller_br:
Will you have a modded version of Android M?
[Moto X Android Development] VitaTaf:
That's odd—I just noticed that. I'm not sure why that is, but there is little difference between the XT1052 regional versions.

CM13 currently has an Active Display equivalent feature, called Ambient Display. While it is not as reliable as Active Display, it does work similarly.

And from my experience, Moto Voice has never been reliable in noisy environments anyway. I think the "Ok Google" when screen on or charging feature in CM13 ROMs works well enough.

No, at least not for the stock ROM. I will be rather busy for the foreseeable future, so I will not have much time to develop at all. However, here's a custom CM13 build from over a week ago that supports Android Pay.
[Moto X Android Development] Ryuller_br:
This CM13 is good for daily use? I think not ... rsrsr
[Moto X Android Development] VitaTaf:
Yes, it should be. The only major bugs that I've read about so far are Bluetooth audio and Chromecast. Do you have any bugs in mind?
[Moto X Android Development] Ryuller_br:
If there is audio bugs, I do not give to use every day ... I have not yet tested it .. but I've seen reports of people who said they are not good for daily use ... rsrsr
[Moto X Android Development] MuhammadBilal:
I am running CM12 snapshot with TWRP 2.8 recovery. To go back to stock ROM do I just flash the zip file from TWRP or do I need to flash modem too, I don't have a secondary device so just making sure. Thank you and sorry for noob question.
[Moto X Android Development] stefanowall:
Although I live in Italy and my moto originally was xt 1052 retEU, this morning I installed your US stock modded version and...it works unpredictably very well, no bug at all, wifi and signal perfect! US modem is different from the original one, but is absolutely ok...I'm astonished! I planned to try this rom for the sake of knoledge, but now I think I will be enjoying it for some time:cool:

...Your CM13 rom is very small...since it supports Android pay, perhaps it is the right solution for Pokémon go players also, isn't it?:fingers-crossed: Good night dude
[Moto X Android Development] VitaTaf:
I suppose it depends on if you regularly use the Bluetooth audio feature. There is a workaround to fix the audio problem too, I believe.

That should be fine, but if speakerphone doesn't work for you, then you will have to flash the bootloader included in the modem zip file. You'll also have to factory reset, of course.

Glad to hear! I personally have not played Pokémon GO, so I am not sure how well it runs on CM13.
[Moto X Android Development] stefanowall:
Glad to hear! I personally have not played Pokémon GO, so I am not sure how well it runs on CM13.[/QUOTE]

In theory, if Android pay works PoGo should work too...I used to play it, but then Niantic banned all rooted phones (pratically, the whole xda forum!). Bye;)
[Moto X Android Development] mike_ob:
I installed CM 13 for Moto X and when i'm in a call everything is ok, except when i switch to speakerphone/speaker and viceversa. Automatically mutes mic and speaker. Could modem flash fix this issue?
[Moto X Android Development] hbenz2008:
yes
[Moto X Android Development] YedanyXD:
Can i flash xt1053 tmobil versión to Nextel version?
[Moto X Android Development] alessandro-villa:
hello, I'm new moto x ghost verizon user, I'm with the stock version and already so the process of radio modem, I want to install the Debloated version but I'm on a locked device stock, how should I do?

---------- Post added at 12:33 PM ---------- Previous post was at 12:03 PM ----------

you can install the rom debloated via fastboot in moto x xt1060 verizon?
[Moto X Android Development] televisiontv:
For networks that are used in Mexico, yes you can. My phone was originally Nextel and installed a firmware Tmobile XT 1053.
[Moto X Android Development] alessandro-villa:
redoing my question, I am with x1 xt1060 verizon locked bootloader, could not return to 4.4, it will be possible to install the 5.1 version is the same on my device but this topic debloated via fastboot with BL blocked?
[Moto X Android Development] White_Lion:
Nevermind, solved.
[Moto X Android Development] GeekyTanuj:
Can the Moto app in this rom be updated with the latest features like wave to silent call,lift for moto voice,attentive display,etc. And several other actions found in the latest devices like moto g4 plus/x style/x play/x 2nd...??
[Moto X Android Development] Sutitan:
Looking to possibly downgrade from CM13. Few questions.

1- Are there any issues coming from CM13? Can I just flash the proper Zip and be fine?

2- Will I need to flash Gapps or are they included?

3- Does the XT1053 zip include the latest security patch? One of the reasons I went to CM13 was to get rid of the pesky update notification id get daily.
[Moto X Android Development] abacate123:
1- No, wipe and flash.

2- No, they are fully included into the stock original version, which is obvious since it's a stock not a custom rom. But if you download the modded version there will be only the core gapps (play store and play services) and some basic stock apps since it's debloated, though, you can then download the other google apps manually through the play store later.

3- No, it's 5.1 dude, ofc it's outdated, so no new patches, the patch will be the latest released by Motorola for 5.1 version.
[Moto X Android Development] Sutitan:
sorry, for question 3 I ment if it included the latest OTA stagefright fix. theres a forum post discussing how to flash it via twrp below

http://xdaforums.com/moto-x/general/xt1053-222-27-5-stagefright-ota-update-t3210786

I planned on going for the Modded V2 version of the

XT1053 Retail GSM Unlocked (Version: 222.27.5.ghost_row.Retail.en.US, Modded Version: 222.21.15.ghost_row.Retail.en.US)

My plan of action is

1. Wipe dalvik cache, cache, system and data

2. Install the Rom

3. IFlash SuperSU and Xposed.

4. Reboot > System
[Moto X Android Development] abacate123:
Well, it's a quite simple, if it has the 222.27.5 version beside it, or higher, then it does have the stagefright patch, if not then it doesn't.
[Moto X Android Development] newparadise:
Can I Flash these stock roms with RSD Lite?
[Moto X Android Development] stefanowall:
Hi! I really need your knoledge and your help: I flashed my moto x xt1052 a million times but nothing similar ever occurred, my phone hasn't an IMEI and a baseband any more! I've tried everything, restored nandroid backup, flashed any possible rom, the right modem found in this post...nothing to do! Can you help me, please? Thank you

Resolved
[Moto X Android Development] GeekyTanuj:
Hey buddy can u please port a working package of moto g4 plus' camera and moto actions for our beloved ghost?
[Moto X Android Development] zakkary09:
Good morning. First of all I'd just like to thank you for posting these stock ROMs, really helped me out when RSDLite was not recognizing my X. Great work.

I'm looking for input on what you think the best method for the following is: I'm trying to get Project Fi working on my X. I've already plugged in my sister's SIM card and it connected well on the Verizon Modded ROM, minus an annoying notification denoting the SIM card is not Verizon's. I have the XT1050 model that I got from Alltel Wireless before they stopped existing, so I'm bootloader and SIM unlocked. I'm mostly concerned with making sure all the bands are able to be used, since the nature of Fi is to switch between the best available network (between T-Mobile, Sprint, and US Cellular.) To get rid of the SIM notification I've installed the GSM unlocked v2 ROM. I still have the Verizon modem. I noticed the options for cellular networks is different from Verizon in that the GSM has two options, 4G or 2G, while Verizon has Global/LTE CDMA/GSM UMTS. Between the XT1050 and 1060, only one band is different, CDMA 850 (1050 is 800.) I don't have high enough post count to link you to the table on Wikipedia with all the different models and bands. I do realize not all carriers use all bands.

So basically, I guess I'm wondering if all radios are already available for use, regardless of ROM I use? Or if not, is there a way to change that? Does the modem have anything to do with bands being used? Would it possibly be better to use the Verizon ROM since the cell networks has more options? Haha, I don't suppose you could whip up a Project Fi ROM, but if it's possible, I would try building it. Thanks in advance for any help/insight.
[Moto X Android Development] ozidonk:
in this flashable rom, my camera cannot use for front camera.

please help :)
[Moto X Android Development] erick_gc:
problems flashing modem firmware

hi guys

i havent used my moto x on a while and have this rom installed, the xt1053 modded versión 2, but is necessary for my to change to the speakerphone some times, so i need to flash the modem files but i dont know how to do that, i hope somebody could lead me to a post or somethig where i can learn how to do it.

Thanks and sorry for the bad english
[Moto X Android Development] dani.galla:
Hi!

A have an issue with this zips (my model is xt1052). Every zip I flash I'm facing google play service fc's. Everyone else is facing this problem?
[Moto X Android Development] Spardantex:
delete
[Moto X Android Development] sam230792:
I install the zip and me to stay din TWRP recovery without any solution root not count on pc :(
[Moto X Android Development] Spardantex:
Radio activity bug is fixed in the touched version?
[Moto X Android Development] GeekyTanuj:
Hi developers can u please provide a link for stock 4.4.4 flashable zip?(xt 1052 retail asia).

Thanks in advance
[Moto X Android Development] aledex:
Nope, you can use an xposed module (mobile radio fix), but it should only fix the wrong percentage in battery stats.
[Moto X Android Development] Spardantex:
Thanks :) And how to have the expandible volume panel like photos in OP?
[Moto X Android Development] Wilberforce7:
Hello, I am also having this issue after a security update sited here: (sorry no link)

h t t p s://community.republicwireless.com/blogs/republic/2016/10/17/moto-g-x-1st-gen-smr-updates#jive_content_id_Moto_X_1st_Gen_SMR

Please update XT1049 Republic Wireless ROM

I am hoping that flashing the stock image will solve this issue. Thanks in advance, Republic and Moto aren't any help and bootloader is locked..
[Moto X Android Development] Gaburieru Pucho:
Can the Xposed version that is recommended here be used on my Marshmallow rom as well?
[Moto X Android Development] zilexa:
All the issues and reasons I had to unlock my Moto X, to install this modded/debloated ROM, are back after almost a year using this ROM :(

- Youtube does not work

- Bluetooth has issues when playing music on the car, but even on a speaker

- weird clicking sounds (Moto X is famous for this issue) when video calling (even Skype) or turning BT on/off

I unlocked/rooted and installed this ROM a long time ago, clean full wipe etc. It was perfect, I loved it and I appreciated all the work done to build this ROM. BT worked fine, scary clicking sounds were gone. Youtube even worked!

I just don't understand why all issues are back now :(

It sucks that Motorola knew about the clicking sound issue in 2014 and never did anything to fix it. I even returned my phone under warranty earlier this year, got a letter saying it was impossible to obtain parts to fix it.

Also it makes absolutely no sense to me why I can play Youtube perfectly fine on a HTC from 2013, but my partner sitting next to me cannot play any video. Reboots don't fix anything. Hell in the past I even tried a full wipe (before installing this rom) which did not help. The only thing that helped in the past was installing this rom.
[Moto X Android Development] patt2k:
XT1053 - Dev Ed which modem do I need to flash to fix the calling issue? Thanks!
[Moto X Android Development] Chimax:
I am from India. I have downloaded the Retail GSM Unlocked Version (Modded). Do I need to flash the Asian Modem Firmware to get cellular coverage & in case of any other problems? Please reply ASAP.

What sort of problems/risk I may run into after flashing the Modem Firmware?
[Moto X Android Development] clubwagon:
help please

hi, i has motox 1056 sprint and i have cyanogenmod lollipop installed on it, but i think i did a mistake flashing the modem firmware from the stock rom, because i had the speaker bug on my moto x, now the phone keep on the boot logo for long long time, and do es not start normal how can i fix this,can somebody help please? thanks
[Moto X Android Development] YedanyXD:
Flash other rom OR restore the firmware in fastboot
[Moto X Android Development] erick_gc:
Hi, this happened to me too, in the readme file there is some instructions of what you should do if it enters in a bootloop, just execute those commands and it should be fine after that.

Optional: flash these images if you are encountering boot-loops or unusual problems. Plesae backup before flashing, and keep in mind that you may not downgrade (flash a lower version firmware) after flashing these files.

$ fastboot flash partition gpt.bin

$ fastboot flash motoboot motoboot.img

$ fastboot reboot

I installed the xt1053 version, and this commands are in the readme file of that version, you should first, check the readme file of your version
[Moto X Android Development] VitaTaf:
If your bootloader is locked, you will have to flash a stock firmware for your specific model.

No, and there are no additional features in the modified Xposed zip.

This one.

If you are not experiencing any issues, such as any speakerphone or connection issues, then there's no reason to flash the modem firmware.

That is not possible unless you are able to install a custom recovery (which requires an unlocked bootloader).

No, these ROMs are prepared so that they can be flashed in custom recoveries.

Unfortunately, I do not believe that it is possible to use Project Fi to its full potential with our device. It requires hardware specifically built for switching bands.
[Moto X Android Development] jydis:
Could you maybe make a standalone flashable zip of this feature?
[Moto X Android Development] ammaralidj:
Hello Guys.

I have Moto X XT1056 Sprint variant with bootloader unlocked in Pakistan. I flashed the given xt1056 flashable zip file in the 1st post. After installation got radio issues like no caller voice in earpiece but in speaker working fine and same issue with outgoing calls. After that i installed the relevant given modem. Because of the modem i lost Moto x's sim unlock. Now got my Motox again from market but same issue with every stock and custom 5.1 roms. I installed 4.4.4 through recovery and found that the modem issue is not present in kitkat.

Any help will be appreciated.
[Moto X Android Development] crackers8199:
i have the verizon dev edition, but i'm now using it in global mode w/ a freedompop sim. i did flash the verizon modem, but can i now flash the gsm unlocked rom to avoid anything verizon? or do i need to use the verizon version and debloat myself (or use the debloated version)?
[Moto X Android Development] VitaTaf:
You could simply flash the boot.img extracted from one of the modified ROMs. However, there is an occasional bug that causes the speaker to not function unless a headphone is connected and disconnected.

Yes, you should be able to use the GSM unlocked ROM without any issues.
[Moto X Android Development] stefanowall:
Imo, you're a kind of saint, dear VitaTaf! :good: By the way, I have been running your rom for xt1053, although I live in Italy and my original rom was xt1052, and everything is perfect, no bug at all! This fact compells me to think that all the issues I read about are due to some mistakes when flashing a rom... Otherwise, I'm the luckiest of the men? keep alive your excellent work! All the best:good:
[Moto X Android Development] Jekodark:
Which Rom is smoother? This stock flashable or a custom MM rom like LOS/RR/AOSP?
[Moto X Android Development] jwhite5840:
I just flashed the ATT US xt1058 "untouched" ROM today. Worked great except I was immediately asked if I wanted to download and install an OTA update. Of course I did not, but just curious if either the debloated or custom ROMs for this device included the later security update?
[Moto X Android Development] abacate123:
Idk about the debloated but about the customs, they use different security patches, directly from the aosp from Google, which receive an update every month.
[Moto X Android Development] jb789:
Wait, are you saying that if someone flashes one of VitaTaf's modded lollipop ROMs from this thread, then they will get offered working OTA security updates every month? :confused:
[Moto X Android Development] abacate123:
No dude, as I said it's about the customs, and modded/debloated roms are not custom roms, they are still stock roms... So, since they're not customs they get Motorola's security patches, not Google's one.
[Moto X Android Development] danielcr12:
That's is true you will get notifications when there's a new security patch, but you won't be able to install it since the system partition is be tempered with ( by removing useless stuff).
[Moto X Android Development] WOrld1:
But it's not a problem after all because this phone is dead since long time for Lenovo.
[Moto X Android Development] fernandobarone:
Can someone tell me if the stock ROM still having the weird sounds coming from the speaker and the Youtube bug?
[Moto X Android Development] stefanowall:
Stock rom never had such things! Everything is ok!
[Moto X Android Development] YedanyXD:
https://xdaforums.com/moto-x/general/guide-youtube-bug-fix-lollipop-5-1-t3538562
[Moto X Android Development] fernandobarone:
One last question... I'm on Cyanogenmod 12.1 to install this rom I need to format the data, cache, dalvik cache and system like any other rom right?
[Moto X Android Development] stefanowall:
Why no one read the first page of the post? Everything is perfectly explained there! :confused:
[Moto X Android Development] fernandobarone:
Of course I read but I did not understand very well if I need to clean the cache, dalvik cache, data and system or flash the ROM over the cyanogenmod.
[Moto X Android Development] stefanowall:
Flash the rom and only after that perform a factory reset. Only in that way you won't experience unpleasant surprises! It is clearly explained, follow the developer's tips;)
[Moto X Android Development] YedanyXD:
Clean flash,
[Moto X Android Development] stefanowall:
Not at all! Read!
[Moto X Android Development] YedanyXD:
Heeey we say you that you dont Read the post, now is this your Revenge XD jajaja

I recommended make a clean flash although the ROM contain script to wipes

Dont lose nothing doing the wipes
[Moto X Android Development] stefanowall:
Believe me, once I tried a clean flash of the rom... I came from RR and I wiped anything, then I tried to flash the rom, but the process ended with an error and my phone was half f....d at that point. Dirty flashing and then factory reset is an always-right-procedure. Do as you like, it's not a problem of mine:laugh:
[Moto X Android Development] YedanyXD:
Exactly what error?