[MOD] 2013 Droid Family: Moto X 5.1 Patch

Rottgrub

Senior Member
Apr 28, 2009
493
105
73
What is it?:
A small driver patch to better support running the new Moto X 5.1 stock ROMs on the 2013 Droid Ultra series phones (Mini, Ultra, Maxx). Now also patches the libstagefright vulnerability in these stock ROMs.


What's been tested?:
- Droid Mini, w/ T-Mobile: LTE, 4g, 3g, 2g, calling
- Wireless 2.4ghz, Bluetooth audio and calling.
- Video acceleration, audio, haptic feedback, camera.
- Deep sleep, power management, and wireless charging.
- Normal day to day usage for ~2 weeks now. No crashes, no problems.


YOU ACCEPT RESPONSIBILITY FOR ANY AND ALL REPERCUSSIONS BY CHOOSING TO USE THIS INFORMATION
- If you have ANY doubts about the risks, definitely don't use this.


Knowledge Requirements:
- Read the first post for comprehension before posting.
- Read and understand the instructions before trying to follow them.
- Know how to use mfastboot to flash an FXZ.
Other Requirements: (Do a search before you ask...)
- Droid Ultra series device with unlocked bootloader.
- Stock Moto X 5.1 FXZ (I used xt1053 version).
- Current TWRP for Ghost (I used 2.8.7.0).


Instructions:
1: Unzip the Moto X FXZ to a directory on your computer.

2: *** DELETE "motoboot.img", and "gpt.bin"! DO NOT FLASH THEM!!! ***
THESE TWO FILES CAN PERMANENTLY DAMAGE OR BRICK YOUR DROID!!! DELETE THEM!!!


3: Reboot into bootloader for fastboot.
4: mfastboot flash your boot, logo, system, modem, fsg, and TWRP recovery
5: mfastboot erase modemst1, modemst2, userdata, cache, customize, and clogo
6: Use volume controls to boot directly to recovery. If you boot to OS by accident, you'll need to reflash recovery.
7: Let TWRP make changes to your system image to prevent recovery being overwritten.
8: In TWRP select "Install from adb", and then run "adb sideload Droid-MotoX-5.1_Patch.zip" from your computer.
9: Reboot device, and let TWRP install SuperSU.​


Observations:
- First boot can take a long, long, time, and may hang. If it's still booting after 10-15 minutes, give it a reboot (PWR & VOL-).
- Your device will think it's a Moto X after reboot. This is normal.
- I highly recommend disabling the Motorola Update Service. The patch doesn't do this for you.
- No idea if this works with other Moto X stock ROM versions.

Notes:
- This is done in my free time, and isn't something I intend to support.
- Don't PM me directly for help! Ask in the thread.
- If you don't have enough post count to post in DEV, you probably shouldn't use this patch.

Bugs:
- None that I've seen so far.

Changelog:
- Initial release
- Added libstagefright patched libs from this thread.

** Please search the forum or Google your question before posting. Thanks! **
 

Attachments

Last edited:

Rottgrub

Senior Member
Apr 28, 2009
493
105
73
So, just to be clear, this is NOT for Verizon phones?
For Verizon service you mean? This install should, in theory, support Verizon service, but I haven't tested it.

There is also nothing T-Mobile specific in the patch, so I don't see why it wouldn't "just work" with the Verizon version of the Moto X 5.1 ROM.
 
Last edited:

gfrrt

Senior Member
Jul 27, 2012
122
22
0
I noticed this says maybe work on droid maxx, but what about capacitive buttons or does the xt1053 have them too. Sorry if this is a dumb question. I was thinking about trying it on my maxx. Tired of waiting on the update.

Sent from my XT1080 using XDA Free mobile app
 

Rottgrub

Senior Member
Apr 28, 2009
493
105
73
I noticed this says maybe work on droid maxx, but what about capacitive buttons or does the xt1053 have them too. Sorry if this is a dumb question. I was thinking about trying it on my maxx. Tired of waiting on the update.

Sent from my XT1080 using XDA Free mobile app
All told, this ROM does a decent job of supporting the Droid phones out of the box. This patch basically just does a few things:
1: Activates the hardware buttons, and lights. (app switcher is mapped to menu by default)
2: Disables the software navigation bar.
3: Adds some libraries needed for audio on the Droid Mini.
4: Changes the DPI from 320 to 340 on the Droid Mini (smaller screen).

Cheers!
 

notz76

Senior Member
Aug 22, 2010
70
67
0
All told, this ROM does a decent job of supporting the Droid phones out of the box. This patch basically just does a few things:
1: Activates the hardware buttons, and lights. (app switcher is mapped to menu by default)
2: Disables the software navigation bar.
3: Adds some libraries needed for audio on the Droid Mini.
4: Changes the DPI from 320 to 340 on the Droid Mini (smaller screen).

Cheers!
Works good.

But i would add the correct keylayout (with app switch) -> https://github.com/CyanogenMod/andr...e/blob/cm-12.1/keylayout/synaptics_dsx_i2c.kl and modify the build.prop to get the correct model & name.

Seems that this rom has no cell standby power drain (like all cm12 versions).
 
  • Like
Reactions: kitcostantino

jaydotelloh

Senior Member
Apr 23, 2010
51
5
0
OK, so for Verizon service, one would get the VZW Moto X 5.1 FXZ and follow the same steps (anyone have a link)? Has anyone tried this out yet? I'd love to give it a go but have been out of the flashing game for a while now.
 

Rottgrub

Senior Member
Apr 28, 2009
493
105
73
Works good.

But i would add the correct keylayout (with app switch) -> https://github.com/CyanogenMod/andr...e/blob/cm-12.1/keylayout/synaptics_dsx_i2c.kl and modify the build.prop to get the correct model & name.

Seems that this rom has no cell standby power drain (like all cm12 versions).
Yeah, this was a tough call. I set the button to menu since there are unfortunately apps which won't properly expose their on screen menu with the Moto X framework. As you point out, it's easy enough to change. My workaround is to set long press menu to "app-switcher" in Apex Launcher. You can also install an Xposed module which will give long press functionality for the best of both worlds.

And yeah, I concur. I haven't had any of the power drain issues, or call crashing issues I had with CM12. It's proving to be pretty stable thus far.
 

Rottgrub

Senior Member
Apr 28, 2009
493
105
73
OK, so for Verizon service, one would get the VZW Moto X 5.1 FXZ and follow the same steps (anyone have a link)? Has anyone tried this out yet? I'd love to give it a go but have been out of the flashing game for a while now.
I don't think Verizon has actually released their Moto X 5.1 FXZ as of yet. You could always try it with instructions above and let us know how it works for you.
 

gfrrt

Senior Member
Jul 27, 2012
122
22
0
Where can I find stock moto 5.1 fxz xt1053 to flash. Do you happen to have a link?

Sent from my XT1080 using XDA Free mobile app
 

St.Noigel

Senior Member
Mar 7, 2013
1,032
319
113
Ivano-Frankivsk
Hm... It`s also works fine with AOSP 5.1.1 ROMs for Moto X and... even 4.4.4 stock ROMs for Moto X..
P.S. I just flashed it with TWRP 2.8.7.0 (just install - without ADB) before and after flashing ROMs )
 

Dom3616

Senior Member
May 7, 2013
909
574
0
Karachi
Hello users. Can someone please upload some decent screenshots of this Moto X Firmware?
My brother has a Droid Ultra XT1080. I wanna ugrade his to Lollipop as Verizon hasn't been able to deliver an OTA.
But he loves all the Moto Apps like Moto Display, so are those working in this?
 
Last edited:

St.Noigel

Senior Member
Mar 7, 2013
1,032
319
113
Ivano-Frankivsk
Hello users. Can someone please upload some decent screenshots of this Moto X Firmware?
My brother has a Droid Ultra XT1080. I wanna ugrade his to Lollipop as Verizon hasn't been able to deliver an OTA.
But he loves all the Moto Apps like Moto Display, so are those working in this?
It`s only MOD for install Moto X ROMs - if you want to see ROMs - go to Moto X thread and look to it ))
P.S. You can use this MOD only if you have unlocked BL