yashsingh1/xdaforums huggingface dataset:
[X 2014 Android Development] rhpot1991:
OK so I did the following:

Installed Modems

Installed Updated Base Image

Installed SuperSU

Installed GApps (I tried on other runs without GApps, didn't change the outcome)

Debloated with xt1096-5.1-debloat-keepconnect.zip

After a restore I did:

Installed Updated Base Image

Installed SuperSU

Debloated with xt1096-5.1-debloat-keepconnect.zip

Same issue both times, out of space and quick optimizations.
[X 2014 Android Development] mikeoswego:
Ok, wipe data and system.

Flash the rom image I just posted.

Flash the debloat

Flash GApps

Boot up and let it get to the setup screen.

Go back to recovery and restore /data only

Reboot

Do not flash SuperSU or Xposed
[X 2014 Android Development] rhpot1991:
Would it help to restore /data ahead of time?
[X 2014 Android Development] mikeoswego:
No, we want to see if the phone will start up as a fresh install. When it boots for what it thinks is the first time (with a clean data partition), there will be some files outside of /data that will be reinitialized. Then, you can try to restore /data which holds your personal stuff and see if things are cleared up. Otherwise, presuming it does start and go to the setup screen but won't with your data, starting over is probably the only thing to do, unfortunately. If your backed up to Google, it will automatically restore your contacts, your apps and many of the settings for those apps like your home screen layout if your using the stock Google Now Launcher; its not like redoing a Windows box.
[X 2014 Android Development] rhpot1991:
This worked, I am back up and running now.
[X 2014 Android Development] mikeoswego:
Thanks for the update, glad to hear it all worked out!
[X 2014 Android Development] drewski_1:
This is the Sunshine APK that I used with Xposed

https://mega.nz/#!WAgTwIjZ!eBRBRJ2Gll7mtkMUmsGfdtB0i99UZyy4ZEodagTS1b8
[X 2014 Android Development] tjohnstone3:
Thanks for sharing, but it tells me it is 'out of date' when I try to use it...lol...guess I'll have to mofo flash a version without xposed to do this.
[X 2014 Android Development] drewski_1:
Have you posted to the Sunshine thread? They made modifications to have it work with Xposed.

They might not know about the current issue you're having.

Sent from my Moto X
[X 2014 Android Development] Legacystar:
hey guys, i'm looking for something specific can you help?

i'm running twrp and one of the last mofo images before the bootloader unlock. everything is running fine but i want to updat to the stagefrieght patch. looking at al the new images, they are all mostly debloated and are taking out thinks like Verizon SSo, which i'm pretty sure is required for nlf mobile. i use nfl mobile so what i really want is a stock 5.1 with the patch and xposed. i like all the moto features so that why i haven't gone to something like CM12

is there something out there that i can update to that fills my needs?
[X 2014 Android Development] tjohnstone3:
I mofo'd to the 3.1g image and used the remove xposed patch. Was then able to use sunshine to unlock the bootloader. Then successfully installed TWRP, and the base TWRP rom from the OP. I assumed this had xposed included because there is a patch to remove it.

So I booted and it took forever optimizing apps and what not. When I installed the xposed installer it told me the framework wasn't there. So I installed the framework via TWRP and rebooted. Xposed installer seemed to work and I could update my modules...but non of my modules can find the framework...both greenify and gravity box are failing.

I'm going back through the whole install process and going to install the xposed framework during my initial install (after wiping system) to see if that works...but just wondering if anyone had any thoughts on what I'm seeing?

Edit: I might be a moron....I didnt' re-enable the modules...so I'm pretty sure that's why they weren't working. Wish I had realized that before reflashing everything!
[X 2014 Android Development] mikeoswego:
There is no difference between, say, xt1096-5.1-v3.1g and the TWRP images I've posted as far as the Verizon apps. Verizon SSO has always been removed in the images I've created. If you apply one of the debloat zips to the TWRP images, that will delete the Verizon stock NFL Game Center and you would probably lose the Verizon exclusive parts of the NFL app.

What has been removed is the GApps, or Google Applications such as GMail, Books, Play Store, and a dozen more. For this you need to install a GApps packge like TK GApps or one of the many others out there. With mofo, I had to decide for you which GApps were installed. Now, with TWRP, you can decide which GApps go into /system on your ROM. It sounds like you want all the goodies, if so, you would install the "Stock" version of TK GApps which is actually what I actually installed into more recent versions of the mofo rom. If you don't want everything, you can use a gapps-config file to fine tune what is installed. TK GApps are here: http://xdaforums.com/android/software/tk-gapps-t3116347
[X 2014 Android Development] mikeoswego:
xt1096-5.1-23.32-25-5_2.zip includes Xposed, xt1096-5.1-23.32-25-5.zip did not, xt1096-5.1-stock-20150820.zip is 5.1 without the stagefright patch. The instructions to upgrade to the stagefright patch are in post 781. Just making sure you're working with the correct files.

If you are installing the xt1096-5.1-23.32-25-5_2 image and then also install Xposed with the Xposed installer zip, it might not hurt anything as long as you selected the correct Xposed framework package. This Moto rom is a little flakey as far as the SuperSU and Xposed install works which is why I put them back into the xt1096-5.1-23.32-25-5_2 image (and added an Xposed remove zip) after not installing them in the xt1096-5.1-23.32-25-5 image.
[X 2014 Android Development] tjohnstone3:
I appreciate your response, I was installing the stock image.

But the issue was that I didn't re-enable the modules after re-installing the framework/installer. After I re-enabled everything worked fine.

I'll probably go to the stagefright patched rom in a few days.
[X 2014 Android Development] mikeoswego:
I see that in one of my edits of the first post, I removed the fact that the Xposed installer would have to be installed into the xt1096-5.1-stock-20150820 rom like the GApps, and I never had in there that you would have to re-enable the modules in the installer due to the re-install. I'll edit it now. Thanks for pointing it out!
[X 2014 Android Development] Haxxa:
Hi Just a quick question besides this Rom can the XT1096 be used with other Roms like cyanogenmod nightly builds or will the radio not work due to the differences in CDMA. I'm sure it will boot but curious if any work done to get radio working besides stock.
[X 2014 Android Development] mikeoswego:
The current CM 12.1 nightlies actually work quite well. There are some things missing like the low power active display but the way they've done the ambient display is nice. CM has some nifty features that Gravity Box doesn't quite match like how the brightness control works by touch/hold or sliding on the status bar, don't have to touch the power button to unlock, ascending ringtone works better than the GB version. The vibration when you twist for the camera isn't as nice on the CM rom. CM makes the green led light up for notifications if desired. The CM gallery doesn't have the highlight reel creation tool or use exif dates for sorting; I've been meaning to make a flashable zip to install the Moto Gallery into the CM rom but it takes more than just the apk to make it work properly. Antutu scores are about the same with the CM rom compared to the Moto rom with Xposed installed.
[X 2014 Android Development] Haxxa:
So even the Mobile works? As in calls and data? In which case I could try use other roms as well?
[X 2014 Android Development] slogar25:
It does. Actually running CM now
[X 2014 Android Development] amd_h4x0r:
this just made my day!
[X 2014 Android Development] mikeoswego:
Yep, calls and data were working back on August 24 for 16 gb devices and a problem with 32gb devices was fixed more recently.
[X 2014 Android Development] mikeoswego:
Mofo patch for Exchange2

I had a request for a Mofo patch to restore Exchange 2 and stock Email to the base image. It's attached.
[X 2014 Android Development] joshnat:
I've just done a clean install using xt1096-5.1-23.32-25-5_2.zip and the TK Gapps mini package. I'm now stuck in a Google Play Services FC loop and can't get past setup. I remember reading about this back in August, but I thought the later versions addressed the issue? Should I start with xt1096-5.1-stock-20150820.zip then xt1096-5.1-23.32-25-5_2.zip, then Gapps?
[X 2014 Android Development] mikeoswego:
When I posted that version it definitely worked with the version of TK GApps available at the time, I'll test it with the current version. Did you use the wipe cache button in TWRP? (Your dalvik was already wiped when you wiped data but not the cache.)
[X 2014 Android Development] joshnat:
There's a fairly new version of TK GApps, so that may be the problem. I did wipe cache. I got running by returning to the 8/20 base, setting up, then flashing the stagefright rom.

---------- Post added at 02:18 PM ---------- Previous post was at 01:19 PM ----------

Pretty sure it's the same webview issue as the last time. The same apps are crashing.
[X 2014 Android Development] mikeoswego:
Yes, it's the webview issue. The problem is that the TK Gapps is deleting the installed webview and not installing the new one unless you use the full stock package. I had tried to work around this issue but my work around is also breaking things.

I'll post in the TK Gapps thread about this problem. For now, you can flash the webview add-on module available here: https://www.androidfilehost.com/?w=files&flid=31530 Or as you found, the older version didn't have my faulty work around for the TK Gapps issue and allows setup to continue.
[X 2014 Android Development] mikeoswego:
xt1096-5.1-23.32-25-5_3

I've posted a new version of the ROM. The changes are reverting the faulty work around for the TK GApps webview problem. The stock email and exchange2 are restored (these may be removed by your GApps depending on how you configure them.)

If everything is working for you now, there is probably no reason to upgrade to this version.

If you are going to do a clean install, you should use this version. Until such time as the TK GApps installation process is changed, you'll still need to use the webview add-on if you don't use the full stock package (if you are using TK GApps.)

The new version is here: xt1096-5.1-23.32-25-5_3.zip
[X 2014 Android Development] jrbmed08:
How's the battery life on CM vs stock?
[X 2014 Android Development] mikeoswego:
I usually have the phone charged when I go to bed and have found that over the night, the CM rom can use a lot more battery than the Moto rom. After laying there untouched for 7-8 hours the CM rom will often be down to 73% while the Moto rom will only be down to 97%. I could probably avoid this by turning off the notification LED and ambient display notifications. Just for the record, there was one overnight time when the battery only went to 94% overnight on the CM rom with one of the later nightlies. Maybe one day the CM devs will be able to figure out the Moto "blobs" for the low power active display and make use of that instead of the AOSP ambient display.
[X 2014 Android Development] jrbmed08:
Ah, interesting. So standby time is worse on CM. Thanks - you saved me the trouble of flashing it for now. I wish I could wake up with 97% battery. My idle drain is about 2%/hr.
[X 2014 Android Development] joshnat:
Thanks, that fixed it. Not sure why GPS was crashing originally, but I'm over it.
[X 2014 Android Development] sonic1675:
So this is new. It seems that whenever I use Chromecast and try to cast screen it connects for a second than disconnects immediately. I tried it on a multitude of networks and on my friends unrooted x and it worked flawlessly. Anyone have any ideas as to why it won't work? I'm thinking it was something in the debloat package.
[X 2014 Android Development] jrbmed08:
For those of you using CM, have you tried Render Kernel? I wonder if battery life might be better with it. I know very little about custom kernels so I'm not even sure it's compatible with the XT1096 but figured it couldn't hurt to ask.
[X 2014 Android Development] mikeoswego:
Screen casting works for me with the debloat. Have you tried clearing cache and data for the Chromecast app?
[X 2014 Android Development] mikeoswego:
The Render kernel does work with the xt1096, some people say that with the right settings it gets better battery life than the CM kernel.
[X 2014 Android Development] mikeoswego:
xt1096-5.1-23.32-25-5_4

I figured out the problem with WebView and the TK GApps mini install. WebView will no longer be incorrectly removed, it is no longer needed to download the WebView AddOn with your TK GApps.

There is nothing else new, if everything is working for you, there is no need to dl and flash this version. If doing a clean install, this would be the current version: xt1096-5.1-23.32-25-5_4.zip

I also updated the CM-Stuff zip with current versions of CM's AudioFX and Trebuchet. That zip is here: xt1096-5.1-CM-Stuff.zip
[X 2014 Android Development] nola5712:
If I am on system version 23.16.3 did my phone take an OTA update? I had MotoOTA frozen with Titanium Backup but some things have changed. The app drawer is vertical scrolling now instead of horizontal and some other things. Fortunately I actually did NOT lose root, but now my phone is having some trouble talking to my car.

So is 23.16.3 a recent update that my phone somehow took? If so, obviously Titanium Backup didn't do it's job, so how else can I prevent OTA updates from going through? Still have root though so that's nice.
[X 2014 Android Development] mikeoswego:
The system version for the current, Stagefright patched, xt1096 rom is 23.16.5. I named the rom in this thread after the Build number, 23.32-25-5

System version 23.16.3 was the 5.1 rom prior to the Stagefright patch (and the old build number was 23.32-25-3.)

There has been a recent update to the Google Now Launcher which this rom uses by default as setup by Motorola. That update from the play store changed your app drawer to vertical scrolling, etc. There has been a lot of discussion in various threads about these changes.

The launcher update should not have affected your Bluetooth connections. You might try "forgetting" the car connection in your Bluetooth setup and then pairing it again to see if that changes anything.
[X 2014 Android Development] nola5712:
Thanks man. I did try forgetting my car's connection, but the errors persisted. So I'm not sure what happened. It was really strange too because after forgetting and then repairing the connection, for the phone portion everything worked as normal, but the media streaming portion kept saying no bluetooth device paired. Weird. Either way I downloaded an update to my car's media system to a flash drive, and updated that. Now everything's working again so whateva :) Thanks though for the response :good:
[X 2014 Android Development] GatorsUF:
My XT1096 is on LPE23.32-25-3.

It just informed me today that there is an update, do I just flash your "xt1096-5.1-23.32-25-5_4.zip"? Or do I need to install gapps? I have flashed anything on this phone yet, just stick 5.1 OTA with unlock, root and TWRP.
[X 2014 Android Development] mikeoswego:
The answer depends on how you got to where you are now.

First, there are 2 TWRP flashable files to update to the Stagefright patched version, 23.32-25-5. Those files and instructions are listed here: post 781.

If you have never flashed any GApps (TK GApps or one of the others) meaning you are still running the mofo rom image, then you do need to flash GApps as well.

If you did flash some version of TK GApps after flashing a previous version of this rom with TWRP, then the addon.d script installed by TK GApps will backup and then restore those GApps during the flashing of the rom.

The current version of the rom does include the Verizon and Motorola apps like Visual Voice Mail, NFL Game Center, Moto Connnect, etc. You can remove those with one of the zips in post 2 if desired. The Google Apps (GApps) are not included and you do need to install at least the smallest package to have the Play Store and Google connectivity for contacts backup, etc.
[X 2014 Android Development] GatorsUF:
I am technically on the stock android 5.1 OTA. I flashed my phone to stock 5.0 then unlocked my bootloader with sunshine. Then I upgraded my phone with the 5.1 OTA, then I installed TWRP.

So technically I'm not on a "MoFo img" at all. Thinking I could just install the stock recovery and install the current update.

Any idea how I can find the stock 5.1 recovery and do I just flash it with fastboot in bootloader?
[X 2014 Android Development] mikeoswego:
You can find the stock recovery image in this archive: 5.1bins.7z.

If you allow the OTA to download, it will end up as a .zip file in /cache. You can copy that file out to somewhere in /sdcard or your otg drive and use TWRP to flash the OTA if you want instead of flashing the stock recovery image.
[X 2014 Android Development] mikeoswego:
In another thread, you said you were rooted. The OTA will not work with either the stock recovery or TWRP if any of the files being updated by the patch are changed (or not there.) You can edit the install script to get around some of the issues but then it will only work in TWRP, not the stock recovery. If you look inside the OTA zip at the updater script, you will be able to see which files are going to be checked before the actual patching is allowed to start.
[X 2014 Android Development] mikeoswego:
Here is another option for you.. The OTA consists of patches to boot.img, the files in modem (NON_HLOS.bin) replacement gpt.bin and fsg.bin and then patches to many files in /system

In post 781 that I linked previously, the xt1096-23.32-25-5.modem.zip file listed there is a TWRP flashable zip that does everything except the gpt.bin replacement and the updates to the files in /system. You can flash this and it is still compatible with your current version of /system. The gpt.bin file is included in your OTA zip and you can fastboot flash it if you want (I'm not sure if flashing that breaks mofo and in the past thought it would break Sunshine, but the Sunshine devs say it isn't a problem. The rom works fine without updating the partition table by flashing gpt.bin.)

Then, I uploaded a while back the full system.img file as it appears immediately after applying the Stagefright OTA to the stock system. Nothing is added (like tether, root, etc.) nothing is removed, all the stock apps are there. TWRP is supposed to be able to flash .img files but I haven't tried it. Later versions of fastboot/mfastboot should be able to flash this file directly without converting it to sparse chunks. Even though it's not relevant to you, mofo will flash this image. I haven't looked into how to convert the image file to sparse chunks. Anyway, that unmodified system image is here: xt1096-full-stock-23.32-25-5.img.7z
[X 2014 Android Development] skytbest:
How do I remove my Xposed Framework? A while ago I used MOFO to root my XT1096 and I installed the Xposed framework (it needed to be sideloaded at the time because we couldn't use the latest version of the installer/framework).

Now I want to use Sunshine to unlock my bootloader but I cannot because Xposed is still installed. When I go to the framework management screen within Xposed the "Uninstall" button is grayed out (along with "Install/Update"). Just uninstalled the Xposed Installer application does not work since the framework is still present on the phone. So how do I remove the framework itself?

Thanks!
[X 2014 Android Development] mikeoswego:
The latest version of the mofo image package includes an xdelta3 patch to create a mofo image with the Xposed framework removed. Some earlier mofo versions also had a patch available to remove the Xposed framework. The current mofo image with the Stagefright update and instructions to install it are listed here: post 783. There is no other way to remove the Xposed framework because the framework is installed to /system and you don't have write access there until after you unlock with Sunshine.
[X 2014 Android Development] JulesJam:
Wow this really sucks that Verizon MX14 isn't getting Marshmallow - this means it will never have simultaneous voice and data. I understand that Motonovo doesn't want to deal with carriers any longer and I agree with that, but man does it suck that the MX14 will never be able to do VoLTE/HD calling.

Suckity suck suck suck.
[X 2014 Android Development] Haxxa:
Really does suck, though I am glad I didn't upgrade bootloader, many others are facing a much much worse situation.

I believe it will be possible to port the Pure edition update over with a couple of tweaks, so at-least we can move to MM or via Cyanogenmod as an alternetive if cellular doesn't work.
[X 2014 Android Development] mikeoswego:
It surprised me too. Like you say, I think they've made the decision that it just ins't worth it to cater to all the various carriers. I also noticed that for Marshmallow they are dropping Moto Assist and Moto Connect: Marshmallow and S’more - The Official Motorola Blog It will be interesting to see if Moto reverses course on the M upgrade, issues VoLTE for Lollipop, or CM figures out how to implement VoLTE.
[X 2014 Android Development] mikeoswego:
Yes, definitely happy to be unlocked with options. On the CM front, we are lucky to have at least 2 people updating the rom who use Victara models. I've been running the stock rom for the last week or so but have run the CM rom extensively and it works quite well; it won't be a bad path to Marshmallow if that (and the CM derivatives) end up being the only path to continue upgrading.
[X 2014 Android Development] JulesJam:
I don't use Moto Connect but Moto Assist is huge for me. The priority notifications in lollipop aren't the same b/c I love the sleep setting of Moto Assist where someone can get through if they call me twice in 5 minutes. I don't want to make people favorites or whatever it is called in priority notifications b/c I don't want anyone getting through to me on the 1st try, least of all my family who are inconsiderate. I want them to have to call twice in 5 minutes to be able to get through to me when I am sleeping because then I will know it is important.

I guess I will have to learn to use Tasker, which is fine but it was so nice that Moto Assit worked out of the box, sigh.
[X 2014 Android Development] mikeoswego:
CM's Trebuchet and AudioFX have been updated so I've made a new TWRP flashable zip for those who like to use those with the Motorola rom.

Here it is: xt1096-5.1-CM-20151005.zip
[X 2014 Android Development] GatorsUF:
Mike, I can't tell you how much i appreciate your help. I just don't fully understand all the technical stuff you are saying. I still get the update notification every morning and I have just been ignoring it for the past week or so.

Can I do a full wipe and reinstall of one of your ROMs and be OK? I'm OK with that if that's my easiest option.