yashsingh1/xdaforums huggingface dataset:
[Moto X Android Development] hachamacha:
regarding moto functionality

[MENTION=3015269]mastarifla[/MENTION] figure out that wave-to-wake could be used on 5.1 just as on 4.4.4 and I fixed something or other about the .zip file he came up with to replace the firmware on these ROMs. I'm not sure if it's in the original post, but you can read about it and download it in this thread earlier here:

http://xdaforums.com/showpost.php?p=63616863&postcount=567

You have a choice (right now anyway) of "wave-to-wake" + "camera on" (4.4.4) or (5.1-style) chop chop + camera on. I was used to the wave-to-wake so have been using that for quite awhile now on this ROM.
[Moto X Android Development] Chimax:
Thanks a lot [MENTION=2658922]hachamacha[/MENTION] , [MENTION=5656400]Scalabis[/MENTION] , [MENTION=4344373]jco23[/MENTION]

I am on RR 5.5.9 so I hope it doesn't cause any issues after flashing SROM on this because I read some earlier posts that it was causing some problems after flashing.
[Moto X Android Development] jco23:
I had some significant issues trying to flash. Be sure to read through the comments and follow the instructions exactly.
[Moto X Android Development] aledex:
Question: if I have X 1052 with French (FR) firmware 222.27.5, I should be able to flash any rom I want without having to flash also the radio, right?

But does it holds also for the Modded Version: 222.21.15.ghost_row.Retail.en.US, since it is a different firmware (without stagefright fix), or do I risk briking the device?

P.s.: debloated EU link is wrong, this is the correct one: http://xdaforums.com/devdb/project/dl/?id=15379

By the way, in the download folder I've found XT1052_5.1_RETGB_Modded_1.0.zip, is it safe to try?
[Moto X Android Development] VitaTaf:
Hi, if you were coming from the French Lollipop firmware (through OTA or by flashing the stock firmware), you most likely will not need to flash the radios. However, if you were coming from stock KitKat, I would suggest that you flash the radio and bootloader for the French firmware.

Also, I do not suggest that you flash the XT1053 modded ROM (it may bootloop, but it will not brick your device). Instead, try the XT1052 Retail GB modded ROM here. I am just finalizing some changes before I officially announce it.
[Moto X Android Development] aledex:
That's great, thank you so much! I've read all the 69 pages of the thread before asking, but still I wanted to be sure (since someone would say otherwise, regarding 1053).

Yes I'm on the original stock Lollipop, so I will wait for your final GB modded version and then unlock the bootloader and flash it ;)

Thanks for your work!
[Moto X Android Development] goducks3620:
Vitataf, do you have the Sprint flashable zips to put in the OP?
[Moto X Android Development] aledex:
I've just flashed the GB modded version 1.0. Sadly the infamous cell stanby battery drain bug is still present :(

I could try flashing a different modem, but I sincerely doubt it could solve the problem.

I will keep you updated with any bug I find. Thanks!
[Moto X Android Development] lavero.burgos:
Flashed new BR stock XT1058 ROM with stagefright FIX and got no signal (My phone is XT1053), to get signal I had to flash xt1053 fsn.bin which is more than 1mb in size compared to the 200+ kb xt1058 fsn.bin

Yet I still get the same behavior on 3g network H/H+ it goes from HSPA+ to HSDPA mostly and it also changes to HSPA (without the +) sometimes.

The signal strength and data speed seem to be better than custom Roms but I'll test in a spot today where I used to get -80+ dbm and no 3g data connection to confirm.

This is with Claro carrier in Ecuador, I'll test a chip from a different carrier later today and report back.

Is it normal that 3g signal behavior?

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] aledex:
I've been trying GB modded version for some days now.

+ smooth. Like Nexus smooth. With the original stock rom my phone was become laggy and slow.

+ ambient display is great. Even if it sometimes it prevents Moto Display to wake up when I pick up the phone. But welcome back to wave-to-wake gesture!

+ Chop-to-flashlight works

+ xposed+greenify+amplify+gravity box. Even if Moto X has enough ram and it's enough optimized to be possible not to use these tricks, they are welcome.

- normal battery. Sadly I didn't see the 6 SoT like in the screenshot in OP. But it's fine.

- obviously if you begin to greenify every app, they will be a little slower on the first start :silly:

- cell standby battery drain is persistent, I've tried everything (except flashing a new radio). On the bright side, so it was before flashing the rom, so it doesn't really change anything.
[Moto X Android Development] Chimax:
i want to flash back to stock from CM12.1 but i am confused by the flashing process. It says that you should dirty flash it over an existing ROM and then just do a simple factory reset. Will it be ok to do so?

I am from India Asia and i have downloaded the Asian Debloated zip so don't think that i need to download the modem. Do I?
[Moto X Android Development] Chimax:
Hey someone please reply... Is it fine to dirty flash it over CM 12.1? And then do a simple factory reset?
[Moto X Android Development] jason111o:
I went from CM-12.1 back to stock. The method I used was this:

1. fastboot flash latest TWRP

2. Format partitions i.e. cache and data. If you have issues with TWRP flashing the zip where it can't read or mount a partition you will have to format it to an ext4 filesystem. It can be done with TWRP.

3. After successful flash to stock, then do a factory reset. It will take about 5 to 10 minutes to complete boot.

This worked for my xt1060 and I have been on stock for two weeks now and so far everything is working great. I hope this helps and good luck!
[Moto X Android Development] rodohmes:
What version of Xposed is everyone using? I've tried various ones that forums have mentioned for our device (Moto X on stock 5.1) and get bootloops every time.
[Moto X Android Development] lavero.burgos:
xposed-v79-sdk22-arm.zip official LP xposed

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] rodohmes:
Got it rolling right after I posted that, using the one you mentioned. Thanks for the help. :thumbup::)
[Moto X Android Development] msespindola:
Hi, I'm on Cm 12 and wish to flash thus rom!

How do perform a full wipe the right way? Don't wanna any left over from cm! Since Moto x1 doesn't have SD slot! Is there a script for full wipe?
[Moto X Android Development] abacate123:
Nah you don't need SD to install stuff. Download the rom you wish, put the rom inside the internal memory, go to recovery twrp, wipe everything beside the internal which is the partition where your rom is, now reboot in the recovery again and go to install and select the zip, install it. Remember, don't wipe the internal. It doesn't matter if you keep that partition there. If you wish after flash the zip and complete you can wipe the internal too then.
[Moto X Android Development] msespindola:
so,did all you said,but after i've flashed,it wont let me erase internal storage. am i doing something wrong?
[Moto X Android Development] abacate123:
Wiping internal is optional. Try to reboot to twrp again. When I did it I just wiped it normally without issues. Tell me what is happening when you try to wipe the internal then.
[Moto X Android Development] :
Um so here's the problem. I flashed the rom and now my phone keeps shutdown after the motorola boot screen.

what the heck is going on ? I cannot get back into TWRP recovery. The phone just shutdowns...
[Moto X Android Development] VitaTaf:
Hello, could you state your phone's variant (XT1052 EU, etc.), the version of the ROM that you've flashed, and your steps before and after flashing the ROM?
[Moto X Android Development] :
Its the XT1053 US Unlocked Phone... I followed the steps and now my phone just keeps shutting down.

---------- Post added at 07:16 PM ---------- Previous post was at 07:15 PM ----------

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

---------- Post added at 07:16 PM ---------- Previous post was at 07:16 PM ----------

OMG I think my phone just got bricked because now it won't charge...
[Moto X Android Development] VitaTaf:
I'm sorry that you are facing this issue. Could you flash this recovery in fastboot mode and report back if it boots into the recovery successfully?

Please report on your progress.
[Moto X Android Development] :
I cannot get into recovery... it just shutdown

---------- Post added at 07:22 PM ---------- Previous post was at 07:21 PM ----------

I am able to go into the boot loader but, when I select the recovery option with the volume keys it shutdowns and I have to repeat the process.

---------- Post added at 07:23 PM ---------- Previous post was at 07:22 PM ----------

wait now it comes back
[Moto X Android Development] abacate123:
Hey bro, any chance of a mod update soon? :D
[Moto X Android Development] VitaTaf:
I'm attempting to fix several animation glitches, and after that, I may release a beta version first. I'm not sure how long this will take.

The update will include a few animations and tweaks ported from Marshmallow, such as tapping the wallpaper in Recents to return to home, and support for the new Marshmallow application launch animation with a patch to the Google App. You may track the progress here.
[Moto X Android Development] abacate123:
That's pretty nice bro, keep going.
[Moto X Android Development] DanRo80:
I messed my phone up when attempting all of this yet while still on the KK bootloader.
[Moto X Android Development] huzaifaaleem:
Does the modded ROM include Gapps package? Its size is almost half of the stock one. Kindly tell which stock apps are included or omitted in the Modded version. Thanks :)
[Moto X Android Development] aledex:
Yes it already has Gapps package. The apps removed are the same of the debloated version.
[Moto X Android Development] odessey:
XT1056 android 5.1

Can we expect ROM for XT1056 from you?

Now I am using a stock ROM 5.1, it has a longer working for one charge than stock 4.4.4 and good stability, but has some problems with teethering , showing statistics of battery etc.

So your ROM would be an ideal one.
[Moto X Android Development] VitaTaf:
Yes—expect a stock untouched and debloated Sprint XT1056 ROM soon.

Edit: XT1056 Sprint Untouched ROM and modem firmware uploaded.
[Moto X Android Development] mastarifla:
Hey VitaTaf,

Sorry I have been busy too for the past few weeks :), but I have been looking into some of the MotoDisplay_3.0 changes and the MSP430 dilemma with ChopChop and looking at the virtual Lift sensor in the Clark phones

Turns out that the newer Motorola Phones use a different type of chip to handle the gestures and have their own SensorHub APK with a different way of flashing the firmware, the MSP430 is the only one that loads it's flash memory in TI-Text files, I have simulated it loading, and have tried a couple configurations while learning more about the MSP430 architecture... the code that we are interested in will be within the [MENTION=2828574]14000[/MENTION] address space, as I have tried removing and replacing address spaces to see if it would work (turns out that I killed both the bug and the chop chop gesture when manipulating the [MENTION=2828574]14000[/MENTION] address space!)

I have also been looking into taking some of the features from the newer APK versions of Moto Actions and Moto Display, however, we don't have a library built for our phone for the Moto_Display_3.0 APK, so the next best thing is to take the smali code from the apk and try and merge it with an older version in order to add the features, however, it probably won't be pretty, I thought the arm libraries for the Moto X 2014 could help directly copy the Moto_Display_3.0 APK (since it is also a ARMv7 platform) but it seems like the architecture isn't the only thing that needs to be the same for the libraries...

I also grabbed the latest Lollipop built versions of the APK's for Moto, Moto Display, Moto Actions, and they work to some extent, but they end up crashing in places that would make it annoying for users and don't really add much to the usability, and I unfortunately cannot use the Marshmallow built APK's :/

Getting the Lift gesture working would require a kernel change and a MSP430 custom firmware, and then understanding how the kernel and MSP430 interact with one another, but it could be a fun project to look into :)

I grabbed a Moto Hint 2015 recently and am going to have a bit of fun trying to understand how the always listening works with it (I think it just always has the microphone on honestly, as I can hear some static noise I think), but it too has another new sensor for detecting if it's in your ear, so maybe I could tweak that to open an app or perform an action when not in a call.

Anyways just wanted to say keep up the good work, I'll let you know if I get something working!
[Moto X Android Development] goducks3620:
thanks! the file names have XT1052 in them, a typo I assume? just making sure before I flash...
[Moto X Android Development] VitaTaf:
Apologies. They were typos, and should be corrected now.
[Moto X Android Development] odessey:
Ok, thank you. And what about modded version? ;)
[Moto X Android Development] VitaTaf:
There is currently no ETA for the modded versions.
[Moto X Android Development] gusnd:
Hi, I'm trying to flash the debloated version on twrp but I'm receiving the signature error. I'm currently running the last stable CyanogenMod. What could be causing this?
[Moto X Android Development] t-bob:
So just to be clear....

I am on Sprint stock 4.4.4 rooted and unlocked bootloader. If I flash 5.1, can I safely go back to KK by restoring my backup? Thanks, just want to be sure I don't brick my phone.
[Moto X Android Development] goducks3620:
I can verify that the Sprint flash works fine via twrp. Didn't need to flash the modem file either. Just SU for root.
[Moto X Android Development] orky87:
Have you tested in-call loud speaker without flashing the new modem and is it working ?
[Moto X Android Development] goducks3620:
oh, whoops. not working. guess I'll have to fire up fastboot.

EDIT: OK, I went into fastboot and followed the instructions. I did get stuck in bootloop, but the instructions also included what to do in that case, and it fixed the loudspeaker issue once I got it running correctly. Note that once you unzip the modem file, the subfolder still has the incorrect XT1052 name but it is the sprint modem.
[Moto X Android Development] theoneandonlybrooks:
I just did the stock Verizon XT1060 version on my VZW DE a few days ago and I have the speakerphone issue, though BT works fine. Is there a link for a specific Verizon modem file? I looked and I just found ATT and Sprint. Also, after I did this update, my 4g reception got noticeably better in some trouble spots. If the modem wasn't included, any ideas on what would cause that? If flashing the ATT modem would undo that, I may just settle for non-working speakerphone. Seems weird.
[Moto X Android Development] T-1311:
I flashed the debloated Version to my xt1052. Runs perfekt. Why do I need the moded Version of the camera? I wanted to install the latest Version from play store but recieved an error.

Can you please uplaod an update of camera APP.
[Moto X Android Development] aledex:
If I record some audio, the volume is very low.

GB modded version.
[Moto X Android Development] VitaTaf:
Here is a video showing latest progress of the modded ROM. There are still a few bugs to be fixed, but unfortunately I will not have a lot of time to do so in the next several weeks.

The features presented are:

Better Keyguard Affordance (when launching camera or dialer)

New Do-Not-Disturb Tile

Marshmallow Volume Dialog with seperate stream controls

Clip Reveal animation when launching apps from Google Now Launcher

Clip Reveal animation for Popup Dialogs

New features not shown include:

headset multi-button detection

The Verizon modem firmware can be found here.

The modded version of the camera allows for other cameras (instead of the Motorola camera) to launch with Twist to Quick Capture. You may simply delete the MotCamera folder in /system/priv-app/ using a root browser. I will update it when I have a chance.

Could you state which app you are using to record and play?
[Moto X Android Development] aledex:
It was the stock sound recorder of the modded rom, plus I've tried another app (voice record).
[Moto X Android Development] theoneandonlybrooks:
The Verizon modem firmware can be found here.

So I tried the file at the link.

I did fastboot erase modemst1

fastboot erase modemst2

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

I tried with and without wiping data/dalvik

Also tried fastboot flash motoboot.img

and fastboot flash gpt.bin

Regardless of what I do, now I'm in a bootloop where it just keeps pulling up the white screen that says bootloader is unlocked. So I'm bricked. I probably should've just settled for not having a speakerphone. Any thoughts on what I should try now? I need my phone back. Is there any way I can just get back to where I was before flashing the modem?
[Moto X Android Development] 690sid:
Does this mean support for Volume buttons on the Ear-Pods by Apple too?
[Moto X Android Development] VitaTaf:
I'm not sure what could be causing the problem. Was the recording volume low before flashing the ROM?

The last two commands are as follows:

fastboot flash motoboot motoboot.img

fastboot flash gpt gpt.bin

Unfortunately, Apple uses a proprietary standard for their EarPods, that means that most other phones are incompatible with Apple's EarPods' volume control.
[Moto X Android Development] aledex:
I sincerely have no idea. It's really not a big deal for me, I posted the problem in case someone else has it.
[Moto X Android Development] lavero.burgos:
I just tested In my xt1053 with xt1058 ROM and playback volume is normal

Enviado desde mi XT1058 mediante Tapatalk

---------- Post added at 11:37 AM ---------- Previous post was at 10:50 AM ----------

Hi, what LPA is the AT&T modded rom in OP? Is it the latest AT&T build? I would like to try a modded version of one of the latest official builds.

Thanks!

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] theoneandonlybrooks:
Thanks for the help with the commands. I did that and wiped. First boot it hung at red Verizon screen. Second boot it went all the way to setup but it stops at the Verizon contact backup and won't go any farther. Reboot again, same problem. Any thoughts?
[Moto X Android Development] VitaTaf:
I believe that it is LPA23.12-21.1, so it is not the latest version (LPA23.12-21.7).

Try this and reboot first: fastboot flash partition gpt.bin.

If the problem still persist, my advice would be to start over.

Copy all the files from the internal memory of your phone to your computer (or OTG), since we will be wiping the internal storage. Have the ROM zip ready.

Now execute these commands:

fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata

Finally, copy the ROM zip back the internal storage and flash it in TWRP.
[Moto X Android Development] theoneandonlybrooks:
After my last post, I wiped again in twrp, then rebooted, it hung at red Verizon screen, I rebooted again and it started working, though I think it deleted all the user data somehow because it is doing everything from scratch. I'm going to cross my fingers and hope it's good to go.
[Moto X Android Development] VitaTaf:
A patch for the first beta version of the XT1053 Retail US ROM is uploaded here. Please make a Nandroid backup before flashing.

I haven't had the chance to test the patch yet, therefore a bootloop is likely. In the event that everything works smoothly, please report any bugs here and include logs of the problem if possible.

Edit: Looks like it isn't working properly. I'm taking it down until I have time to test it.
[Moto X Android Development] lavero.burgos:
Is the patch for the untouched version uploaded on Nov 27th only? Because there is a debloated one too.

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] VitaTaf:
Yes, this is for all XT1053 retail US ROMs with a system version of 222.27.5.ghost_row.Retail.en.US. Please report on whether it is working or not.
[Moto X Android Development] lavero.burgos:
Tested In many ways and many times but nop it doesnt work, phone wont boot.

At least it doesnt bootloop, it gets to a point where One usually get "updating apps" or something like that but instead screen turns black and stays that way.

Enviado desde mi XT1053 mediante Tapatalk
[Moto X Android Development] JMB1:
Can someone confirm whether android pay (NFC payments) works on the modded ROM on Verizon 1060? I have debloated the stock myself and have been using Android Pay so long as SuperSU is disabled, would love to have all these features though if can still pay using NFC.
[Moto X Android Development] Megatron007:
xt1052 modded stock rom Updater binary error tried various twrp still no success ...can anyone help me out ? :) [MENTION=5573353]VitaTaf[/MENTION]
[Moto X Android Development] lavero.burgos:
Got The same when flashing xt1053.

Just install immediately after booting in twrp , don't format system in twrp.

If you DO/DID the wipes then reboot to recovery again AND flash immediately.

Enviado desde mi XT1053 mediante Tapatalk
[Moto X Android Development] Megatron007:
without wiping the data too ? :)
[Moto X Android Development] lavero.burgos:
"If you do the wipes then reboot to recovery again, then flash immediately."

Enviado desde mi XT1053 mediante Tapatalk

---------- Post added at 08:59 AM ---------- Previous post was at 08:54 AM ----------

Just to note that [MENTION=5573353]VitaTaf[/MENTION] uploaded a Philz recovery image, haven't tested it but might work better.

http://xdaforums.com/devdb/project/dl/?id=16087

Enviado desde mi XT1053 mediante Tapatalk
[Moto X Android Development] Megatron007:
You the Man, Thanks A lot :D Flashed Successfully ;)
[Moto X Android Development] t-bob:
Successfully upgraded to 5.1 on Sprint XT1056. Thanks!
[Moto X Android Development] zilexa:
I am going to unlock bootloader and install the debloated European version. Unlocking means a factory reset will be done. Should it be safe to immediately reboot after unlocking is finished and install TWRP/reboot/install debloated ROM?

final question, Xposed: First post says to install xposed sdk22-arm.zip but now xposed-v80-sdk23-arm.zip is also available. is v22 still the recommended version for our Moto X 2013?

Also, would it be possible to get the Motorola Gallery back?
[Moto X Android Development] athulele:
After unlocking you can directly boot into TWRP and flash the ROM.

Xposed-v80 is recommended as it is the latest one.

All Motorola apps can be downloaded from the Play Store.