yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] tdhite:
Truth be told -- I'll do whatever the folks here in Sprint-land want. But just going off in a direction incompatible with the 'official' release make pain if we're not all on the same page. So, three options:

1) Keep my builds as they are -- entirely different device properties, based on CM11 and thus fully compatible ROM installs with CWM and PhilZ;

2) Keep device properties, but build in 10.2 (JB) core tree so it's at least sort of compatible with old stuff, and the new TWRP official release;

3) Abandon the first item totally, switch device property names, build pursuant to JB as does the official release, and add my enhancements.

To me? Option 1 is what the TWRP folks should have done. I still don't understand the logic they took. Option 3 is palatable, but will cause the same headaches for our ROM devs. I'd hate to be them right now. Gawd ...
[Sprint HTC One (M7)] elvisypi:
Well this whole name thing has been going on for too long. Why do they have to invent names, when htc gave it an official name? We don't want you to have to do all the work from the beginning. If you are able to merge the upcoming code changes with the kk base I don't see why we have to switch

Gesendet von meinem HTC One mit Tapatalk
[Sprint HTC One (M7)] Aldo101t:
has anyonr tried the official 2.7.0.0 yet, to see what happens??
[Sprint HTC One (M7)] elvisypi:
Nothing, just the old lame official build, with no charging light, performance...

Gesendet von meinem HTC One mit Tapatalk
[Sprint HTC One (M7)] Aldo101t:
doesn't make sense?/
[Sprint HTC One (M7)] tdhite:
I'm already merged. That's my 2.7.0.0 build. Same code base as the official, with my enhancements and the m7wls naming for all properties. No prob there.

I think the naming convention , however, is a crucial change. They went with the pure CWM names, as I did in my original build, if you remember,, but that broke all the rom installs so we decided it was best to maintain name compatibility.

I'm betting they kill their build soon after realizing the users are screwed. The first guy who installs a ROM that checks for m7wls , and since its not that in the properties installs the international version of the rom, thus wrecking the phone and requiring a RUU will scream loud enough.
[Sprint HTC One (M7)] elvisypi:
What do you expect to happen man? It has the otg fixed and the other fixes tdhite has included long ago, but none of the goodies he provided and uses JB as base. Furthermore it'll cause a lot of trouble with the existing roms cause they have again changed the device name. Do you understand now?

Gesendet von meinem HTC One mit Tapatalk

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

I think it's better if all ask them to keep the naming. Can you try talk to [MENTION=912474]Dees_Troy[/MENTION], he is a member of the TWRP team so I think he can do sth about it.

Gesendet von meinem HTC One mit Tapatalk
[Sprint HTC One (M7)] tdhite:
Yea, I plan to jump on the IRC tomorrow when the team is around and figure out what's up.

My adds are easy to do in any version, so not worried. Most of the fixes for fundamental things (e.g., screen blank and otg) were just device tree goofs or otherwise fixed up in the cyanogenmod base sources and kernel, so again, not at issue.

It's the obvious naming overlook that makes the folks get rightfully angry. No respect for the device is what it looks like, whether or not the case.
[Sprint HTC One (M7)] GadgetFreak:
My vote is for you to keep doing what you have been doing. It works and works well, and I have seen some complaints on the Nexus 7 boards and the international version about the official 2.7.0.0 release already... At least Dees_Troy updated his theme to support 2.7.0.0...
[Sprint HTC One (M7)] Riff76:
I second that motion
[Sprint HTC One (M7)] tdhite:
For now, I turned back on the downloads and modified the OP to alert folks to the issues at hand.

I tried a few ROMS with the official release and they blew chunks, as I suspected on the name change.

We at least need recoveries that work.
[Sprint HTC One (M7)] GadgetFreak:
Amen. And thanks!!
[Sprint HTC One (M7)] tdhite:
Good news on the 2.7.0.0 TeamWin release !!

The TeamWin Recovery Project folks dropped 2.7.0.0 to Goo.IM (3.7.2014) that makes any prior builds (including 2.6.3.0) completely incompatible with theirs. DO NOT USE THAT VERSION -- it was actually not "released" by the team, rather appeared on goo.im for download.

I got with [MENTION=912474]Dees_Troy[/MENTION] this morning and he fixed the m7wls/m7spr thing, so the better build is here.

That's still not a 'release' but at least purports to fix the name convention.

He also wants to stick stick with the CM10.2 source tree as the build basis, so I'll be changing my enhancement builds to 10.2 in the near future. The differences will be, until the base TWRP supports the same: battery LED support, performance enhancements, etc.
[Sprint HTC One (M7)] elvisypi:
That's great news! I knew they couldn't just ignore us. I really hope they put your commits in the official buid, all twrp users deserve to enjoy them ?

Gesendet von meinem HTC One mit Tapatalk
[Sprint HTC One (M7)] tdhite:
They will get the mods in over time. The truth is they have many devices to worry about, and the changes I made to support battery LEDs won't work on all of them. They'll make a library out things and one day will get there. 'Til then, I'll just keep building. :)
[Sprint HTC One (M7)] Sloth:
Do your thing brother we all appreciate your efforts :)
[Sprint HTC One (M7)] rootlinux:
If you build it they will come. :)

---------- Post added at 04:03 PM ---------- Previous post was at 04:01 PM ----------

So is 2.7.0.1 the latest official from Team Win?

It uses the old method?

If so I will update my pack.
[Sprint HTC One (M7)] Cj719:
I like team twrp but I personal love what u have done with it and building off of jb base to me is going backwards
[Sprint HTC One (M7)] tdhite:
It's not official. They won't call it that so it's beta until an official update comes in the form of a thread update or similar. That's per the team's comments to me on the irc.
[Sprint HTC One (M7)] GadgetFreak:
As far as I am concerned, I am keeping your 2.7.0.0 build installed for now. There is nothing wrong with it, so I think the best option for now is to let sleeping dogs lie...
[Sprint HTC One (M7)] rootlinux:
I agree with that.

Was looking at it from a standpoint of updating my recovery pack. ;)
[Sprint HTC One (M7)] tdhite:
TWRP2 Touch Recovery 2.7.0.2 -- Keepin' it out in front ...

Just a quick release:

See the Downloads page and Change Logs for more info.

I remain conflicted on the CM11 / CM10.2 difference. The Cyanogenmod folks end-of-lifed the 10.2 code a while ago, all new work is on the CM11 tree. Makes me want to be there since in the end, this thread is about the most up to date TWRP as possible. Given the patch [MENTION=912474]Dees_Troy[/MENTION] put in the TWRP2 code base to cover for the backward compatibility issue in getprop and old update-binaries, it makes 10.2 ever more distant, imho.

Anyway -- I'll debate for a while, but this new release is up to date as it gets. Have fun, there's more coming, as usual.
[Sprint HTC One (M7)] GadgetFreak:
I really do think your approach is going to be the way to go. It makes no sense whatsoever to continue on CM 10.2...
[Sprint HTC One (M7)] tdhite:
Well, there are some reasons the authors rightly need to consider. I just don't align right now. We will see :).
[Sprint HTC One (M7)] tdhite:
It's all about choices. Without those, we stagnate. Not here, no stagnation allowed in this thread. :D
[Sprint HTC One (M7)] cschmitt:
And odd because TWRP for m7_ul is built against omnirom 4.4.2 kernel.
[Sprint HTC One (M7)] GadgetFreak:
This just keeps getting even more odd. But what do I know, I just like to theme my phone and keep out on the bleeding edge as it were... :silly:
[Sprint HTC One (M7)] rootlinux:
Added your update to the flasher. :)
[Sprint HTC One (M7)] budeone:
That is perfectly said.
[Sprint HTC One (M7)] avwheeler:
Greatly appreciate your efforts and contribution, I have not had issues with any of the builds on any rom, keep up the great work, tdhite your statement about choices is perfect. I always opt of the cutting edge, issues or not.

Sent from my HTC One on some Awesome Rom..
[Sprint HTC One (M7)] tdhite:
It's always interesting to follow what *users* want. I'll just say this: in business we look at things relatively simply: users vote with their feet -- either they buy, or the don't. That's how they tell you what they want.

Right now, after a solid few days of downloads, the 'tdhite' 2.7 has 3x (three times) the downloads of the official release from teamwin.

That doesn't mean one is technically better. What it says, to me, is the users tell me what you've been saying: stay the course, play the edge.

So be it.
[Sprint HTC One (M7)] GadgetFreak:
:good:
[Sprint HTC One (M7)] tdhite:
Looks like a minor bug was introduced into the code base. Not sure when, but looking into it.

When you use the terminal in recovery, a few low level commands cause TWRP to restart (not reboot, just restart). Your screen will come up in sleep mode, so just touch it to unlock.

Commands like dmesg or similar surface the restart. I'm looking into it and when I find it will contribute the fix back to the omnirom basis code if teamwin didn't notice already and fix.
[Sprint HTC One (M7)] tdhite:
2.7.0.3 coming, but NOT DONE (for the person who downloaded it)

All,

someone snuck in and downloaded a test version of the latest and greatest -- 2.7.0.3. However, it has an issue with selinux and make_ext4fs, so if you are that person, and you flashed it, do yourself a favor and go back to 2.7.0.2. I'm sure you caught the change log info and there are significant changes to the build (like new kernel, all new underlying bits, etc.). Don't use versions I don't have on the Downloads post unless you really, really are brave.

It's coming ... I promise, just hang 'til I get it all done and smooth.
[Sprint HTC One (M7)] systemshock869:
This has got to be one of the best development threads I've ever followed on XDA.. Thanks for your awesome work!
[Sprint HTC One (M7)] tdhite:
heh -- we aim to please, at least that's how the saying goes.

For the record -- the lucky winner that got that download, you're likely not going to get hurt, it'll just confuse the heck out of you if you wipe disks (or do restores or whatever that ultimately do the same thing). A /system wipe right now is taking about, ooohhh, 10 minutes. It's a long story ... but if you wait, it *will* ultimately create the file system. Fix that and we're golden. The rest is wicked good!
[Sprint HTC One (M7)] tdhite:
In case anyone cares (yea, right, lol) -- the culprit is -- ding ding ding:

ret = ioctl(fd, BLKSECDISCARD, &range);

in the wipe function of ...android/system/extras/ext4_utils/wipe.c

soon ... now that I know *exactly* the culprit. It's taking 100% CPU for, well, minutes all in IO, and all about 'secure' MMC crap. Just have to figure out if it's reasonable to bypass -- in fact, the committer's comment (from CyanogenMod) is:

ext4_utils: Yet another MMC discard pain in the ass

* Secure discard on this device is painfully slow. Use regular

discard until the issue is sorted out.

... Yip -- it sure is.
[Sprint HTC One (M7)] tdhite:
Nothing like replying to yourself. :cool:

I only do so to get the info here for other folks building recoveries or kernels off my repos. First -- if you do so, recognize the significant changes to the device trees (m7-common and m7wls (really m7spr with prop changes and now more -- see below)).

The gist is this -- the secure delete is what's taking time. CM11.0 now defaults to secure delete, then make the file system when 'wiping' file systems. To be honest, that's true to the term -- truly 'wipe' the file system.

To secure delete, the ext4 utilities library asks the kernel driver (if it supports the BLKSECDISCARD flag) to queue up all the sectors/dirs/whatnot on a device and zero them out when 'wiping.' That's done, obviously, as a 'secure' wipe. Wipe -- the term has history, right? Wipe the data -- zero it out (really they should urandom it like you do before LUKS encryption setup).

In any event, CM supports a global compile flag as NO_DISCARD_SECURE to blow by the zeroing out operation. Therefore, I'm setting that in the builds. That way, 'wipe' as a term means what most folks in the TWRP world think of -- just make me new space and quickly 'wipe everything out' (as opposed to wipe it clean).

Soon ... building now, takes a few hours given the compile flag change, but I believe it'll work and presto -- we'll have a recovery based on the CM 11.0 code that *is* taking commits -- meaning we're on the edge of 'it all' -- heh. Right where promised.

-------------------------------------------

Update: Yip -- that did it. Looks good. 'Wipe' ops now take just a sec or so. One day, might consider making a 'secure wipe' an option so when you transfer a phone to another, it's really, really wiped.
[Sprint HTC One (M7)] tdhite:
[RECOVERY][03/22/2014] TWRP2 Touch Recovery 2.7.0.3

New build is up. See Downloads Page, and Change Logs for details.

This rev has significant underlying upgrades. Notably we're not only on the tip of TWRP2, but also the tip of CM 11.0 underlying android bits and related kernel -- both the officially supported sets so we're no longer 'out there' in anything. It's all CM and TeamWin supported code in which commits are active.

Have fun and read the Disclaimer, as always!

---------------------

Edit: the tdhite enhancements, just for the record, do not yet exist in the TeamWin code base. Those are special Sprint toys!
[Sprint HTC One (M7)] GadgetFreak:
Nice!

Update @12:45am: Just flashed it, after adding my Splash screen and adding the lime green that I like and it works perfectly. Thanks!
[Sprint HTC One (M7)] Paleryder:
Totally awesome TD TYVM
[Sprint HTC One (M7)] elvisypi:
I tried the latest recovery and it takes forever to format partitions. I tried with two different ROMs,badboyz and Tema nocturnal's. Attached last recovery log
[Sprint HTC One (M7)] mptherealmp:
Might want to check the MD5 sum on your download.
[Sprint HTC One (M7)] elvisypi:
The flash finished successfuly, it just took a long time to wipe partitions
[Sprint HTC One (M7)] JT man:
Hey tdhite couldn't get my otg to mount on the latest I'll post a log in a bit
[Sprint HTC One (M7)] tdhite:
Please do send a log. Also, if it fails at first, try this:

1) plug it all in;

2) unplug the USB;

3) replugin the USB.

TWRP, by default, supports only VFAT, so be sure of that. In any event, I use OTG all the time so it works, but I'm concerned even one mount didn't go.

But, by magic (heh), if you unplug it and replug it, ext4 will get support on the flash disk.
[Sprint HTC One (M7)] tdhite:
Vibration is totally good to go -- Settings | Vibration Duration -- just turn it down to suit your desires.

Your theme may well hide that button, so beware. Just load the default theme to be sure you're not running into that.
[Sprint HTC One (M7)] tdhite:
Yip -- verified. I missed a pathway on the secure delete (see a few posts up). Crap -- my apologies. It's *really* a secure format, though, so not a disaster ;).

I'll fix 'er up -- gimme a day or so to track it down. Regardless, it's safe.

Just to see -- for laughs if you want -- when formatting, go ahead and 'adb shell' on in to the recovery. Then issue this:

top -d 1

and it'll show a single CPU (20-25% of CPU) in IO. To see all four processors, just hit the '1' key (numeral) while top is running and it'l show you all four processors -- three bored to death, one really busy. Hit 'q' to quit out of the top program.

Sorry bros -- one little miss, but at least safe, albeit confusing. Issues post updated.
[Sprint HTC One (M7)] tdhite:
For those interested -- found the pathway -- it's update-binary (a program that is part of flash zip). The update-binary is requesting a format, that drops to 'make_ext4s.' However, that call is *in* the update-binary, and therefore makes a direct request on the kernel, which is honoring secure deletes.

I know how to fix now, but have work today and then later will look to upload a quicker version that prevents the update-binary from issuing the request (really, causing the kernel to ignore the request).
[Sprint HTC One (M7)] bigdee1974:
No need for sorry, I appreciate you sharing your hard work. Waiting patiently until you get around to it.
[Sprint HTC One (M7)] GadgetFreak:
I'm glad you are on top of this. This level of develping is way past me. Theming yes... :cool:
[Sprint HTC One (M7)] PillowMetal:
I am very interested - as a fellow developer I appreciate the nitty gritty details of the code. Thank you for the active development on this recovery that languished for so long.
[Sprint HTC One (M7)] budeone:
This new version had my vibration back to normal again.. Happy camper here.. Thanks
[Sprint HTC One (M7)] tdhite:
Folks -- going to test the kernel mod for the secure delete. It's at a very low layer (known as ioctl calls) and I don't like that we have to muck that. I'll risk my own device rather than make such changes and not test seriously.

Hang in, if it bugs you (the format on some ROMs going slowly) just back off to the prior build for a bit.
[Sprint HTC One (M7)] tdhite:
Ok brothers and sisters. You tell me if:

1) it's not smokin' fast on *any* format; and

2) it's not correctly formatted (including fstrim ops if you get there); and

3) it's not stable.

Yes, this is a total beta build, as it has kernel mods (still the standard kernel, just with a rejection of secure discard requests at the bottom of the MMC driver). Not alltogether unlike what [MENTION=4684315]flar2[/MENTION] and [MENTION=2967322]buckmarble[/MENTION] do with certain enhancements to their custom kernels, it's just for a different purpose they have no need for (recover operations).

Let me know -- if golden, we release. I'm using it regularly, just fyi:

http://goo.im/devs/tdhite/twrp2//openrecovery-m7wls-2.7.0.3-03-25-2014.img
[Sprint HTC One (M7)] bigdee1974:
I flashed new recovery last night via flashgui and then dirty flashed BB sense 6 and the flash time seems to be normal. Basically, I think everything is back to normal. Thank you for sharing.

*Note: The build number still shows 2.7.0.3, I imagine that is just an edit.
[Sprint HTC One (M7)] tdhite:
All seems ok -- 32 downloads and no reported issues. I updated the Downloads page with this as a slipstream release and turned off access to the prior build.

Of note -- a Wipe of *any* partition still performs a discard operation (which is kind of like the 'fstrim' folks like) on the partition, so if you ever feel like you want to absolutely assure a flash gets a totally clean disk (though not zeroed), just wipe first -- that way the recovery can control what's really happening.
[Sprint HTC One (M7)] rootlinux:
Do I need to update the flasher again or is it the same 2.7.0.3 I already added?

Still don't have my device to test it.
[Sprint HTC One (M7)] tdhite:
It's a slipstream, so update. Just check MD5.
[Sprint HTC One (M7)] nwo122383:
[MENTION=4988866]tdhite[/MENTION] any plans to make multi Rom work for us. I see in the HTC one original development thread they have this, so I thought I would ask.
[Sprint HTC One (M7)] tdhite:
Point be to a thread so I don't have to kill myself searching. I'll have a look at merging things.
[Sprint HTC One (M7)] nwo122383:
Here you go http://xdaforums.com/showthread.php?t=2460886
[Sprint HTC One (M7)] lambofgod13:
Flashed it using gui flasher. Thanks it works perfect. Thank you for your hard work.
[Sprint HTC One (M7)] tdhite:
Cool! Working on percentage display in offline charging now. Going to use 11 bitmaps of nice numbers (0 thru 9) and a percent glyph. Hate the fonts available in recovery and don't want to compile in any more junk like that.
[Sprint HTC One (M7)] tdhite:
I rarely ask ... but need a volunteer.

All,

I have but one phone, and can't brick it. LOL -- funny you say?

Well, I need someone to test a build who can deal with a potential brick (or at least a tough to recover soft-brick). I do not believe it's likely, but hey, I'm mucking the code and I know what it's doing. I'm modifying the charging app (offmode and online both) to cover for some cooler stats while charging. Alas, I don't have a backup.

So, if someone has a phone with a cracked screen that you don't care about, or maybe someone has an expendable, I could use the test help.

I promise, I'd not ask if I had not at least *some* confidence in the work, just not enough to risk my world (literally, my One is everything right now -- business, bla bla bla). I've risked it on everything, but this time you can't watch the boot -- it's 'offmode' meaning from power-off to plugin/wait for graphics on offmode charging.

Anyway -- anyone willing or have a crummy phone you'd be willing to risk?

BTW -- for those wondering -- I'm not jumping to M8, not for a very long time. It'll take a near act of Congress to get me out of the M7. It's too perfect for me. So this development (and later some ROMs I'd like to do) won't go away.
[Sprint HTC One (M7)] rootlinux:
Gonna try to download now and add to flasher.

Wife had surgery Thursday so I have been busy. :)
[Sprint HTC One (M7)] tdhite:
You might wanna wait -- tomorrow there's another version coming. Minimally with FITRIM enabled (fstrim support). Maximally with a new stats capability on offmode charging.
[Sprint HTC One (M7)] rootlinux:
Already got it uploaded. :)

Will just update again.
[Sprint HTC One (M7)] budeone:
You two guys are monsters
[Sprint HTC One (M7)] tdhite:
lol -- like a little kid, couldn't wait to see if my changes worked. :good::good::good::D

Brand spanking new charger app build with new graphics and (for now) text percentage battery (all part of system/android/core for those playing around).

Soooo, updating a comin' -- off-line charging gift and fstrim (FITRIM on ext4 file systems) support -- tomorrow unless I find something terribly wrong. Testing for a while.
[Sprint HTC One (M7)] GadgetFreak:
Yes they are...

Wow!
[Sprint HTC One (M7)] tdhite:
Version 2.7.0.4 (03-39-2014) Release Candidate

New build is up!

As always -- see the Downloads Post and also review both the Change Logs and Disclaimer Post.

This build advances all known feature requests that are currently possible. I'm sure I'll dream up more over time.

I see there were a bunch of folks that got in and downloaded already -- LOL -- couldn't wait I guess. In any event, if it remains without error reports, it will become the release after a reasonable period of days.

Have fun!
[Sprint HTC One (M7)] rootlinux:
Awesomesauce.... :)
[Sprint HTC One (M7)] budeone:
Just a funny fyi.. Date on change log 3/39 i am probably the only one who really reads the things.. Lol
[Sprint HTC One (M7)] rootlinux:
Flasher updated. ;)
[Sprint HTC One (M7)] avwheeler:
This thread seems kind of slow, not a lot of questions, update info and confirmations. I really see this as a testament to your work, I really can't think of anything that is missing or not working. When a new feature is introduced, it is just cool to see and realize there was something that can make things better.

Tdhite, appreciate your contribution and dedication to the community. Latest is running perfectly.

Sent from my HTC One on some Awesome Rom..
[Sprint HTC One (M7)] mrshades812:
Question -

Are we cool to use a TWRP 2.7.0.1 theme with the latest build? :)

Thanks for all your work on this. Top notch!
[Sprint HTC One (M7)] bigdee1974:
Yes. I currently use the play store theme with no problems.
[Sprint HTC One (M7)] THADDIUS25:
Otg doesn't work on latest build
[Sprint HTC One (M7)] tdhite:
Can you elaborate a bit? I can mount any otg I have and backup / restore. Can you try placing your usb in, then go to mounts and just check the mount on? Then see if it mounts ok. If so, maybe an event is getting lost.
[Sprint HTC One (M7)] THADDIUS25:
I tried mounting numerous times but it just hanged on the screen. I had to go back to 2.7.0.1 and now it works
[Sprint HTC One (M7)] tdhite:
Hmm... I'll try to get one to fail and see what's up if possible.