yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
Hey guys,

I've just instelled cm10 a few days ago,

and it's making me crazy, hope you can help!

Most of the time it works great. BUT when I

play some games or use Facebook, it just

Shuts-down the phone, and when I turn it on

it says it got 1-5% Battery left. (it's not true)

When I plug the charger, the battery level

get's back to where it was.

I've tried updating to CM10.1 and the problem

presists.

so,

1. What's cousing those shutdowns?

2. How can I fix the battery problem after the shutdown?

Thanks!
[Galaxy S II Q&A, Help & Troubleshooting] Donnie Sins:
You installed it with a full wipe?

Sent from the Matrix
[Galaxy S II Q&A, Help & Troubleshooting] TheATHEiST:
Have you checked to see if this also happens with non-CM roms?

The first thing you should be doing is counting out a hardware problem so install a non-CM rom like a Samsung stock or based rom.

Also do a clean install or your roms to avoid issues. (Wipe data/factory reset in recovery, ONLY USE IF YOU HAVE A CUSTOM KERNEL/RECOVERY FLASHED).
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
I came to cm10 from stock, so yes.

CC10.1 - was updated from the ABOUT

menu (OTA update), So I couldn't wipe,

I just did "Factory reset" from Settings

after the update.
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
There was no Problems at all on 2.3 stock,

So I don't believe it's an hardware issue.

factory reset from the OS is the same as

Full Wipe, right?
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
calibration might help. Hardly hardware issue.

a korean guy told me so, they are from the future you know; already got the JB and all.

sent, and now this app cra.........
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
HAHA I know :)

but What do you mean by Calibration ?
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
battery calibration, or kernel stweaks.

sent, and now this app cra.........
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
Battery calibration - yes.

Kernel stweaks - How can it help?

It seems like a problem with the cm10 rom,

Anyone here using the CM10 nightlies?

Can you tell me if yours is stable or

has such isues ?
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
I think it's the battery info picked up by the ROM. Wipe bat stats to force it start from scratch.

sent, and now this app cra.........
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
Double post- Sorry :)
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
Hey, I've tried battery cal. again - it didn't help.

The main issue though is the random shutdowns not the battery stat.

It mainly happens with the Facebook app, Is it a known bug in CM10 ?
[Galaxy S II Q&A, Help & Troubleshooting] Doorman404:
Just an update: I've flashed 2 other Stock based roms and the problem is worse Now!

It shuts down like 10 times a day now, on every screen even on Lockscreen sometimes.

The phone was 100% good before I flashed cm10! Did i do something wrong ???

What do you think's wrong with it?

Help! Please? :)
[Galaxy S II Q&A, Help & Troubleshooting] rwaempires:
Does the screen flicker issues on cm 10.1 effect the phone in long term..Wil it damage the screen ?
[Galaxy S I9000 Themes and Apps] erpurohit:
nice one mate...
[Galaxy S I9000 Themes and Apps] rodman01:
Thanks...glad you like it.......and I am also a step further fixing the bug....:victory:

Hopefully I could release a new update soon. Just testing a few ROMs and a few Launchers to get sure...so stay tuned :highfive:
[Galaxy S I9000 Themes and Apps] Bejda:
:good:;)
[Galaxy S I9000 Themes and Apps] VirtualMindAlx:
Nice work :D ...What about some apk to center (or move to the right) the clock in lock screen like it was in 4.1.2.?
[Galaxy S I9000 Themes and Apps] Fire39:
WOOOOW, nice !
[Galaxy S I9000 Themes and Apps] rodman01:
you mean in settings so that you can click and chose where you want the clock to be placed? And so that is changeable?

Yes that would be great!....but thats not so easy, and I think because of that some or even most of the CM10.1 based 4.2.1 Roms doesn't have that feature (at the moment?)....

When I got this version finally fixed, I think i will try something other first:

what would you say to have a color picker for the clock and/or date in extended statusbar? Thats would I like to try, even I do not know (for now), wheather it is easier or more difficult, or impossible :) (for me and at this time...).
[Galaxy S I9000 Themes and Apps] zodiaxe66:
Thanx for the pm.

As i wrote in mckay's thread,it is already implemented in c-rom mix by aways,as it was in 4.1.2.

Maybe u should check it out or pm aways and ask how he made it work on sgs.

But i think its the aokp team that made the center clock on 4.2,because i also have it on my gs3.

But what changes is made in the framework i don't know.but that should be on git.

But thanx for making this possible for now..:good:
[Galaxy S I9000 Themes and Apps] PaulN543:
Flashed this on RemICS-JB 4.2.1 - Doesn't work, msg box displaying 'Unfortunately SystemUI.apk and stopped' :crying:
[Galaxy S I9000 Themes and Apps] rodman01:
Sorry to hear. I didn't tested it on RemICS, neither then on Helly Bean, because

RemICS is based on Helly Bean, which is not a "pure" CM10.1 base. And so I believed, that this zip does not work on this Roms. Although RemICS and Helly Bean has already center clock included :confused:. So why do you want to flash my zip ontop of these Roms? But I will have a look at it and test it, and perhaps I can get the new version on Rem ICS running too.
[Galaxy S I9000 Themes and Apps] PaulN543:
The clock isn't centered on RemICS 4.2.1. It's located to the right. Please see the attached picture :).

Remember to thank me if I helped.

EDIT: HAVE FOUND THE CENTERED OPTION. Please disregard this post.
[Galaxy S I9000 Themes and Apps] rodman01:
New Version 2.0 Bug Fixed Uploaded

I made a new version, with different coding, and now the bug is fixed :).

Files are uploaded and links are in first post. Just give it a try and report if something is not working!

This version does not work on Mackay 2.3.4 + 2.3.5 (newest version), and I think, also not on latest Nightlys. But i am working on a zip for this ROMs too. Just have to do some more tests, then I release an updated version for this ROMs too.

So just stay tuned :).

Download:

Center Clock Blue: CenterClockv2.0_blue.zip

Center Clock Green: CenterClockv2.0_green.zip

Center Clock Yellow: CenterClockv2.0_yellow.zip
[Galaxy S I9000 Themes and Apps] rodman01:
New Update for Mackay 2.3.4+2.3.5

Hi and Good evening, here are the updated versions for newer CM10.1 ROM.

Tested on and with Mackay 2.3.4 + 2.3.5 and CM10.1-20130111-NIGHTLY.

Download:

Center Clock Blue: CenterClockv2.1_blue.zip

Center Clock Green: CenterClockv2.1_green.zip

Center Clock Yellow: CenterClockv2.1_yellow.zip

PS: are not working on todays Mackay 2.3.6 and i believe also not on latest nightly. But Updates are almost ready and will be uploaded soon!

So? Again Stay tuned :)
[Galaxy S I9000 Themes and Apps] ..::WD40::..:
Please do white mod for CM10.1-20130111-NIGHTLY. How you compile only status_bar.xml?
[Galaxy S I9000 Themes and Apps] rodman01:
Yes no problem...and here you are: CenterClock2.1_white

Enjoy :)!
[Galaxy S I9000 Themes and Apps] derboedi:
Could you make a mod for Samsung/TouchWhiz style themes? I believe the hex code is #ffd7d7d7 or at least that's what I'm using if necessary and it looks ok.
[Galaxy S I9000 Themes and Apps] rodman01:
Yes i will....on what version are you running? Think you are already on new Mackay 2.3.6! :)
[Galaxy S I9000 Themes and Apps] derboedi:
Still on C-Rom Mix v4 but will probably flash new Mackay.
[Galaxy S I9000 Themes and Apps] rodman01:
Ok then, I will create it for you based on 2.3.6....

If i am right, on C-Rom Mix v4, with HellyBean ROM as Base, there is already centerclock with color picker included, isn't it? And I am afraid my Mod will not work then
[Galaxy S I9000 Themes and Apps] rodman01:
Sorry forgot the mentioned: android:gravity="right" in line 15....

Wait will upload an update soon
[Galaxy S I9000 Themes and Apps] vegeta1:
take your time my friend :)

and thankyou for putting your time with me :)
[Galaxy S I9000 Themes and Apps] rodman01:
think and hope this one is better now :). Give it a try if you want!

File failed :(, next try in progress....
[Galaxy S I9000 Themes and Apps] vegeta1:
bro thankyou , but when i recompiled , it dsnt and error is mismatched tag :(
[Galaxy S I9000 Themes and Apps] rodman01:
ups...added a close tag and removed a weight tag....next version attached

keep my fingers crossed :).

Edit: file isn't better so removed....
[Galaxy S I9000 Themes and Apps] vegeta1:
huge thanks my friend but its aligned to the left and the same thing when i am done flashing the mod i dont see status bar

and as soon as there's any notification it works again , why could it be bro ??
[Galaxy S I9000 Themes and Apps] rodman01:
Cool but not too cool :). Could you try to add the android:layout_weight="1.0"

again at the end of line 15? Hope that then the clock will be centered!

And the issue with disappeared statusbar i also had with my 1st version, but this was coded in a different way...mmhh strange....perhaps i will try another method of codes, if you don't mind and do a few further tests for and with me?
[Galaxy S I9000 Themes and Apps] vegeta1:
cmon mate , i dnt have enough words to thank you for doing all this and helping me out ...

iam right here for whatever you want me to do :)

thanks again my friend , really :)

edit : just tested mate but its still in the left :( and same status bar issue
[Galaxy S I9000 Themes and Apps] rodman01:
the attached is with same code method, but again with some changes....hope the clock is moving now to the wanted position :).

Different or alternative method will last a bit....
[Galaxy S I9000 Themes and Apps] vegeta1:
still at the left my friend !!
[Galaxy S I9000 Themes and Apps] rodman01:
gggr ...but i don't give up :). just have to do a little break...
[Galaxy S I9000 Themes and Apps] vegeta1:
haha sure bro , il be here for sometime more its 2 am here :)

so up for few more tests :)
[Galaxy S I9000 Themes and Apps] rodman01:
Great, sounds good, here it is 10.15 pm and the next clock waitnig for your try :).

Edit: not a good file again :(-> removed
[Galaxy S I9000 Themes and Apps] vegeta1:
again a mismatch tag error mate , :(
[Galaxy S I9000 Themes and Apps] rodman01:
mayomay sorry....for the moment i have two more alternatives...its annoying that i cannot test it...so would you give them a try too?
[Galaxy S I9000 Themes and Apps] rodman01:
BTW which launcher are you using? If you use touchwiz, could it be, that there has to be made some mods in tw_status_bar.xml too? Or even only in this file?

Perhaps you give the attached a try too. If it works, it would almost propably have same statusbar disappearing issues too. As you mentioned: only visable after receiving a notification. Its a different coding here.
[Galaxy S I9000 Themes and Apps] peetu20:
transparent statusbar

Which smali/xml did you modified to get the beta transparent statusbar? I am just intrested to port it to zte blade cm10.1 rom...
[Galaxy S I9000 Themes and Apps] rodman01:
That was in PhoneStatusbar.smali. But be aware that with this change the statusbar lose its prereserved position on the screen and there will be some overlappings in the drawerscreens and the apps. Homescreen is perfect. I didn't found a fix till now. And all my tries in changing only the XMLs weren't successful to get the statusbar transparent.
[Galaxy S I9000 Themes and Apps] rodman01:
And here another one to test. This is quite the same codeing as you had in your first posted status_bar.xml. But also a tw_status_bar.xml
[Galaxy S I9000 Themes and Apps] vegeta1:
Re: [MOD][JB][CM10.1][UPDATE 0222-Nightly] Center Clock for JB 4.2.2+4.2.1 (22.02.201

bro no more tw statusbar xml now in 4.2.1
[Galaxy S I9000 Themes and Apps] rodman01:
ok, was just an idea that this could be the reason of the problems...so then we have to try and test further :)...btw have you already tried this 2:

http://xdaforums.com/showpost.php?p=38561745&postcount=195
[Galaxy S I9000 Themes and Apps] vegeta1:
awsum man, the second one just worked fine :D

big big thanks my friend

dont you have a donate link ?? freaking awsum bro , thankyouuuuuuuuuuuuuuuu :)
[Galaxy S I9000 Themes and Apps] peetu20:
Which line did you change in PhoneStatusbar.smali? Btw: Do you know, is it possible to get transparent homescreen statusbar foe CM10? Only in homescreen?

Coz it looks pretty bad in apps ...
[Galaxy S I9000 Themes and Apps] rodman01:
coool great..just returned home from work and now that good news :).

Strike and :highfive:

You welcome, glad it works and you like it

(Donate Link? mmmh will think about it, first have to look how to do that, do not have any idea at the moment :).
[Galaxy S I9000 Themes and Apps] vegeta1:
amazing work mate :)

perfect addition to my mods all thanks to you :) :highfive:
[Galaxy S I9000 Themes and Apps] rodman01:
For my S1 its line 973 and above. It may differ from device to device.....so better search in the smali for (IIIII) and above the first search result:

invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII) (there should be 3 or 4 of it), I changed: const/16 v3, 0x7d0 to 0x7d1.

I know it looks pretty bad in the apps and even in the drawer. But sorry, for the moment, i didn't find a solution to fix it. And as far as i know, there is no on my device working todo (or i did something wrong...maybe) for CM10.1. I know a patch which should solve that issue, but unfortunately i am not able to build ROMs from source. Perhaps i start to learn this too in future :).

I know its working on AOPK and or AOSP, but I couldn't figure out, which difference in the xmls and smalis (and there are a lot :)) between AOSP and CM10.1 will help to find a better solution for the transparent statusbar. Sorry for the moment, mate, i try it further thats for sure, but no promise when and that I could get it :)!
[Galaxy S I9000 Themes and Apps] peetu20:
I do not know nothing about smali/java, but i am right now tryin to hack it. How do you really know which line need to be modifield? :D
[Galaxy S I9000 Themes and Apps] rodman01:
I found it somewhere in the internet after a lot of searching and reading on a side which describes how to manage the transparent statusbar. Wasn't mentioned the/my bug there too. Think it was for an other ROM and an other dvevice. On mine its not working....perhaps i can find the side again, then i will provide you the link.
[Galaxy S I9000 Themes and Apps] peetu20:
Did it!

Thats true, it overlaps everywhere, at homescreen too.

google search bar is now under statusbar:D. Would the overlapping be fixed with xml changes. If you find the site, where you learnt statusbar transparency hacking, post it for me too :)
[Galaxy S I9000 Themes and Apps] rodman01:
No it didn't, nor my other tries with a transparent PNG...if I had got it to work...believe me I would have been posted that at once :). But i will try to find the link again, hope can get it again...i read so many todos on so many sides...

For me it is or it feels like that the xml changes does the transparency, yes, but the screen below does not expand. So for example the homescreen picture does not cover the complete screen, as you can see with the smali change on lock and homescreen, its some kind and somewhere limited to its size. The picture goes not over to the top of the screen. Think that there is still a black png or what ever behind the transparent statusbar and this black is shining through. On homescreen its annoying, on the other screens and the apps that should be perfect and it will be fixed. But how to get the png to fullscreen?

If you change the statusbar to an other color, yellow or what ever you can see, that the xml change works, but not with the 100% transparent code.

Hope it is understandable what i try to explain :).
[Galaxy S I9000 Themes and Apps] rodman01:
Sorry jiggs for the delay, and i have unfortunately not yet a solution of the free space between the icons issue, but finally a version for your HTC with equal blue colored clock and date. Hope you can enjoy it anyways :).

Download: DateClockCenterAlbinoman_v4.2.2_0225_blue.zip
[Galaxy S I9000 Themes and Apps] peetu20:
Yes, I didnt maybe understood everything, coz my english is poor. But maybe it really works with semitransparent png or 50% transparent hex code in drawable.xml

I will try now :)

---------- Post added at 09:34 PM ---------- Previous post was at 08:55 PM ----------

Tried with transparent png, looks same as without, so ui overlaps everywhere. But if you get it working, keep it up!!

And all luck for you, playing with android... :)
[Galaxy S I9000 Themes and Apps] rodman01:
Thanks.

Did you also tried it without the smali change, but with the transparent background png?
[Galaxy S I9000 Themes and Apps] peetu20:
No i didnt, you think it would work? Will try tomorrow, It's night here.
[Galaxy S I9000 Themes and Apps] Jiggs82:
Ok no for some reason i have no status bar could be because he updated the rom and maybe there was some new status bar commits so you might have to update the mod for his feb27 version and is there anyway you can make one with just the day (no month) and clock holo blue?:) thanks
[Galaxy S I9000 Themes and Apps] rodman01:
oh sorry, i didn't know that the ROM Base was updated. Think that would be the reason why its not going. Yes i can do it with only the day shown in statusbar. Which format do you like? Full day or just the short like it is at the moment? And because of the color: thought that it is holo blue? I used #ff33b5e5? :confused: Could you provide me the hex code you prefer?
[Galaxy S I9000 Themes and Apps] Jiggs82:
Yeah that's fine bro:) um short day (ex: fri) u know like it is in aokp and yeah the blue u use for your mod

Latest build- http://xdaforums.com/showthread.php?t=2115520
[Galaxy S I9000 Themes and Apps] peetu20:
Tried just with transparent png, statusbar stays black

Btw: Can you please give me guide, how to manage 10.1 center clock? And how to make it for cm10 too? :)
[Galaxy S I9000 Themes and Apps] rodman01:
You mean like this one? On screenshot?

Then here you go with attached file.
[Galaxy S I9000 Themes and Apps] Jiggs82:
I don't see nothing lol

Edit: nevermind I see it now lol ok but more like this ex: Monday - Mon Tuesday - Tues Wednesday - Wed Thursday - Thur Friday - Fri Saturday - Sat Sunday - Sun
[Galaxy S I9000 Themes and Apps] rodman01:
Now its visable...lasted a bit sorry :).
[Galaxy S I9000 Themes and Apps] rodman01:
Was afraid too, that this doesn't work only with transparent png...

I can guide you if you want and need help...a good Howto is that from Ticklefish, from which I learned a lot. But sure you have to port it to your Rom:

http://xdaforums.com/showthread.php?t=1767593

And/or you send me your code or the link to your Rom and i will try it for you.
[Galaxy S I9000 Themes and Apps] Jiggs82:
Ok I like it looks good thanks again bro:)
[Galaxy S I9000 Themes and Apps] rodman01:
You are ok with that current version? If yes i am glad :). If not, here are some possibilities android has implemented:

Examples for April 6, 1970 at 3:23am:

"MM/dd/yy h:mmaa" -> "04/06/70 3:23am"

"MMM dd, yyyy h:mmaa" -> "Apr 6, 1970 3:23am"

"MMMM dd, yyyy h:mmaa" -> "April 6, 1970 3:23am"

"E, MMMM dd, yyyy h:mmaa" -> "Mon, April 6, 1970 3:23am&

"EEEE, MMMM dd, yyyy h:mmaa" -> "Monday, April 6, 1970 3:23am"

"'Noteworthy day: 'M/d/yy" -> "Noteworthy day: 4/6/70"

and further more here: http://developer.android.com/reference/android/text/format/DateFormat.html

At the moment it is only: E
[Galaxy S I9000 Themes and Apps] peetu20:
of course, I am making different mods for ZTE Blade running cm10 or Cm10.1

thanks for guide, I will take a look it immidiately :)
[Galaxy S I9000 Themes and Apps] peetu20:
Hmm :D. Did something intresting :D

Hacking is very intresting sometimes, nah

I`ll try to fix it,,,
[Galaxy S I9000 Themes and Apps] rodman01:
:) yes its looking nice, i would prefer a bit more different colors... but with that MOD you will have enough free space on your statusbar :)!
[Galaxy S I9000 Themes and Apps] peetu20:
:D Yes, do you know what I did wrong?

I followed ticklefish method 2 and the end is this...
[Galaxy S I9000 Themes and Apps] rodman01:
Difficult without having the code. But i think you mixed up some linearlayouts. Or the gravity for the right block, this where you excluded the clock, i changed from center to right. Do not know whether this helps, but if i remember right, this was a change what i had to make to get it work ....different to ticklefishs workaround.
[Galaxy S I9000 Themes and Apps] peetu20:
I will try to post code later today...

---------- Post added at 06:14 PM ---------- Previous post was at 05:41 PM ----------

Em, got center clock, it works fine, and moves with statusbar icons, while new notification comes out. But other icons are centered now too. I posted the statusbar.xml and screenshot in attachments. Hope you can help me,,,,;)
[Galaxy S I9000 Themes and Apps] rodman01:
You forgot the attachements or does the upload last longer? :confused:
[Galaxy S I9000 Themes and Apps] peetu20:
Yes, I added attachments, can be found page 23, last post :D
[Galaxy S I9000 Themes and Apps] rodman01:
After the first look i saw that you forgot to include the layout tag which moves the icons to the right.

You could try if it works when you include: android:layout_alignParentRight="true" at the end of the first linearlayout after the relativelayout start tag.

<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" [COLOR="Red"]android:layout_alignParentRight="true"[/COLOR] >
[Galaxy S I9000 Themes and Apps] iulian vu:
I want to install this on SuperNexus Rom . Which one should I flash?
[Galaxy S I9000 Themes and Apps] Jiggs82:
Yeah format is E fine but I did noticed that on the notification pull down shows only the time and day but not the day and month :/
[Galaxy S I9000 Themes and Apps] rodman01:
Sorry but no one of this in OP or in the thread. They are all (unfortunately?) ROM and device specific. I can try to build your own Mod, if you provide me the link link to the ROM you are using.
[Galaxy S I9000 Themes and Apps] rodman01:
Yes I know and if I remember right its mentioned somewhere here in the thread, as a "bug" and can be seen in screenshots in second post. I am trying to solve that with separating the 2 views to get different formats, but found no way at the moment. Other possibility is to take the date out of expanded statusbar. And perhaps add an other notification?
[Galaxy S I9000 Themes and Apps] peetu20:
Hey, big thanks!! It worked fine, and clock works like other statusbar icons, and rounds fine, while new notification comes.
[Galaxy S I9000 Themes and Apps] rodman01:
Great, glad to hear that its solved and working!

btw: the thanks botton is our best friend :).
[Galaxy S I9000 Themes and Apps] peetu20:
Hitted it! :)

You are worth of it :D
[Galaxy S I9000 Themes and Apps] Mr.Zombie:
Hi rod.

It's been awhile I didn't request Center MOD clock. Hehe. I'm not requesting in a while because the last MOD you gave me works till Nightly: 01 March.

But unlucky, on Nightly: 02 March. SystemUI has been stopped. :(

So, I would like to request a new Center White Bold MOD Clock for Nightly: cm-10.1-20130303-NIGHTLY-i9100g.zip . Thanksss! :good:
[Galaxy S I9000 Themes and Apps] fmc000:
R: [MOD][JB][CM10.1][UPDATE 0222-Nightly] Center Clock for JB 4.2.2+4.2.1 (22.02.2013

Confirmed. Phone totally unusable after flashing latest nightly.
[Galaxy S I9000 Themes and Apps] rodman01:
And here you go with Center Clock for your/our S1 and Supernexus Rom v 2.0 Build 3
[Galaxy S I9000 Themes and Apps] joco82:
plz update cm-10.1-20130303-NIGHTLY-galaxysmtd center clock