yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] Dogpack:
Interesting. Have you rebooted back into recovery and tried to access OTG again? The first boot into recovery is OK. Any boot afterwards doesn't work until I flash recovery again.
[Sprint HTC One (M7)] cschmitt:
I've found that it makes a difference if the OTG drive is plugged in while booting into recovery. Seems to work better if drive isn't plugged in during the boot, then plugin the drive. I haven't had to reflash recovery to get it working, though.
[Sprint HTC One (M7)] StormyNight:
I've flashed ROMs, kernels etc using OTG multiple times using 2.7.1.3. BTW, I plugged in the USB after I booted into recovery, not before [MENTION=4513061]cschmitt[/MENTION]
[Sprint HTC One (M7)] Dogpack:
That's it. It doesn't read OTG if plugged in prior to booting into recovery.

I hadn't fully isolated the issue yet. After disconnecting USB and flashing to recovery, I found I have a habit of booting to recovery first then plugging in OTG. If not connected to the PC, I plug in OTG first and then boot to recovery.

Thanks. At least I know how to simply recover, when it happens.
[Sprint HTC One (M7)] StormyNight:
Now that you mention it.. I believe there was one instance that OTG didn't work, and that must have been when I plugged in my flash drive before booting into recovery. I'm pretty sure that unplugging the cable and replugging it in fixed it though.
[Sprint HTC One (M7)] rootlinux:
Updated flasher to include latest version. I no longer have the device so if you try it, let me know if I need to fix anything.
[Sprint HTC One (M7)] tdhite:
Another one coming soon, dude. Keep watch. I'll let you know.

keepin' er at the edge

:cool:
[Sprint HTC One (M7)] rootlinux:
Yeah, let me know.

Honestly don't keep up as much on the M7 being I don't have one now.

Will keep updating the pack though.

Great job brother.
[Sprint HTC One (M7)] MarkBell:
OK. So I have something interesting going on with TWRP, any version, including this version. I can't flash any zip. Can't flash ROMS, can't flash radios, can't flash anything. Nada. I can restore just fine, though... I've tried fixing permissions through TWRP and repairing the mounts. Nothing seems to work. Any idea what might be happening?

Addendum: CWM also isn't working. The only thing I've been able to flash through TWRP since restoring my phone using an RUU this past weekend is an update.zip file for Avast security.
[Sprint HTC One (M7)] Sloth:
2.8.0.0 is out

http://techerrata.com/browse/twrp2/m7wls
[Sprint HTC One (M7)] tdhite:
Yip -- I'll be adding the enhancements this weekend.
[Sprint HTC One (M7)] tdhite:
Updated to 2.8.0.2 0 09/14/2014

Updated, fresh and minty! All the goodies ...

As always, read the Disclaimer, then look through the Change Logs to see if you want it (likely), then hit the Downloads Post to nab it.

Easy instructions:

1) Download it to some directory (or folder for you Windows folks who never new a folder is just a directory) -- let's call it /Downloads (for linux folks) or C:\Downloads (for Windows users) for example;

2) Reboot phone to fastboot (adb reboot fastboot; or use your power/vol-down buttons appropriately);

3) Plug in USB cable to computer;

4) type "fastboot devices" to make sure you can see the phone. If you didn't get a valid command, make sure "fastboot" (linux) or "fastboot.exe" (windows) is on your path or open a Command/Terminal window (as Administrator for Windows) in the directory (folder) in which adb and fastboot executables exist;

5) When you see the your device you can move on;

6) type this:

for linux users, assuming the directory above: fastboot flash recovery /Downloads/openrecovery-m7wls-2.8.0.2-09-14-2014.img

for Windows users assuming the directory above: fastboot flash recovery "C:\Downloads\openrecovery-m7wls-2.8.0.2-09-14-2014.img"

Now, for those wondering -- you can use any directory (folder) you want, I just used Downloads as an example. When you download the beast, it *will* be named as the above file name, there is no reason to go renaming it -- that just confuses people and is useless work. Fastboot can handle full paths and any file name.

7) Enjoy.

----- EDIT -----

Took down the link for a sec --- my apologies, I forgot to version bump the thing (sheesh) so it's clear the adds against the TeamWin build.

A few minutes, it'll be back up. Have to test though -- after all, this is recovery and I want it to work without fears. Even though just a version string bump -- it's still code, so still has to go through my tests.

All fixed up --- let 'er rip! For those catching the .01 build -- no worries, it's identical but for the version bump. Download/update at your leisure.

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

:cool:
[Sprint HTC One (M7)] ivwonka:
Download link not working for me. TIA
[Sprint HTC One (M7)] ccs86:
Any issues flashing this latest release over 2.6.3.4a?

Thanks!
[Sprint HTC One (M7)] tdhite:
Yes. Read my post a couple up. Fixing shortly.
[Sprint HTC One (M7)] tdhite:
No. But do nandroid first. Long lived TWRP bug was fixed in 2.7.1.3. Details in the change logs.

Also, as noted in my edited post above, give me a short time to version bump and upload.
[Sprint HTC One (M7)] tdhite:
RE: Updated to 2.8.0.2 0 09/14/2014

Download links all fixed up --- let 'er rip! For those catching the .01 build -- no worries, it's identical but for the version bump. Download/update at your leisure.

See this post: http://xdaforums.com/showpost.php?p=55452567&postcount=527

:good:
[Sprint HTC One (M7)] ctiger:
I believe I'm still using the 2.6.3, and flashing new rom with that works fine. Is there a reason I should upgrade?
[Sprint HTC One (M7)] tdhite:
If all things work for you and you're happy, I'd so no. You'll know when you have to upgrade, the old version will simply fail to flash or similar due to newer ROM requirements.

:cowboy:
[Sprint HTC One (M7)] tdhite:
Hoping to get the last few items in the standard TWRP

All,

See https://gerrit.omnirom.org/#/c/9481/ -- which is the last issue I think I need to get into the official code base and we'll have pretty much everything all rolled into the core TWRP code. No more need for special builds. Well see...

Not that I don't like building, or making cool stuff, but if the base has all that we wanted, it'll be a good day, imho.

:cyclops:
[Sprint HTC One (M7)] ivwonka:
Flashed. booted. All seems safe and well without any deep testing. Thanks tdhite. I hope everything gets merged too!
[Sprint HTC One (M7)] nossman:
C:\Android\android-sdk\platform-tools>fastboot devices

FA39TS905731 fastboot

C:\Android\android-sdk\platform-tools>fastboot flash recovery C:\Android\android

-sdk\platform-tools\openrecovery-m7wls-2.8.0.2-09-14-2014.img

error: cannot load 'C:\Android\android-sdk\platform-tools\openrecovery-m7wls-2.8

.0.2-09-14-2014.img'

C:\Android\android-sdk\platform-tools>

:crying::crying::crying::crying::crying:
[Sprint HTC One (M7)] StormyNight:
Did you verify the md5 of the .img file?
[Sprint HTC One (M7)] nossman:
SOLVED!!

I went to menu, typed CMD and in CMD typed dir + my platform-tools folder with my recoveries ini there. It gave me the content of the folder and I marked and copied the name of the recovery. Opened a new CMD window IINSIDE of platform-tools and sent a flash command using my copied recovery name and it worked!!
[Sprint HTC One (M7)] tdhite:
Couple enhancements coming this weekend ...

All,

In the course of lots of work with folks, noticed a couple enhancements to performance and graphics I'll stick in this weekend.

Just keeping y'all looped in. Expect another rev soon. Always more to do (even *if* we get the changes merged into core -- there will always be new toys).

:)
[Sprint HTC One (M7)] n0mad73:
I tried installing 2.8.0.2 (using flashify) and sure enough it wiped out /data. Sure I had a backup but TWRP wouldn't recognize it. I didn't have any apps to connect to the Internet so I couldn't download anything and my ROM wasn't on my sdcard. Luckily I have an OTG with a copy of my ROM on it which fixed it and Titanium backup which pretty much restored it back to normal but I'm back on TWRP 2.6.x.x.

Any way I can load this version again without it wiping /data or is that always going to be a risk?
[Sprint HTC One (M7)] tdhite:
From what version did you upgrade? If 2.6.0.3, as per the notes -- really old TWRPS used an older compression model no longer working.

So, the trick is kind of frustrating, but relatively easy:

1) Load the old TWRP again; restore the backup *fully* (data, boot, system);

2) Leave the ROM loaded and upgrade TWRP;

3) It will not 'redo' the data wipe (at least should not). The issue was there was a latent command sitting in your /misc partition that tells recoveries (not just TWRP, CWM and others as well) to wipe the data on the next recovery boot. It then clears that flag and should no longer wipe data. When you upgraded -- that was 'the next recovery boot' in a sick kind of way.

4) Then do a fresh backup in TWRP so you have newer compression formats.

If you need help -- PM me. No prob.
[Sprint HTC One (M7)] n0mad73:
It was from 2.7.1.1.. But I'll give this another go.. Thanks!!
[Sprint HTC One (M7)] tdhite:
That's not good -- the compression is compatible so I'm concerned about file integrity. Can you assure you turn on MD5 checking so you get a good restore? Let me know and I'll help out.

Also, I just loaded up the 2.8.0.3 which has some enhanced JB crypto support. See Downloads page (or the next post :) ).
[Sprint HTC One (M7)] tdhite:
Updated 09/18/2014 -- 2.8.0.3

Updated! All fresh and minty! All the goodies ...

As always, read the Disclaimer, then look through the Change Logs to see if you want it (likely), then hit the Downloads Post to nab it.

Easy instructions:

1) Download it to some directory (or folder for you Windows folks who never new a folder is just a directory) -- let's call it /Downloads (for linux folks) or C:\Downloads (for Windows users) for example;

2) Reboot phone to fastboot (adb reboot fastboot; or use your power/vol-down buttons appropriately);

3) Plug in USB cable to computer;

4) type "fastboot devices" to make sure you can see the phone. If you didn't get a valid command, make sure "fastboot" (linux) or "fastboot.exe" (windows) is on your path or open a Command/Terminal window (as Administrator for Windows) in the directory (folder) in which adb and fastboot executables exist;

5) When you see the your device you can move on;

6) type this:

for linux users, assuming the directory above: fastboot flash recovery /Downloads/openrecovery-m7wls-2.8.0.2-09-14-2014.img

for Windows users assuming the directory above: fastboot flash recovery "C:\Downloads\openrecovery-m7wls-2.8.0.2-09-14-2014.img"

Now, for those wondering -- you can use any directory (folder) you want, I just used Downloads as an example. When you download the beast, it *will* be named as the above file name, there is no reason to go renaming it -- that just confuses people and is useless work. Fastboot can handle full paths and any file name.

7) Enjoy.

:cool:
[Sprint HTC One (M7)] n0mad73:
OK just flashed 2.8.0.3 and everything went well!!
[Sprint HTC One (M7)] toad6386:
FYI - I flashed 2.8.0.1 the other day and my OS is blank in bootloader. I know it's been said that is no biggie, but it sure takes the warm out of my fuzzy... Will 2.8.0.3 correct it (again)? Thanks! :thumbup:
[Sprint HTC One (M7)] Aldo101t:
I have never had the OS in the bootloader since I moonshined my phone.
[Sprint HTC One (M7)] toad6386:
You know what? Now that I think about it, I think I re-flashed Firewater HBoot about the same time. I didn't think it the issue the first time around since everything was saying it was a TWRP bug. Are you running custom HBoot? Or stock/modified? Thanks.
[Sprint HTC One (M7)] Aldo101t:
moonshine eng bootloader 1.44.4444

fastboot getvar all command in fastboot will tell you if it got wiped the mainver will be blank(this usually happens after flashing 2.7.1.1 twrp). all you have to do is reflash the modified firmware and it will be back
[Sprint HTC One (M7)] tdhite:
From the Change Logs:

Version 2.7.1.3 (07-19-2014)

Fixes /misc partition overwrites to incorrect area (a long standing bug in the official TWRP);

If you have no OS mainver, as said -- it really doesn't matter. TWRP was fixed long ago, but it can't just magically write a new mainver to the area to fix the issue the original TWRP laid down.

BTW, Get 2.8.0.3 (if you have not yet). There's no reason not to upgrade recoveries from this thread as often as they come out, they're heavily tested. 2.8.0.3 has some legacy encryption support that one day (maybe) you'll need.
[Sprint HTC One (M7)] toad6386:
I figured I was good to go, just freaks me out, especially when I'm having other, non-related issues....

Thanks!
[Sprint HTC One (M7)] Osama Zabin:
I'm using twrp 2.8.x.x series, does it fix the factory reset problem for this twrp version also?

Many thanks in advance.
[Sprint HTC One (M7)] tdhite:
yip -- that's independent of TWRP at this point. but so long as you've already upgraded and booted TWRP 2.7.1.3 or above once, you really are done.
[Sprint HTC One (M7)] scottspa74:
OK, I read last few pages,and am a bit confused. I'm on TWRP 2.7.0.9 and apparently I have to upgrade TWRP to flash my ROM of choice. Is it OK to jump straight to 2.8.0.3? Or do I have to boot a version between the two to avoid the /data wipe?

TIA

Edit:

OK, just read the flag at the DL link, and it says to make a nandroid if on TWRP older than 2.7.1.3. I made a nandroid 2 days ago. I should be good, right? Also, I never have done a factory reset from bootloader menu, and it sounds like that's the only time the latent command would be there, right?
[Sprint HTC One (M7)] tdhite:
Should be good, yes. If you happen to have (magically, or how ever) gotten a latent request to do a factory reset and that happens, in the vast majority of cases (presuming a fresh backup) you can reboot to TWRP and restore just your data partition from the fresh backup.

It's just a few minutes to make a backup -- I always suggest taking a nandroid as a 'best practice' before doing *anything* to your phone.
[Sprint HTC One (M7)] tdhite:
Well, boys and girls -- looks like we're getting almost done becoming 'standard' for all the things we wanted. :) One more and I think we have it, but that last one goes into CM core as well as OmniRom.

Performance mode was merged yesterday: https://gerrit.omnirom.org/#/c/9481/

Now I gotta think of more stuff -- have any ideas for toys you want? Otherwise, soon I think we might be able to close this thread (dunno if that's a good or bad thing :cyclops:).
[Sprint HTC One (M7)] smokin901:
cannot copy buildconfig.sh

regardless of what i try to copy

I keep getting
[Sprint HTC One (M7)] tdhite:
I'd appreciate it if you'd remove that image from the post and create it as an attachment. This is a development thread and attachments are plenty well suited for showing images like that.

Would you please to edit that post and remove the unnecessarily large image you duplicated?? We really don't need that kind of wasted space in a dev thread.

If either of you have a log to share, please attach it and I'll take a look.

Thanks.
[Sprint HTC One (M7)] yelped:
Done. I don't know if it has to do with this recovery specifically. Smoking mentioned this issue, so I mentioned it as well.

Sent from my HTC One
[Sprint HTC One (M7)] Aldo101t:
I just backed up my entire internal card to my computer with no issues (twrp 2.8.0.3)whatever that has to do with it?
[Sprint HTC One (M7)] smokin901:
is logcat of any use to you.

or let me know which log will be help i will try to capture.
[Sprint HTC One (M7)] tdhite:
absolutely -- if you can capture the logs *in recovery* that shows your issues with file copies, please do attach it.

TWRP will copy the log for you if you want -- just select Advanced and then "Copy Log to SD." Then just upload the saved file to your post.
[Sprint HTC One (M7)] tdhite:
TWRP 2.8.1.x Readying for Release

All,

The 2.8.1.x releases are getting set for release soon: https://gerrit.omnirom.org/#/c/9928/ ...

If the official builds do not have everything necessary to set performance modes and battery up correctly, I'll make a custom build for us and commit whatever fixes are required to the official repos.

Even if it's all set and rocking per what was done in this thread for our device (not to mention the others that moved the m7wls commits to their devices), I could not be prouder of this thread and all who helped early ( [MENTION=3173383]elvisypi[/MENTION], [MENTION=4609217]BD619[/MENTION], [MENTION=2610120]avwheeler[/MENTION], and so many more who tested very early builds).

One way or another, all the stuff will be 'official' soon.

:good:
[Sprint HTC One (M7)] Inlinepro77:
Seriously man, you're the best. Don't know where I'd be without this thread. :good:
[Sprint HTC One (M7)] coal686:
Thank you for this recovery. With all due respect to the official builds, yours was the first to work correctly with our phones and is still the best in my opinion. Honestly, I'll only switch to the official builds when you give them your seal of approval and stop building your own.
[Sprint HTC One (M7)] hb17:
I feel the same way. This is the One!

Sizzling from my Bacon
[Sprint HTC One (M7)] Mikanoshi:
Can someone finally explain why this:

set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0744, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

fails on ANY TWRP past 2.6.3.3 and how to resolve this issue to be able to flash 4.4 ROMs?
[Sprint HTC One (M7)] tdhite:
My visceral reaction is you have a woefully out of date updater-binary. I put a valid one of those in the OP sets -- maybe test with that instead.
[Sprint HTC One (M7)] Mikanoshi:
Can't download that file...

ARHD ROM uses binary from AROMA Installer 2.70RC2, isn't it the latest?
[Sprint HTC One (M7)] Sloth:
ARHD is not compatible with Sprint as far as I know.
[Sprint HTC One (M7)] Mikanoshi:
Doesn't matter, it's not a ROM problem. Many Sense 6 ROMs are using these metadata commands and always recommend 2.6.3.3 to install them properly.

I just didn't find any relevant thread for latest TWRPs in HTC One International forums...
[Sprint HTC One (M7)] tdhite:
To date, every claim like this against TWRP, including *all* Sense 6 ROMs (not to mention CWM when it comes up like this) has culminated in a ROM bug and necessary fix. When I say every claim, I mean 100% of all claims brought to my attention, and that is not a small number.

Here is an example of the same issue -- a call to set_metadata_recursive fails in TWRP, and how I worked to identify and solve the problem for the ROM dev: http://xdaforums.com/showpost.php?p=55537670&postcount=82

Here is the ROM dev giving the fix for the false claims that TWRP was faulty, rather a ROM installer fix (he's a good guy, just claimed too early to know the kernel in the TWRP build was at fault, along with others in that thread): http://xdaforums.com/showpost.php?p=55589102&postcount=98

Am I willing to help the ARHD ROM team? Of course -- I did this before with them when their installer failed. They rewrote their installer script back then and presto -- fixed. We might have to do that again.

Just don't propose it's not the ROM, because history being a very good indicator of the future, it is very likely that in fact it is the ROM.
[Sprint HTC One (M7)] Mikanoshi:
Well, then a lot of ROM devs make this mistake) or just copy it from someone.... So how this should be changed?

unmount("/system");
format("ext4", "EMMC", "system", "0", "/system");
mount("ext4", "EMMC", "system", "/system")

Like this?

mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/system")

Is there a way to make it universal for different devices? /dev/block/platform/msm_sdcc.1/by-name/system?
[Sprint HTC One (M7)] tdhite:
I'm absolutely willing to help, but I'm not willing to convert this thread into a ROM support thread. I honestly have no clue if the issues in the ROM are identical to the sample I gave. I simply noted a similar scenario for reference.

With that said -- as the link I gave you states (absent truly supporting by-name partitioning, which is really the right approach):

run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");

might serve you better. I have no clue, though -- as I mention above I honestly do not know the underlying issue with the ROM installer, but it will be there given the vast history of such mistakes. It takes a serious amount of time to solve updater-script issues, though, so beware.

--- edit ---

If you open a Q&A thread and mention my id with the relevant '@' prefix, I'll see the conversation and help out there.

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

:good:
[Sprint HTC One (M7)] Mikanoshi:
Thanks, but it wasn't a question about particular ROM, I have my flashable mods too. I understand the problem and will try to fix it. I'll ask for help in case of failure :)
[Sprint HTC One (M7)] tdhite:
Well, the only missing piece in the new official build is actually setting cores in performance mode. Thus, for now, the official builds will only use one core, though the base code now has the capability of setting multiple.

I talked with [MENTION=912474]Dees_Troy[/MENTION] and he just missed getting that in from updated repos in the device tree -- says he plans an updated build in a few days.

I'm inclined to wait on that build before building another custom because we are very close, and assuming the build includes the last little bit, pretty much we're there. If you want performance mode to work -- just stick with 2.8.0.3 until 2.8.1.1 shows up.
[Sprint HTC One (M7)] ccs86:
Hi guys,

I have been running 2.6.3.4a for quite a while now, but recently had an issue when trying to install ElementalX, where it detected my phone as Sprint M7, but proceeded to flash a Verizon kernel and somehow bork my firmware. I'm told that my recovery is somehow at fault.

Any forseable issues, or considerations with flashing the 2.8.0.3 over 2.6.3.4a?

Thanks!
[Sprint HTC One (M7)] Aldo101t:
i've tried to install aokp numerous times and it fails inrecovery with symlink errors it's no big deal they say you need 2.6.3.4 to install it. i don't think anyone on sprint can, although the rom is for sprint, go figure.i wouldn't worry about that at this point just solve your other problems, i just figured i'd give a whirl to see what happens

it still fails.
[Sprint HTC One (M7)] tdhite:
LOL -- so far there's no actual problems :). [MENTION=4609217]BD619[/MENTION] I figured out, but will have to work with him to solve his phone (I believe).

With the said -- point me at the ROM and let me take a look at the installer -- I'll see what's up.
[Sprint HTC One (M7)] Sloth:
Add me on hangouts if need be
[Sprint HTC One (M7)] Aldo101t:
the latest nightly from AOKP 02-08-2014(They all fail) aokp.co

yeah everything i've tried so far except for that rom works ok.