5,595,570 Members 45,979 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE]MMS.apk Set Skin To Body

Tip us?
 
PineappleOwl
Old
#1  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 474
Posts: 364
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Tutorial [GUIDE]MMS.apk Set Skin To Body

Good day fellow, I am here again with some new guide.

People want the message skin and gray is boring. So lets make something new. As far as i know, there is no guide of this, as I searched for a guide to "Message background" and I dont see any. I dont know the right term/title for this but see the screenies. That will describe most.


Disclaimer:
Quote:
I and XDA dont take the responsibility for your phone damage. If you dont trust my guide do a nandroid backup first.
Requirements:
Quote:
Brains.apk
Notepad++
APKTool(any apk decompiling tool will do)
Instruction:
1. Decompile your Mms.apk
2. Now I think you made the Message Skin enabled already but if its not do this first, here. (No MMS Convert No contact Limit Sent Time aren't compulsory)
3. Now you are finish with the message skin chooser so we gonna move on to the main part.
4. Go to /smali/com/android/mms/ui/ComposeMessageActivity.smali
5. Before this
Code:
    .line 6091
    return-void

    .line 5981
    :cond_6
    if-eq v0, v6, :cond_7

    const/16 v1, 0x10

    if-ne v0, v1, :cond_8

    .line 5982
    :cond_7
    iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;

    const/high16 v2, 0x4160

    invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V

    goto/16 :goto_0

    .line 5984
    :cond_8
    iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;

    const/high16 v2, 0x4180

    invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V

    goto/16 :goto_0
.end method

.method private initializeContactInfo()V
add this,

Code:
.line 6062
    :cond_5
    invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V

Remider : The background will have no effect if, the blue text below have "cond_5". Delete it, it is necessary.

If cant understand what I am sayin, do this
Turn this
.line 6091
cond_5
return-void


to this
.line 6091
return-void


So it will be like this,

Code:
iput-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mAttachmentLayout:Landroid/widget/LinearLayout;

    .line 6062
    :cond_5
    invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V

    .line 6091
    return-void

    .line 5981
    :cond_6
    if-eq v0, v6, :cond_7

    const/16 v1, 0x10

    if-ne v0, v1, :cond_8

    .line 5982
    :cond_7
    iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;

    const/high16 v2, 0x4160

    invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V

    goto/16 :goto_0

    .line 5984
    :cond_8
    iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;

    const/high16 v2, 0x4180

    invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V

    goto/16 :goto_0
.end method

.method private initializeContactInfo()V
6. Below
Code:
.method public static setIsHideExplict(Z)V
    .locals 0
    .parameter "hide"

    .prologue
    .line 7798
    sput-boolean p0, Lcom/android/mms/ui/ComposeMessageActivity;->isHideExplict:Z

    .line 7799
    return-void
.end method
Add this method
Code:
.method private setMessageSkinToBody()V
    .locals 3

    .prologue
    .line 7493
    invoke-virtual {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/android/mms/ui/MessagingPreferenceActivity;->getMessageSkin(Landroid/content/Context;)I

    move-result v0

    .line 7494
    invoke-virtual {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->orientation:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_0

    const/4 v1, 0x1

    .line 7496
    :goto_0
    packed-switch v0, :pswitch_data_0

    .line 7517
    :goto_1
    return-void

    .line 7494
    :cond_0
    const/4 v1, 0x0

    goto :goto_0

    .line 7499
    :pswitch_0
    iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;

    if-eqz v1, :cond_1

    const v1, 0x7f020181

    :goto_2
    invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V

    goto :goto_1

    :cond_1
    const v1, 0x7f020180

    goto :goto_2

    .line 7503
    :pswitch_1
    iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;

    if-eqz v1, :cond_2

    const v1, 0x7f020183

    :goto_3
    invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V

    goto :goto_1

    :cond_2
    const v1, 0x7f020182

    goto :goto_3

    .line 7507
    :pswitch_2
    iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;

    if-eqz v1, :cond_3

    const v1, 0x7f020185

    :goto_4
    invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V

    goto :goto_1

    :cond_3
    const v1, 0x7f020184

    goto :goto_4

    .line 7511
    :pswitch_3
    iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;

    if-eqz v1, :cond_4

    const v1, 0x7f020187

    :goto_5
    invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V

    goto :goto_1

    :cond_4
    const v1, 0x7f020186

    goto :goto_5

    .line 7496
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
7.Next, After this code
Code:
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 3602
    if-eqz v0, :cond_4

    .line 3603
    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 3609
    :cond_4
    iget-boolean v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mIsKeyboardOpen:Z

    invoke-direct {p0, v0}, Lcom/android/mms/ui/ComposeMessageActivity;->onKeyboardStateChanged(Z)V
add this

Code:
.line 3440
    invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V
So it will be like this,
Code:
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 3602
    if-eqz v0, :cond_4

    .line 3603
    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 3609
    :cond_4
    iget-boolean v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mIsKeyboardOpen:Z

    invoke-direct {p0, v0}, Lcom/android/mms/ui/ComposeMessageActivity;->onKeyboardStateChanged(Z)V

    .line 3440
    invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V

    .line 3614
    return-void
8. Save it. Recompile and push/flash.

Note:
Quote:
You can edit the background at drawables-ldpi/view*.png
Happy modding.!

SS:




Credits to this man for following his mms.apk:
Quote:
blu3m4n@xda
The Following 9 Users Say Thank You to PineappleOwl For This Useful Post: [ Click to Expand ]
 
markmellarpes
Old
#2  
markmellarpes's Avatar
Recognized Themer
Thanks Meter 471
Posts: 868
Join Date: Aug 2012
Location: Taguig
Wow haha

Sent from my GT-S5360 using xda premium
The Following 2 Users Say Thank You to markmellarpes For This Useful Post: [ Click to Expand ]
 
blu3m4n
Old
#3  
blu3m4n's Avatar
Member
Thanks Meter 25
Posts: 43
Join Date: Jul 2012
Location: Makassar
Thats awesome sir :thumbup:, actually i want to share this guide but don't have much time.... thanks b4
My Works



Don't Forget To Press If You Like My Work
The Following User Says Thank You to blu3m4n For This Useful Post: [ Click to Expand ]
 
PineappleOwl
Old
#4  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 474
Posts: 364
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by blu3m4n View Post
Thats awesome sir :thumbup:, actually i want to share this guide but don't have much time.... thanks b4
Thanks to you sir, after this i learned something, adding message skin and backgroud. Still in development..
 
blu3m4n
Old
#5  
blu3m4n's Avatar
Member
Thanks Meter 25
Posts: 43
Join Date: Jul 2012
Location: Makassar
Quote:
Originally Posted by PineappleOwl View Post
Thanks to you sir, after this i learned something, adding message skin and backgroud. Still in development..
there is one my friend at fb can add more than 5 skin into mms.apk....! you can ask him if you want to... pm me
My Works



Don't Forget To Press If You Like My Work
 
PineappleOwl
Old
#6  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 474
Posts: 364
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by blu3m4n View Post
there is one my friend at fb can add more than 5 skin into mms.apk....! you can ask him if you want to... pm me
Thanks sir but I figured it out already.
 
giew13
Old
#7  
giew13's Avatar
Senior Member
Thanks Meter 17
Posts: 119
Join Date: Aug 2013
Location: Purwakarta, West Java
how to make stock mms.apk background to be transparent following framework-res.apk also make a enter message layout to be small?
 
imElectronica
Old
#8  
imElectronica's Avatar
Senior Member
Thanks Meter 77
Posts: 441
Join Date: Mar 2013
Location: Rourkela, Odisha
nice guide....
MY DEVICE:
 

Press If you like my post.
 
Himan Boro
Old
#9  
Himan Boro's Avatar
Senior Member
Thanks Meter 29
Posts: 277
Join Date: Jul 2013
Location: Guwahati
Is This Applicable In Y Duos Mms..
coz i tryd codes are totally difernt

.line 6091 etc etc
 
mohmmed985
Old
#10  
mohmmed985's Avatar
Member
Thanks Meter 6
Posts: 34
Join Date: Nov 2013
nice guide.... and it work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...