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
If you like my work, give me a beer, or just hit the the Thanks button
DONATE
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
to:Code:<int name="smsToMmsTextThreshold">4</int>
Code:<int name="smsToMmsTextThreshold">200</int>
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values
to:Code:<int name="recipientLimit">10</int>
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
afterCode:<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" />
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
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
Last edited: