FORUMS
Remove All Ads from XDA

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

2,160 posts
Thanks Meter: 4,447
 
By loserskater, Inactive Recognized Developer on 7th January 2013, 09:11 AM
Post Reply Email Thread
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:
Quote:

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.
Quote:
Originally Posted by loserskater

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..

The Following 49 Users Say Thank You to loserskater For This Useful Post: [ View ] Gift loserskater Ad-Free
 
 
7th January 2013, 10:06 AM |#2  
matrixzone's Avatar
Senior Member
Thanks Meter: 3,596
 
Donate to Me
More
Thank you for sharing this
7th January 2013, 12:15 PM |#3  
Senior Member
Flag Charleston, Ar
Thanks Meter: 63
 
More
Not for sure why anyone would want AOSP MMS on TW, but whatever. Lol.

Anyone worried about messages, just download SMS Backup.

Thanks for the share.
7th January 2013, 12:17 PM |#4  
loserskater's Avatar
OP Inactive Recognized Developer
Flag Palmdale, CA
Thanks Meter: 4,447
 
Donate to Me
More
Quote:
Originally Posted by shoestar

Not for sure why anyone would want AOSP MMS on TW, but whatever. Lol.

Anyone worried about messages, just download SMS Backup.

Thanks for the share.

Quick Reply, emoji, and mms group messaging are the three I hear most people talk about.
The Following 3 Users Say Thank You to loserskater For This Useful Post: [ View ] Gift loserskater Ad-Free
7th January 2013, 03:47 PM |#5  
sweeds's Avatar
Senior Member
Flag Boston
Thanks Meter: 89
 
More
Thanks! This is exactly what I am looking for. Will give it a shot.

Edit: Will yours only work on LK3?
7th January 2013, 06:09 PM |#6  
Junior Member
Thanks Meter: 2
 
More
Touchwiz Unread Count
Does this retain the unread counts and lockscreen notifications for messages?
7th January 2013, 06:12 PM |#7  
Senior Member
Flag Charleston, Ar
Thanks Meter: 63
 
More
Quote:
Originally Posted by craigeryjohn

Does this retain the unread counts and lockscreen notifications for messages?

That would be my biggest thing. And I'm sure it doesn't. It's stupid for it to not wake the screen if you get a message. Not so bad on this phone with a LED indicator, but on my S2, it drove me insane.
The Following User Says Thank You to shoestar For This Useful Post: [ View ] Gift shoestar Ad-Free
7th January 2013, 08:10 PM |#8  
Chris123NT's Avatar
Senior Member
Flag Melbourne, FL
Thanks Meter: 487
 
More
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.
7th January 2013, 08:22 PM |#9  
mazorax's Avatar
Junior Member
Flag Dirty South
Thanks Meter: 5
 
More
This works beautifully! Thank you!!
7th January 2013, 08:51 PM |#10  
Mac1679's Avatar
Member
Flag Austin, TX
Thanks Meter: 52
 
More
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?
7th January 2013, 09:32 PM |#11  
upndwn4par's Avatar
Inactive Recognized Developer
New Jersey
Thanks Meter: 10,587
 
Donate to Me
More
Quote:
Originally Posted by Mac1679

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.
The Following User Says Thank You to upndwn4par For This Useful Post: [ View ] Gift upndwn4par Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes