yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] phenomarc:
Don't work. Give another bootloop. Looking to logcat:

W/dalvikvm(13624): VFY: Landroid/content/Context; is not instance of Landroid/content/ContentResolver;
W/dalvikvm(13624): VFY: bad arg 0 (into Landroid/content/ContentResolver;)
W/dalvikvm(13624): VFY: rejecting call to Landroid/provider/Settings$System;.getInt (Landroid/content/ContentResolver;Ljava/lang/String;I)I
W/dalvikvm(13624): VFY: rejecting opcode 0x71 at 0x00ba
W/dalvikvm(13624): VFY: rejected Lcom/android/internal/policy/impl/KeyguardViewManager;.show ()V
W/dalvikvm(13624): Verifier rejected class Lcom/android/internal/policy/impl/KeyguardViewManager;
W/dalvikvm(13624): threadid=26: thread exiting with uncaught exception (group=0x40d842a0)

and the dalvik code table, if I change

invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;

to

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

could work?
[Galaxy S II Android Development] Goldie:
You should just look how context is obtained elsewhere in that method/file
[Galaxy S II Android Development] phenomarc:
I will try it and come here with results.

Thanks for all Goldie.

Enviado desde mi GT-I9100 con PHD v9 mediante Tapatalk
[Galaxy S II Android Development] maskerwsk:
having abit of an weird one today.

I have several methods in phonestatusbar that will se visibility and others that will setcolorfilter on imageviews.

they work fine, had no problems with those.

however today I added another 2, one to setvisibility and one to setcolorfilter, same way as before (obviously different name and id) checked it several times and its all seems fine.

the setvisibility works fine, however the setcolorfilter doesn't,

no compile issues or crashes, just no color on image, ive tested the method using another id of an image view and it all works fine.

just wont color the image I actually want colored.

got me thinking are some imageviews handled differently? or can attriblutes in the xml files stop things from working?
[Galaxy S II Android Development] phenomarc:
If a file have mContext to get Context, I need to add this?

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

I mean when toggling on/off.
[Galaxy S II Android Development] phenomarc:
Finally got it working how to hide statusbar in lockscreen with toggle. In KeyguardViewManager, .method public declared-synchronized show()V:

iget-object v3, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;

invoke-interface {v1, v2, v3}, Landroid/view/ViewManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

[COLOR="Red"]iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mContext:Landroid/content/Context;

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

move-result-object v2

const-string v3, "toggle_sb"

const v4, 0x1

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

move-result v2

const/4 v3, 0x1

if-eqz v2, :cond_show_sb

const/4 v3, 0x0

:cond_show_sb

invoke-virtual {p0, v3}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V[/COLOR]

.line 163
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;

if-nez v1, :cond_7

Thanks for all Goldie.
[Galaxy S II Android Development] Many40:
Hi,

Good one :good:

To have a pefrect combo I tried to make also a transparent statusbar in lockscreen with toggle. It works but unfortunately so far it takes effect only after restart (not on-the-fly):

iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

const/4 v8, -0x1

const v4, 0x100800

[COLOR="Red"] iget-object v10, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mContext:Landroid/content/Context;

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

move-result-object v10

const-string v13, "toggle_sb_transp"

const v14, 0x1

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

move-result v14

if-nez v14, :cond_transp_sb

goto :goto_transp_sb

:cond_transp_sb
const v4, 0x100900

:goto_transp_sb[/COLOR]
iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z

if-nez v1, :cond_2

const/high16 v1, 0x2

or-int/2addr v4, v1

:cond_2
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mContext:Landroid/content/Context;

BTW might be it's possible to reuse some more registers but I added two additional ones.

Any hints to make it better are appreciated.
[Galaxy S II Android Development] Ticklefish:
Okay, here's a challenge for you folks. Although it's probably not much of a challenge since you all seem to be smali geniuses. ;)

I've implemented a brightness bar on my expanded screen and I'm trying to change the colours. I don't want to change the colours of all the seekbars in my rom, just this particular one, so I can't change the png's.

What I want to do is have the smali use different resources for the images. But I can't figure out how. I'm a beginner with smali but I can't see any references to the drawables used.

Here's one of the methods I want to change:

.method public onCheckedChanged(Landroid/widget/CompoundButton;Z)V
.locals 3
.param p1, "toggle" # Landroid/widget/CompoundButton;
.param p2, "checked" # Z

.prologue
.line 91
iget-object v0, p0, Lcom/android/systemui/settings/ToggleSlider;->mListener:Lcom/android/systemui/settings/ToggleSlider$Listener;

if-eqz v0, :cond_0

.line 92
iget-object v0, p0, Lcom/android/systemui/settings/ToggleSlider;->mListener:Lcom/android/systemui/settings/ToggleSlider$Listener;

iget-boolean v1, p0, Lcom/android/systemui/settings/ToggleSlider;->mTracking:Z

iget-object v2, p0, Lcom/android/systemui/settings/ToggleSlider;->mSlider:Landroid/widget/SeekBar;

invoke-virtual {v2}, Landroid/widget/ProgressBar;->getProgress()I

move-result v2

invoke-interface {v0, p0, v1, p2, v2}, Lcom/android/systemui/settings/ToggleSlider$Listener;->onChanged(Lcom/android/systemui/settings/ToggleSlider;ZZI)V

.line 94
:cond_0
return-void
.end method

I've been able to track down the original java from here: https://android.googlesource.com/platform/frameworks/base/+/android-4.4.3_r1.1/packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java

This suggest that this method in java looks like:

public void onCheckedChanged(CompoundButton toggle, boolean checked) {
Drawable thumb;
Drawable slider;
final Resources res = getContext().getResources();
if (checked) {
thumb = res.getDrawable(
com.android.internal.R.drawable.scrubber_control_disabled_holo);
slider = res.getDrawable(
R.drawable.status_bar_settings_slider_disabled);
} else {
thumb = res.getDrawable(
com.android.internal.R.drawable.scrubber_control_selector_holo);
slider = res.getDrawable(
com.android.internal.R.drawable.scrubber_progress_horizontal_holo_dark);
}
mSlider.setThumb(thumb);
mSlider.setProgressDrawable(slider);
if (mListener != null) {
mListener.onChanged(this, mTracking, checked, mSlider.getProgress());
}
}

But I can't see any references to those drawables in the smali and, to be honest, I'm a bit lost. I know a bit more about smali then the last time I poster here but this has me confused. If anybody could help, that'd be great.

Full smali file attached.
[Galaxy S II Android Development] SpaceCaker:
find the Public value of those in public.xml of ur frameworkres apk

and see if u can find it in ur smali

like 0x7*****" etc

maybe thats it ?

or if its a layout of seekbar cant u use the attributes for it like

android:Thumb=

or android:progress i though

?

Sent from my Acer S500 CloudMobile
[Galaxy S II Android Development] Ticklefish:
I was looking for the public.xml references...but only in that method. Didn't occur to me to look in the whole file. :o

I found my references and I'm making my changes...thanks!
[Galaxy S II Android Development] maskerwsk:
morning Guys.

Would using the same android key on multiple different methods cause issues?

basically im modding all the lockscreen text, and for simplicity I was planning on using the same key to color it all (until its all done then id change it) but im getting some weird results,

the carrier text is green (set by color picker) but help text is black.

or could it be a problem with my help text color method?
[Galaxy S II Android Development] remuntada78:
I'm using the same key for different mod and i don't have issues

Probably you need the observer or check better your code
[Galaxy S II Android Development] maskerwsk:
I think the issue is coming from where I invoke the method

EDIT - yep was the invoke, all sorted now :)
[Galaxy S II Android Development] remuntada78:
what is wrong in this code? in red the code that i added

.line 898
iget-object v7, p0, Lcom/android/internal/widget/ActionBarView;->mTitleView:Landroid/widget/TextView;

iget-object v11, p0, Lcom/android/internal/widget/ActionBarView;->mContext:Landroid/content/Context;

iget v12, p0, Lcom/android/internal/widget/ActionBarView;->mTitleStyleRes:I

invoke-virtual {v7, v11, v12}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

.line 900
:cond_58
iget-object v7, p0, Lcom/android/internal/widget/ActionBarView;->mTitle:Ljava/lang/CharSequence;

if-eqz v7, :cond_63

.line 901
iget-object v7, p0, Lcom/android/internal/widget/ActionBarView;->mTitleView:Landroid/widget/TextView;

iget-object v11, p0, Lcom/android/internal/widget/ActionBarView;->mTitle:Ljava/lang/CharSequence;

invoke-virtual {v7, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
[COLOR="Red"]
iget-object v4, p0, Lcom/android/internal/widget/ActionBarView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v4

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

move-result-object v4

const-string v5, "checkbox_preference"

const v6, 0x1

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

move-result v4

if-eqz v4, :cond_3e

iget-object v4, p0, Lcom/android/internal/widget/ActionBarView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v4

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

move-result-object v4

const-string/jumbo v5, "text_color"

const v6, -0x1

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

move-result v4

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

:cond_3e[/COLOR]
.line 904
:cond_63
iget v7, p0, Lcom/android/internal/widget/ActionBarView;->mSubtitleStyleRes:I

logcat says

W/dalvikvm( 1853): VFY: Landroid/content/Context; is not instance of Landroid/content/ContentResolver;

W/dalvikvm( 1853): VFY: bad arg 0 (into Landroid/content/ContentResolver;)

W/dalvikvm( 1853): VFY: rejecting call to Landroid/provider/Settings$System;.getInt (Landroid/content/ContentResolver;Ljava/lang/String;I)I

W/dalvikvm( 1853): VFY: rejecting opcode 0x71 at 0x0015

W/dalvikvm( 1853): VFY: rejected Lcom/android/internal/widget/ActionBarView;.setTitleImpl (Ljava/lang/CharSequence;)V

W/dalvikvm( 1853): Verifier rejected class Lcom/android/internal/widget/ActionBarView;

W/Zygote ( 1853): Class not found for preloading: com.android.internal.widget.ActionBarView

i'm confused sorry
[Galaxy S II Android Development] tdunham:
What is the id for the xml itself and is it called from another xml or directly from the public value via smali?

Ie. search public.xml for the value of the xml and do a global search through the apk to see where it occurs and report back.

I'm thinking it may be easer to just have multiple xml files called through the toggle rather than have to setup an array to do it.

---------- Post added at 02:36 PM ---------- Previous post was at 02:25 PM ----------

But no matter what, if you're trying to use multiple images, it is going to be easier to use an array.
[Galaxy S II Android Development] remuntada78:
I was trying with the array way using png's ids but has no effect
[Galaxy S II Android Development] tdunham:
I just got done dealing with layout arrays. Not a fan of messing around with layouts as it can be really picky.

How many color schemes are we talking about and did you pull the id and do a search for it for the xml? There may be an easier way but my thought process is stuck on just using multiple xml files for the array instead of the image itself (since I've never done it before).

---------- Post added at 03:44 PM ---------- Previous post was at 03:12 PM ----------

Sorry, trying to find an array that calls multiple images.

It would probably have to be something like this for the array:

.method get_battery_type()I
.locals 2

const/16 v1, 0x24

new-array v0, v1, [I

fill-array-data v0, :array_0

sget v1, Lcom/android/systemui/statusbar/MinitSettings;->mBatteryType:I

aget v1, v0, v1

return v1

:array_0
.array-data 0x4
0xa7t 0x0t 0x2t 0x7ft
0x4dt 0x4t 0x2t 0x7ft
0x1ct 0x5t 0x2t 0x7ft
0x89t 0x7t 0x2t 0x7ft
0x58t 0x8t 0x2t 0x7ft
0xebt 0x5t 0x2t 0x7ft
0xbat 0x6t 0x2t 0x7ft
0xabt 0x13t 0x2t 0x7ft
0x9ct 0xbt 0x2t 0x7ft
0x6t 0xet 0x2t 0x7ft
0x6at 0xct 0x2t 0x7ft
0x38t 0xdt 0x2t 0x7ft
0x78t 0x14t 0x2t 0x7ft
0xf5t 0x9t 0x2t 0x7ft
0x27t 0x9t 0x2t 0x7ft
0xd4t 0xet 0x2t 0x7ft
0x76t 0x3t 0x2t 0x7ft
0xcet 0xat 0x2t 0x7ft
0xa2t 0xft 0x2t 0x7ft
0x71t 0x10t 0x2t 0x7ft
0x3ft 0x11t 0x2t 0x7ft
0xdt 0x12t 0x2t 0x7ft
0xdbt 0x12t 0x2t 0x7ft
0x47t 0x15t 0x2t 0x7ft
.end array-data
.end method

The array contains the codes of the images but they are input backwards. Goldie explained it here in this thread but now I can't find it.

I explained the breakdown of the image array in THIS thread.

As you can see, creating the array is pretty involved. I'm not sure I can even explain since it has been so very long since I did anything like this. :rolleyes:
[Galaxy S II Android Development] remuntada78:
i'm sorry , for array I meant this

<string-array name="dialer_chooser_entries">
<item>Stock Dialer</item>
<item>Orange Dialer</item>
</string-array>
<string-array name="dialer_chooser_values">
<item>0</item>
<item>1</item>
</string-array>

and add a code like that

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "dialer_bg_chooser"

const v3, 0x0

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

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x7f020071 <--id of stock dialpad

goto :goto_0

:cond_0
const v2, 0x7f020267 <--id of orange_dialpad

:goto_0

in the DialpadFragment.smali file
[Galaxy S II Android Development] remuntada78:
What is it that's not good in the following code?

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

if-eqz v1, :cond_3

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v3}, Landroid/view/View;->setBackgroundResource(I)V

iget v5, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:Landroid/view/View;

invoke-virtual {v1, v5}, Landroid/view/View;->setBackgroundResource(I)V

through the logcat

W/dalvikvm( 3157): VFY: invalid iget-1nr of Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;.mDialerBackground (inst=17 field=0)

W/dalvikvm( 3157): VFY: rejecting opcode 0x52 at 0x0050

W/dalvikvm( 3157): VFY: rejected Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;.showDialpadChooser (Z)V

W/dalvikvm( 3157): Verifier rejected class Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;

I understood the problem is the iget v5, but why? I added the value of locals registers from 5 to 6, so which is the problem?
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION]

hi Goldie i need some explanation, as you can see above i'm trying to mod the background's dialer

in the DialpadFragment.smali file of SecContacts.apk there is this code

.line 820
iget-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mFragmentView:Landroid/view/View;

const v1, 0x7f0901da

invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

the id refers to this in the dialpad.xml

<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:background="@drawable/dialer_bg_p_01" android:visibility="visible" android:clickable="true" android:layout_width="315.0dip" android:layout_height="245.0dip" android:layout_marginLeft="3.0dip" android:layout_marginTop="3.0dip" android:hapticFeedbackEnabled="true"
xmlns:android="http://schemas.android.com/apk/res/android">

so in that id is also stored the dialer background image, and that id is stored in the Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

Now in the same smali file Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View; is invoked in different places in this way

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

So i thought to add after the setVisibility the following code

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v3}, Landroid/view/View;->setBackgroundResource(I)V

iget v5, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:Landroid/view/View;

invoke-virtual {v1, v5}, Landroid/view/View;->setBackgroundResource(I)V

where mDialerBackground:Landroid/view/View; refers to the method i added

.method set_dialer_background()V
.locals 5

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "dialer_chooser"

const v3, 0x0

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

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x7f02039e

goto :goto_0

:cond_0
const v2, 0x7f02064a

:goto_0
iget-object v3, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:Landroid/view/View;

invoke-virtual {v3, v2}, Landroid/view/View;->setBackgroundResource(I)V

return-void
.end method

it' s the right way, or it's not possible?
[Galaxy S II Android Development] Goldie:
Try it! Although Iget v5 for dialer background which is a view then you use that v5 in setbackgroundresource as a resource so you should fix that first
[Galaxy S II Android Development] remuntada78:
i've already try , as you said there is a problem with iget v5 but i can't understand how to fix
[Galaxy S II Android Development] remuntada78:
Maybe i understood, i need to set v5 as setBackgroundImage?

edit;actually i don't understand

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] remuntada78:
trying in other way, added red lines

.line 820
iget-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mFragmentView:Landroid/view/View;

const v1, 0x7f0901da

invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;
[COLOR="Red"]
move-object/from16 v0, p0

invoke-virtual {v0}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->set_dialer_background(Landroid/content/Context;)V
[/COLOR]
.line 821

but when i try to compile i got this error

what it mean?
[Galaxy S II Android Development] gerryS2:
You have missing a Context object.

Try this:

iget-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mContext:Landroid/content/Context;

invoke-virtual {p0, v0}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->set_dialer_background(Landroid/content/Context;)V

Or this:

iget-object v0, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mContext:Landroid/content/Context;

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v0}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->set_dialer_background(Landroid/content/Context;)V
[Galaxy S II Android Development] remuntada78:
with second way i got this

W/dalvikvm( 3159): VFY: 'this' arg 'Landroid/view/View;' not instance of 'Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;'

W/dalvikvm( 3159): VFY: rejecting opcode 0x6e at 0x001c

W/dalvikvm( 3159): VFY: rejected Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;.setDefaultLayout ()V

W/dalvikvm( 3159): Verifier rejected class Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;
[Galaxy S II Android Development] remuntada78:
solved the problem with iget v5 , i needed to change

iget v5, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:Landroid/view/View;

to

iget v5, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:I

and to get the stuff i changed my code like this

:cond_2
iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

if-eqz v1, :cond_3

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
[COLOR="Red"]
iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialpad:Landroid/view/View;

invoke-virtual {p0}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {p0, v5}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->set_dialer_background(Landroid/content/Context;)V

iget v5, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:I

invoke-virtual {v1, v5}, Landroid/view/View;->setBackgroundResource(I)V[/COLOR]

with this code i don't have FC but the dialer bg is trasparent and when i try to change the bg in it is always trasparent.

have you any suggestion about what i need to change or what's missing?
[Galaxy S II Android Development] remuntada78:
i fixed the last problem, in my code

.method set_dialer_background(Landroid/content/Context;)V
.locals 5

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

move-result-object v1

const-string v2, "dialer_chooser"

const v3, 0x0

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

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x7f02039e

goto :goto_0

:cond_0
const v2, 0x7f02064a

:goto_0
iput v3, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mDialerBackground:I

return-void
.end method

i needed to change iput v3 to iput v2 and now the mod is working and the dialer bg change only when i restart the device, so i need to try to solve this and add more dialer bg