[Galaxy S II Android Development] Many40:
Thanks, maybe I didn't express myself good enough :) To find the corresponding lines is not difficult but to interpret them and find a real culprit which caused the crash - that's IMO another story ...

That's what I got:

12-04 21:20:59.155 5783 5783 E AndroidRuntime: FATAL EXCEPTION: main
12-04 21:20:59.155 5783 5783 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.app.ActivityThread.handleCreateService(ActivityThread.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.app.ActivityThread.access$1700(ActivityThread.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.os.Looper.loop(Looper.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at java.lang.reflect.Method.invokeNative(Native Method)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Method.java:511)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at dalvik.system.NativeStart.main(Native Method)
12-04 21:20:59.155 5783 5783 E AndroidRuntime: Caused by: java.lang.NullPointerException
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.update_power_button(PhoneStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java)
12-04 21:20:59.155 5783 5783 E AndroidRuntime:	... 12 more
12-04 21:20:59.165 2331 2886 E android.os.Debug: !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error

Now I'm scratching my head about what could've gone wrong :confused::eek:......

Hmmm..... Seems a key factor is NullPointerException ......

As far as I found out, this exception occurs "when we try to use a reference that points to no location in memory (null) as though it were referencing an object. Calling a method on a null reference or trying to access a field of a null reference will trigger a NPE"

.... if this reasoning is right :confused: then it seems that my method called by this line:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->update_recents_button()V

or one of the fields I used has a null reference .....