[Samsung Galaxy W I8150] hard91:
your post #7 (last part) is confusing

Next , scroll down still in the same method

add the blue code and adapt the red code

Code:

]const-string v8, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

invoke-virtual {v2, v8}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 457

const-string v8, "android.intent.action.SCREEN_ON"

invoke-virtual {v2, v8[/COLOR]}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 458

const-string v8, "android.intent.action.SCREEN_OFF"

invoke-virtual {v2, v8}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

const-string v8, "android.media.VOLUME_CHANGED_ACTION"

invoke-virtual {v2, v8}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 459

iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;

invoke-virtual {v0, v8, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

.line 700

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedView:Lcom/android/systemui/statusbar/phone/ExpandedView;

const v6, 0x7f0e008a

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/ExpandedView;->findViewById(I)Landroid/view/View;

move-result-object v5

check-cast v5, Lcom/android/systemui/statusbar/policy/ToggleSlider;

new-instance v9, Lcom/android/systemui/statusbar/policy/BrightnessController;

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-direct {v9, v6, v5}, Lcom/android/systemui/statusbar/policy/BrightnessController;-><init>(Landroid/content/Context;Lcom/android/systemui/statusbar/policy/ToggleSlider;)V

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBrightness:Lcom/android/systemui/statusbar/policy/BrightnessController;

.line 463

return-object v4

.line 368

.end local v2 #filter:Landroid/content/IntentFilter;

.end local v6 #signalCluster:Lcom/android/systemui/statusbar/SignalClusterView;

.end local v7 #tickerView:Lcom/android/systemui/statusbar/phone/TickerView;

:catch_0

move-exception v8

goto/16 :goto_0

.end method

whether we need to change v8,v9 with our register????

or is that just copy and paste

invoke-virtual {v0, v8, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

.line 700

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedView:Lcom/android/systemui/statusbar/phone/ExpandedView;

const v6, 0x7f0e008a

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/ExpandedView;->findViewById(I)Landroid/view/View;

move-result-object v5

check-cast v5, Lcom/android/systemui/statusbar/policy/ToggleSlider;

new-instance v9, Lcom/android/systemui/statusbar/policy/BrightnessController;

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-direct {v9, v6, v5}, Lcom/android/systemui/statusbar/policy/BrightnessController;-><init>(Landroid/content/Context;Lcom/android/systemui/statusbar/policy/ToggleSlider;)V

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBrightness:Lcom/android/systemui/statusbar/policy/BrightnessController;

no need to edit v5,v6,v9 in that part,if needed how to find v5 and v6???????