Selasa, 26 Juni 2012

Mms skin Active Mod

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:
4
to:

Code:
200
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values

Code:
10
to:

Code:
200
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:

after

Code:

  
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
Recompile apk and push to your phone

Tidak ada komentar :

Posting Komentar