yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy W I8150] :
Ok Sir Tested It. Sorry for the late reply got busy with clients training and all. Sorry.

Now after this test.smali file I got SystemUI error but not as earlier.

Earlier it used to be just after the reboot before signals used to show but now everything on statusbar gets updated and then systemUI crashes.

But strange thing is that the log still says same error.

Here is the attached log for that crashes.

EDIT:- Sir in log its say something related to PhoneStatusBar$22.smali. And it doesn't have anything related to UserProfile.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
to disable User Profile and volume Slider feature

I removed these two lines from you method MakeStatusBarView

The systemUI should not crash, User profile & Volume slider is also still there in the status bar but disabled

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

invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setQuickPanelUserButtonInfo()V
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
My Next Mods :)
[Samsung Galaxy W I8150] rockernaxo:
Great master!!!!! All of us are waiting for slide version:o:o:o

I've been checking the options about carrier label and realised that changing its name it's not supported, like in the original.

I've also made some investigation and all visibility options may be related with the method mTrackingView.

Any idea about how does it work? My knowledge is a bit limited in smali field.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
here : [MOD][CM10] 5 Tabs SystemUI ( Notification, Toggle, Slider, Apps list, Recent list )
[Samsung Galaxy W I8150] rockernaxo:
Incredible work!!! Hoping guide update :D:D

However, I was not referring to it, I meant what the screenshot shows; the other TabNGrid features.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
sure , I'll write the guide when I already have my free time ,.:)

btw, can you explain it more specific detail bro
[Samsung Galaxy W I8150] rockernaxo:
In the original serajr`s mod, the settings app has some extra features, there are four tabs of options (see the screenshots). Sorry if the images are too big, I'm on tapatalk and can't control the size.

Several of this features are related to carrier label. Could all these options be implemented in some way?

Enviado desde mi LT26i usando Tapatalk 4
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
I done it , but to CM9 not CM10 (fcs)

In CM10 ,I remove unnecessesarry settings/tab from systemui preference.;)
[Samsung Galaxy W I8150] rockernaxo:
I'd like to implement those options too. Would be possible to include it in CM10? Is it very difficult?

I've seen several methods in PhoneStatusBar.smali about this (also some differences in SystemUIService.smali) and most of them refer to TrackingView.smali which doesn't exist in CM10. In some lines it's subsituted by StatusBarWindowView and CarrierLabel in others. I've edit some of them but doens't work; it's a huge amount of code:confused:

What should I do? Copying TrackingView smalies?
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
I think Aokp JB and slimbean JB is great start ..
[Samsung Galaxy W I8150] regiesoriano:
this is my first post here @ xda-developers.com, and I would like to thank Master ADI for this wonderful tutorial.

I managed to pull this off on a dual-SIM Qualcomm phone and here are my screenshots :D

also, I would like to ask regarding one of my screenshots. that blue line across the brightness, timeout, and rotation toggles is the layout bound of the notifications on the other page. the problem is that I cannot scroll up my toggles when I start scrolling from within that area. How do I prevent that layout area from being present on the toggles view.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
try this but not sure, you must fight the layout. :)

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/data_switch_container" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_margin="5.0dip">

and

<LinearLayout android:orientation="horizontal" android:id="@id/apn_switch_container" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_margin="5.0dip">
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
you will find almost similar like that, and adapt it :)
[Samsung Galaxy W I8150] regiesoriano:
I tried your xml code but still no luck. actually that layout is for the USB debugging and USB storage on the notifications while plugged into a PC. whatever notification is there, the layout is present on the toggles page so when you have a lot of notifications, it is very difficult to scroll up.

is this present on your CM10 mod? I have a strong feeling that it is related to JB's expanding notifications because it only affects downward gesture for scrolling up.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
No I don't find it on CM10..

Or you can try to move line scrollview android="@id/div_bottom..until scroll view that contain notification to outside ViewFlipper layout..

Sorry am on mobile can't give screenshot lines
[Samsung Galaxy W I8150] greedisgood99999:
it is hard to make..so sad..i already have a quicksettings and volume slider..can you make it simple on how to make volume slider a seperate panel..just that and its ok for me..Lidroid doesn't seems to work on my phone..im reffering to your guide of how to port lidroid to non samsung device..my brain is totally bleeding..:crying:
[Samsung Galaxy W I8150] regiesoriano:
I tried that but unfortunately, the problem is still there. Can't seem to find the problem. I tried using statusbar_expanded.xml from Nexus S' but it didn't help. the NotificationRowLayout.smali from Nexus S and my ROM seems to identical that's why I don't understand why the notification items' layout persist on the other page.

Is it possible that I missed a few of the viewflipper's registers on the smali, but got it working somehow?

anyways, it's not a big deal. thanks bro.
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
I'll update my guide bro, I have new code for perform collapse ( JB 4.2 Behaviour which is always viewing Notification panel when we pulldown the tray instead other panel view ) may be this will solve your problem.. and btw for missed register will causing systemui fcs not error
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
ADDED ADDITIONAL FIX CODE FOR

.method performCollapse()V

The code will fix the pulldown behaviour which will always viewing/revert to Notification panel instead of other panel when we pull down tray.

http://xdaforums.com/showpost.php?p=44644594&postcount=12
[Samsung Galaxy W I8150] Adi Aisiteru Reborn:
Bro, this is not a copy paste guide,. this is Porting guide, so you must working hard to adapt all code to your device
[Samsung Galaxy W I8150] NuriJ:
[MENTION=5204709]Adi Aisiteru Reborn[/MENTION]

Thanks for this. I've tried to port it again from scratch using this guide.. Any idea what this error is about?

[ 09-01 19:07:48.148 2010: 2010 E/AndroidRuntime ]

FATAL EXCEPTION: main

java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.RuntimeException: java.lang.ClassNotFoundException: 5.0dip

at android.app.ActivityThread.handleCreateService(ActivityThread.java:2394)

at android.app.ActivityThread.access$1600(ActivityThread.java:138)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:213)

at android.app.ActivityThread.main(ActivityThread.java:4787)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)

at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:110)

at dalvik.system.NativeStart.main(Native Method)

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: 5.0dip

at com.android.systemui.SystemUIService.chooseClass(SystemUIService.java:58)

at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:83)

at android.app.ActivityThread.handleCreateService(ActivityThread.java:2384)

... 11 more

Caused by: java.lang.ClassNotFoundException: 5.0dip

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

at com.android.systemui.SystemUIService.chooseClass(SystemUIService.java:56)

... 13 more

This bug is fixed in my port.. I will post how to fix it in a few days ;)
[Samsung Galaxy W I8150] :
Brother,

If you ate asking for some help then please upload your ful log file. And these error ate stating that you missed some Shalu files that need to be added in systemui/smali....

Likhe that only.

"" Hitting Thanks Will Not Cost You Anything, So, Why Don't You Try Hitting It Once.....""

Sent While Checking The "AMOI 4.2.2 Beast".....
[Samsung Galaxy W I8150] rockernaxo:
Looking forward to this fix. You're a great contributor for Xperia community.

I've achieved to port the mod successfully to Xperia S. If you want to check my files, no problem ;)

Enviado desde mi LT26i usando Tapatalk 4
[Samsung Galaxy W I8150] regiesoriano:
looking forward to your fix [MENTION=4355937]NuriJ[/MENTION]. thanks bro!
[Samsung Galaxy W I8150] NuriJ:
Hey, I don't think it would make a difference, but here it is..

View attachment logcat.txt

Thanks for the help
[Samsung Galaxy W I8150] :
Sorry for bothering you again Sir, but the log you provided have no information other than the line saying the UID changed to sharedUID of SystemUI. Its actually something that services.jar is not able to verify it and throwing a Java IO Exception error. But the error you mentioned in your earlier post was different and it was saying some class not found error, which directly means that some smali was not added.

BTW Sir, you can try patching the verification of the services.jar; Its one of the bothering thing in AOSP ROMs when there is a edit in manifest.xml so we also patch it every time when modding few things, specially the "SystemUI".

And one more thing Sir, I don;t what kind of log is this as it doesn't have any info. If possible try logging through ADB Logcat helper. It given all informations related to crash/VFY/System Error.
[Samsung Galaxy W I8150] NuriJ:
Thanks for the help bro..

I know, when you edit the manifest you break the whole signature.. Do you know, how to patch services.jar for verification?

Yeah, "ClassNotFoundException" should mean that something is missing, but i don't know what.. Could be .smali files but i have already checked them.. Will try everything again later..

Never heard of ADB Logcat Helper, i'll try that.

Btw, it is the same log.. I catched it from that. Look at line 20910 in a text editor.

---------- Post added at 09:01 PM ---------- Previous post was at 08:30 PM ----------

Np, but not my fix..

peetr_ from the Xperia T forum fixed it by editing PhoneStatusBar and ExpandedHelper.smali :)
[Samsung Galaxy W I8150] peetr_:
Swipe down above notification fix

Phonestatusbar.smali -

Create new static field above instance fields

# static fields
.field public static mQuickPanel:Z

At the end of .method flipToQuickPanel()V put 1 into this field

const/4 v0, 0x1

sput-boolean v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQuickPanel:Z

At the end of .method flipToNotifications()V put 0 into this field

const/4 v0, 0x0

sput-boolean v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQuickPanel:Z

ExpandHelper.smali -

In .method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z,

find this pswitch_x (theoretically could be any number)

:pswitch_x
iget-object v6, p0, Lcom/android/systemui/ExpandHelper;->mScrollView:Landroid/view/View;

int-to-float v7, v2

int-to-float v8, v4

invoke-direct {p0, v6, v7, v8}, Lcom/android/systemui/ExpandHelper;->isInside(Landroid/view/View;FF)Z

move-result v6

iput-boolean v6, p0, Lcom/android/systemui/ExpandHelper;->mWatchingForPull:Z

.line xxx
iput v4, p0, Lcom/android/systemui/ExpandHelper;->mLastMotionY:I

goto :goto_x

get the state of the mQuickPanel:Z field

if it is not zero, skip whole pswitch and jump to :cond_x (cond_x jumps to the same part of code as goto_x

:pswitch_x
sget-boolean v10, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQuickPanel:Z

if-nez v10, :cond_x

Of course, if you use new register (v10), increase number of .locals in method
[Samsung Galaxy W I8150] rockernaxo:
Take a look to my code ;)

Rename the file to .smali and search for the method onInterceptTouchEvent

Remeber to increase locals
[Samsung Galaxy W I8150] regiesoriano:
thanks for the help bro. our .method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z is identical so it was never that hard to adapt the code. :D
[Samsung Galaxy W I8150] dulemilosevski:
help for this error

SystemUI.apk and framework-res.apk
[Samsung Galaxy W I8150] rockernaxo:
¿Xperia? See my post here I hope it helps.

Also revise the register numbers in MakeStatusBarView method, they might not be adapted well ;)
[Samsung Galaxy W I8150] dulemilosevski:
yes xperia sp and i have remove sonymobile smali folder
[Samsung Galaxy W I8150] NuriJ:
Don't remove sonymobile folder.. It will conflict PhoneStatusbar.smali. If you don't want the sony toggles, set android:visibility="gone" in /res/layout/status_bar_expanded_header;

Like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:id="@id/tools" android:background="@drawable/statusbar_tools_button_frame" android:paddingTop="1.0dip" android:paddingBottom="1.0dip" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="57.0dip" />

.. .. (rest of the file) . . .. ..
[Samsung Galaxy W I8150] dulemilosevski:
same error :crying:
[Samsung Galaxy W I8150] NuriJ:
"E/AndroidRuntime( 852): java.lang.VerifyError: com/android/systemui/statusbar/phone/PhoneStatusBar"

This looks more like wrong codes/bad edits in PhoneStatusBar.smali.. Try copy original PhoneStatusBar and start editing from scatch.
[Samsung Galaxy W I8150] dulemilosevski:
tanks but i dont understand and i not have experienced in coding
[Samsung Galaxy W I8150] knightzero07:
I might try this in case the nexus rom fails in my unit ^_^

Thanks for the tutorial. This is what i've been looking for.
[Samsung Galaxy W I8150] Omar1c:
Thanks adi this is one of the most unique mods because there no need to go to settings anymore lol
[Samsung Galaxy W I8150] blackcoffeez:
compiling without any errors..but the toggles wont show up..i skip editing androidmanifest coz i've no idea how to sign stok LG system apps..is this could be the reason??

sent from Optimus L7 official Jelly Bean
[Samsung Galaxy W I8150] :
Thanks & Congratulations - Adi Aisiteru Reborn

@Adi Aisiteru Reborn

Sir,

First of all a warm Good Morning and Whole Heart Full of thanks to you Sir. Because of your Guides and MODs, I have came upto this. Honestly saying Sir,I know you are the person deserving the title of mine, its not actually mine its yours.

And Now Congratulation to you Sir. Now your guides are also focused on the XDA Portal.

Just Click on the Image Sir, It will take you to the portal. Once again, we all are thankful for the guides, mod and help you have given to us.
[Samsung Galaxy W I8150] gomzee1024:
sir first of all thanks a lot for providing such a great guide,its what i was waiting for thank u very much sir!:good:

sir getting this error while 1st time compilation of systemui,please sir suggest me something
[Samsung Galaxy W I8150] thirdzcee:
A simple error you have for now, Your missing buttons_bar in ids.xml, 1st time modding??? This guide is pretty advanced stuff... You better be starting off with a few basic mods first then advancing to more complex guides, thats just my tip, and no im not trying to put you off from this, i am just assuming since any advance modder will be able to identify and correct that error without the need of consulting the op, another tip, learn how to understand logcats, it will totally help you in any future mod that will result in systemui or any other app force closing after applying a mod
[Samsung Galaxy W I8150] manuelz31:
help!

GoodMorning sir!, First of all, thank you for this wonderful thread!, first, i tried your Tabbed Settings, and It worked like a miracle!!, thanks because you helped me a lot! so im trying to port this too because i know it will work on my device just like the tabbed settings!.. but i have a problem with this step, im stucked.. i dont get it.. xD sorry.. this "but you must adapt the register number v0 and v5 with yours"
[Samsung Galaxy W I8150] joeyhuab:
Question

Sir after successfully following your guide, my carrier label doesn't show up anymore. Any way to fix that?
[Samsung Galaxy W I8150] happiness4u:
I just wish it was more organize.

Good guide indeed, but could've been much better. I think it will be much more of help if you'd put a more itemized and organized guide. Like "What lines or codes leads to what". It should be like, "TO ADD TILEVIEW, ADD THIS 'LINE/CODE' TO THIS FILE and so on..." Something like that. Some people doesn't want some of the features in this mod, like lidroid, tabbed sliders, etc, and most are not that good on parsing or identifying those codes. Just a suggestion.
[Samsung Galaxy W I8150] thirdzcee:
[MENTION=5204709]Adi Aisiteru Reborn[/MENTION] sir, im trying to do something using your guide, im trying to only get the user button to show up but somewhow it doesnt appear, i have successfully compiled with no errors, but on the statusbar the me profile button doesnt show up

heres a diff of what i did to phonestatusbar.smali

http://pastebin.com/4tCHkdy0

the meprofileobserver smali was also added

i have also already matched the id's in public.xml

and this is how i added it to statusbarexpanded.xml

<FrameLayout android:id="@id/user_button" android:background="@drawable/ic_user" android:padding="2.0dip" android:layout_width="0.0dip" android:layout_height="107.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/user_button_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_user" android:scaleType="centerCrop" />
<TextView android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/user_button_text" android:background="#cc000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/user_button_label" style="@style/TextAppearance.QuickPanel.TextStyle" />
</FrameLayout>

am i missing something? i just want to have an image of my picture in the statusbar that i can change just by changing my profile in my contacts :D

PS. some parts are from the volume sliders
[Samsung Galaxy W I8150] ryanfebriyadi:
need help

Sir Adi,,can U port the guide to non Samsung 4.1.x phone? I have Smartfren Andromax C,, I have tried to mod my SystemUI (no error when compilling) but it got FC after I flashed it..sorry for my bad English..

thx in advance
[Samsung Galaxy W I8150] lozohcum:
Can't someone just take CM10, port those tabs and upload universal mod for all CM10?

okay I found it here:

http://xdaforums.com/showthread.php?t=2394541
[Samsung Galaxy W I8150] Sudeep Duhoon:
E/dalvikvm(613): Could not find class 'com.android.systemui.statusbar.phone.PhoneStatusBar$28', referenced from method com.android.systemui.statusbar.phone.PhoneStatusBar.<init>

W/dalvikvm(613): VFY: unable to resolve new-instance 564 (Lcom/android/systemui/statusbar/phone/PhoneStatusBar$28;) in Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

E/AndroidRuntime(613): java.lang.NoClassDefFoundError: com.android.systemui.statusbar.phone.PhoneStatusBar$28

E/AndroidRuntime(613): at com.android.systemui.statusbar.phone.PhoneStatusBar.<init>(PhoneStatusBar.java:3012)

E/AndroidRuntime(613): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:86)

E/AndroidRuntime(613): at com.android.systemui.SystemUIService.onCreate(Native Method)

Renamed PhoneStatusBar$31.smali to PhoneStatusBar$28.smali and so on. (As mentioned in guide)

Getting force close.

Any help?

Trying on stock 4.1
[Samsung Galaxy W I8150] Deichz:
first of all thanks dude for your guide :good: :D

i get this error while recompiling

I: Checking whether sources has changed...
I: Smaling...
Ignoring duplicate direct method definition: Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateUserButtonImage(Landroid/widget/ImageView;)V
Ignoring duplicate direct method definition: Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateUserButtonText(Landroid/widget/TextView;)V
I: Checking whether resources has changed...
I: Building resources...
D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\status_bar_expanded_header.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/buttons_bar').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Aldo\AppData\Local\Temp\APKTOOL8625298476114357566.tmp, -0, arsc, -I, C:\Users\Aldo\apktool\framework\1.apk, -S, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Aldo\AppData\Local\Temp\APKTOOL8625298476114357566.tmp, -0, arsc, -I, C:\Users\Aldo\apktool\framework\1.apk, -S, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Aldo\AppData\Local\Temp\APKTOOL8625298476114357566.tmp, -0, arsc, -I, C:\Users\Aldo\apktool\framework\1.apk, -S, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, D:\Aldo\APK\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:404)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.

i dont know whats wrong
[Samsung Galaxy W I8150] yogeshdrew:
micromax canvas A88 systemUI.apk mod for transpereny?

can any one mod systemUI.apk of canvas A88 for complete transperency in status bar and in notification pannel ???

plz help me guys.....

thanks in advance :)