Post Reply

Angry [GUIDE] How to mod your Mms.apk (very easy)

OP Difusal

25th July 2012, 01:04 PM   |  #1  
Difusal's Avatar
OP Senior Member
Thanks Meter: 408
 
449 posts
Join Date:Joined: Jul 2011
Donate to Me
More
This thread will show you how to completely mod your Mms.apk
I will update this thread with time.
This will be a very useful guide, but give me some time to edit it. Right now, it might sound very confusing.

If you want to check the versions of my mms.apk mods visit this: http://forum.xda-developers.com/show....php?t=1667615 or this http://forum.xda-developers.com/show....php?t=1772124

The mods work on all ICS roms and on various phones.

First of all, you need to know how to decompile and compile apks. So go ahead and download apktool. I will explain this better if it is needed, but there are plenty of tutorials on this already.

Ok then. Let's start.

Basically this is what we will do:
Push your framework-res.apk and Mms.apk from your current phone and rom. Or you can use some previously modded version like mine.
Install the framework-res.apk
Note: If the rom you're using has touchwiz, install the twframework-res,apk instead.
Decompile the Mms.apk you want to edit.
Apply the mods you want.
Compile the Mms.apk again.
Copy the edited files from the Mms-new.apk (the one you compiled) to the original Mms.apk using something like winrar or 7zip, but without extracting or compacting anything!
I will explain this with more detail if needed.

Now, for the detailed guide on how to apply each mod:

1. Change the color scheme. If you want to invert your background or text color read this guide here.

2. To send bigger sms without turning automatically into mms do this:
In /res/xml/mms_config.xml change this line to
Code:
<int name="smsToMmsTextThreshold">400</int>
That way you can type up very long sms and it will only convert to a mms when the lenght is the same as if you wrote 400 sms.

3. In the same folder, change this line as well:
Code:
 <int name="recipientLimit">200</int>
This will make it possible to send the message to 200 people at the same time instead of 20 only.

4. To change the time stamps to the original time go to /smali/com/android/mms/transaction/SMSReceiverService.smali and change this line:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to this:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
5. To make the new-line button appear do this:
http://forum.xda-developers.com/show...3&postcount=25
Note: in some recent mms.apk you don't need to apply this mod as it already exists.

6. To change the size of the input window (where you type your texts): go to res/layout/compose_message_activity.xml and change this line:
Code:
android:maxLines="3"
to this
Code:
android:maxLines="5"
7. To add bubbles go here: http://rootzwiki.com/topic/21780-how...ubble-mms-app/

8. To change the avatar size or to remove the avatars from the message threads go to: mms/res/layout/message_list_item_recv.xml and change the width and height dimension. For example, to remove the avatar pic change the line to:
Code:
android:id="@id/avatar" android:layout_width="0.0dip" android:layout_height="0.0dip"
Repeat the same to message_list_item_send.xml

Recompile the mms.apk and test it
Last edited by Difusal; 9th September 2012 at 10:10 PM.
The Following 25 Users Say Thank You to Difusal For This Useful Post: [ View ]
27th July 2012, 04:20 AM   |  #4  
Junior Member
Thanks Meter: 7
 
26 posts
Join Date:Joined: Mar 2011
Hello!
I tried (unsuccessfully) to mod Mms.apk.
I would just like to mod the autoconversion and the actual time of delivery, but I just can not activate them.

decompile, apply the changes to the xml file, the file smali, recompile and apply the reodex (I'm on FW stocks), Flash using .zip in recovery mode:
the apk work without any problem, but as if there is NO change!

Last time I checked that and resouces.arsc class.dex have actually been rebuilt, but the change still does not exist.

I used to deodexare Android kitchen, and autoapktool to decompile / recompile.

you can enlighten me?

thanks

ps: Android 4.0.4 ODEX stocks samsung N7000!
28th July 2012, 10:12 AM   |  #5  
Difusal's Avatar
OP Senior Member
Thanks Meter: 408
 
449 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Quote:
Originally Posted by misha84

Hello!
I tried (unsuccessfully) to mod Mms.apk.
I would just like to mod the autoconversion and the actual time of delivery, but I just can not activate them.

decompile, apply the changes to the xml file, the file smali, recompile and apply the reodex (I'm on FW stocks), Flash using .zip in recovery mode:
the apk work without any problem, but as if there is NO change!

Last time I checked that and resouces.arsc class.dex have actually been rebuilt, but the change still does not exist.

I used to deodexare Android kitchen, and autoapktool to decompile / recompile.

you can enlighten me?

thanks

ps: Android 4.0.4 ODEX stocks samsung N7000!

I don't use any kitchen, I use apktool and cmd, no complications, never fails if you're not using a vanilla custom rom, that might be your problem though
27th October 2012, 06:18 PM   |  #6  
Senior Member
Thanks Meter: 7
 
115 posts
Join Date:Joined: Jan 2012
Question Will this work on Samsung Galaxy Ace running stock ROM 2.3.6 ?
.....same as title.

Thanks!!!
The Following User Says Thank You to MarlonKaye For This Useful Post: [ View ]
20th December 2012, 06:10 PM   |  #7  
techtechnique's Avatar
Senior Member
Flag Merseyside
Thanks Meter: 43
 
344 posts
Join Date:Joined: May 2007
More
Hi, I am trying to mod my mms.apk so that my ported Korean ROM can send messages larger than 80 characters, but cannot find the line I need to change.
Could you please help me?
Many thanks.
23rd December 2012, 10:29 AM   |  #8  
Senior Member
Thanks Meter: 63
 
763 posts
Join Date:Joined: Mar 2012
I'm trying to learn how to decompile and recompile. Can you theme a tw sms for me?

Sent from my SGH-T999 using xda premium
24th December 2012, 06:48 AM   |  #9  
1982Strand's Avatar
Senior Member
Thanks Meter: 199
 
965 posts
Join Date:Joined: Feb 2011
How did you add emoji support?
And how did you replace the S3 smileys with new ones?
24th December 2012, 12:07 PM   |  #10  
Difusal's Avatar
OP Senior Member
Thanks Meter: 408
 
449 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Quote:
Originally Posted by 1982Strand

How did you add emoji support?
And how did you replace the S3 smileys with new ones?

I didn't add emoji, I applied my mods to a app that already had emoji support

the smileys are easy to fin, they are in one of the drawable folders

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Themes by ThreadRank