yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] tdhite:
New Build + A Comment

EDIT: UPDATE -- NEW BUILD AS NOTED BELOW:

Download TWRP Nightly Build

View MD5 Hash

Notes:

Just an update for those working with the recent build -- I'll put another up in a couple hours or so. It will have two changes:

1) The USB Mount button will be gone (that's not OTG, it's for other purposes not useful to our phone right now);

2) I've changed the device tree -- this is a longer story ...

The history of TWRP vs. CWM/OMNI has a long, sordid past. TWRP has always had, as ro.product.XXX names the value "m7wls" for all values. CWM and OMNI, however, build with "m7spr" for some, and "m7wls" for others. That causes serious pain for ROM developers because they have to check all sorts of properties for both names to figure out if this is really a Sprint HTC One.

The last build conformed to the CWM/OMNI model because I thought consistency would be a nice thing for the future. Well, I think that's asking too much -- there's a lot of ROMS out there that are (badly) assuming "m7wls" is all there is, so they work with TWRP and nothing else. Well, those would all be broken if I keep the CWM/OMNI consistency with TWRP.

So, I changed the device tree so it's all "m7wls" for all values and we'll just have to live with ROMs that might install on one (say TWRP) and not the other (say PhilZ). I'm not here to solve that mess, I'll just accept the history an propagate the mess is what I'm saying. Wish that weren't true, but there's little I can do about it unless the community screams loud enough at the ROM developers to carefully check both "m7wls" and "m7spr" -- or the ROM developers scream enough about the stupid inconsistency and ask that we go ahead and change TWRP to conform to CWM/OMNI. Dunno which is right, just going with the flow now. Why you ask? Because [MENTION=2610120]avwheeler[/MENTION] got bit by it and a badly written installer blew the check and installed an international version of everything on his phone. Messy!

So, expect a build in a bit -- throw away the one you have as it is CWM/OMNI compliant on the device naming, not TWRP compliant. I'll post here when it's done (I already built it, but noticed I forgot to remove the USB button when testing it, so am rebuilding).

Edit: [MENTION=3173383]elvisypi[/MENTION] note: the battery '+' indicator should turn on after a bit, you shouldn't have to change the screen at all. The event propagation is slow, so it seems like it's not working, but it should be if you wait a bit. I'll look at speeding things up.
[Sprint HTC One (M7)] elvisypi:
Is it possible to show the charging light while charging? On my old sensation we used to have that feature
[Sprint HTC One (M7)] tdhite:
It has to be. LOL. I'll take a look. Next build becomes 2.6.3.4 or higher -- I'm thinking we're stable and done enough to cook a thread.
[Sprint HTC One (M7)] avwheeler:
Quick Note: Everything is working great for me, I have had no issues to report.

Warning: Be very careful if you are using a theme, knowing better I kept adding themes back. The theme I was using would wipe cache and system and I selected chache and dalvik under advanced wipe. Some themes might work fine, if you are using a theme make sure you have a backup or wait until verified themes are available.

***This has nothing to do with new recovery, just that some themes need to be updated.
[Sprint HTC One (M7)] SuperiorEVOlution18:
Awesome to see all the work that's been done!!!! Thanks for continuing to support the community with this! Much appreciated!
[Sprint HTC One (M7)] elvisypi:
Wanted to report that charging animation when phone is off doesn't seem to work anymore. Yesterday I tried the first build and it seemed to work. Today after flashing the new one (not sure it has the same date) I flashed hboot 1.55 to see if charging animation would work. It just freezes and can only boot by keeping power button pressed. I than downgraded to hboot 1.44, but same thing
[Sprint HTC One (M7)] tdhite:
Hmmmm. Crap. Will take a look at why the change -- no change in code.
[Sprint HTC One (M7)] tdhite:
ok -- I'm a little stumped on this one. It should work (but the word 'should' just tells you I have no clue at the moment why it doesn't --t code 'looks' good). Can you send me a last_log from /cache/recovery, by chance?

Just fyi -- testing out the red charging LED now. :) -- not too bad to add it -- in fact TWRP doesn't have support for that that at all, but it's an easy addition to the code. Looks (at first blush) like the model I put in place should realistically work on any device (but that has yet to be proven).
[Sprint HTC One (M7)] Comet1966:
If I may ask, what was holding us back from staying up-to-par with the other HTC One's?
[Sprint HTC One (M7)] elvisypi:
I flashed the recovery again, tested and here's the log, but I'm afraid there's nothing in it https://www.dropbox.com/s/ui7ils3z8tw8dhp/last_log

I can only describe what happens. After insering charger the red light appears, it's very strong, normally after a few sec it should dimm, but it doesn't. Even if I remove charger, light is still on and have to keep power button to get it to boot. The strange thing is that I'm sure the first build it did work. Wanted to try again, but it seems you have replaced the file with the new one.

I remember coming from the sensation it was the first thing I noticed, I thought it didn't charge at all. I used to have 4ext recovery.

Thanks for the effort you are putting in this, you're a great dev!
[Sprint HTC One (M7)] tdhite:
Ok, brother (and all), nightly (well, a little more than nightly) is up -- I cleaned up all the 'back-links' in the various other posts as well to point at the latest so no one lurking through old posts will get old versions:

Download Nightly Recovery Build

View MD5 Signature

[MENTION=3173383]elvisypi[/MENTION], there's a 'hidden' trick to getting old versions: just change the date part of the build to the one you want. So for the 2/12 version you wanted to compare against, just copy the Download link to your clipboard, edit it to, for instance, ".../openrecovery-02-12-2014.img" and ".../openrecovery-02-12-2014.img.md5". Magic should happen.

Changelog for the build:

1) Battery LED turns red when charging. I did not mimic the normal booted Sense style of turning green when fully charged -- that will require a lot more surgery to the code to really do that right, which I'll do later today. So, since I know there's more code mods coming, I decided it's not to change versions just yet. Next build. :) -- we'll be done this weekend. Event propagation on the battery charge check is still only every minute (part of the basis of TWRP -- looking at how to speed up still). Just wait -- it'll show up.

2) I didn't find a bug (yet) as listed in the previous post about charge animations. I'm still stumped, but I'm building an engineering debug version which will spit out a *lot* of debug info so I can get a log of just what is happening to the charge animation.
[Sprint HTC One (M7)] elvisypi:
I tested it. It still seems to freeze when turned off. Maybe it has sth to do with hboot 1.44? Anyway the charging light works in recovery, superb, I really missed it!
[Sprint HTC One (M7)] tdhite:
Cool on the battery charge LED. :thumbup:

As for the freeze when booted from power off via plugging in to power. Think I know what's up. If so, it's gonna take more code surgery. I think it's related to the device property name being "m7wls" as opposed to "m7spr" -- that changed, which is not a code change per se, rather a build change in the device tree.

I'm betting the old twrp acts the same? It actually charges but the ui/charging animation is frozen? I'm really disliking the name convention mess between cwm and twrp, because we build with cwm as the base, and muck the device tree to effect the name change.
[Sprint HTC One (M7)] elvisypi:
No the 2.6.3.0 version doesn't have charging animation at all on 1.44 hboot. With the old one and 1.55 hboot there is charging animation, it plays ok, but than screen doesn't seem to go off, there's always some dimm light.

With your recovery (first buid) I got charging animation on hboot 1.44. It was differen't from the other (more symplistic) and screen turned off ok after. Now with your new recovery animation doesn't even start. But phone is unresponsive and charging light doesn't go off if I remove the charger
[Sprint HTC One (M7)] tdhite:
Figured it out -- it is unquestionably the m7wls / m7spr device property naming issue. This is causing so many idiotic issues I'm tempted to throw up a vote to ROM devs and others to determine if this isn't the time to stop the madness and just move forward with a unified view of naming.

Anyway -- I'll see about the surgery necessary to the build to get it done. I guarantee, though, the modifications will never get accepted by either OMNI nor CM in their source trees, so forever the TWRP build will be a one-off issue and constant merging will have to take place between the general Android initiatives and our phone's want for a non-unified name. I have to change the venerable "android_device_htc_m7-common" project to get the 'm7wls' naming correct in all areas. That's the reason it'll never be accepted by CM or OMNI -- too much radical changing just for this one device.

I'll fork the common project for now, so we have the easiest time with merging the larger initiatives' (CM/OMNI) code bases in future.
[Sprint HTC One (M7)] elvisypi:
Yes good idea, maybe if we discuss it we can convince devs to make a unified name. I may be saying sth stupid, but can we make the recovery accept both names? Like the GSM models which can flash other models (m7_u, m7_ul, m7_att, etc) just fine?
[Sprint HTC One (M7)] tdhite:
Fixed :D v2 of today's 'nightly' (though it's really afternoon):

Download Recovery Build

View MD5 Signature

Not much left. :D (again). Lemme know how this one goes. Offline charging should now work (and have that rudimentary looking battery icon animation -- somebody gimme some cool graphics! ;) ).

Edit: I notice some kernels/roms have problems booting the first time right after offline charging. Not sure why that is (InsertCoin 8 (svn 198) did it to me once). But a hard reboot sets it fine. Looking at the kernel last_klog from my Elite Lunar custom kerrnel, but it's not the recovery, it's something with the kernel (as far as I can tell so far).
[Sprint HTC One (M7)] elvisypi:
Success! Ugly animation is back, LOL
[Sprint HTC One (M7)] tdhite:
Permission to open new thread Granted

All,

Just giving notice that I'll be opening a new thread in Development for future posts. [MENTION=912474]Dees_Troy[/MENTION] graciously ok'd my request to do so with the caveat that he'd like to be kept up to date as to the code developments and device trees. I will, of course, do that both through official gerrit submissions where appropriate, and will always keep up to date my forks on github of everything anyone needs to duplicate everything I do for the Sprint HTC One builds.

The first of that thread will be tomorrow. I'm trying to figure out exactly what version of TWRP we actually have now (it's very, very fresh, merged with the official TWRP sources just today for the most recent build that fixed everything). I have one more add to make -- that is turning the LED green when battery is fully charged, but that's not overly dramatic from a stability standpoint.

Thanks goes to [MENTION=912474]Dees_Troy[/MENTION] for granting my request, but moreover for creating this great recovery and being a broad set of shoulders on which I can stand.
[Sprint HTC One (M7)] elvisypi:
Great man. I tried to make some nicer charging animations. If the size is no problem I can make sth bigger
[Sprint HTC One (M7)] systemshock869:
I want to help.. What can I do?
[Sprint HTC One (M7)] tdhite:
Just find bugs (LOL). We fix 'em here in Sprint One Land.

With that said -- while I said next post would be in the new thread -- sneak peek for those of you who have been so helpful testing the builds. This one is the release unless you find something crazy wrong:

Download RC Build

MD5 Signature

[MENTION=3173383]elvisypi[/MENTION] -- LOL, I made the two-color LEDs for battery work, and they are disconnected from the UI threads -- it's all it's own kernel thread and updates every two seconds (don't need more -- no need to eat CPU in recovery absent real need). Also, the battery graphics you sent will go into a 'custom' build which I'll post as well. Two build forms we'll keep: one is 'official' sources, the other with our mods we like in this forum.

Unless you all disagree -- this is the release and what will get posted later this evening.
[Sprint HTC One (M7)] elvisypi:
Charging animation stock

This is like the battery icon in settings
[Sprint HTC One (M7)] elvisypi:
Everything works perfectly. Charging light comes very fast, and green light works too. You're a genius!
[Sprint HTC One (M7)] wetback:
I have an HTC One for Sprint

Installed TWRP but when I reboot to recovery it starts but the screen doesn't acknowledge any touch.

Thoughts or help please?
[Sprint HTC One (M7)] budeone:
What firmware are you on?
[Sprint HTC One (M7)] DNarsingh:
I know [MENTION=4988866]tdhite[/MENTION] has been doing an excellent job of getting us up-to-date versions of TWRP, but I just wanted to point out the they have released an updated 2.7 version on their website:

http://teamw.in/project/twrp2
[Sprint HTC One (M7)] tdhite:
Wow -- no notice at all -- just a new release.

How strange, though -- they completely switched naming:

[ro.build.product]: [m7spr]

[ro.cm.device]: [m7spr]

[ro.cm.version]: [10.2-20140307-UNOFFICIAL-m7spr]

[ro.modversion]: [10.2-20140307-UNOFFICIAL-m7spr]

[ro.product.board]: [m7wls]

[ro.product.device]: [m7spr]

[ro.product.name]: [cm_m7spr]

That's all different than before and will break a great many ROMs. I wrestled with that same name change and ultimately gave in to keep the old m7wls everywhere.

The code base is the same -- my recovery build just adds some features (name to m7wls instead of m7spr, battery LEDs, Performance mode, and off-line charging graphics.

This is strange all of a sudden. I can go backwards and build based on 10.2 as well, but the name change is rather striking. Probably time for some thoughts from everyone ...

Kill my thread and go with the 'base', port my adds to the 10.2 basis they're using, or just continue on?

Tough one to consider, I'm all good for whatever.
[Sprint HTC One (M7)] rootlinux:
I say port and keep going with your special sauce. :)
[Sprint HTC One (M7)] budeone:
What he said!
[Sprint HTC One (M7)] bigdee1974:
This is nothing new. If I remember correctly, TeamWin has released most of the updates before updating XDA or GooManager. Could be wrong but this is what I remember. ;)

Side Note: I could be wrong because it has been along time since update.

Edit: As of the date/time of this post, GooManager still is not updated.
[Sprint HTC One (M7)] Aldo101t:
on there web site they removed 2.7.0.0 and added 2.7.0.1
[Sprint HTC One (M7)] bigdee1974:
The website still shows the change log for 2.7.0.0 and the download page shows 2.7.0.1. That tells me it was a minor update but 2.7.0.0 is still stable and functional. Not sure what the update was but I am not sure how this is relevant to my post about what I remember when it comes to surprise updates from TeamWin. :confused:
[Sprint HTC One (M7)] Aldo101t:
well, you said goomanager didn't have it yet so i was trying to help you out----that it was on their web site
[Sprint HTC One (M7)] bigdee1974:
Ok, I understand, I did download from website and flashed about half hour ago. So far so good. Thank you for sharing TeamWin!
[Sprint HTC One (M7)] rootlinux:
From my understanding 2.7.0.0 wasn't supposed to be released by Team Win.

2.7.0.1 is official.
[Sprint HTC One (M7)] tdhite:
It's not official.
[Sprint HTC One (M7)] rootlinux:
Thanks bro.

Thought they actually made that one.
[Sprint HTC One (M7)] tdhite:
Well, wait, looks like the thread title was updated,, so I'm wrong. That's the signal the said would be the case.

So official I guess.
[Sprint HTC One (M7)] rootlinux:
That's what I was going on.

Saw the changelog.

I thought I was wrong. :)
[Sprint HTC One (M7)] acme64:
why would they post something on their page they didn't make? i'm confused
[Sprint HTC One (M7)] Paleryder:
Tdhite how did your version fair did they use it or....?
[Sprint HTC One (M7)] tdhite:
The standard release has none of my enhancements. I'll generate one soon that uses the 10.2 underlying android build source so my build will match exactly the android build parts. There's no issue using the 2.7.0.0 build I have on my thread if you prefer those additions. Same code base as the official release, just uses android 11 build tree for the underlying bits.
[Sprint HTC One (M7)] Kyusaku:
Goomanager and TWRP Play Store app keep pulling 2.6.3.0.
[Sprint HTC One (M7)] rootlinux:
My flash pack has 2.7.0.0 by tdhite and 2.7.0.1
[Sprint HTC One (M7)] bigdee1974:
GooManager probably is not updated yet. You can flash the latest recovery image via fastboot from TeamWin website or aroma via rootlinux thread.
[Sprint HTC One (M7)] WKrolik:
How about decryption of Sense encrypted ROM's? Make someone this working with Revolutionary HD?

Best regards
[Sprint HTC One (M7)] ewMAXIMUS:
Have a "Backup failed" error message. InsertCoin rom v 2.1.4.
[Sprint HTC One (M7)] bmwkeith:
Got that one earlier this week on several backup attempts. Updated to 2.7.0.4 to fix.
[Sprint HTC One (M7)] hoesnaps:
Twrp manager says my device(m7spr) isn't supported.
[Sprint HTC One (M7)] scouse83:
problem installing this

hey guys i just used htcdev and unlocked my bootloader but when i tryed to do this part below the device didnt reboot and if i reboot it i dont get a promp to install the full version any help please guys

In TWRP, select reboot -> system. You will be prompted to install SuperSU. Swipe to confirm.

When your device boots you will see a prompt to install the full version of SuperSU. Select to do the TWRP install. Your device will download a file, reboot into TWRP which will automatically install the file, then reboot again.
[Sprint HTC One (M7)] adamlee011:
Just flash a rom that has roor. That's what you installed twrp for anyway right ?
[Sprint HTC One (M7)] scouse83:
I tried to flash the rom and it crashed while flashing rom mate
[Sprint HTC One (M7)] nuxbag:
What is the difference with twrp tdhite
[Sprint HTC One (M7)] StormyNight:
TWRP by tdhite is better optimized for AOSP-based ROMs imo, but it fixes a lot of problems as well.
[Sprint HTC One (M7)] rootlinux:
True that tdhite does an amazing job.

I don't have this device anymore but I just updated the flash pack in my thread.
[Sprint HTC One (M7)] GadgetFreak:
Thanks, RL. It's still kind of funny to me that the same crowd of us that were the main players at PPCGeeks are still in the thick of it here at XDA...
[Sprint HTC One (M7)] rootlinux:
Good people tend to stick together my friend. :)
[Sprint HTC One (M7)] GadgetFreak:
Amen to that!
[Sprint HTC One (M7)] thatboiken:
my recovery is telling me unable to mount data,cache, and system. its not recognizing and the sdcard system plz help
[Sprint HTC One (M7)] miko12312:
Haven't had to use a backup for awhile till now , but I have noticed this has fixed can't find external storage , also why does it now wipe all data but media , I haven't seen that before lost a lot of saved info and game saves on apps that don't use a cloud back up and titanium takes too much space and time
[Sprint HTC One (M7)] scottspa74:
I believe data/media is the "storage" on nexus devices, and what google wants used for such. I could be way wrong, just going from semi-memory.
[Sprint HTC One (M7)] ajbiz11:
You need to make sure you have a SPR kernel flashed and try again

If that doesn't work, then you'll have to RUU
[Sprint HTC One (M7)] thatboiken:
I've done the ruu multiple times it's still doing it the problem only happens with trwp recovery
[Sprint HTC One (M7)] ajbiz11:
And you have the right version of TWRP?
[Sprint HTC One (M7)] thatboiken:
Yep http://teamw.in/project/twrp2/164
[Sprint HTC One (M7)] StormyNight:
Isn't that the wrong version of TWRP? You should flash http://teamw.in/project/twrp2/171
[Sprint HTC One (M7)] ajbiz11:
Yeah he needs to flash this
[Sprint HTC One (M7)] jpwhre:
I have been having a problem with recovery and can't use anything past 2.8.0.1 and was wondering if others have same issue. I will flash current and see what it says, but basic info is it fails everything. Won't backup, won't restore, won't install any type of zip.
[Sprint HTC One (M7)] sauprankul:
2.8.1.0 here, none of those issues.
[Sprint HTC One (M7)] jpwhre:
Ya I reinstalled 2.8.4 and its working ok now. Before it would not spew progress on bar below and than pop up failed. Now I get no progress on bar and suddenly it's done.
[Sprint HTC One (M7)] sauprankul:
Just got 2.8.4 too, along with a teal splash and teal material theme. My phone is ready for lollipop, HTC. Bring it.
[Sprint HTC One (M7)] waqasr:
I have a question!!

Hello Guys I am new to TWRP, I have always used CWM in past but this time I am using using TWRP 2.8.4.0 as my

recovery, My question is when I try to make a backup it asks me what I want to backup. The options it gives me are

boot, cache, Data, Recovery, system, Android Secure, Enable Compression, and Generate MD5. Where only

Boot, Data, System, Enable Compression checked by default. CWM never gave me any options just simple backup

so I wanted to ask which ones out of the unchecked ones I really need? and their benefits.

Sorry if its a noob question. thanks in advance.
[Sprint HTC One (M7)] coal686:
(Long answer in my head)

TL, DR: Personally, I only use the preselected ones.
[Sprint HTC One (M7)] sauprankul:
Do you enable compression? How much space does that save you?

I was always afraid of that option because I never tried it before.
[Sprint HTC One (M7)] coal686:
I don't know. Like I said, I just roll with whatever is preselected. So, if it's preselected, then I do use compression, if not, then I don't. As for space, I've never run it both ways so I can't answer that either.

Honestly, I make backups but then I rarely use them since I'm very picky about what ROMs go on my phone. I tend to use a ROM for a while (months) until I get bored or something better comes out. Then I flash something new.
[Sprint HTC One (M7)] sauprankul:
Same except it's more like days.

My mother was saying something about flashaholics anonymous. I tell her I'm in control. I could stop anytime if I wanted to.
[Sprint HTC One (M7)] letmeputdatipin:
I don't use compression. All it does is save u a little space but the backup takes a lot longer. Without cmp. the backup is a bit quicker.
[Sprint HTC One (M7)] waqasr:
just did 2 backups to test this, The one with compression enabled came down to 1.56GB

and same backup with out compression enabled came down to 2.44 GB. Yes it is sort of fast

but I would rather save some space then to save a few minutes. The time difference was only

5 minutes or so. I did not time it so only giving you a rough idea.

Rom was SD12.