yashsingh1/xdaforums huggingface dataset:
[AT&T HTC One (M8)] Blueoval24:
Don't think so. If that was the case, there would be more than two people with this issue...
[AT&T HTC One (M8)] imna357:
This thing happen to my Amber Gold HTC m8, flash the W/R, then bootloop, can't turn it off, what I did is press up and down button plus power, once it rebooted, press down and power, luckily got back to boot loader
[AT&T HTC One (M8)] Blueoval24:
What you describe isn't remotely close to the issues I was having. Also, the phone was running fine after flashing kernel. Didn't stop working till a week later.
[AT&T HTC One (M8)] c5satellite2:
If that was the issue it would be related to recovery or hboot. And as the previous poster stated, this has only happened to a few people. Defective HW. It happens.
[AT&T HTC One (M8)] kokorohime:
Greatest Tip Ever!!!

Thx so much for the "vol up + power" tip. Turned my M8 on with blazing smiles from its owner.
[AT&T HTC One (M8)] underdogg:
Simular Problem

My Phone; (AT&T HTC One M8 Unlocked, Rooted S-off ), TWRP 2.7.0.0 Recovery, Superuser GOO Manager installed. Flashed the Venom rom using teamwin app. Followed inst, plus youtube video. Did not work first time. Installed backup phone went back to normal, tried flashing again went fine rebooted once rebooted would not turn on, can not get into recovery. Phone powers up and say UNFORTUNATELY PHONE HAS STOPPED WORKING. Any help will be greatly appreciated.
[AT&T HTC One (M8)] ax351:
ipad charger head 5mins, then connect the original

All right so what I've done is I followed you guys what to do. I tried the 16hours charge, no success, hard reset, no success, soft reset no success, drop it from the 10th floor, no success (...joke). So basically I almost late from my work place because of the charging and the complete battery drain then charged a whole day, try to find solutions everywhere but nothing at all... then just now I start thinking as they says you can only use the factory charger to charge (that was all right that is why I am in that situation but .. what if it's not enough to charge that??) yes...thinking about something more but not much more powerful to kind of ignite" the battery. I got an OLD ipad charger (not the small, the old proper IPAD charger head) I connect it together with the factory lead for like 5 mins nothing...I gave a last try with the original charger and original lead and then IT CAME ON!! so if you got a friend, relative, neighbour, girlfriend, boyfriend whoever has an old ipad charger give it a try for like a 5mins and then put the original back...maybe...worth for a try, mine is working now!
[AT&T HTC One (M8)] neilmceachin:
This may have been addressed already but this morning my HTC m8 was unresponsive and had a green led at the top. I looked around on the net for answers and a forced reset worked for me. I had to press

-power- vol up- vol down

all together and in that order, and my phone rebooted normally and is working fine. I recently enabled ART and that may be a factor but I'm not really sure. Phones working just fine now.
[AT&T HTC One (M8)] jeremiah07405:
htc one wont turn on even when charging, found a solution!

My HTC m8 went dead thought battery was drained put it on a charger and nothing!! Almost have up but than I held the power and both volume up and down for about 15-20secs and it turned back on! I was almost about to go to AT&T and get a new phone. So if anyone has that problem try that!:good:
[AT&T HTC One (M8)] Lord Morpheus:
Thank you, mine switched off this morning and this is the only thing that worked!!!!!!
[AT&T HTC One (M8)] RM Dexter:
Same thing

Exact same situation and the exact same ROM.

No combo of buttons will get it to boot. It will turn on and then just turn back off. Did you ever have your issue solved?

EDIT: Found a solution. If this happens to you, Press and hold the power button and the vol up button for 10 secs exactly. Then power and vol down. This allowed be to boot into recovery.

I believe what caused it was incorrect firmware for the ROM that I installed.
[AT&T HTC One (M8)] Blueoval24:
Just as an update to original post, I had to go to AT&T and get a new phone. No matter what they (and I) did, it would not turn on. Thank goodness it was under warranty
[AT&T HTC One (M8)] magicstick5:
Same Here (FIXED)

So, I have a HTC Desire 610. It's quite "new", was released in Feb. 2014. I am rooted and have TWRP recovery. When I soft reboot, it sometimes gets stuck on a black screen, and if taken out of charging, LED stays on. I couldn't turn it on, but next morning, the LED was gone. The phone was dead (no battery). When I plugged it in, it flashed TWRP, and I could reboot fine from there. You need to wait until the phone dies.

Hope it works!
[AT&T HTC One (M8)] Dr.Toiletface:
I was looking on this forum because my M8 wouldn't turn on and after trying that it did, THANK YOU
[AT&T HTC One (M8)] Batamfitzgerald:
Thx so much for the "vol up + power" tip. Turned my M8 on with blazing smiles from it

After reading "Greatest Tip Ever" comment (Thx so much for the "vol up + power" tip. Turned my M8 on with blazing smiles from its owner. ),

I tried the same for my phone which had failed turn on throughout the weekend and walla...it came back on.

A few weeks back i run this RUU RUU_M8_WHL_L50_SENSE60_SPCS_MR_Sprint_WWE_4.25.651.14_Radio_1.09.20.0209_NV_SPCS_1.52_003_release_426232_signed_2 on my HTC One M8 HK Edition little did i know it would become a normal HTC One M8.

The battery is a big problem.

Whoever forwarded the vol up + power , a big thumbs up to you. Thank you so much.

I wanted to upgrade my unlocked "S-Off" HTC One M8 HK Edition to Lollipop 5.1 as am now at 5.0.02.

Kindly advise.
[AT&T HTC One (M8)] psycho2097:
This just happened to me. Power for 60 sec, power+vol down, ipad charger - nothing. Tried Power+vol up+ vol down, and it worked. OP please put that at the top of the thread. I was almost ready to go to AT&T.
[AT&T HTC One (M8)] bffs2477:
Wont Work!!!!!!

My HTC One M8 wont turn on! I have tried using all of the power button, volume up button, and volume down buttons! Any suggestions??????
[AT&T HTC One (M8)] redpoint73:
Any LED when you connect the charger? If not try charging for a few hours to see if this changes.

Also, try the button combos with the wall charger attached, and keep in mind that you may need to hold the buttons for a minute or more for them to work.

Were you doing anything (mods, OTA updates, RUU, etc.) when this condition started? Or it just happened spontaneously?
[AT&T HTC One (M8)] Kezzer 1:
Hi bit of advice need plz my Htc m8 as turned its self off and now won't charge are turn on I'm gutted as I have photos on there that can't be replaced is there any help out there as to how I could either get it to turn back on are a way of getting my pictures back ?? Any help would be very greatfully appreciated
[Networking] chavonbravo:
I have a problem where I have my Prophet connected via USB to my computer, which in turn has a broadband connection. It can connect just fine through this connection, but I have remove my MEdia Net (cingular) from drop down choice in my Connection Settings page. But then when USB isn't connected, I have to go back and choose MEdia Net on drop down choice for internet so it will connect to GPRS. When connected via Wifi, I don't have this problem. It seems to automatically see that the Wifi is on and so connects to internet via this, instead of GPRS. How can I do it so that there's this intelligent choosing of USB over GPRS, that way it'll only connect via GPRS when there's no Wifi or USB.
[General Questions and Answers] tDarkScorpion:
Need Perfect Stock Rom Link & Working Sp Tool Link That Without DRAM Failed Error My Phone Is Dead Since 15 Days Be Fast Please Its URGENT Or Need Solution About Error See Error In Attachments In Xolo A500S Its Urgent Please Help Me :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(
[General Questions and Answers] sscsps:
I don't know if it's bricked or is just not booting properly(can go to download mode)

If it's bricked, I don't know how to help you

But if it can go to download mode, try reflashing rom(stock/custom) and recovery(stock/custom(cwm/twrp/philz*))

Hit Thanks if I helped :) sent from my SM-T211

---------- Post added at 08:52 PM ---------- Previous post was at 08:50 PM ----------

To go to download mode, press and hold power button+home key+volume down.

This will get you to download mode. To get out of it, you will need to remove battery, no other way.

Hit Thanks if I helped :) sent from my SM-T211
[General Questions and Answers] pra143pra:
Hell Yea A500S User... Am The Dev For It :P

better join our fb group https://www.facebook.com/profile.php?id=223615467830941

here is the perfect stock tom tested and uploaded by me :silly:

https://drive.google.com/file/d/0Bx3WCBglSd9JZFR2d3d2YmJkaG8/edit?usp=sharing

:D
[AT&T HTC One (M8)] nothinbutnick56:
After root and recovery I've noticed Incoming MMS won't download. Outgoing still works fine. Tried switching back to stock app from Hangouts and still no go. Just sticks at downloading. Any Fixes?
[AT&T HTC One (M8)] Wonders_Never_Cease:
More info needed, stock rom, custom rom etc
[AT&T HTC One (M8)] tmb993:
I'm having this issue right now and I'm completely stock, using the stock messaging app.

---------- Post added at 11:43 PM ---------- Previous post was at 11:35 PM ----------

Not getting notifications from incomming sms either.
[AT&T HTC One (M8)] Wonders_Never_Cease:
You both could try recreating the apns and rebooting...possibly something got borked somewhere
[AT&T HTC One (M8)] tmb993:
I figured out what it was. Under settings>more there is an option to chose your default messaging app. Make sure its set to the stock application and not hangouts.
[Android Themes] Spannaa:
This guide assumes that you can decompile & recompile apks.

Whilst theming my statusbar clock and running into a couple of smali problems, [MENTION=4315551]Ticklefish[/MENTION] suggested I look at TextClock - an extension to TextView that was introduced in Android 4.2

TextClock can display the current time and/or date as a formatted string using both 12-hour and 24-hour modes and makes a great drop-in replacement for the normal statusbar clock.

The statusbar clock code is contained in the com.android.systemui.statusbar.policy.Clock code block in SystemUI.apk\res\layout\status_bar.xml and we can replace this with a TextClock code block:

<TextClock android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:singleLine="true" />

The important bits here are the format strings:

android:format12Hour="EEE h:mm a"

which shows as Fri 8:26 PM

android:format24Hour="EEE HH:mm"

which shows as Fri 20:26

You can use a combination of the options below to create your preferred format:

One advantage of using TextClock is that if you move the android:format strings into string resources, you can embed simple HTML into the strings to enhance the result

So replace:

android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm"

with:

android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format"

and add two strings to the bottom of SystemUI.apk\res\values\strings.xml,

<string name="status_bar_clock_12hr_format">EEE h:mm a</string>
<string name="status_bar_clock_24hr_format">EEE HH:mm</string>

these can then be styled using HTML

Example:

<string name="status_bar_clock_12hr_format"><font size="12">EEE </font>h:mm<font size="12"> a</font></string>

which shows as as the base font size was 18.0dip

<string name="status_bar_clock_24hr_format"><font size="12">EEE </font>HH:mm</string>

which shows as as the base font size was 18.0dip

Other styling is handled normally, either in-line or in an external style resource in SystemUI.apk\res\values\styles.xml

android:textAppearance="@style/TextAppearance.StatusBar.Clock"

Embedding HTML in string resources will also work in a normal TextView and there are a few additional tags you can use. REFERENCE

Note: Setting android:textAllCaps="true" inline or <item name="android:textAllCaps">true</item> in your external style resource will break the HTML embedded in the XML strings as this HAS to be in lowercase for it to be parsed.
[Android Themes] _Sale_:
Nice work Spannaa :thumbup:
[Android Themes] avirk:
Great guide mate. Just missed the 4.1+ version. ;)
[Android Themes] ICS_XD:
Nice Guide Bro :thumbup::thumbup::thumbup::thumbup::thumbup:
[Android Themes] Spannaa:
Thanks.

Unfortunately, it won't work on 4.1.2 NeatROM for the S2 as Google only introduced the code in v4.2 :(
[Android Themes] glfsd:
thanks Spannaa, great guide

please a helping hand. where am I doing wrong?

this is my clock line

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:shadowColor="#ff000000" android:shadowDy="2.0" android:shadowRadius="2.0" />

and I replaced it with

<TextClock android:format24Hour="@string/status_bar_clock_24hr_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:shadowColor="#ff000000" android:shadowDy="2.0" android:shadowRadius="2.0" />

and in strings.xml I added

<string name="status_bar_clock_24hr_format">EEE HH:mm</string>

I'd like it to be like your example

and I wish it was Lun and no lun

ps. sorry for my poor english :o
[Android Themes] Spannaa:
To display the correct hour, try changing the HH to kk (something to do with SimpleDateFormat)

I'm pretty sure that the capitalisation of the day is controlled by your timezone and locale settings so I don't think that's changeable.
[Android Themes] glfsd:
THANK YOU VERY MUCH! with "kk"

:(
[Android Themes] Spannaa:
Since you're not using HTML tags in your string, you could set android:textAllCaps="true" inline or <item name="android:textAllCaps">true</item> in your external style resource to change lun to LUN
[Android Themes] glfsd:
i had understood this, i would have wanted to try "Lun" :)

anyway, thanks again!
[Android Themes] glfsd:
sorry Spannaa, one last thing.

I can not change the font size of the "LUN"

I put it in strings.xml, this

<string name="status_bar_clock_24hr_format"><font size="8">EEE </font>kk:mm</string>

is that right? but does not change :(

this is my styles.xml

<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
[Android Themes] Spannaa:
Have you capitalised the string in your TextClock xml?

Now you're using HTML in your string, you can't set android:textAllCaps="true" as the embedded HTML has to be in lowercase for it to be parsed.
[Android Themes] Vivek_Neel:
Hey mate.

Fantastic.

Simple guide to follow.

:)

Signature under construction.
[Android Themes] Spannaa:
No need to quote the whole of the first post ;)

There's only one error in your log, the rest are warnings.

which tells you that there is no value called "notification_panel_header_clock_margin_left" in SystemUI.apk\res\values\dimens.xml

so you either need to add this dimen to dimens.xml

<dimen name="notification_panel_header_clock_margin_left">4.0dip</dimen>

or change the TextClock xml from

android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left"

to

android:layout_marginLeft="4.0dip"
[Android Themes] Ticklefish:
Please don't quote the entire OP. It's one of the few cardinal sins in xda as it clutters up the screen and makes reading threads a nightmare. :eek:

Anyway, your error is basically this:

C:\apktool\systemui\res\layout\status_bar.xml:19: error: Error: No resource foun
d that matches the given name (at 'layout_marginLeft' with value '@dimen/notific
ation_panel_header_clock_margin_left').

There's also some translation warnings which you can safely ignore and a load of aapt error messages which you can ignore as well. Once you get the hang of reading compiling errors like these, you'll realise that they do actually give you enough information to fix the issue.

Your apk won't recompile because you don't have a dimension called 'notific

ation_panel_header_clock_margin_left'. You can either edit your dimens.xml to put it in or it might be easier to just delete that attribute:

<TextClock android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginTop="-3.0dip" android:singleLine="true" />

---------- Post added at 05:34 PM ---------- Previous post was at 05:31 PM ----------

You beat my reply by six whole minutes. Sigh...you're just too fast for me! :cool:
[Android Themes] Spannaa:
Maybe, but you added a bit more detail - thanks ;)
[Android Themes] Huncriter:
I get large font on my defy
[Android Themes] Spannaa:
I'll need a lot more detail than that if you need help ;)

Post your TextClock code and any associated lines from strings.xml styles.xml and dimens.xml

Sent from my GT-I9300...
[Android Themes] Huncriter:
this is my code

<TextClock android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginTop="-3.0dip" android:singleLine="true" />

styles.xml

<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
[Android Themes] Spannaa:
Try

<TextClock android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:singleLine="true" />

There was a typo in the first post where it said TextAppearance.StatusBar.Expanded.Clock :o
[Android Themes] Huncriter:
now it works, one more thing there is anyway to set capitol AM/PM
[Android Themes] Spannaa:
You can't capitalise JUST the am/pm only the whole string by adding android:textAllCaps="true" to your TextClock code.

Sent from my GT-I9300...
[Android Themes] Rycon33:
Wow, I was really about to give up looking for a way to do this on AOSP ROMs(w/o relying to Xposed), luckily Google still lead me to this gem.

Many many Thanks man:good:
[Android Themes] davidwilson83:
What a fantastic guide [MENTION=2948558]Spannaa[/MENTION]! I wouldn't expect anything less from a themer as knowledgeable as you though. Cheers for this and keep up the exceptional work my friend. :good:

P.S. Any idea on how to remove the AM/PM from the status bar & expanded status bar completely? You're the man :highfive:
[Android Themes] Spannaa:
Cheers Dave ;)

Using TextClock, you'd just remove the " a" from the format 12hr string:

android:format12Hour="EEE h:mm"

If you meant non-TextClock then you'd edit a string in SystemUI.apk/res/values/strings.xml (can't remember which one).

Sent from my GT-I9300...
[Android Themes] davidwilson83:
Just a string edit? Really? Dude, why the fudge didn't I think of that? Far out, what a loser!

When _JKay_ made it for me a while ago he edited stuff in the smali folder (I think in Clock.smali but can't remember 100%) and when the S4 got the 4.4.2 update it completely changed. I'm gonna give that a crack when I get a chance. You're the best! ?

PurifieD Domination
[Android Themes] Spannaa:
Maybe not...

Just checked, and it's not a string - that was what I expected it to be, but I was wrong!

It's clock.smali like you mentioned and, not being anywhere near as good with smali as [MENTION=2839458]_JKay_[/MENTION], I ended up devising a cunning hack.

Follow the link near the top of the first post in this thread and read the quoted text in that post ;)

Sent from my GT-I9300...
[Android Themes] davidwilson83:
Very clever! I will try not to do any smali mods, as the Battery % mod is in smali and I would prefer to do it in xml if I can. So you think the negative layout_marginRight to the statusbar clock and a negative layout_marginLeft to the statusbar expanded header date might work to get rid of the pesky little bugger? Or will I need to do the smali mod?
[Android Themes] Spannaa:
The easiest and cleanest way would be to use TextClock with the format strings in the xml.

That way, classes.dex or resources.arsc wouldn't be changed.

Sent from my GT-I9300...
[Android Themes] Oohhlala:
if i want it show like this 19:55 Fri so i have to change to HH: mm EEE ? is this right ?
[Android Themes] Spannaa:
Yes:

android:format24Hour="HH:mm EEE"

which would show as 19:55 Fri

And maybe:

android:format12Hour="h:mm a EEE"

which would show as 7:55 PM Fri

Sent from my GT-I9300...
[Android Themes] Oohhlala:
Cool :D

btw if i want it show in 2 lines like this :

19:55

Thu 19 June

Is this possible ? May i have to duplicate the code line

<TextClock android:format12Hour="EEE h:mm a" android:format24Hour="EEE HH:mm" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:singleLine="true" />

and change one of them to show time, the other one show date :confused:
[Android Themes] Magnituder:
Great guide mate. for me
[Android Themes] Spannaa:
Do you mean for the date in status_bar_expanded_header.xml? - I've not tried it but it may work.

You'd need to change android:singleLine="true" to android:singleLine="false" in the xml and move the android:format12Hour & android:format24Hour strings into res\values\strings.xml and use a line-break in their strings.

SystemUI.apk\res\layout\status_bar_expanded_header.xml

<TextClock android:format12Hour="@string/status_bar_expanded_date_12hr_format" android:format24Hour="@stringstatus_bar_expanded_date_24hr_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:singleLine="true" />

SystemUI.apk\res\values\strings.xml

<string name="status_bar_expanded_date_12hr_format">h:mm a \nEEE dd MMMM</string>
<string name="status_bar_expanded_date_24hr_format">HH:mm \nEEE dd MMMM</string>

where \n is a line-break

or:

<string name="status_bar_expanded_date_12hr_format">h:mm a
EEE dd MMMM</string>
<string name="status_bar_expanded_date_24hr_format">HH:mm
EEE dd MMMM</string>

You may also have to amend the layout.

Try it and report back :good:
[Android Themes] Oohhlala:
I will try when come back home, and other question. Can i add "/" to make it show like 20/06/2014?
[Android Themes] Spannaa:
Yes you can.

Sent from my GT-I9300...