[HD2 Android Q&A, Help & Troubleshooting and Genera] mickey-r:
ok, i'm back ...

i decompile the systemui.apk of TyphooN nand (because i use this nand ...)

i saw that the notification power button use "stat_bgon_custom.9.png" like

indicator in both state on and off.

i'm looking for "stat_bgon_custom" into files of systemui.apk and i found it

into smali\com\android\systemui\R$drawable.smali :

.field public static final stat_bgoff:I = 0x7f020027

.field public static final stat_bgon:I = 0x7f020028

.field public static final stat_bgon_custom:I = [COLOR="Red"]0x7f020029[/COLOR]

next, i'm looking for address 0x7f020029 into same files and i found it

into smali\com\android\systemui\statusbar\powerwidget\PowerButton$1.smali :

.line 130
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;

const v11, [COLOR="red"]0x7f020029[/COLOR]

invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;

move-result-object v12

invoke-virtual {v5, v11, v7, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;

move-result-object v11

invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V

.line 135
.end local v0 #buttonIcon:I
.end local v1 #buttonLayer:I
.end local v2 #buttonState:I
.end local v3 #context:Landroid/content/Context;
.end local v4 #indic:Landroid/widget/ImageView;
.end local v5 #res:Landroid/content/res/Resources;
.end local v6 #sColorMaskBase:I
.end local v7 #sColorMaskInter:I
.end local v8 #sColorMaskOff:I
.end local v9 #sColorMaskOn:I
:cond_0
:goto_1
return-void

.line 109
.restart local v0 #buttonIcon:I
.restart local v1 #buttonLayer:I
.restart local v2 #buttonState:I
.restart local v3 #context:Landroid/content/Context;
.restart local v4 #indic:Landroid/widget/ImageView;
.restart local v5 #res:Landroid/content/res/Resources;
:cond_1
const/4 v10, 0x0

invoke-virtual {v4, v10}, Landroid/widget/ImageView;->setVisibility(I)V

goto :goto_0

.line 122
.restart local v6 #sColorMaskBase:I
.restart local v7 #sColorMaskInter:I
.restart local v8 #sColorMaskOff:I
.restart local v9 #sColorMaskOn:I
:pswitch_0
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;

const v11, [COLOR="red"]0x7f020029[/COLOR]

invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;

move-result-object v12

invoke-virtual {v5, v11, v9, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;

move-result-object v11

invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V

goto :goto_1

.line 126
:pswitch_1
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;

const v11, [COLOR="red"]0x7f020029[/COLOR]

invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;

move-result-object v12

invoke-virtual {v5, v11, v8, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;

move-result-object v11

invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V

goto :goto_1

.line 120
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method

i think this portion of code is used to change the indicator display ?

my question : it is possible to replace in first case 0x7f020029 by 0x7f020027 (stat_bgoff)

and in second case 0x7f020029 by 0x7f020028 (stat_bgon) and add PowerButton$1.smali into templatebread and compile it?