yashsingh1/xdaforums huggingface dataset:
[Android Themes] saldymhmd:
Okay, I'm trying to edit statusbar_expanded.xml to be like this:

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
<TextView android:textColor="@*android:color/transparent" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>

But power widget still at the top :/
[Android Themes] SpaceCaker:
You had that line in sys ui before ?
[Android Themes] SpaceCaker:
Then its statusbarservice.smali

And then

Makestatusbarview method

By me on cm i can mov powerwidget th that

On stock rom i need smali

To move
[Android Themes] autoradio78:
Can you tell me the lines to be changed?
[Android Themes] saldymhmd:
Hm, seems i had same problem with autoradio78 :eek:

Yeah please, i'm not expert with smali
[Android Themes] x-dira:
how to fix bug black text in status bar?

Thanks!
[Android Themes] autoradio78:
UP for this topic..please..developers..help us modders:)
[Android Themes] FxSxKx:
carrier label problem :/

Hey guys! this is a good tutorial, thank you very much for the info! but I have a problem, as I can hide the operator name I have in red in the screenshot? :confused:
[Android Themes] saldymhmd:
on status_bar_expanded.xml, find this line:

<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />

add this code:

android:textColor="@*android:color/transparent"

---------- Post added at 03:33 AM ---------- Previous post was at 03:31 AM ----------

Hmm, imho its because the theme you had use, try change another theme, it is still on black text ?
[Android Themes] x-dira:
bug black text..............because is textcolor transparent dateview:o
[Android Themes] saldymhmd:
sorry i can't get what you mean :|
[Android Themes] vikasb32:
open statusbar.xml

find this line

<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />

(line33)

change to this

<TextView android:textcolor="#ffffffff" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />

also find this line

<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />

(line34)

change to this

<TextView android:textcolor="#ffffffff" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
[Android Themes] b16h22:
Bro,you could've put the link to the original thread for adding settings shortcut to statusbar.:(

http://xdaforums.com/showthread.php?t=1899698
[Android Themes] x-dira:
Hi ! thanks

but........compile error?

how to move the clear button to the right side?

Thanks!
[Android Themes] b16h22:
Use relative layout and put android:layout_alignParentRight=true in clear button code to move clear button to right.
[Android Themes] vikasb32:
Compile error give logcat.
[Android Themes] Qeemi:
How I can fix it?

Carrier name is vertical and not horizontal :\
[Android Themes] x-dira:
C:\Users\Hoang\Desktop\APK Tool 1.4.3\SystemUI\res\layout\status_bar.xml:33: err
or: No resource identifier found for attribute 'textcolor' in package 'android'
C:\Users\Hoang\Desktop\APK Tool 1.4.3\SystemUI\res\layout\status_bar.xml:34: err
or: No resource identifier found for attribute 'textcolor' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Hoang\AppData\Local\Temp\A
PKTOOL5504096676963525002.tmp, -I, C:\Users\Hoang\apktool\framework\1.apk, -S, C
:\Users\Hoang\Desktop\APK Tool 1.4.3\SystemUI\res, -M, C:\Users\Hoang\Desktop\AP
K Tool 1.4.3\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Hoang\AppData\Local\Temp\APKTOOL5504096676963525002.tmp, -I, C:\Users\Hoang
\apktool\framework\1.apk, -S, C:\Users\Hoang\Desktop\APK Tool 1.4.3\SystemUI\res
, -M, C:\Users\Hoang\Desktop\APK Tool 1.4.3\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\Users\Hoang\Desktop\APK Tool 1.4.3><TextView android:textcolor="#ffffffff" an
droid:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:la
yout_width="fill_parent" android:layout_height="wrap_content" android:singleLine
="true" />

:eek:

code transparent datview

---------- Post added at 09:02 PM ---------- Previous post was at 08:59 PM ----------

delete line :D:silly::p

<com.android.systemui.statusbar.CarrierLabel android:textAppearance="?android:textAppearanceLarge" android:textColor="@color/carrier_label_text_color" android:layout_gravity="center_vertical" android:paddingLeft="4.0dip" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
[Android Themes] Qeemi:
Thanks a lot :P

Now I have carrier label at bottom and I want to add a background.

Can be a normal png or a .9.png?
[Android Themes] SpaceCaker:
Just changed it to #0000000

Then it will use the bakground u used for whole tracking part
[Android Themes] Qeemi:
And If I want to put the toggle under the date?

I need to edit status_bar_expanded.xml right?

How?

Thanks in advance

EDIT: I writed android:background="#000000"

Now I've a black background in Carrier Label :\
[Android Themes] autoradio78:
Which cyanogenmod 7 you use? Can you attach SystemUI.apk?

Thanks;)
[Android Themes] SpaceCaker:
add 00000000
[Android Themes] autoradio78:
?????

Inviato dal mio GT-S5570 con Tapatalk 2
[Android Themes] cyberangel22k:
can someone tell me what i've done wrong?

decompiled SystemUI.apk using apktool

changed what needed to be changed

compiled SystemUI.apk

signed in with signAPK

pushed the signed SystemUI.apk to /system/app

rebooted to recovery

fixed permissions

rebooted system

result: no status bar...

Edit: tried to push the unsigned but no luck too?
[Android Themes] autoradio78:
system apk (framework, SystemUI etc) do not must to sign:)
[Android Themes] saldymhmd:
Hmm, you can use my steps when editing systemui&framework-res, here

1. Decompile the .apk 'apktool d SystemUI.apk'

2. Change whatever you want

3. Compile it again, with this command: 'apktool b SystemUI newSystemUI.apk'

4. You will see the new compiled SystemUI named 'newSystemUI.apk' on your current folder

5. Open the ORIGINAL SystemUI.apk and newSystemUI.apk with 7zip/Winrar/etc, dont extract

6. Copy META-INF and android-manifest.xml from ORIGINAL SystemUI.apk to newSystemUI.apk (just drag&drop)

7. Everything was done, push the newSystemUI.apk 'adb push newSystemUI.apk /system/app/SystemUI.apk'
[Android Themes] mr-tical:
hjkhjkhjkhjk

I tried this and now my statusbar is gone.

1 question: where to paste this new code, because it is not clearly written.

I've pasted here

Now after back to original SystemUI and clear dalvik and cache still no statusbar :(

Can anyone help where to paste this code or make this with SystemUI from me?

Thanks.
[Android Themes] virajjjj:
hey i am getting a error while compiling the SystemUI.apk and all i am doing wrong is in smali section. So if any one can upload the completely compiled SystemUI.apk , it will be great favour.
[Android Themes] bhupatib:
How to remove clock display?

This is a great mod!

But can you please tell me how to remove only the clock display? Which lines to edit/remove in the smali? I have re-included the StatusBarJellyHeaderView.smali file from the OP.

I know we can hide the clock in the top by replacing in StatusBarPolicy.smali with this line -

invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V

invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V

But I want to do it the other way, that is, how to remove the Time clock from this mod keeping only the Date.
[Android Themes] cyberangel22k:
this worked for me.. at first boot I thought it didn't work because my status bar is still missing but after about 30-60 seconds it appeared but no icons. so i went to my terminal emulator to prompt a notification and "poof"... there goes my status bar again... still haven't checked if the MOD worked because I can't draw my notifications... (faulty digitizer that needs to be replaced) once I get to draw my notifications I will post my feedback... Thanks for this, it's a great help for me as a newbie...:good:
[Android Themes] pradeepjoshua:
Help me guys :)

i have been trying for the past three days to do this on my apocalypse rom and i haven't succeeded :( please can anyone mod my systemUI.apk and post it..plz guys anyone!! i'll be thankful to you :)
[Android Themes] cyberangel22k:
Ok.. managed to mod everything except the settings and the provider at the bottom...

setting button shows up but no interaction (maybe my faulty digitizer)

FC when applying the network provider mod...
[Android Themes] mr-tical:
Network speed on statusbar too? I'm askin because i have problems with that.
[Android Themes] autoradio78:
Any dev..for smali mod..??

This is a logcat when I try to move via xml notification power widget in a statusbar:

12:36:04.788 Error AndroidRuntime 1426 FATAL EXCEPTION: main
12:36:04.788 Error AndroidRuntime 1426 java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
12:36:04.788 Error AndroidRuntime 1426	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2076)
12:36:04.788 Error AndroidRuntime 1426	at android.app.ActivityThread.access$2500(ActivityThread.java:123)
12:36:04.788 Error AndroidRuntime 1426	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
12:36:04.788 Error AndroidRuntime 1426	at android.os.Handler.dispatchMessage(Handler.java:99)
12:36:04.788 Error AndroidRuntime 1426	at android.os.Looper.loop(Looper.java:130)
12:36:04.788 Error AndroidRuntime 1426	at android.app.ActivityThread.main(ActivityThread.java:3835)
12:36:04.788 Error AndroidRuntime 1426	at java.lang.reflect.Method.invokeNative(Native Method)
12:36:04.788 Error AndroidRuntime 1426	at java.lang.reflect.Method.invoke(Method.java:507)
12:36:04.788 Error AndroidRuntime 1426	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
12:36:04.788 Error AndroidRuntime 1426	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
12:36:04.788 Error AndroidRuntime 1426	at dalvik.system.NativeStart.main(Native Method)
12:36:04.788 Error AndroidRuntime 1426 Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
12:36:04.788 Error AndroidRuntime 1426	at android.view.ViewGroup.addViewInner(ViewGroup.java:1976)
12:36:04.788 Error AndroidRuntime 1426	at android.view.ViewGroup.addView(ViewGroup.java:1871)
12:36:04.788 Error AndroidRuntime 1426	at android.view.ViewGroup.addView(ViewGroup.java:1828)
12:36:04.789 Error AndroidRuntime 1426	at com.android.systemui.statusbar.StatusBarService.updateLayout(StatusBarService.java:507)
12:36:04.789 Error AndroidRuntime 1426	at com.android.systemui.statusbar.StatusBarService.makeStatusBarView(StatusBarService.java:461)
12:36:04.789 Error AndroidRuntime 1426	at com.android.systemui.statusbar.StatusBarService.onCreate(StatusBarService.java:285)
12:36:04.789 Error AndroidRuntime 1426	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2066)
12:36:04.789 Error AndroidRuntime 1426	... 10 more
[Android Themes] josemaesra:
My clear button does not display properly,

please,can someone tell me how to fix it,

thank you very much.
[Android Themes] samsoul16:
In clear button code in layout-width and layout-height put "wrap_content"
[Android Themes] josemaesra:
Thank you very much, but I have not worked :crying:
[Android Themes] mustafah822000:
that's what I need, thanks for the tutorials
[Android Themes] tarkin88:
I need some help, i want to add a clear button and settings on status bar, but, when i follow the guide, have some troubles, because, not have some files, if someone want to help me i add my files system and framework. please :3
[Android Themes] bhupatib:
I have mixed the ICS layout by AChep along with the JB date-time method mentioned in this thread. The result is like this -

You can go to this thread for my tweaked SystemUI and other mods+theme for the (almost) complete JB look :)
[Android Themes] samsoul16:
Can I get a link to achep 's thread
[Android Themes] geovanehenry:
Friend, I'm sorry, but I add the code below or above iput v5? sorry for my english.
[Android Themes] GenisonPedro:
I did exactly this, I pasted the code below the iput v5, p0, Lcom/android... and changed all StatusBarService$8 to StatusBarService$10, but have failed to rebuild the SystemUI.apk.

Could show you how was your code?
[Android Themes] GenisonPedro:
I managed to compile without errors, the error here was being:

.field private mSettingsButListener:Landroid/view/[COLOR="Red"]View$. OnClickListener;[/COLOR]

I removed the point and space

iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/[COLOR="Red"]View $OnClickListener;[/COLOR]

iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/[COLOR="red"]View $OnClickListener;[/COLOR]

I removed the space

[COLOR="red"]return-void.[/COLOR]

I removed the point, but now I'm getting FC on the statusbar...Any solution?
[Android Themes] SpaceCaker:
if you use long logcat or debug com.android.systemui you can see in what smali and what line and halfly you can see whats causing the fc
[Android Themes] GenisonPedro:
Looks like it was here in my, how do I fix this?!
[Android Themes] josemaesra:
succeeded,

thank you very much for the tutorial :good:
[Android Themes] cyberangel22k:
managed to compile without errors

here's my result

-settings button appeared but cannot access it

-clear button icon didn't change instead it moved to the left..

anyone can help me out..?

also, how can I remove the date in the status bar?

---------- Post added at 01:21 PM ---------- Previous post was at 12:47 PM ----------

I tried this, no compile errors but still I can't access the settings button but the icon is there...
[Android Themes] lokeshsaini94:
hey i want to mod my status bar to look like jelly bean, can you hint me what i should edit to archive these...

1. move togle buttons down and status bar expanded up...

2. remove status bar icons part or make date cover whole status bar top as in your status bar...

i don't ask for complete step by step gide just few hints...

thank you...

like this
[Android Themes] Sachintha chaminda:
help me please

can't anyone please make this systemui.apk for me i don't have a pc . I tryid it using my mobile but failed.
[Android Themes] pabloltg:
I need help here..

Thanks in advance..
[Android Themes] pkprasanna:
i really dnt get what to add do i have to change v7 to v5 or nothing to do????plz help
[Android Themes] cyberangel22k:
find this line in statusbar_expanded

delete that entire row that starts with that code...
[Android Themes] saldymhmd:
for people

Many people get confused :rolleyes:

Okay here, on my statusbarservice.smali :

Based on post 1, OP tells:

as you can see there's StatusBarService$8 << OP attach .zip that contains StatusBarService$8.smali.

On my phone, there's already 'StatusBarService$8' on smali\com\android\systemui\statusbar (if you had this, follow my steps) rename the 'StatusBarService$8.smali from the zip file into 'StatusBarService$10.smali, done. Edit StatusbarService$10.smali with notepad++ and use the find&replace tools. Find 'StatusBarService$8' then replace with 'StatusBarService$10' . Save it, put on smali\com\android\systemui\statusbar

and so, that code above need to be changed to be like this :

and for the

OP says if its not v7, change to v8 but i can't find it. So, i just CTRL+F the:

and i've found :

You see that ? On me its v5, and i didn't change anything. So, below this code i just paste this:

Hope this will help all people. If u still confused just ask me. Sorry if this post is too long :p

Edit: Attached my StatusBarService.smali
[Android Themes] pkprasanna:
thanx so much but after compiling i pushed to its place and after reboot status bar wasnt present i copied meta-inf and android menifest from old apk to modded apk i also tried to run many apps terminal but it never appeared back :(
[Android Themes] saldymhmd:
the statusbar force close or not ?
[Android Themes] NRG001:
what font did you use? :D
[Android Themes] pkprasanna:
yeah when i copy system ui.apk to system/app force closes come but after reboot they dnt come and status bar dnt come

and after that to get my status bar back i copy my old systemui.apk to system/app then after copying done no force closes come strange o.O
[Android Themes] pabloltg:
The clear button is bad, it widens.

How I can fix it?

I have HDPI device.
[Android Themes] saldymhmd:
Hmm, maybe you did some mistakes when editing the SystemUI.apk :confused:

---------- Post added at 12:47 AM ---------- Previous post was at 12:44 AM ----------

Try attached .9.png, this is from autoradio78 so give thanks to him
[Android Themes] pkprasanna:
ok i didnt install the framework was it needed and yes when apk manager asks aside from signature do you want to copy file that didnt modify what to press there
[Android Themes] cyberangel22k:
thanks for this guide. I think it's just the way I did.. The settings button appeared but no access or response.. maybe I missed something, I will try it again later to see when I get to the pc... Thanks again..
[Android Themes] pkprasanna:
finally i found problem that when i copy statusbarservice$10.smali and i compile after that i decompile the new apk and i see that statusbarservice$10.smali is missing all editing is as as i did but that copied file missing any solution

plz someone help me out i cant understand why it is getting deleted

if someone wants i can provide my modded and original systemui apks
[Android Themes] cyberangel22k:
I don't know if it's just me... Did everything as it should be and everything went fine. The button is there but it doesn't work.. who needs a button that doesn't work?

even tried to just add the whole StatusBarSevice.smali that saldymhmd uploaded but still it doesn't work..

does it really work or it just displays the settings icon?
[Android Themes] lokeshsaini94:
anyone???
[Android Themes] saldymhmd:
noooo don't copy the whole StatusBarService.smali from me, just use for compare with yours. Did you follow the tutorial carefully ? its really work and not just fake button.
[Android Themes] pkprasanna:
saldymhmd ok finally i managed to get statusbarservice$10.smali in compiled apk but now as you asked it gives me fc on every reboot plz help me on this now i m very near n i dnt want to say no to this theme

plz help me asap
[Android Themes] saldymhmd:
it strange, me never get statusbar force close when following this tutorial and i think i was the lucky one cz for the first time i'm doing this and thats working, no error :rolleyes:

wondering is that all people who get error on statusbar is follow the steps carefully or not. for first just edit statusbar_expanded.xml modify string.xml and ids.xml. Compile SystemUI.apk, push it on your phone, see if the settings button appear or not. if it appear proceed to .smali edit

---------- Post added at 09:48 PM ---------- Previous post was at 09:40 PM ----------

I also looking how to get these, but still can't get it till now. Its coded on smali i think :(

please themer we need help how to get it
[Android Themes] pabloltg:
Finally everything works fine!

Now, What I should do for this notification style?
[Android Themes] SpaceCaker:
find the dateview line

change textsize to 0.0000999999dip

and change textsize to

#00000000 or woth some more 0s
[Android Themes] pkprasanna:
thx i will try and report you

and for status bar like that why dnt you try to read modification done by gingerdx
[Android Themes] SpaceCaker:
or download this theme http://xdaforums.com/showthread.php?t=1948413

and check the statusbar.xml for hiding the dateview
[Android Themes] lokeshsaini94:
Thanks i will try it tommorow on my pc...

any idea about other mods???
[Android Themes] saldymhmd:
maybe you should mod to be like mine :p
[Android Themes] lokeshsaini94:
Hey... i saw a rom for galaxy pocket which had tabs in status bar(toggles and notification) like on new jelly bean 4.2...

it was gingerbread rom... i asked op about it but no responce from him...

tommorow i will download rom and look what he did...

Like this...
[Android Themes] godlesplay:
I want it for my Spica, how can I do it ?
[Android Themes] pabloltg:
beautiful, what theme you use? or is a complete overhaul of the framework and UI? :p

How you remove the above date?
[Android Themes] cyberangel22k:
yup.. i've done everything you said... but I still can't use the button.. would you mind take a look on my SystemUI.apk?
[Android Themes] cyberangel22k:
that was just my theme.. no mod was done... I used this theme:

http://xdaforums.com/showpost.php?p=21994937&postcount=1
[Android Themes] fchaster:
anyone can help me to aply this all patch ?

i dont understand ,this is to dificult for me ,
[Android Themes] pkprasanna:
noo it didnt apeeared but i m sure that i havent make any mistake :(:(

saldymhmd did you follow ths guide or made your own some correction plz help me here dnt know what is problem but i m only able to get speed in status bar and carrier at down else nothing working no date no clear button no settings shortcut

if you have corrected this guide or make your own correction plz post that guide on xda so i m able to do this \

plz help me