5,599,677 Members 44,931 Now Online
XDA Developers Android and Mobile Development Forum

Android 4.3 Smali Edits Help Guide

Tip us?
 
EMSpilot
Old
(Last edited by EMSpilot; 16th January 2014 at 12:32 AM.)
#1  
EMSpilot's Avatar
Recognized Themer - OP
Thanks Meter 926
Posts: 486
Join Date: May 2012
Location: Havasu

 
DONATE TO ME
Default Android 4.3 Smali Edits Help Guide

These are smali edits I found or had help finding while converting my ASU theme to Android 4.3. I will be constantly updating this OP and hope that other folks will give me there smali finds to add to this guide. Please PM me with anything you would like to add. Feel free to use anything in this OP. You don't have to ask!!!

Please don't forget to thank Gunthermic, Naddict, Rompnit and Strongsteve for all there help as well!!!

SystemUI

1. Brightness slider color animation.

 
Go to SystemUI\smali\com\android\systemui\statusbar\Anim atedBrightnessIconView.smali



Look for:

.line 73
iget-object v0, p0, Lcom/android/systemui/statusbar/AnimatedBrightnessIconView;->mPaint:Landroid/graphics/Paint;

const v1, -0x3a1f17

Change -0x3a1f17 to your desired smali color code!!!!


SecMms Messaging

1. Changing text color when searching for a contact in SecMms Messaging

 
Go To: SecMms\smali\com\android\mms\ui\RecipientsAdapter. smali



Look For:

.line 342
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xff852e and change it to your desired smali color code.

Look For:

.line 359
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xff852e and change it to your desired smali color code.

Look For:

.line 373
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xff852e and change it to your desired smali color code.

Look For:

.line 344
.restart local v22 # "span":Landroid/text/Spannable;
:cond_d
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xcc4a16 and change it to your desired smali color code.

Look For:

.line 361
.restart local v22 # "span":Landroid/text/Spannable;
:cond_10
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xcc4a16 and change it to your desired smali color code.

Look For:

.line 375
.restart local v23 # "spanNameText":Landroid/text/Spannable;
.restart local v24 # "spanNumberText":Landroid/text/Spannable;
:cond_12
new-instance v27, Landroid/text/style/ForegroundColorSpan;

const v28, -0xcc4a16 and change it to your desired smali color code.


Gmail 4.7.2 smali finds

 
Gmail send email to text color:



Go to:

Gmail-4.7.2\smali\com\android\ex\chips\RecipientEditText View.smali

Find:

move-result-object v3

const v4, 0x106000c

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

invoke-virtual {v7, v3}, Landroid/text/TextPaint;->setColor(I)V

Insert: const v3, -0x4cf0 Of coarse changing -0x4cf0 to your smali text color code

move-result-object v3

const v4, 0x106000c

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

INSERT HERE

invoke-virtual {v7, v3}, Landroid/text/TextPaint;->setColor(I)V

So the finished product looks like this

move-result-object v3

const v4, 0x106000c

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

const v3, -0x4cf0

invoke-virtual {v7, v3}, Landroid/text/TextPaint;->setColor(I)V

Gmail list view email contents first line step one:



Go to:

Gmail-4.7.2-stock\smali\com\android\mail\browse\ConversationIt emView.smali

Look for:

.line 421
new-instance v0, Landroid/text/style/ForegroundColorSpan;

const v3, 0x7f080029

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

invoke-direct {v0, v3}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

Insert this:

const v3, -0x66FFCD Changing -0x66ffcd to your favorite smali code

.line 421
new-instance v0, Landroid/text/style/ForegroundColorSpan;

const v3, 0x7f080029

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

INSERT HERE

invoke-direct {v0, v3}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

So the finished product looks like this

.line 421
new-instance v0, Landroid/text/style/ForegroundColorSpan;

const v3, 0x7f080029

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

move-result v3

const v3, -0x66FFCD

invoke-direct {v0, v3}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

Gmail list view email contents first line step two:

Go to

Gmail\smali\com\android\mail\browse\ConversationIt emView.smali

Look for:

.line 1404
sget-object v0, Lcom/android/mail/browse/ConversationItemView;->aOX:Landroid/text/TextPaint;

iget-object v1, p0, Lcom/android/mail/browse/ConversationItemView;->aPi:Lcom/android/mail/browse/K;

iget-object v1, v1, Lcom/android/mail/browse/K;->GO:Lcom/android/mail/providers/Conversation;

iget v1, v1, Lcom/android/mail/providers/Conversation;->color:I

invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setColor(I)V

.line 1405

Insert this:

const v0, -0x66ffcd Changing -0x66ffcd to your favorite smali code

.line 1404
sget-object v0, Lcom/android/mail/browse/ConversationItemView;->aOX:Landroid/text/TextPaint;

iget-object v1, p0, Lcom/android/mail/browse/ConversationItemView;->aPi:Lcom/android/mail/browse/K;

iget-object v1, v1, Lcom/android/mail/browse/K;->GO:Lcom/android/mail/providers/Conversation;

iget v1, v1, Lcom/android/mail/providers/Conversation;->color:I

invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setColor(I)V

INSERT HERE

.line 1405

So the finished product looks like this:

.line 1404
sget-object v0, Lcom/android/mail/browse/ConversationItemView;->aOX:Landroid/text/TextPaint;

iget-object v1, p0, Lcom/android/mail/browse/ConversationItemView;->aPi:Lcom/android/mail/browse/K;

iget-object v1, v1, Lcom/android/mail/browse/K;->GO:Lcom/android/mail/providers/Conversation;

iget v1, v1, Lcom/android/mail/providers/Conversation;->color:I

invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setColor(I)V

const v0, -0x66FFCD

.line 1405

Gmail open email inbox background and text color



Go to:

Gmail\smali\com\google\android\gm\utils\b.smali

Look for:

.line 82
new-array v0, v4, [Ljava/lang/String;

const-string v1, "#dddddd" This is the background color

aput-object v1, v0, v5

const-string v1, "#777777" This is the text color

aput-object v1, v0, v6

Change hex color codes to your favorite color.


SamsungIME Keyboard Swipe Color:

 


Calendar Year Tab horizontal line under month

 


Go to:

\Calendar\smali\com\android\calendar\month\YearVie w.smali

Look for:

.line 1021
const v1, -0xb4b4b5

invoke-virtual {v6, v1}, Landroid/graphics/Paint;->setColor(I)V

and

.line 1027
:cond_b
const v1, -0xb4b4b5

invoke-virtual {v6, v1}, Landroid/graphics/Paint;->setColor(I)V

Change -0xb4b4b5 to your favorite smali color code


Change text color in day and week events Calendar

 




Go to:

Calendar\smali\com\android\calendar\timeline\DayLa yout$DayEventAdapter$2.smali

Look for:

.line 962
.end local v0 # "paintFlag":I
:cond_2
iget-object v3, p0, Lcom/android/calendar/timeline/DayLayout$DayEventAdapter$2;->val$holder:Lcom/android/calendar/timeline/DayLayout$ViewHolder;

iget-object v3, v3, Lcom/android/calendar/timeline/DayLayout$ViewHolder;->titleView:Landroid/widget/TextView;

const/high16 v5, -0x1000000

invoke-virtual {v3, v5}, Landroid/widget/TextView;->setTextColor(I)V

Change const/high16 v5, -0x1000000 to const v3, -0x1000000 then change -0x1000000 to your favorite smali color code.

Go to:

Calendar\smali\com\android\calendar\timeline\DayLa yout$DayEventAdapter.smali

Look for:

.line 1007
iget-object v6, p2, Lcom/android/calendar/timeline/DayLayout$ViewHolder;->titleView:Landroid/widget/TextView;

const/high16 v7, -0x1000000

invoke-virtual {v6, v7}, Landroid/widget/TextView;->setTextColor(I)V

Change const/high16 v7, -0x1000000 to const v7, -0x1000000 then change -0x1000000 to your favorite smali color code

Look for:

.line 940
:cond_8
iget-object v3, p2, Lcom/android/calendar/timeline/DayLayout$ViewHolder;->titleView:Landroid/widget/TextView;

const/high16 v4, -0x1000000

invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

Change const/high16 v4, -0x1000000 to const v4, -0x1000000 then change -0x1000000 to your favorite smali color code

Go to:

Calendar\smali\com\android\calendar\timeline\Event ListWithStartTime.smali

Look for:

.line 107
iget-object v1, p0, Lcom/android/calendar/timeline/EventListWithStartTime;->mListView:Landroid/widget/ListView;

new-instance v2, Landroid/graphics/drawable/ColorDrawable;

const/high16 v3, -0x1000000

invoke-direct {v2, v3}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

Change const/high16 v3, -0x1000000 to const v3, -0x1000000 then change -0x100000 to your favorite smali color code

Go to:

Calendar\smali\com\android\calendar\timeline\WeekL ayout$WeekEventAdapter.smali

Look for:

.line 1342
iget-object v6, p2, Lcom/android/calendar/timeline/WeekLayout$ViewHolder;->titleView:Landroid/widget/TextView;

const/high16 v7, -0x1000000

invoke-virtual {v6, v7}, Landroid/widget/TextView;->setTextColor(I)V

Change const/high16 v7, -0x1000000 to const v7, -0x1000000 then change -0x1000000 to your favorite smali color code

Look for:

.line 1299
:goto_4
iget-object v2, p2, Lcom/android/calendar/timeline/WeekLayout$ViewHolder;->titleView:Landroid/widget/TextView;

const/high16 v3, -0x1000000

invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

Change const/high16 v3, -0x1000000 to const v3, -0x1000000 then change -0x1000000 to your favorite smali color code
Attached Thumbnails
Click image for larger version

Name:	brightness-animation.png
Views:	135
Size:	7.3 KB
ID:	2517855   Click image for larger version

Name:	Screenshot_2014-01-15-11-48-46.png
Views:	135
Size:	100.6 KB
ID:	2517869   Click image for larger version

Name:	Screenshot_2014-01-15-12-57-45.png
Views:	135
Size:	77.7 KB
ID:	2518022   Click image for larger version

Name:	Screenshot_2014-01-15-12-51-48.png
Views:	134
Size:	133.8 KB
ID:	2518107   Click image for larger version

Name:	Screenshot_2014-01-15-13-46-16.png
Views:	136
Size:	84.3 KB
ID:	2518179  

Click image for larger version

Name:	Screenshot_2014-01-15-14-28-52.jpg
Views:	129
Size:	197.1 KB
ID:	2518334   Click image for larger version

Name:	Screenshot_2014-01-15-15-29-36.png
Views:	126
Size:	147.4 KB
ID:	2518414   Click image for larger version

Name:	Screenshot_2014-01-15-15-29-47.png
Views:	124
Size:	184.0 KB
ID:	2518415  


- - - - - - - - - - - - - - - - - - - - -

Device: Verizon GS4 SCH-1545
Modem: I545VRUEMK2
ROM:MY OWN BUILD BASED OFF MK2
Nova Launcher


- - - - - - - - - - - - - - - - - - - - -

ASU Sun Devil Theme & Alum!!!
Purple Green Jelly Bean Theme
MOAR MA6 Text Colors
The Following 5 Users Say Thank You to EMSpilot For This Useful Post: [ Click to Expand ]
 
EMSpilot
Old
(Last edited by EMSpilot; 15th January 2014 at 06:57 PM.)
#2  
EMSpilot's Avatar
Recognized Themer - OP
Thanks Meter 926
Posts: 486
Join Date: May 2012
Location: Havasu

 
DONATE TO ME
Default Android 4.3 Smali Edits Help Guide

Just in Case!!


- - - - - - - - - - - - - - - - - - - - -

Device: Verizon GS4 SCH-1545
Modem: I545VRUEMK2
ROM:MY OWN BUILD BASED OFF MK2
Nova Launcher


- - - - - - - - - - - - - - - - - - - - -

ASU Sun Devil Theme & Alum!!!
Purple Green Jelly Bean Theme
MOAR MA6 Text Colors
The Following User Says Thank You to EMSpilot For This Useful Post: [ Click to Expand ]
 
Naddict
Old
#3  
Naddict's Avatar
Forum Moderator
Thanks Meter 13092
Posts: 7,642
Join Date: Nov 2011
Location: 28.2S, 92.1W
Mine
Every time you don't use search, a kitten, bunny, baby turtle, and fuzzy Harp Seal are killed.

Read the Rules! -- Search Before You Post! -- Learn about XDA -- Need A Moderators Help? -- Get the Most out of XDA! -- Curious about GPL?
 
sbreen94
Old
#4  
sbreen94's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 14274
Posts: 3,915
Join Date: Apr 2012

 
DONATE TO ME
Nice finds bud, very neat
The Following User Says Thank You to sbreen94 For This Useful Post: [ Click to Expand ]
 
rompnit
Old
#5  
rompnit's Avatar
Recognized Contributor / Themer
Thanks Meter 14886
Posts: 2,529
Join Date: Aug 2008
Location: Granger, IN

 
DONATE TO ME
I need one too!! Nice EMS!
The Following User Says Thank You to rompnit For This Useful Post: [ Click to Expand ]
 
Gunthermic
Old
#6  
Gunthermic's Avatar
Recognized Themer
Thanks Meter 5629
Posts: 2,684
Join Date: Mar 2011

 
DONATE TO ME
Nice to see someone take time to put it together.

I see a lot of smali edits I have been using for a while. Just never have time to write it all down,...


Reserved, cuz I do a ton of smali edits....


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more
 
strongsteve
Old
#7  
strongsteve's Avatar
Recognized Themer
Thanks Meter 16593
Posts: 5,126
Join Date: Apr 2008
Location: Dallas, TX

 
DONATE TO ME
There goes all my trade secrets..lol
"ANY DAY THAT GOOGLE DOESNT UPDATE SOMETHING IS A GOOD DAY"

 
Gunthermic
Old
#8  
Gunthermic's Avatar
Recognized Themer
Thanks Meter 5629
Posts: 2,684
Join Date: Mar 2011

 
DONATE TO ME
Quote:
Originally Posted by strongsteve View Post
There goes all my trade secrets..lol
Yup... once released in an apk.. all free game.. hahaha.

You have no stinking secrets... I am Robocop.. put down your smali...


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more

The Following User Says Thank You to Gunthermic For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes