[Galaxy S II Android Development] remuntada78:
I think i'm close , but maybe I'm wrong, this is what i've done now

.method public constructor <init>(Landroid/content/Context;)V
.locals [COLOR="Red"]13[/COLOR]
.parameter "context"

.prologue
[COLOR="Red"]iget-object v10, p0, Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;->mContext:Landroid/content/Context;

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

move-result-object v10

const-string v11, "toggles_chooser"

const v12, 0x0

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

move-result v10

const v12, 0x1

if-eq v10, v12, :cond_themes5

const v12, 0x2

if-eq v10, v12, :cond_green

const/4 v7, 0x0

const/4 v2, 0x0

const v3, 0x7f0a00ea

const v4, 0x7f0201f8

const v5, 0x7f0201f7

const v6, 0x7f0201f6

move-object v0, p0

move-object v1, p1

move v8, v7

invoke-direct/range {v0 .. v8}, Lcom/android/systemui/statusbar/policy/quicksetting/QuickSettingButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IIIIII)V

goto :goto_new

:cond_themes5

const/4 v7, 0x0

const/4 v2, 0x0

const v3, 0x7f0a00ea

const v4, 0x7f021133

const v5, 0x7f021132

const v6, 0x7f021131

move-object v0, p0

move-object v1, p1

move v8, v7

invoke-direct/range {v0 .. v8}, Lcom/android/systemui/statusbar/policy/quicksetting/QuickSettingButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IIIIII)V

goto :goto_new

:cond_green

const/4 v7, 0x0

const/4 v2, 0x0

const v3, 0x7f0a00ea

const v4, 0x7f021101

const v5, 0x7f021100

const v6, 0x7f0210ff

move-object v0, p0

move-object v1, p1

move v8, v7

invoke-direct/range {v0 .. v8}, Lcom/android/systemui/statusbar/policy/quicksetting/QuickSettingButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IIIIII)V

:goto_new[/COLOR]
.line 69
new-instance v0, Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton$1;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton$1;-><init>(Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;)V

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;->mIntentReceiver:Landroid/content/BroadcastReceiver;

.line 89
iput-object p1, p0, Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;->mContext:Landroid/content/Context;

.line 90
invoke-virtual {p0, p0}, Lcom/android/systemui/statusbar/policy/quicksetting/QuickSettingButton;->setListener(Lcom/android/systemui/statusbar/policy/quicksetting/QuickSettingButton$Listener;)V

i lost again wifi toggle and got this

W/dalvikvm( 2348): VFY: tried to get class from non-ref register v0 (type=0)

W/dalvikvm( 2348): VFY: rejecting opcode 0x6e at 0x0002

W/dalvikvm( 2348): VFY: rejected Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;.<init> (Landroid/content/Context;)V

W/dalvikvm( 2348): Verifier rejected class Lcom/android/systemui/statusbar/policy/quicksetting/WifiQuickSettingButton;

W/STATUSBAR-QuickSettingPanel( 2348): WifiClassNotFoundException

i'm on the right way or not?