Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,490 Members 41,995 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
greg_h_w
Old
(Last edited by greg_h_w; 4th December 2012 at 02:11 PM.) Reason: Turn back to Display Received Time instead of the Sent Time because sometimes it show wrong time
#1  
Member - OP
Thanks Meter 33
Posts: 37
Join Date: Aug 2011
Location: Yogyakarta

 
DONATE TO ME
Default Mms.apk - Skin Active + No MMS Convert + No contact Limit + Sent Time

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, 2760 views)
The Following 21 Users Say Thank You to greg_h_w For This Useful Post: [ Click to Expand ]
 
thexavier
Old
#2  
Junior Member
Thanks Meter 3
Posts: 21
Join Date: Feb 2012
Thanks for the upload, that works with cm 7.2?
 
greg_h_w
Old
#3  
Member - OP
Thanks Meter 33
Posts: 37
Join Date: Aug 2011
Location: Yogyakarta

 
DONATE TO ME
Quote:
Originally Posted by thexavier View Post
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
 
MatZ69
Old
#4  
MatZ69's Avatar
Recognized Themer
Thanks Meter 916
Posts: 640
Join Date: Jan 2011
Location: Odivelas/Lisbon

 
DONATE TO ME
The thems didnt work in stock... And its only in english? :P
 
thexavier
Old
#5  
Junior Member
Thanks Meter 3
Posts: 21
Join Date: Feb 2012
Quote:
Originally Posted by greg_h_w View Post
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.
 
Josenhans
Old
#6  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Feb 2012
I need to delete all the messages I already received, right?
 
Rausio
Old
#7  
Senior Member
Thanks Meter 25
Posts: 148
Join Date: Oct 2010
This mod works on odex rom?
 
greg_h_w
Old
#8  
Member - OP
Thanks Meter 33
Posts: 37
Join Date: Aug 2011
Location: Yogyakarta

 
DONATE TO ME
Quote:
Originally Posted by MatZ69 View Post
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 View Post
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 View Post
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 View Post
This mod works on odex rom?
yup..
 
greg_h_w
Old
#9  
Member - OP
Thanks Meter 33
Posts: 37
Join Date: Aug 2011
Location: Yogyakarta

 
DONATE TO ME
I have update the first post. I give the tutorial how to mod it.
Ask it if someone have a question.

Hope it helpful
 
MatZ69
Old
#10  
MatZ69's Avatar
Recognized Themer
Thanks Meter 916
Posts: 640
Join Date: Jan 2011
Location: Odivelas/Lisbon

 
DONATE TO ME
Quote:
Originally Posted by greg_h_w View Post
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes