[Galaxy S II Android Development] nakedninja42:
I've been trying to get the toggle working on leak ICS LD4 for sgs2 I777. I used the instructions on how to add it but it seems that every time I flash, my systemUI crashes. Logcat is not giving me much that I can understand so I am hoping smeone might know why here.

I noticed the big difference between the AT&T version vs I9100 is the carrierlabel is all over the smali edits so I need to change 0x7f0e00bc since it is in use by something else. I tried 0x7f0e00bd and made the change in the PhoneStatusBar.smali and changed const v0, 0x7f0e00bc to reflect the PhoneStatusBar.smali. I can't figure out why its crashing...

Any help would be greatly appreciated!

Logcat:

E/AndroidRuntime( 3022): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #8: Error inflating class com.android.wanam.systemui.StBar.PowerWidget

E/AndroidRuntime( 3022):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2282)

E/AndroidRuntime( 3022):	at android.app.ActivityThread.access$1600(ActivityThread.java:127)

E/AndroidRuntime( 3022):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)

E/AndroidRuntime( 3022):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 3022):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 3022):	at android.app.ActivityThread.main(ActivityThread.java:4514)

E/AndroidRuntime( 3022):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 3022):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 3022):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)

E/AndroidRuntime( 3022):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)

E/AndroidRuntime( 3022):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 3022): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.android.wanam.systemui.StBar.PowerWidget

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)

E/AndroidRuntime( 3022):	at android.view.View.inflate(View.java:13713)

E/AndroidRuntime( 3022):	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:385)

E/AndroidRuntime( 3022):	at com.android.systemui.statusbar.StatusBar.start(StatusBar.java:106)

E/AndroidRuntime( 3022):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:345)

E/AndroidRuntime( 3022):	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:93)

E/AndroidRuntime( 3022):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2272)

E/AndroidRuntime( 3022):	... 10 more

E/AndroidRuntime( 3022): Caused by: java.lang.ClassNotFoundException: com.android.wanam.systemui.StBar.PowerWidget

E/AndroidRuntime( 3022):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

E/AndroidRuntime( 3022):	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

E/AndroidRuntime( 3022):	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.createView(LayoutInflater.java:552)

E/AndroidRuntime( 3022):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)

E/AndroidRuntime( 3022):	... 21 more

E/android.os.Debug( 1997): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error

W/ActivityManager( 1997): Process com.android.systemui has crashed too many times: killing!