[MOD][HOW-TO]AOSP MMS on JB Touchwiz (Emoji, Quick Reply, 90% Working MMS)

loserskater

Inactive Recognized Developer
Jun 6, 2008
2,160
4,433
0
Palmdale, CA
First you need an AOSP based rom. I used the latest CM 10.1 so I could have Quick Reply, emojis, and mms group messaging. Not sure if this works with other AOSP roms, but it should.

You're going to need three files from the AOSP rom:
/system/app/MMS.apk
/system/app/TelephonyProvider.apk
/system/framework/mms-common.jar*
*(the files we need may be in framework.jar if the rom you're using doesn't have this file)

and two files from your TW rom:
/system/app/SecTelephonyProvider.apk
/system/framework/framework2.jar (make sure it's framework2.jar)

  • Now decompile everything except MMS.apk. That one's fine as is.
  • Now we're going to move some files around.
  • First is framework2.jar and mms-common.jar
    Delete /smali/com/google/android/mms in framework2.jar. Yes the entire folder.

    Now we're going to take the folder
    Code:
    /smali/com/google/android/mms
    from mms-common.jar and copy/move it to the framework2.jar folder
    Code:
    /smali/com/google/android/mms
  • Now is SecTelephonyProvider.apk and TelephonyProvider.apk
    Navigate to the following folder in TelephonyProvider.apk:
    Code:
    smali\com\android\providers\telephony
    and copy the following files:
    Code:
    MmsProvider.smali
    MmsSmsDatabaseHelper$LowStorageMonitor.smali
    MmsSmsDatabaseHelper.smali
    MmsSmsProvider.smali
    SmsProvider.smali
    Copy them to the following folder in SecTelephonyProvider.apk:
    Code:
    smali\com\android\providers\telephony
  • Recompile framework2.jar and SecTelephonyProvider.apk.
  • Place MMS.apk and SecTelephony.apk in /system/app/
  • Place framework2.jar in /system/framework/
  • Delete SecMms.apk from /system/app/
If you try to use Messaging at this point, it will probably open, but MMS won't work.

Now the most important part!
Note: This will delete all of you messages so make sure you back them up!!!!!!
On your device, navigate to
Code:
/data/data/com.android.providers.telephony/databases/
and delete the three files:
Code:
mmssms.db
mmssms.db-shm
mmssms.db-wal
You should now have a fully functional AOSP MMS!

Here's some other MMS apps that should work with this:
Note: Flash these AFTER this mod.
Android 4.2.1 Bubble MMS.apk quick Emoji + Popup!(Thanks msk for the link)

I've attached a flashable zip for LK3, but be warned IT WILL WIPE ALL OF YOUR MESSAGES!!!!!

UPDATE: I updated the zip to remove the stock messaging app. I believe that's why some people were having issues. Thanks boostmx.
UPDATE(1-24): Added revert to restore stock TW MMS. It will also wipe your messages so backup!
UPDATE(1-26): It seems as though group messaging is still hit or miss. From sparkerjc:
Just to clarify this, since I got PM about it: The 1-18 version of cm10.1 has working group MMS, therefore to complete the mod that framework should be considered safe to pull from. However, even with that framework group messages from some iPhones (apparently iPhone 4) show up blank in Touchwiz Roms on Verizon. Not sure about AT&T but since this is the thread getting the views, I'm posting it here.

Secondly, there seems to be some confusion regarding "Working mms" MMS is not just pictures, in the group messages the apps convert text to be sent as MMS to more then one recipient. So while "MMS is working", sometimes "group texts sent as mms" may not be working. Every group text will be sent as mms, but not every mms is a group message. Make sense?

Cool.
UPDATE(03-03): Updated flashable zips with latest CM 10.1 build. Also included one that doesn't wipe messages.
loserskater said:
When going from TW > AOSP or from AOSP > TW you need to remove the messaging databases because they need to be recreated otherwise you'll have FCs. So use the "Wipe messages" zip. But if you already have AOSP and just want to upgrade to the latest one, you don't need to remove the databases so use the "Non wipe messages" zip..
 

Attachments

Last edited:

Chris123NT

Senior Member
Nov 12, 2012
1,031
485
0
Malabar, FL
This looks awesome, thanks for this! Going to do this later so I can have 4.2 MMS and group messaging on my Beans ROM. I love AOSP but I hate the bugs so I stick with TW and theme it like AOSP.
 

Mac1679

Senior Member
Nov 28, 2012
93
52
0
Austin, TX
First off, THANK YOU Loserskater for taking the time to figure this out and share it with us! This is the only thing missing to make my TW rom complete.

I'm new to this whole thing so I've never decompiled anything before. Any forum/website recommendations regarding how to go about the decompiling process?
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
First off, THANK YOU Loserskater for taking the time to figure this out and share it with us! This is the only thing missing to make my TW rom complete.

I'm new to this whole thing so I've never decompiled anything before. Any forum/website recommendations regarding how to go about the decompiling process?
You might just want to try the flashable zip on the OP.
 
  • Like
Reactions: Mac1679

sparkerjc

Senior Member
Aug 1, 2012
580
337
0
Does this require to send MMS twice like the other mod described? Send once, then selected failed mms and forward to complete the sending?
 

sparkerjc

Senior Member
Aug 1, 2012
580
337
0
Since the Mms.apk is not modified, does this mean any 4.2 mms will work by dropping it in? Specifically I like inverted mms, so is there one that would work with this?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone