yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] maskerwsk:
Thanks

I removed the " " and that error has gone.

however now I get this:

..\3-Out\SystemUI.apk\smali\com\android\systemui\SystemUIService.smali[76,15] no viable alternative at input 'e'

..\3-Out\SystemUI.apk\smali\com\android\systemui\SystemUIService.smali[76,17] no viable alternative at input 'Ljava/lang/Exception;'

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/SystemUIService.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)

at brut.androlib.Androlib.buildSources(Androlib.java:289)

at brut.androlib.Androlib.build(Androlib.java:275)

at brut.androlib.Androlib.build(Androlib.java:250)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

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

which refers to this line:

.local v0, e:Ljava/lang/Exception;

any ideas :)

thanks.
[Galaxy S II Android Development] remuntada78:
seem you need to remove the "" simbols again , can you show the code smali?

edit : sorry i see now the above code
[Galaxy S II Android Development] maskerwsk:
of corse,

here is the entire UNMODIFIED method:

.method public MaskerwskNeedsTag(Landroid/view/View;)V
.locals 11
.parameter "v"

.prologue
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

move-result-object v5

check-cast v5, Ljava/lang/String;

:try_start_0
const-string v3, ","

invoke-virtual {v5, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v6

const/4 v4, 0x0

aget-object v4, v6, v4

const/4 v7, 0x1

aget-object v7, v6, v7

invoke-virtual {v0, v4, v7}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const/high16 v2, 0x1000

invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v0

invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

:goto_0
const-string v1, "statusbar"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapsePanels()V

return-void

:catch_0
move-exception v0

.local v0, e:Ljava/lang/Exception;
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

const-string v10, "Error:\n"

invoke-virtual {v10, v5}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

move-result-object v5

const/16 v9, 0x7d0

invoke-static {p0, v5, v9}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

move-result-object v8

invoke-virtual {v8}, Landroid/widget/Toast;->show()V

goto :goto_0
.end method
[Galaxy S II Android Development] remuntada78:
can you show how parameter are defined in others .method? like this .parameter "v" or like this .param p2 # I ?
[Galaxy S II Android Development] Goldie:
Delete .parameter "v" and delete .local v0, e:Ljava.....lines
[Galaxy S II Android Development] maskerwsk:
this worked great thanks.

all recompiles fine and doesn't FC when pushed.

however I do get a crash when its ran.

however I think that is more to do with the 'onClick' attribute rather than the method.

thanks anyway :)
[Galaxy S II Android Development] remuntada78:
any suggestion?
[Galaxy S II Android Development] Goldie:
Don't use const/xxx just use const
[Galaxy S II Android Development] remuntada78:
yessss thanks grandmaster :D:D

[YOUTUBE]l9s7eadD0m8[/YOUTUBE]
[Galaxy S II Android Development] maskerwsk:
Hi Guys.

Quick question.

Im trying to increase the recording length of the camera on my gear 1.

in CameraActivity I found the following lines:

.field public static final MAX_SOUNDSHOT_RECORDING_TIME_SEC:I = 0x9

.field protected static final MAX_VIDEO_RECORDING_AVAILABLE:I = 0xf

What does the 0x9 and 0xf mean?

are they values?

ie Will increasing those increase the record limit?

Thanks.
[Galaxy S II Android Development] remuntada78:
IMO they are part of array list, for example

:array_102a
.array-data 0x4
0x24t 0x1t 0x1t 0x1t this is 0x0
0x25t 0x1t 0x1t 0x1t is 0x1
0x42t 0x1t 0x1t 0x1t is 0x2
0x6et 0x3t 0x1t 0x1t is 0x3
0x6ft 0x3t 0x1t 0x1t is 0x4
0x70t 0x3t 0x1t 0x1t is 0x5
0x71t 0x3t 0x1t 0x1t is 0x6
0x72t 0x3t 0x1t 0x1t is 0x7
0x76t 0x4t 0x1t 0x1t is 0x8
0x77t 0x4t 0x1t 0x1t is 0x9
0x78t 0x4t 0x1t 0x1t is 0xa
0x79t 0x4t 0x1t 0x1t is 0xb
0x7at 0x4t 0x1t 0x1t is 0xc
0x7bt 0x4t 0x1t 0x1t is 0xd
0x7ct 0x4t 0x1t 0x1t is 0xe
0x7dt 0x4t 0x1t 0x1t is 0xf
0x7et 0x4t 0x1t 0x1t is 0x10
0x7ft 0x4t 0x1t 0x1t is 0x11
.end array-data

so in some smali file you have a code that recall the array list, for example

sget-object v6, Lcom/android/internal/R$styleable;->[COLOR="Red"]Switch:[I[/COLOR] <-----this is the name of the array list

and in the same smali file you have the recall of the above value in this way

const/4 v6, 0x0
do something

const/4 v6, 0x1
do something
.
.
.
const/4 v6, 0xf
do something
[Galaxy S II Android Development] maskerwsk:
Thanks mate, I ended up playing round with the values and found a hex calculator in google.

it allowed me to work out what 120 seconds in in hex code, so I changed the values and it worked :)

increased recording limit to 120 seconds :)
[Galaxy S II Android Development] Goldie:
Shutdownthread smali will be in different location. Check and amend the path
[Galaxy S II Android Development] maskerwsk:
Hi Guys.

Another question.

Ive added some extra wallpaper colors to my gear like the following:

.method public constructor <init>()V
.locals 6

.prologue
const/4 v5, 0x0

.line 24
invoke-direct {p0}, Landroid/app/Activity;-><init>()V

.line 30
const/16 v0, 0xb

new-array v0, v0, [I

invoke-static {v5, v5, v5}, Landroid/graphics/Color;->rgb(III)I

move-result v1

aput v1, v0, v5

const/4 v1, 0x1

const/16 v2, 0xff

const/16 v3, 0x6f

const/16 v4, 0x20

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x2

const/16 v2, 0xaf

const/16 v3, 0xa4

invoke-static {v5, v2, v3}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x3

const/16 v2, 0x6b

const/16 v3, 0x3a

const/16 v4, 0x33

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x4

const/16 v2, 0x84

const/16 v3, 0xc4

invoke-static {v2, v5, v3}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x5

const/16 v2, 0x4c

const/16 v3, 0xb8

invoke-static {v2, v3, v5}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x6

const/16 v2, 0xf9

const/16 v3, 0x37

const/16 v4, 0x42

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/4 v1, 0x7

const/16 v2, 0xff

const/16 v3, 0xff

const/16 v4, 0xff

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/16 v1, 0x8

const/16 v2, 0x6b

const/16 v3, 0x6b

const/16 v4, 0x6b

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/16 v1, 0x9

const/4 v2, 0x1

const/4 v3, 0x1

const/16 v4, 0xff

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

const/16 v1, 0xa

const/4 v2, 0x1

const/4 v3, 0x1

const/16 v4, 0xff

invoke-static {v2, v3, v4}, Landroid/graphics/Color;->rgb(III)I

move-result v2

aput v2, v0, v1

iput-object v0, p0, Lcom/sec/android/watchsettings/display/HomeColorSettings;->mHomeColorList:[I

.line 57
return-void
.end method

i wondered could i add custom images to this method and call them by ID?

or should i be writing a new method and invoking it?

Thanks.
[Galaxy S II Android Development] Goldie:
It says the com/sec/android/watchsettings/display/WallpaperSettings does not exist which is called in the onitemclick method you mention
[Galaxy S II Android Development] maskerwsk:
That's what I thought at first but it as the file does exist I thought it could have been the other way round.

the activity called here:

new-instance v0, Landroid/content/Intent;

const-class v1, Lcom/sec/android/watchsettings/display/WallpaperSettings;

invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

.line 84
invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

and the file is there (see screenshot)

could this be because the WallpaperSetting.smali has errors in it?
[Galaxy S II Android Development] Goldie:
Yes it could. Search the log for "verif" or "wallpapersettings" or "vfy". Likely the file was kicked out as it could not be verified as valid
[Galaxy S II Android Development] remuntada78:
i'm not sure, but are you sure that the values invoked are right? i mean invoke-static {v3, v3, v8}
[Galaxy S II Android Development] maskerwsk:
I haven't changed those,

This is part of a color picker smali and its worked fine, (with correct IDs)

from ICS to Kitkat, now on lollipop it crashes.

Compiles fine but crashes after.
[Galaxy S II Android Development] remuntada78:
are there some lines with vfy refered to your error in your log? there may be more information
[Galaxy S II Android Development] remuntada78:
Hi , i changed .locals 12 to .locals 15 and used v12 ,v13 and v14 but i have error when compile

what mean?
[Galaxy S II Android Development] xpirt:
add line 468 too

btw that's because your registers are more than 15. a lot of instructions cannot use registers higher than v15 so you must look for some free registers to use and don't add any more.

edit: that if you have also 1 or more parameters or it is not a static method, so you have 'this' that increases number of registers to 16.
[Galaxy S II Android Development] remuntada78:
Hi, somebody kwow how to implement edittextpreference, seekbarpreference and switchpreference in smali file without using customsettings.apk?

I'm using [MENTION=2910757]Didact74[/MENTION] http://xdaforums.com/showthread.php?t=2166315 way to implement my mod , so i added a new smali file where i can add checkboxpreference, colorpickerpreference and listpreference
[Galaxy S II Android Development] xpirt:
the best thing is to write it in java. then decompile and adapt it. that's what i would have done, shouldn't be difficult.
[Galaxy S II Android Development] remuntada78:
i'm not familiar with the java code , i found some tutorial about how to write an apk similar to customsettings.apk, so i think this way is hard for me:crying:
[Galaxy S II Android Development] xpirt:
trust me it's not difficult, with the help of some guides you can write what you need in short time
[Galaxy S II Android Development] remuntada78:
found a way to add a switchpreference in the smali file

if you are using the [MENTION=2910757]Didact74[/MENTION] way , add a switchpreference is the same to add a checkboxpreference, so if to add a checkboxpreference you need to add in the method onCreate(Landroid/os/Bundle;)V the following code

e.g

const-string v1, "enable_top_popup_color"

invoke-virtual {p0, v1}, Lcom/android/settings/custommod/ModSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

iput-object v1, p0, Lcom/android/settings/custommod/ModSettings;->mEnableTopPopupColor:Landroid/preference/CheckBoxPreference;

iget-object v4, p0, Lcom/android/settings/custommod/ModSettings;->mEnableTopPopupColor:Landroid/preference/CheckBoxPreference;

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v5, "enable_top_popup_color"

invoke-static {v1, v5, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v2, :cond_2d

move v1, v2

:goto_2d
invoke-virtual {v4, v1}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

and in the method onPreferenceTreeClick(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z

e.g

iget-object v2, p0, Lcom/android/settings/custommod/ModSettings;->mEnableTopPopupColor:Landroid/preference/CheckBoxPreference;

if-ne p2, v2, :cond_1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v2

invoke-virtual {v2}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "enable_top_popup_color"

check-cast p2, Landroid/preference/CheckBoxPreference;

invoke-virtual {p2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v4

if-eqz v4, :cond_5b

move v0, v1

:cond_5b
invoke-static {v2, v3, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

you need to change in these code CheckBoxPreference to SwitchPreference .

But it work in a strange way , see the following pictures
[Galaxy S II Android Development] remuntada78:
for track down the right smali you can use the monitor tool from sdk folder, for your red code it seem right to me but you need to add the invoke of the method and add the observer too
[Galaxy S II Android Development] stangdriver44:
I guess understanding smali is still a a little hazy for me. Thank you for the reply. I guess I need to read the OP again! Thanks
[Galaxy S II Android Development] rompnit:
Looks like you solved it :)

You could write it another way too, controlling the number directly from your arrays. Seems a bit easier to add a greater selection (say 5 to 20 toggles) and removed the unused code, but 6 of 1 half dozen of the other. :p

.method private getButtonNumberFromDB()I
.locals 5

[COLOR="red"] iget-object v0, p0, Lcom/android/systemui/qs/QSPanel;->mContentResolver:Landroid/content/ContentResolver;

const-string v1, "notification_panel_active_number_of_apps"

const/16 v2, 0xa

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

goto:goto_new[/COLOR]

:cond_0
:goto_0
const-string v2, "StatusBar-QSPanel"

new-instance v3, Ljava/lang/StringBuilder;

invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

const-string v4, "Button Number from DB : = "

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v3

invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

[COLOR="Red"]:goto_new[/COLOR]
return v0

:catch_0
move-exception v1

const-string v2, "StatusBar-QSPanel"

const-string v3, "getButtonNumberFromDB() - SettingNotFoundException"

invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

goto :goto_0
.end method
[Galaxy S II Android Development] Appreciative:
I'm trying to make this work to read a value from SharedPrefs (the above post is related)

Here's what I have right now:

const/4 v1, 0x0
iget-object v0, p0, Lkik/a/b/a/g;->b:Landroid/content/Context;

const-string v3, "KikPreferences"

invoke-virtual {v0, v3, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

move-result-object v0

const-string v1, "usernameLogin"

const/4 v3, 0x0

invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object v0

(The following return-object v0 - normally returns text to the screen. It is not necessary to return text to the screen, I'm doing that to visually verify it is reading the values out of sharedPreferences.)

Can anyone tell me why this doensn't return my username from SharedPreferences? Please.

I have:

.field private b:Landroid/content/Context;

defined up top.

Logcat offers this:

E/AndroidRuntime(13509): FATAL EXCEPTION: CommOutput

E/AndroidRuntime(13509): java.lang.NullPointerException

Thanks to anyone who can help.
[Galaxy S II Android Development] bobfrantic:
help please

Hello everyone. I am trying to find a way to hide the status bar in the Sview window of my Galaxy S4. I have successfully hidden the status bar clock on my lock screen thanks to the information in this post from [MENTION=4413273]S0bes[/MENTION]. I am hoping someone knows which smali (s) need editing and the code to hide the entire status bar in Sview (see screen shot) IMHO there are too many clocks in Android lol. Thanks so much in advance for any help that can be provided.
[Galaxy S II Android Development] josephpatrick:
query regarding logcat error

hi goldie and experts,

i use logcat extreme and it shows the following error for some changes i am trying to make in samsung dialer.

could someone pllease let me know what this error means

does not look like line number or is it line number? are the hashed lines considered as lines? am referring to 781 and 532...the first error does not show any number.

i have tried logcat and logcat extreme, i prefer the latter, is there any better tool?

thanks in advance
[Galaxy S II Android Development] remuntada78:
781 and 532 are these lines

if-eqz v4, :cond_0

[COLOR="Red"].line 150[/COLOR] [COLOR="Red"]<------this is a line[/COLOR]
aget v11, v3, v2

invoke-virtual {v9, v11}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v11

invoke-virtual {v4, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

all this code

.line 150
aget v11, v3, v2

invoke-virtual {v9, v11}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v11

invoke-virtual {v4, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

is only one line in java code, you need to search in .line 781 in the method createViewsAndFragments of your PeopleActivity.smali
[Galaxy S II Android Development] Goldie:
Nullpointer can be many things. Would need to know what you did. For a fc the best log is dumpstate_app_error.txt.gz from data/log
[Galaxy S II Android Development] josephpatrick:
Goldie, you already know what I am trying :), something really impossible, but still trying whenever i do get time..which is to remove the favorites tab from the dialer... was trying to remove critical references to the favorites view/fragment and came across these errors.

---------- Post added at 01:54 PM ---------- Previous post was at 01:53 PM ----------

makes sense, thank you so much...will check those lines
[Galaxy S II Android Development] remuntada78:
someone has already tried to work with change rippledrawable color?

in the following code

iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

sget v6, Lcom/android/keyguard/R$drawable;->ripple_drawable:I

invoke-virtual {v5, v6}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {p0, v5}, Lcom/android/keyguard/NumPadKey;->setBackground(Landroid/graphics/drawable/Drawable;)V

i tried to add the change color code

iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

sget v6, Lcom/android/keyguard/R$drawable;->ripple_drawable:I

invoke-virtual {v5, v6}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {p0, v5}, Lcom/android/keyguard/NumPadKey;->setBackground(Landroid/graphics/drawable/Drawable;)V
[COLOR="Red"]
invoke-virtual {p0}, Lcom/android/keyguard/NumPadKey;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "ripple_drawable_color"

const/4 v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

sget-object v11, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v5, v8, v11}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V[/COLOR]

but It had no effect
[Galaxy S II Android Development] Goldie:
Try setting the color BEFORE using the drawable. I.e move the setbackground line to the bottom
[Galaxy S II Android Development] remuntada78:
iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

sget v6, Lcom/android/keyguard/R$drawable;->ripple_drawable:I

invoke-virtual {v5, v6}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v5
[COLOR="Red"]
invoke-virtual {p0}, Lcom/android/keyguard/NumPadKey;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "ripple_drawable_color"

const/4 v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

sget-object v11, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v5, v8, v11}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
[/COLOR]
invoke-virtual {p0, v5}, Lcom/android/keyguard/NumPadKey;->setBackground(Landroid/graphics/drawable/Drawable;)V

if you mean like this it don't have effect too
[Galaxy S II Android Development] xpirt:
try this:

iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

sget v6, Lcom/android/keyguard/R$drawable;->ripple_drawable:I

invoke-virtual {v5, v6}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v5

iget-object v8, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "ripple_drawable_color"

const/4 v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

sget-object v11, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v5, v8, v11}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

invoke-virtual {p0, v5}, Lcom/android/keyguard/NumPadKey;->setBackground(Landroid/graphics/drawable/Drawable;)V
[Galaxy S II Android Development] remuntada78:
no effect too , thank anyway
[Galaxy S II Android Development] xpirt:
can you post the full file?
[Galaxy S II Android Development] Halcyon:
I have just replace Silent mode quick setting tile smalis to com/android/systemui/statusbar/qs/tiles from another systemUI , its works great and fixed my bug but don show correct Text under the toggle and correct png for each state. How to fix it? I tried to match its idis to the privius idis but just png show for vibrate state fixed , what should i do? Please guide me my mind blown up

Here are the smalis plz help

https://mega.co.nz/#!KppSHCoK!mY_qTO2t1-CplHpynHMRgg_0EuYD_AysVUkLp-wpfRE

https://mega.co.nz/#!fwpySRaA!DDm7qEsotU5ol-QHc7lWneERceEakeIcltO3bsF2hp0