Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Mms.apk - Skin Active + No MMS Convert + No contact Limit + Sent Time

OP greg_h_w

16th February 2012, 07:21 AM   |  #1  
OP Member
Flag Yogyakarta
Thanks Meter: 34
 
40 posts
Join Date:Joined: Aug 2011
Donate to Me
More
MMS.apk mod for Samsung Galaxy Gio by greg_h_w (me)

First of all, I have to say Thanks to muveszur for his guide on Galaxy S2 thread

Quote:

The Mms.apk has the following moddings:
- Message Skin (Default, Edge, Gloss, Sticky Note, Memo)
- Sent Time displayed instead of the Received Time
- No AutoConverting messages to MMS after 4 SMS. In my mod, it will be converted to MMS after 200 SMS.
- Possible to add to the message 200 contacts instead of 10 contacts.

Quote:



Quote:

HOW TO - For Developers


Change the AutoConverting:
In /res/xml/mms_config.xml change the following values

Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">200</int>
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values

Code:
 <int name="recipientLimit">10</int>
to:
Code:
 <int name="recipientLimit">200</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali there are 2 following value like this
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
change the first one to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
then the second one to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Activated Message Skin:
In /res/xml/preferences.xml add the following values
Code:
<ListPreference android:entries="@array/pref_entries_message_skin" android:title="@string/pref_title_message_skin" android:key="pref_key_message_skin" android:defaultValue="Default" android:dialogTitle="@string/pref_dialog_title_message_skin" android:entryValues="@array/pref_entry_values_message_skin" />
after
Code:
<PreferenceScreen
  xmlns:android="http://schemas.android.com/apk/res/android">
In /smali/com/android/mms/ui/MessagingPreferenceActivity.smali

Change the following values
Code:
.method public static getMessageSkin(Landroid/content/Context;)I
    .locals 1
    .parameter "context"

    .prologue
    .line 631
    const/4 v0, 0x0

    return v0
.end method
to :

Code:
.method public static getMessageSkin(Landroid/content/Context;)I
    .locals 6
    .parameter "context"

    .prologue
    .line 631
    const/4 v4, 0x0

    const-string v5, "Default"

    .line 578
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 579
    .local v0, pref:Landroid/content/SharedPreferences;
    const-string v2, "pref_key_message_skin"

    const-string v3, "Default"

    invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 580
    .local v1, skinType:Ljava/lang/String;
    const-string v2, "Default"

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    move v2, v4

    .line 591
    :goto_0
    return v2

    .line 582
    :cond_0
    const-string v2, "Edge"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 583
    const/4 v2, 0x1

    goto :goto_0

    .line 584
    :cond_1
    const-string v2, "Gloss"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 585
    const/4 v2, 0x2

    goto :goto_0

    .line 586
    :cond_2
    const-string v2, "Sticker note"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 587
    const/4 v2, 0x3

    goto :goto_0

    .line 588
    :cond_3
    const-string v2, "Memo"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 589
    const/4 v2, 0x4

    goto :goto_0

    :cond_4
    move v2, v4

    .line 591
    goto :goto_0
.end method

Quote:

For Stock Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk and mms.odex in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Delete mms.odex
6. Reboot

Quote:

For Deodexed Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Reboot

Quote:

Note :
- Don't forget to Clear Messaging Data on Manage Application
- If you are using TouchWizLauncher, you have to erase the data of the launcher in the Settings

This mod working on Stock and Deodexed Rom
I tested on DXKT8 on Galaxy Gio and DXKK2 on Galaxy Y


If you like my work, give me a beer, or just hit the the Thanks button

DONATE
Attached Files
File Type: apk Mms.apk - [Click for QR Code] (1.54 MB, 3004 views)
Last edited by greg_h_w; 4th December 2012 at 03:11 PM. Reason: Turn back to Display Received Time instead of the Sent Time because sometimes it show wrong time
The Following 22 Users Say Thank You to greg_h_w For This Useful Post: [ View ]
16th February 2012, 10:00 AM   |  #2  
Junior Member
Thanks Meter: 3
 
21 posts
Join Date:Joined: Feb 2012
Thanks for the upload, that works with cm 7.2?
16th February 2012, 10:51 AM   |  #3  
OP Member
Flag Yogyakarta
Thanks Meter: 34
 
40 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Quote:
Originally Posted by thexavier

Thanks for the upload, that works with cm 7.2?

I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it
16th February 2012, 07:16 PM   |  #4  
MatZ69's Avatar
Recognized Themer
Flag Odivelas/Lisbon
Thanks Meter: 918
 
640 posts
Join Date:Joined: Jan 2011
Donate to Me
More
The thems didnt work in stock... And its only in english? :P
16th February 2012, 07:21 PM   |  #5  
Junior Member
Thanks Meter: 3
 
21 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by greg_h_w

I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it

I tried, sadly don't works. i hope for an update.
16th February 2012, 09:41 PM   |  #6  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Feb 2012
I need to delete all the messages I already received, right?
16th February 2012, 10:01 PM   |  #7  
Senior Member
Thanks Meter: 25
 
149 posts
Join Date:Joined: Oct 2010
This mod works on odex rom?
17th February 2012, 02:23 AM   |  #8  
OP Member
Flag Yogyakarta
Thanks Meter: 34
 
40 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Quote:
Originally Posted by MatZ69

The thems didnt work in stock... And its only in english? :P

I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?

Quote:
Originally Posted by thexavier

I tried, sadly don't works. i hope for an update.

I'm so sorry. Maybe I can give the guide to Mod it.

Quote:
Originally Posted by Josenhans

I need to delete all the messages I already received, right?

Only need to clear the cache and I think it didn't delete all the message. cmiiw

Quote:
Originally Posted by Rausio

This mod works on odex rom?

yup..
17th February 2012, 02:42 AM   |  #9  
OP Member
Flag Yogyakarta
Thanks Meter: 34
 
40 posts
Join Date:Joined: Aug 2011
Donate to Me
More
I have update the first post. I give the tutorial how to mod it.
Ask it if someone have a question.

Hope it helpful
17th February 2012, 01:47 PM   |  #10  
MatZ69's Avatar
Recognized Themer
Flag Odivelas/Lisbon
Thanks Meter: 918
 
640 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by greg_h_w

I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?

The definitions are in english while my room are in portuguese,but i will try to modify my own application

Thanks

The Following User Says Thank You to MatZ69 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes