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 friends. How can I edit apps background and font colour. For example: exdialer background from white to black and font colour also.
Please dont prefer using exdialer theme. I already know that. Thank you...
i'm not sure.. but maybe you can decompile the app and change the background.png file
You need to decompile an app, change the png graphics you want, look for the xml files with text color values and change them. Then recompile the app.
For doing that you need a program to decompile. Try apktool, apk multitool or apk manager. There's lots of tutorials and the files that need to be edited depend on each app. So yeah, use google, use the search.
Dear friends. I already know I must decompile Apk file and edit it. So I dont know which xml file includes background and font, etc. colours.
Also I know changing PNG files in apk, so I am asking to change colours of apk.
I use search and don't find anything useful.
Thank you...
Styles.xml
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
But the bg can be in layout also
So lemme tel you the most importatnt thing
PLAY
If you play with files
You can achieve cool hacks und mods
Sent from my GT-S5830 using xda premium
Thank you for your support... But
CoolCatGetHome said:
But the bg can be in layout also
So lemme tel you the most importatnt thing
PLAY
If you play with files
You can achieve cool hacks und mods
Click to expand...
Click to collapse
I'm playing files since i have a symbian device and going on android. And i also change png files of apps succesfully. But this thing is not a png or other picture file. It must be hex code of colour.
So i extracted a lot of xml files and opened in different xml editors and didn't see any hex code. I also tried Xml to txt converter but didn't get a result.
Is there anyone who has knowledge about that...
Thank you..
msahin061 said:
I'm playing files since i have a symbian device and going on android. And i also change png files of apps succesfully. But this thing is not a png or other picture file. It must be hex code of colour.
So i extracted a lot of xml files and opened in different xml editors and didn't see any hex code. I also tried Xml to txt converter but didn't get a result.
Is there anyone who has knowledge about that...
Thank you..
Click to expand...
Click to collapse
You should use a tool to like APKtool to open up the APK's. Then you'll start to see hex. values
** sometime app bg isnt there and needs adding like
Android:background>@drawable/bgofcoolnes<
Some like that must be added to some lines for.bg
And it has guides on xda
Search in galaxy 3 sections
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
** sometime app bg isnt there and needs adding like
Android:background>@drawable/bgofcoolnes<
Some like that must be added to some lines for.bg
And it has guides on xda
Search in galaxy 3 sections
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I will look for it. My connection is very slow now. Thank you very much :good:
I'm on Android 4.3 and sense 5.5 on the custom rom - Android Revolution HD 31.6. By default, i have the HTC Emojis but i want to get the iOS emojis. Now i know i'm going to get comments saying wtf is wrong with me iOS emojis suck. But that's just my preference. Now I have tried getting emoji switcher from the playstore but it says this device isnt compatible with this version. So i then tried to manually change it by getting ES File Explorer but that didnt work either because the emoji file type i have is NotoColorEmoji.ttf but the emoji file my phone carries is AndroidEmoji-htc.ttf and AndroidEmoji.ttf. Getting desperate i tried renaming the NotoColorEmoji to both those files but it was no good. I'd really appreciate it if one you guys could help me. Thanks in advance.
Jengis said:
I'm on Android 4.3 and sense 5.5 on the custom rom - Android Revolution HD 31.6. By default, i have the HTC Emojis but i want to get the iOS emojis. Now i know i'm going to get comments saying wtf is wrong with me iOS emojis suck. But that's just my preference. Now I have tried getting emoji switcher from the playstore but it says this device isnt compatible with this version. So i then tried to manually change it by getting ES File Explorer but that didnt work either because the emoji file type i have is NotoColorEmoji.ttf but the emoji file my phone carries is AndroidEmoji-htc.ttf and AndroidEmoji.ttf. Getting desperate i tried renaming the NotoColorEmoji to both those files but it was no good. I'd really appreciate it if one you guys could help me. Thanks in advance.
Click to expand...
Click to collapse
On sense and just about any ROM they are no longer stored like that but are stored as images in the frameworks file. You will have to decompile them and manually change out each image and then recompile and flash to your device.
zelendel said:
On sense and just about any ROM they are no longer stored like that but are stored as images in the frameworks file. You will have to decompile them and manually change out each image and then recompile and flash to your device.
Click to expand...
Click to collapse
You think you could send me some sort of tutorial link or video of that? Id really really appreciate it.
Jengis said:
You think you could send me some sort of tutorial link or video of that? Id really really appreciate it.
Click to expand...
Click to collapse
I have not messed with HTC files in a long time as I no longer run sense but a search for DEcompiling HTC framework will get you the info you need
Hi guys,
I would like to share with you this little mod for for those people who like me have set the small font size of EMUI items.
Icons label is very small so I decide to find a solution for stock launcher to increase font size.
Go to:
/product/hw_oem/ (select your version folder... MHA-L09, MHA-L29, MHA-AL00, etc.)
enter in /xml folder and open "hw_launcher_default_config.xml" and edit number this string <item name="config_IconTitleSize">10.5</item>
I recommend you a value like 12, 14 or max 16. For example I have a 4x5 grid in launcher and I have set <item name="config_IconTitleSize">16</item>
REBOOT phone.
I apologize if this post is a duplicate...
How do i find that folder? Thats a noob question but all the file managers i've tried fail to show system files without root.
Sent from my EVA-L19 using XDA-Developers Legacy app
canicula said:
How do i find that folder? Thats a noob question but all the file managers i've tried fail to show system files without root.
Click to expand...
Click to collapse
You need root to edit system files... Sorry... However I think Root Browser can show you folders and files system.
Sent from my Huawei Mate 9 using XDA Labs
Hi, I am migrating my app from Eclipse (with ADT plugin) to Android Studio since I need to upgrade from Android Cordova 5.0 to 6.4 so GooglePlay will accept it. Also to keep everything up-to-date with Android OS 8.0. I'm using Cordova CLI 8.0.0
I've tried 2 approaches:
1. migrate my existing project. I can see the root cordova folders in me Android Studio (AS) project: /www, /plugins, /res etc. So I can edit the html, css and js ok. BUT, it fails to build in Android Studio claiming it can't see the AndroidManifest.xml. What to do?
2. create a new cordova project and add android cordova 6.4.0. I import this project into AS by selecting the /platforms/android/ folder so AS can see the AndroidManifest.xml file. This project builds ok and I can run it on my phone seeing the default Cordova image. BUT, I can't see the cordova root folders: /www, /plugins, /res etc. so I CANNOT edit the html, css, js! What to do?
Thanks.