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/showthread.php?t=1667615 or this http://forum.xda-developers.com/showthread.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/showpost.php?p=21956763&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-to-create-a-bubble-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
reserved.
reserved
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!
misha84 said:
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!
Click to expand...
Click to collapse
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
Will this work on Samsung Galaxy Ace running stock ROM 2.3.6 ?
.....same as title.
Thanks!!!
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.
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
How did you add emoji support?
And how did you replace the S3 smileys with new ones?
1982Strand said:
How did you add emoji support?
And how did you replace the S3 smileys with new ones?
Click to expand...
Click to collapse
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
How can I increase the size of fonts in the bubbles. I find they are a bit too small. Font size is find on rest of phone. I am using one of your modded Mms.apk with bubbles and avatars. Thanks in advance and hope you can help.
Difusal,
I'm fairly new to (edit: tweaking) android to set it up how i like it. Before i unlocked my verizon droid incredible, whenever i sent an mms message, it would automatically turn on my 3g data connection to send the message and turn it back off (or leave it on if it was already on). Do you know how i could emulate this behavior in the mms.apk? I have already decompiled it, but i don't even know where to start looking.
thanks.
R: [GUIDE] How to mod your Mms.apk (very easy)
Interesting, it is possible to add a popup when I received message, if mms.apk not have?
My phone have a particular story, I have an LG optimus black, and Korean version of ics have a mms.apk with message popup receiver, European version not have.
What .xml or drawable I need to seen? You know?
Inviato dal mio LG-P970 con Tapatalk 2
can u teach me how to edit my mms.apk to be like that...im on gingerbread
Alright let's see if I can fix the jumbled garbage when we recieve messages over 160 characters that comes to us samsung epic 4g touch users flashed to different carriers
[ IMG]http://img.tapatalk.com/d/13/03/12/nynysypu.jpg[/IMG]
Sent from my SPH-D710 using Xparent Skyblue Tapatalk 2
How do I write a 160 character message?Since my Korean phone manufacturer only write messages up to 80 characters.Show me how to edit and write up to 160 characters.Actually I do not know where to search and edit
Thank you very much and waiting for any solution
Android version I'm using 2.3.x SAMSUNG korea
Help me:crying:
need any solution to edit code, stringxml
Good compilation of MMS mods. Nice for all to be in one thread.
Thanks.
Sent from my GT-I9300 using xda premium
Avatars
Hello, Great Post!!
But, I hate to do this... I can't get to compile my mms.apk, Can someone help me removing the contacts avatars? I can send the apk
Im so sorry and embarrassed... Thanks in advance
hi, i've already searched a lot for this and i've tried many tools but i have a problem with modding cm9 Contacts.apk. if i only change images it's ok, decompiling,compiling and singing work well and the apk works. if i edit xml files, the apk compile and decompile correctly but when i flash the file throughh recovery at the boot it FC. what is the problem? what tool i can use for correctly decompiling and compiling Contacts.apk of cm9? thanks in advance
anyone knows what can be the problem? thanks in advance
Hi buddy and devs, I'm now using CM7 with many wonderful features but I miss my stock rom phone's apk. I like to swipe right or left to make a call or sms. So, do you guys know how to port it or add this feature to CM7 rom ?
IF u ar an advanced developer or on your way to be one ,here are the steps that u should follow
1.port touchwiz to cm7 by copying necessary libs,permissions and apks,bins,xbins etc
2.later decompile stock phone,contacts and cm7 phone and contacts apk and look at smali changes between them and make necessary corrections or input.
3.complie phone apk and contacts apk (NEVER NEVER NEVER SIGN THEM)
4.adb push them and set all necessary permissions.
5.SIT BACK AND PRAY.
All the above steps are too complicated and by far summarised so take help from XDA .
Sorry for bad ENGLISH.
Anindya JV said:
IF u ar an advanced developer or on your way to be one ,here are the steps that u should follow
1.port touchwiz to cm7 by copying necessary libs,permissions and apks,bins,xbins etc
2.later decompile stock phone,contacts and cm7 phone and contacts apk and look at smali changes between them and make necessary corrections or input.
3.complie phone apk and contacts apk (NEVER NEVER NEVER SIGN THEM)
4.adb push them and set all necessary permissions.
5.SIT BACK AND PRAY.
All the above steps are too complicated and by far summarised so take help from XDA .
Sorry for bad ENGLISH.
Click to expand...
Click to collapse
So, it's not easy as I thought and maybe nobody tried to do this be4. A lot of things to do.
Might as well start this off as many of us would love to customise our roms even further by creating and modding our roms but dont know where and how to start , hopefully this can be a general guide to de-compiling apk's /re-compiling modifying customising colours etc on most devices .
Website i use for changing and finding out HTML colour codes to change the basic colours in roms here great help especially when you cant find the correct colour code and name or need to use when theming .
I also use this website to re-size my PNG's etc to the sizes i need when modding or replacing pictures.
Android APK tool is a great start for most to learn and figure things out, link to site here
Hopefully this thread can be useful for ALL as with so many devices and different ways to theme mod and customise each individual device we can collectively help each other with the simple and basic stuff to get everyone learning and heading in the right direction .
:good:
Apktool is the only one I have been able to get working with 4.2 framework so it is a very helpful tool and dose have support on how to install and use but I wish there was some way to have a brake down of what is what with the .XML files like what to change and where to change backgrounds and text colors
Sent from my GT-N7000 using XDA Premium HD app
Hi.
I've already started a thread on theming. [Guide/Tools] Simple APK Modding - Basic Android Theming
I still use APK MANAGER, what you have to do is replace some files in the OTHER folder. I'll make it sinple for everyone to use.
I'll upload my version for people to use in link below.
This works for 4.2.1 apks
APK MANAGER 5.0.2
Annex1 said:
I still use APK MANAGER, what you have to do is replace some files in the OTHER folder. I'll make it sinple for everyone to use.
I'll upload my version for people to use in link below.
This works for 4.2.1 apks
APK MANAGER 5.0.2
Click to expand...
Click to collapse
Thanks for that, I'll add a link to this post if that's alright?
XperienceD said:
Thanks for that, I'll add a link to this post if that's alright?
Click to expand...
Click to collapse
Of course you can.
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
EvolutionHybrid said:
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
Click to expand...
Click to collapse
Preference really, I prefer apktool for what I do although been a while since I was working on GB .
charlescaz said:
Preference really, I prefer apktool for what I do although been a while since I was working on GB .
Click to expand...
Click to collapse
Thanks.. I'll try.. :beer:
Sent from my GT-S6500D
EvolutionHybrid said:
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
Click to expand...
Click to collapse
Apkmanager uses apktool so..lol
Sent Using XDA Premium..
Have you Tickled Your Android lately?
(tinyurl.com/ticklemyandroid)
i edit my androidmanifest.xml touchwiz30lancher XXKPK Rom to make homescreen auto rotate.
android:screenOrientation="nosensor" to android:screenOrientation="user". i compile and decopile my touchwiz deodexed using ApkManager but it's bootloop after i try on my S5570, and i try using ApkTool and it's still bootloop. when i making transparent background it's bootloop and work fine. Is anyone know how to edit Androidmanifest.xml?
sorry for my bad english