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

Search This thread

greg_h_w

Senior Member
Aug 22, 2011
92
53
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

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.

Message_Skin.jpg


detail.jpg

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

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

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

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
 

Attachments

  • Mms.apk
    1.5 MB · Views: 3,878
Last edited:

greg_h_w

Senior Member
Aug 22, 2011
92
53
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?

I tried, sadly don't works. i hope for an update.;)
I'm so sorry. Maybe I can give the guide to Mod it.

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

This mod works on odex rom?
yup..
 

greg_h_w

Senior Member
Aug 22, 2011
92
53
I have update the first post. I give the tutorial how to mod it.
Ask it if someone have a question. :)

Hope it helpful :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    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

    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.


    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

    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

    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

    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
    3
    This is a modded version with many language added :

    123456.jpg


    -> Copy it with Root Explorer and replace original file from system/app
    -> Give it rw-r--r--

    Tested on DDKQ8 Stock :)
    2
    i am attaching the Mms.apk, framework-res.apk and the twframework-res :)

    thanks in advance.

    Here it is...

    Please try it and Hope it work :D
    1
    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 :)
    1
    Can this modified apk solves this problem;

    screenshot1331709304544.png

    according to your screenshot. You using go sms. So it can't solve your problem

    not work on cyanogen 7.2 rc5.6 :confused:

    Have you try to mod it by your self ??