yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hard91:
Will you plz make a guide to add dual sim option in status bar as now I am having dual sim phone working on systemui of single. Sim (tipo single sim system ui on tipo dual,only problem is no signal status for 2 nd sim but it is working(receiving call from both) )
[Android Software/Hacking General [Developers Only]] Master&Slave™:
I quit android a long time ago but I would tell you to find a ROM that's built for dual sim and decompile the XML files.

Review the XML file from the dual sim ROM and use that as a reference to merge it into your existing single sim XML.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Ohhhh I see...

Damn that means I would have to incoporate the Mms.apk that came with the ROM into the statusbar a little differently.

As far as writing the code, I know its more than possible, but if i have no clue of how to do it...then all I can say is I'll see what I can do.

M&S
[Android Software/Hacking General [Developers Only]] varun.chitre15:
What's with froyo?

That's for GB

How can I get it to work for froyo?
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Idk i have a gingerbread phone.

Ur gonna have to learn and try some stuff out on ur own :)

M&S
[Android Software/Hacking General [Developers Only]] jitendrakalsaria:
Master& Slave done good job but would have done better by putting screenshot if possible.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
I would have had to push each systemui and take a screen and upload it.

Things look exactly as I described them.

M&S
[Android Software/Hacking General [Developers Only]] drzprettyboy30:
It would've been hot if all this was incorporated on an app or like a menu on the rom. it would be cool to mod your status bar's color layout and everything else with a click of a button. Im about to see if i could get some free time to look into that.
[Android Software/Hacking General [Developers Only]] jaggyjags:
I want to remove carrier text AND place the remove notification button at the center. I was comparing both of your .xml but not sure what to change.

can you help me out?

check the screenshot.
[Android Software/Hacking General [Developers Only]] jaggyjags:
It could help if you give me the original statusbar_extended.xml to compare them ;)
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Just copy and paste my code into urs...

M&S
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Whatever you find let me know lol

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
This wont work on my phone, it wont compile (HTC explorer).

I managed to put the clock on the center by modifying a line, but it stays on the center even when a notifications appear, so text overlaps. (the clock normally dissapears for a second and then comes back with the rest of the notification bar).

Here is what I modified

I moved this line out of the array:

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="left|center" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

and then changed the gravity to gravity="center" and android:layout_width="fill_parent"

here is the screenshot.

please help :)
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Ill look when im home from work

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
Thanks!!:)

Here is my original .xml if you want to have a look a look at it.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
I never did htc but it shouldnt be hard

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
I will keep trying different combinations see what makes it work. lol

Maybe with your original SGS2 .xml I could see what you modified and try it..

this is what is happening:

EDIT: I compared yours with the "no clock" code and apparently that is what you did, you moved that line and changed those two parameters.. So I am still wondering WTF makes it freeze in the middle when getting notifications... (It didn't before, clock hided upwards and then came back down again).
[Android Software/Hacking General [Developers Only]] Master&Slave™:
I dont even kno how to stop it from overlapping.

U could add android:background="#ff000000" to the clock code

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
ok.. dont worry, I will not resign until I get it working. :cool:

just tell me, did you try your modified "center clock" .xml on your phone and did the clock hide correctly when getting notifications?

Does the clock hide when getting new notifications on stock SGS2?
[Android Software/Hacking General [Developers Only]] Master&Slave™:
No it doesnt hide...i cant edit from the phone...xml need to be decompiled

M&S
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Do the icons overlap it

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
Nope, nothing overlaps nothing.

Each string has its separate area.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Hmm ill try it out...if my statusbar boots then ill credit u in the OP

M&S
[Android Software/Hacking General [Developers Only]] jaggyjags:
Remember to try it on an HTC GB phone, I couldn't compile systemUI with your code so I suppose you can't with your GS2.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
ill edit the code in the op once i try to compile..

Thanks a bunch for the tip

It might have taken me sometime to find that out. :D

U DA MAN
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Thats pretty coo :-)

M&S
[Android Software/Hacking General [Developers Only]] amansingh6940:
@Master & Slave- Thanks for the useful content.. i'll also try it on my Micromax A60
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Alright goodluck

M&S
[Android Software/Hacking General [Developers Only]] Ticklefish:
Wow, this is impressive work! It's always amazing to see just what can be customised on these things.

I'm working on a command line tool that's all about automating these kinds of mods. As long as I credit you, can I include all these?
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Yes sir!

M&S
[Android Software/Hacking General [Developers Only]] Ticklefish:
Thanks! I'll let you know once it's done. If you want, have a quick look at the link in my signature to see what I'm going to put these nifty tweaks into. :)
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Alright looks cool...

Let me kno

M&S
[Android Software/Hacking General [Developers Only]] kucluko:
hi can anyone help me to change center clock in the status bar?

and what are the ingredients that need to be prepared to change it, to how a suitable jdk version?
[Android Software/Hacking General [Developers Only]] Master&Slave™:
All you have to do is copy and paste.
[Android Software/Hacking General [Developers Only]] kucluko:
i'm sorry ihave problem to copy and paste,but i to copy and paste and compile with apkmanager,no effects after flash with cwm, i dont now this is problem my rom!! i make robyn with rom semc atchojan
[Android Software/Hacking General [Developers Only]] Ticklefish:
Hmm. Replacing the carrier label is relatively simple. But putting this in instead would be a bit trickier. There may be a string that could be used, otherwise it's a case of editing the smali. It's certainly possible but smali's still over my head right now.
[Android Software/Hacking General [Developers Only]] Ticklefish:
Froyo doesn't have SystemUI.apk. if I remember correctly, which is what these tweaks use. Froyo and Eclair are a bit trickier.
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Yea man...smali is no joke...I can't find a reference guide to understand it
[Android Software/Hacking General [Developers Only]] locomain:
does someone know how to get the statusbar on the bottom?:eek::D
[Android Software/Hacking General [Developers Only]] Master&Slave™:
I can look into it..
[Android Software/Hacking General [Developers Only]] locomain:
would be great! thnx
[Android Software/Hacking General [Developers Only]] yonzz:
Hello, could you make the date appear in the right of statusbar without pulling down the notification bar?

a couple month ago, i tried that but it won't move.
[Android Software/Hacking General [Developers Only]] SpaceCaker:
can you make the guide a bit more clearer ?

because this is just some copy pasting

so we cant really know what u have changed
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Copy the code into the Notepad and compare it to your code
[Android Software/Hacking General [Developers Only]] SpaceCaker:
Ok

unwritten sentance
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Yea, I kinda made it easy for everyone to just copy and paste, I personally thought that would be enough for everyone.
[Android Software/Hacking General [Developers Only]] SpaceCaker:
Xd

Not for other phones

I am trying to get the clock in pulldown

But i tried to but then stupid error

So if possible can you add a guide for mdpi

Hdpi etc

With the things u changed thank you

unwritten sentance
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Iight I got u

Better yet.. gtalk me
[Android Software/Hacking General [Developers Only]] SpaceCaker:
How?

:p

I never used gtalk :p
[Android Software/Hacking General [Developers Only]] evil1art:
Wow M&S you made this so easy to understand! anyone with half a brain can theme with the best of them now! with this and your videos on how to make a theme, this thread should be filled with praise not questions! your only one person not an army! Take a break bro! GOOGLE can be your BEST FRIEND!(GOOGLE it! its TRUE!)
[Android Software/Hacking General [Developers Only]] evil1art:
with mods from M&S and my own

evil.........out!
[Android Software/Hacking General [Developers Only]] samyam2002000:
Sir can u please post a guide for changing the status bar carrier from top left to the bottom centre postion. That would be most helpful. Thanks
[Android Software/Hacking General [Developers Only]] D-FUSE:
Master&Slave great work dude.I took your info for the pull down clock and got it to work on my evo 4g sense 1.0.the codes where not the same but i got it. If anyone want to see here is my thread

http://xdaforums.com/showthread.php?t=1628949
[Android Software/Hacking General [Developers Only]] Master&Slave™:
No problem...there's so many different variations to find and choose from...just haven't had the time to try any new ones...

The thing called life is in the way lol

Good job tho
[Android Software/Hacking General [Developers Only]] SpaceCaker:
finally after some good

edits

:P

i got it to work XD

i forgot to put a space in the line -_-

Thanks :D
[Android Software/Hacking General [Developers Only]] SpaceCaker:
Now i only need to change clock color xd
[Android Software/Hacking General [Developers Only]] MatZ69:
I have any way to, in Statusbar_Expanded.xml, put the date instead the clock?

Like ICS? :)

Thanks
[Android Software/Hacking General [Developers Only]] SpaceCaker:
U can do the same as moving clock in statusbar but then with the date codes
[Android Software/Hacking General [Developers Only]] MatZ69:
Its doesnt work, simple the date dont apper in carrier place :/
[Android Software/Hacking General [Developers Only]] SpaceCaker:
maybe it appears but color dont change XD
[Android Software/Hacking General [Developers Only]] MatZ69:
Quite possible but the background inst too white to dont see it x)
[Android Software/Hacking General [Developers Only]] Mr.Mefisto:
Great guide! Much appreciate!
[Android Software/Hacking General [Developers Only]] mjz2cool:
i got the center clock working, but when a notification is showing the clock stays visible, so the notification is partly unreadable. any way to change background of the statusbar when a notification is showing? EDIT i know why it won't work
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Try putting a background on the clock
[Android Software/Hacking General [Developers Only]] mjz2cool:
how do i do that? and will the notification be readable?
[Android Software/Hacking General [Developers Only]] jaggyjags:
I had the same problem and posted the solution. Search for my posts on this thread. I made it for sense-GB phones so you cannot use it as it is.

I posted the before and after so you can see what changes I made.
[Android Software/Hacking General [Developers Only]] mjz2cool:
just tried that, but now my statusbar background is behind the clock background and the notification still overlaps the clock
[Android Software/Hacking General [Developers Only]] Ticklefish:
Can you share your .xml? I've been doing a lot of playing with this and, thanks to jaggyjag's posts, I think I've got a pretty good grip on it now so I may be able to spot the problem.

Maybe.
[Android Software/Hacking General [Developers Only]] mjz2cool:
here's my xml
[Android Software/Hacking General [Developers Only]] Ticklefish:
Try changing:

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />

to:

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:id="@id/clock" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />

Because your clock isn't associated with an id, Android doesn't know not to go over it with the notifications. By giving it the 'clock' id, Android should know to move the clock out of the way first.

This only works if your rom came with the clock id defined in ids.xml.
[Android Software/Hacking General [Developers Only]] mjz2cool:
And if it's not in the ids.xml? cause it's not there and i'm using stock rom by the way. is there anyway to make it work?
[Android Software/Hacking General [Developers Only]] Ticklefish:
I don't know, to be honest. I tried just adding it to ids.xml and it didn't do anything. You could try jaggyjags' method that he posted a few pages back, that might work for you. It depends whether you're on ordinary stock, stock Sense, stock Touchwiz..
[Android Software/Hacking General [Developers Only]] mjz2cool:
i have stock rom on galaxy y but thanks anyway.
[Android Software/Hacking General [Developers Only]] Ticklefish:
I'm sure there's a way. I just don't know what it is yet. The clock id needs to be defined somehow and I just hope that's not a smali job. That stuff is still over my head..
[Android Software/Hacking General [Developers Only]] D-FUSE:
I

Dude I will look at you xml tomorrow. This was based on sgs2 which I have the epic touch now,but found the code on my evo before i got the epic touch so you might have to test. Cool?

Edit I am thinking that you are not adding the right layout type
[Android Software/Hacking General [Developers Only]] eddjanier143:
Can you do it for me Sir ? PLEASE? :)

Im on Stock DDKQ8, Please Sir :) i want Status bar position like this and semi transparent Sir :

i attached my SystemUi.apk Sir :)
[Android Software/Hacking General [Developers Only]] mjz2cool:
what kind of layout type should i use?
[Android Software/Hacking General [Developers Only]] hell_lock:
I used his method to move the clock to center... it worked somewhat.. here is what happened.. the clock came to a little left hand side of its original position and the icons which used to be in the right came to the left side.... wat should i do now?? my clock isnt perfectly at the center! here's my code

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
[Android Software/Hacking General [Developers Only]] jaggyjags:
Just delete the padding:

paddingRight="6.0dip"

All the word or set it to "0.0dip"
[Android Software/Hacking General [Developers Only]] hell_lock:
not workin..

---------- Post added at 06:20 PM ---------- Previous post was at 05:27 PM ----------

got this error while trying to bring clock near the clear button

C:\Program Files\Android\android-sdk\platform-tools\..\projects\SystemUI.apk\res\layout\status_bar_expanded.xml:9: error: Error: No resource found that matches the given name (at 'id' with value '@id/clock').

Lets see if it works when I create a id for clock in ids.xml .......... compiling succesful time to flash it.......... boo yeah!! it worked!! I LOVE U BUDDY!!
[Android Software/Hacking General [Developers Only]] zihan:
oh ,it's very good.thank you
[Android Software/Hacking General [Developers Only]] Master&Slave™:
Good job bro
[Android Software/Hacking General [Developers Only]] mjz2cool:
transparent statusbar

is there anyway to add a background to the clock and the icons?
[Android Software/Hacking General [Developers Only]] jacky_kjzz:
Hey guy! Can u help me? I need change color's clock in statusbar. Thanks so much :laugh:
[Android Software/Hacking General [Developers Only]] hell_lock:
Yep there is a way. Check out my sign for a tutorial
[Android Software/Hacking General [Developers Only]] mjz2cool:
what i want to do is making the statusbar fully transparent, but then the text and some icons are not clearly visible in, for example, gmail because of the white background, but if it's possible to add a background only behind parts of the statusbar, only behind the icons/clock, the text and icons should be more readable, while empty space on the statusbar is fully transparent.
[Android Software/Hacking General [Developers Only]] Avilove.Cullen:
We have to add these codes and delete the previous codes?
[Android Software/Hacking General [Developers Only]] Ticklefish:
That might not be possible without completely rewriting the code. The bits on the statusbar are in a LinearLayout and there actually isn't any blank space. The whole bar is full.

If you put a background behind the icons and clock, that background will take up the whole statusbar.
[Android Software/Hacking General [Developers Only]] mjz2cool:
too bad, but thanks anyway
[Android Software/Hacking General [Developers Only]] hell_lock:
There are 2 ways to change it . First one is that u could edit the png of the app u want second is that u could use the command to wrap content in status bar.xml
[Android Software/Hacking General [Developers Only]] mjz2cool:
i've got the clock background working :D but when i do the same with the icons, the whole statusbar becomes colored, and not only the icons, as ticklefish already said:

but the clock background does work the right way, so that's one thing.
[Android Software/Hacking General [Developers Only]] Ticklefish:
Have a look at the code. The clock section takes up only as much width as the clock itself, so that's simple. On my ICS rom, the notifications section takes up as much width as is left over after the clock, battery and whatever status icons go in. Like I said, there actually isn't any blank space in the status bar at all.

I quickly tried a FrameLayout instead of a LinearLayout but not only did it hurt my brain getting everything into the right place in the code....but it then FC'd once I put it on the phone. I've had this before where a code change that should work wasn't liked by the phone.

This may just not be possible.

However, I did just have an idea as I was typing the above. Why not just make a PNG that's the same dimensions as your status bar and make it transparent in the middle but not at each end? That would save all this messing around with code. The solid parts of the image wouldn't change size but it may do the sort of thing you're after.

Looks like hell_lock made that suggestion first! D'oh! lol
[Android Software/Hacking General [Developers Only]] mjz2cool:
i may have another idea, in creeds rom (2.5 is the last i tried), when there's a new notification the background changes when the notification is shown in the statusbar for a few seconds. how can i change the background of that? by default it's the same background as defined in status_bar.xml. if this is possible in stock xxle1 then the only thing a bit less readable would be the icons, but the clock and the notification text would be readable fine.
[Android Software/Hacking General [Developers Only]] Ticklefish:
That should be possible in any rom. In the last LinearLayout (@id/ticker on my rom), you just need to add an "android:background" parameter. :)
[Android Software/Hacking General [Developers Only]] mjz2cool:
ok thanks, and i found out it's only the notification icons wich fill the whole statusbar, the statusicons work the same as the clock. i now have the clock on the right with background, then the notification icons without background, then the status icons with background. now i only need to remove the black line/border under the statusbar, is it possible to do that?

EDIT: i mean the clock is on the left :p
[Android Software/Hacking General [Developers Only]] hell_lock:
If u want background for dem den make a separate linearlayout
[Android Software/Hacking General [Developers Only]] Ticklefish:
I can't check right now, but that's a png with a name like title_bar_shadow....or something similar. Make it transparent and you're done.

Don't forget to share a screenshot of all your hard work! :highfive:
[Android Software/Hacking General [Developers Only]] mjz2cool:
thanks! that's exactly what i was looking for:good:, screenshot coming soon.

EDIT: the border is still there, don't know if it is caused by holo launcher or there's something else
[Android Software/Hacking General [Developers Only]] mjz2cool:
here are the screenshots, as you can see, the statusicons background is even resizing when icons are added or removed. but the black border is still there
[Android Software/Hacking General [Developers Only]] Avilove.Cullen:
Will someone help me .. ? :(
[Android Software/Hacking General [Developers Only]] hell_lock:
Just name it.
[Android Software/Hacking General [Developers Only]] x-dira:
how to remove date view from the statusbar and place it where the carier, clear button ?

sr! for my bad english

thanks!
[Android Software/Hacking General [Developers Only]] Ticklefish:
There's got a .9.png somewhere in your drawable folder that's being used for this. All I can suggest is looking in your decompiled app and examining each .9.png one by one..

---------- Post added at 12:59 AM ---------- Previous post was at 12:51 AM ----------

Should be easy. Provide your framework-res.apk, SystemUI.apk and a screenshot of where you want the day to go...and I'll show you. :cool:
[Android Software/Hacking General [Developers Only]] x-dira:
thansk!

link here: http://www.mediafire.com/?7kfvlcy6q7aicb4

http://img805.imageshack.us/img805/8562/screenshot10h.png
[Android Software/Hacking General [Developers Only]] x-dira:
yeah...i am mod succes, but miss day of the week (July/29/2012 miss Sunday)

how to full dateview? (eg: Sun/july/29/2012)

I need help, !

Thanks

http://img833.imageshack.us/img833/8645/shot000002m.png

file systemui link: http://www.mediafire.com/?wt7z8rs84wsyipy
[Android Software/Hacking General [Developers Only]] mike2nl:
@Master&Slave™:

it will be very interesting to when you can have a look to a carrier logo.

I have seen that in one of the threads. But no time at all for the moment.

Only when you can spare time, otherwise it will ne NO issue. Thanks...

http://xdaforums.com/showthread.php?p=23963982#post23963982