yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] TDoric:
I don't know what triggers the software status flag, because i'm currently on cyanogenmod and it still says official.
[One (M8) Original Android Development] MacFett:
Interesting, I'm running cm12.1S and it is flagged as unofficial and was for all the nightlies too.
[One (M8) Original Android Development] bgcngm:
[MENTION=1162986]Captain_Throwback[/MENTION], I have just submitted a pull request to the github repo (https://github.com/TeamWin/android_device_htc_m8/pull/1). Don't know if TeamWin uses gerrit or not, if so please let me know.
[One (M8) Original Android Development] Captain_Throwback:
TeamWin Gerrit is at gerrit.twrp.me. That's where all device patches should be submitted.

P.S. That info is in the OP....
[One (M8) Original Android Development] bgcngm:
Sorry, I missed that. I will submit it through gerrit.

EDIT: [MENTION=1162986]Captain_Throwback[/MENTION], is there a way to sync only m8 device tree without the rest of TeamWin repos? I am not able to access http://teamw.in right now, so I don't even know how to initialize the source repository. If it is not too much to ask, could you simply cherry-pick my change and merge it yourself?
[One (M8) Original Android Development] Captain_Throwback:
Not sure what you mean. You obviously already have the M8 source synced locally, so once you authorize your Github account to the TWRP Gerrit, just add Gerrit as a remote and push your patch. It shouldn't require syncing anything else, as far as I know.
[One (M8) Original Android Development] ZeroLozen:
Just upgraded from 2.8.6.1 to 2.8.7.0, now phone only boots into TWRP. I am on SlimROM 4.4.4 Build 9. Tried to rollback to 2.8.6.1, still same issue. Any ideas????
[One (M8) Original Android Development] Captain_Throwback:
Sounds like you flashed TWRP to boot instead of recovery. Just reflash the boot.img from your current ROM or reflash the ROM.
[One (M8) Original Android Development] ZeroLozen:
Yes it appears I had. Forgot to tick the recovery option instead of the boot option. As you said...just needed to pull boot.img from the ROM, flash that for boot option and that cured my issue. Thanks for the help! Greatly appreciated.
[One (M8) Original Android Development] Leon:
Any ideas why on my phone works only "twrp-2.8.1.0-m8" ?
[One (M8) Original Android Development] MacFett:
Do you have the newest firmware update?
[One (M8) Original Android Development] Leon:
Yes.I think im with the last firmware.

PS:

C:\adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.25.214500021.06G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.16.401.13

(bootloader) version-misc: PVT SHIP S-OFF

(bootloader) serialno: SH48KWM01773

(bootloader) imei: ...

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__032

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: f063fb42

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.019s

C:\adb>

PS

Problem solved.
[One (M8) Original Android Development] SonyXperiaS:
My recovery gets uninstalled or disappears very time I reboot ... I have to install everytime via fastboot ...even installation via twrp manager success pop up, it only boots in default HTC recovery mode.

Any help much appreciated.
[One (M8) Original Android Development] Mr Hofs:
Once you flashed twrp it can't just disappear unless you flash it over again yourself (or if there is some hardware defect)

What fastboot commands do you use (i would say to ditch apps and toolkits)

It's :

Fastboot flash recovery recovery_filename.img

If you used :

Fastboot boot recovery_filename.img

Then it's booting up once to the custom recovery and will be gone after a reboot !
[One (M8) Original Android Development] TBra:
EDIT: Irrelevant
[One (M8) Original Android Development] GelullaBarr:
I also have the same "problem", with latest firmware.
[One (M8) Original Android Development] tim_h:
I had the same issue. The solution - unbelievably - is to set SuperCID. If you are S-ON, it takes 3 minutes. See here.
[One (M8) Original Android Development] GelullaBarr:
I am s-off, maybe I will try this, thanks.
[One (M8) Original Android Development] Leon:
I downgraded the firmware and I fix my problem.
[One (M8) Original Android Development] mcwups1:
Sprint M8 Converted HK 4.25.654.14
[One (M8) Original Android Development] mcwups1:
No one knows?

Sprint M8 Converted HK 4.25.654.14
[One (M8) Original Android Development] dragontology:
The author of TWRP doesn't own an M8, so it's kind of a use at your own risk kind of thing. I hit a serious issue and the end result of what I got was pretty much ¯\_(ツ)_/¯. Gotta get a Nexus next time. Because non-Nexus, non-GSM, you're pretty much in the Wild West.

Though, if I had to hazard a guess, about your screenshot, it's saying if you change the system partition, you won't be able to take OTAs (updates Over The Air). And that is absolutely true. I can't figure out what choice it's offering you, though.
[One (M8) Original Android Development] Captain_Throwback:
Did you try reading the OP?
[One (M8) Original Android Development] mcwups1:
Thanks captain.

It doesn't necessarily mean I fully understand it. I restored a backup of bliss pop after I RUU'D, and now its saying I can't take screenshots because I don't have the available space. I never had a problem before I RUU'D, but now I do, & I think this has something to do with it. I'm not sure what I'm supposed to select.

Also, all of the sudden my alarms, notifications, and ringtones that I set up in a separate folder with mp3s, are saying they are the wrong media type. They worked before on my back up, but they do not now.

I'm trying to figure out if this new option has something to do with all of it from an old backup after RUU'ing, or something else.

By the way, I also had the storage issue on a new marshmallow ROM of a fresh install.

Sprint M8 Converted HK 4.25.654.14
[One (M8) Original Android Development] 92lleo:
backup with encryption enablen

Hello guys,

First of all, i tried search and found nothing helping me. I know that twrp doesn't support htc's encryption, but heres my question:

I have a one m8 with arhd45 (close to stock, 5.0.1) running and encrypted. so, when entering twrp it prompts me for my pin and doesn't accept it (since it doesn't support htc's encryption). When i hit cancel and go to backup, datapartition needs ~11gb to backup. So, if i do a backup, try another rom and restore my backup (with the encrypted /data), will it work? I dont care if my backup is twice the size of an unencrypted backup, but I need to know if i could restore and use it (with the matching pin).

Thanks in advance!
[One (M8) Original Android Development] Captain_Throwback:
No. TWRP can't backup an encrypted partition.
[One (M8) Original Android Development] Malkemid:
anyone tested 2.8.7 version on stock android 6? does it work fine?

EDIT: works fine.

another question...when i taking backup, if i uncheck the DATA, all apps that i installed will be ignored in backup? what else ?
[One (M8) Original Android Development] mightywhites29111971:
I am wondering if anyone can assist me please? I updated to Developer Edition Marshmallow so am fully unrooted but have the lastest version of TWRP installed. I decided to take up the option of integrated storage which I believes encrypts the internal and external memory. I think this is what is causing my problem. I am trying to install some sound mod zips and back up but the sound mod zips cannot be seen in TWRP and the backups always fail. Is there anyway of getting round this apart from starting again?
[One (M8) Original Android Development] _purple_:
[MENTION=5012738]mightywhites29111971[/MENTION] I believe post #1225 is the answer. Also it cannot see the mod because TWRP cannot decrypt your SD to read the file. I can't answer the last question as I haven't tried MM yet.
[One (M8) Original Android Development] Izachii:
Hi guys! There another thing that am facing is that with Android 6.0 I format the SD card as internal but I could not see the file in it and update my cyanogenmod. Anyone got any walk around with it?
[One (M8) Original Android Development] Raverbunny:
To those having problems with sdcard mounted as internal storage, there is a workaround for flashing zips. All you need to do is to move the files you wanna flash on the root directory of sdcard (ie not in Download or another subfolder). Had to do it that way to flash xposed zip

As was already pointed out, the encryption on sdcard means that backup may not be possible at all under this setup (although I do hope devs will prove me wrong).
[One (M8) Original Android Development] mcta:
Hi, I'm trying to flash the latest TWRP 2.8.7.0. But it says "error" and wont flash. However I tried flashing TWRP 2.7.1.0 and it works.

I just updated mine to 6.0. Trying to root
[One (M8) Original Android Development] nkk71:
How are you trying to flash?

Who is "it" :confused:

Which "error" does "it" (whoever it is) give?

you happen to have

any logs

any links to what you're flashing

command line/terminal output

etc. (ie details)

oh, btw, wild guess: is MD5 correct, did you make sure it's not a corrupt download :eek:
[One (M8) Original Android Development] mcta:
"It" as in cmd on Windows

I'm flashing through fastboot using cmd

Command line is: "fastboot flash boot twrp-2.8.7.0-m8.img"

Then this is what I got:

"target reported max download size of 1826152448 bytes

sending 'boot' (17020 KB)...

OKAY [ 1.841s]

writing 'boot'...

FAILED (remote: image update error)

finished. total time: 1.859s"

And yes, I downloaded twice straight from TWRP website and double check both md5 also from the website. They are matched.

Anyway, I downloaded "twrp-2.8.6.1-m8.img" and flashed it. fastboot said flash OKAY, but when reboot the phone just keeps booting to fastboot.

Then I downloaded "twrp-2.8.4.0-m8.img" and flashed it and it worked.
[One (M8) Original Android Development] Captain_Throwback:
Why are you fastboot flashing recovery to the boot partition?

smh
[One (M8) Original Android Development] nkk71:
no clue

i am clueless, it seems, let's hope i dont get a clue

yeah, the "it" sounds about right, thanks for providing some more detailed feedback, but:

mmcblk0p42: 01000000 00000200 "boot"
mmcblk0p43: 01800000 00000200 "recovery"

so let me try:

C:\ADB\ADB_M8>fastboot flash recovery twrp-2.8.7.0-m8.img
target reported max download size of 1824108544 bytes
sending 'recovery' (17020 KB)...
OKAY [ 1.844s]
writing 'recovery'...
OKAY [ 0.594s]
finished. total time: 2.438s

oh that worked :D

lemme try your way:

C:\ADB\ADB_M8>fastboot flash boot twrp-2.8.7.0-m8.img
target reported max download size of 1824108544 bytes
sending 'boot' (17020 KB)...
OKAY [ 1.808s]
writing 'boot'...
FAILED (remote: image update error)
finished. total time: 1.832s

strange, lemme check that:

mmcblk0p42: [B][COLOR="Blue"]01000000 [/COLOR][/B] 00000200 "boot"
mmcblk0p43: [B][COLOR="Blue"]01800000 [/COLOR][/B]00000200 "recovery"

0x01000000 = *[B][COLOR="Red"]16,777,216‬[/COLOR][/B]

C:\ADB\ADB_M8>dir twrp-2.8.7.0-m8.img
...
03/10/2015 12:05 [B][COLOR="Red"]17,428,480[/COLOR][/B] twrp-2.8.7.0-m8.img

I rest my case, and that of the post above mine
[One (M8) Original Android Development] mcta:
Because I wanted to keep the stock recovery. And I don't know where to find it now
[One (M8) Original Android Development] Mr Hofs:
If you want to boot a custom recovery is it logical to have the word FLASH in the command line ?

That should've got you thinking .....

It's : fastboot boot custom_recovery.img (no flash command !!!)

And to find your stock recovery just head over to the backup collection in the Q&A section or general section. Or take it from the NEW downloaded OTA
[One (M8) Original Android Development] fyarf:
I thought HTC disabled the 'fastboot boot' command in fastboot mode.. correct me if I'm wrong.
[One (M8) Original Android Development] Mr Hofs:
Not that i am aware of. There have been reports on previous builds/firmwares that's correct. But as far as i know now it works (again)

Please correct me if i am wrong also :)

Will try it myself when i get the time to be sure.

But even then the command was still wrong
[One (M8) Original Android Development] fyarf:
lol no doubt, I was facepalming reading the cmd input. But last time I tested was on 4.4 and fastboot boot was not recognized. I was trying to boot the recovery to backup all stock partitions for a recovery backup as well, but it wouldn't take it. Just tested it on hboot 3.19.0.0000 (dev edition MM) and it does indeed take the command now.

E:\ADB6>fastboot boot m8twrp2870.img
downloading 'boot.img'...
OKAY [ 1.595s]
booting...
OKAY [ 0.524s]
finished. total time: 2.123s

On a side note, this phone has never had a missing OS line in bootloader until i flashed AICP on top of the dev edition marshmallow official setup. I thought this twrp bug was worked out? Is there a newer version than 2.8.7.0 for M8?

Does this getvar all look strange to anyone else?

E:\ADB6>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.24_2G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-OFF

(bootloader) serialno: *************

(bootloader) imei: ************

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul_ca

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.041s

Edit: flashed the Dev Edition RUU from HTC's website and to populate version-main, restored my nandroid, version main is still populated. strange... no idea what happened to clear it the first time.
[One (M8) Original Android Development] Captain_Throwback:
Can someone do me a favor and test out this TWRP build? I'm trying to move the tree to Marshmallow and I want to confirm that it's working on all the variants. Please also confirm whether fastboot booting the recovery works.

https://basketbuild.com/devs/Captain_Throwback/One (M8)/ALL/Recovery

Thanks!
[One (M8) Original Android Development] JEANRIVERA:
if you mean booting to recovery from fastboot options yes it did work for me
[One (M8) Original Android Development] JensL76:
I have a M8 Dual Sim with MM CM 6.0.1 Nightly from today. I flashed it with Flashify and it now sucessfully detected my 128 GB external/physical microSD card (Ext4), so I was finally able to migrate my data to it! Thank you!

Tomorrow/Today I will try to flash the next Nightly with Cyandelta to see if this works.
[One (M8) Original Android Development] Leon:
When i wipe to lock phone,its locking but the screen wont turn off.Thats didnt happend to me on lollipop.Any ideas why ?
[One (M8) Original Android Development] JensL76:
The Cyandelta script didn't start on reboot, maybe because of the new warning splash screen?

And installing takes much longer, but it works.
[One (M8) Original Android Development] vlaf:
Turn off screen timeout.....
[One (M8) Original Android Development] Leon:
Wrong thread but thanks :D
[One (M8) Original Android Development] radkor:
Hello. I tested this TWRP 2.8.8.1 version. Flashed this to M8 with Android 6.0 (6.12.401.4).

Installation of SuperSU beta V2.66 was taking forever. After 30 mins I gave up. Phone wasn't hanged up. It was flashing but veeeeery slow.

I force-restarted my phone, then installed TWRP 2.8.7.0. Installation of SuperSU 2.66 completed in 10 seconds.
[One (M8) Original Android Development] Captain_Throwback:
Would've been much more helpful if you pulled a log. That's what testing is for. Please try it again and pull a log this time. Thanks.
[One (M8) Original Android Development] radkor:
OK. I'll do it again and post log here in a while.

EDIT:

[MENTION=1162986]Captain_Throwback[/MENTION], OK, I'm done. Flashing SuperSU beta V2.66 took 45 minutes. Busybox install took another 3 minutes...

Here's the log:

just kidding ;)

Here it is: http://pastebin.com/2UdwqQVk
[One (M8) Original Android Development] JensL76:
As CyanDelta is not able to start its script: The mount point of the SD card is on Android 6.01 for me: /storage/emulated/0 - can you add this?

Another thing: Is there a way to start f2sck for the external SD card? This fails, but I can do it with the terminal.
[One (M8) Original Android Development] Captain_Throwback:
That's just the emulated SD card. That's not where it's mounted in recovery, and won't be (because it doesn't need to be). Where are the logs?
[One (M8) Original Android Development] JensL76:
Now I used Flashify. This tells me that the location is /mnt/sdcard

Flashing directly from the sdcard fails with the message:

Unable to locate zip file '/mnt/sdcard/Cyandelta/open_gapps-arm-6.0-nano-20160117.zip'.

Running OpenRecoveryScript

Installing zip file '/mnt/sdcard/Cyandelta/open_gapps-arm-6.0-nano-20160117.zip'

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

Failed to map file '/mnt/sdcard/Cyandelta/open_gapps-arm-6.0-nano-20160117.zip'

Error installing zip file '/mnt/sdcard/Cyandelta/open_gapps-arm-6.0-nano-20160117.zip'

Done processing script file

MTP Enabled

From within TWRP, the files are here instead:

/external_sd/media/0/Cyandelta

and here:

/sdcard/0/Cyandelta

My external SD card is shown as "Adopted Storage" from within TWRP.

This is the directory structure of external_sd:

/external_sd/app

/external_sd/local

/external_sd/lost+found

/external_sd/media

/external_sd/misc

/external_sd/user

This is the directory structure of /sdcard:

/sdcard/0

/sdcard/obb

But /sdcard/0 and /external_sd/0 are both my external sd card.

I am not sure where to find my internal sd card - maybe /sdcard/obb? It's almost empty - I see some program directories.

But I can't access my internal sd card from within my booted system as long as I use my external SD card as non-removable adopted storage.

When I copied the logs, they were put here from within TWRP:

/external_sd/media

I was not able to access this directory after I booted, I had to copy it somewhere else.

Here are the logs now:

http://goo.gl/yaaVga

Cyandelta:

Sorry, I just wrote what Cyandelta shows where the files are, showing or changing the actual path is not possible.

I'll try to flash with Cyandelta tomorrow.
[One (M8) Original Android Development] JensL76:
Here are more logs:

https://drive.google.com/file/d/0B2pa_9DBMoLDN09YZU5SdjVvZTA/view?usp=docslist_api

The manual named one just shows the results of a manual flash. Perhaps it helps to find out why it takes so much longer.
[One (M8) Original Android Development] Captain_Throwback:
Why what takes so much longer? I didn't see a SuperSU flash in there, so not sure what you mean about "it" taking longer. What is the "it" to which you're referring?

From what I see in that log, for the OpenRecoveryScript, CyanDelta is looking in a bunch of places for the zip, but none of them are the location where they reside in TWRP. If it also looked on /sdcard/0/ for the zip, it would undoubtedly find it. Since Adopted Storage support hasn't been merged for TWRP at this point, I assume that an update for that won't show up until the next TWRP release.
[One (M8) Original Android Development] JensL76:
Thank you for your answer. "It" means that the flashing process of all zip files take longer than before. This is subjective and not a big issue for me.

If adopted storage is missing, then this version seems to be working as I expected for me. The only thing I would like to see is the f2sck support for the external sd card in the wipe sub menu, but that's also not really important.
[One (M8) Original Android Development] Captain_Throwback:
I didn't see a log with the failed fsck?
[One (M8) Original Android Development] JensL76:
My internal external sd card is not listed in the „mount“ menu partition list, but both are in the advanced wipe menu with full name. When I select it, I get the message „Invalid partition selected“.

The log is not really helpful:

https://drive.google.com/file/d/0B2pa_9DBMoLDbTMtbjJrNlZscTg/view?usp=docslist_api
[One (M8) Original Android Development] Captain_Throwback:
Do you have screenshots of the screens you're referring to?
[One (M8) Original Android Development] JensL76:
I hope this is helpful:

https://drive.google.com/file/d/0B2pa_9DBMoLDbkNXMVNnd2RhQmM/view?usp=docslist_api
[One (M8) Original Android Development] Captain_Throwback:
It is, actually. SD-EXT wouldn't exist in your setup, so those errors are expected. I don't believe adopted storage is supposed to be repairable, as the errors you're getting indicate. I believe that everything is working as intended.
[One (M8) Original Android Development] JensL76:
Agree: I just unmounted the adopted storage manually and started f2sck and it worked. But it's not trying anything, just doesn't want to, so it seems to be intended somehow.
[One (M8) Original Android Development] Captain_Throwback:
Alright - one more test build, especially for those using adopted storage. Please test and report any issues. Thanks!

https://basketbuild.com/devs/Captain_Throwback/One (M8)/ALL/Recovery
[One (M8) Original Android Development] JensL76:
Thank you very much for your work. I guess I need some more information how the TWRP menu (2.8.8.3) should behave to see if it works as intended or not. Can you help?

What should be the effect of the button "Mount > Select Storage" - I can choose between "Internal Storage", "SD-Karte - Adopted Storage" and "USB-OTG".

It seems to make no difference if I choose "Internal Storage" or "SD - Card - Adopted Storage" - in both cases the "Data" Partition is checked afterwards and it's the same partition list.

Then when I go to "Wipe > Advanced Wipe":

- "Repair or Change File System" is still invalid for "SD-Karte - Data" and "SD-Karte Adopted Storage".

- "Repair or Change File System" is valid for the "Data" partition. -> I press the button "Repair File System" (Mount Point /data). This results in:

-----

Repairing Data using e2fsck...

Done.

Repairing SD-Karte - Data using e2fsck....

-----

So it looks like that the Data partition of the internal SD card is repaired.

It also makes no difference what I choose under Mount > Select Storage before. (My external SD card has only one partition AFAIK).

With Flashify, I notice no difference to the previous version. When I use the provided path, the OpenRecoveryScript fails as it searches for /sdcard/Cyandelta/gapps.zip - but it works if you use the "safe place" feature of Flashify. This means it copies the ZIP to /cache/recovery/gapps.zip

As I already flashed the Nightly of today, I cannot do that a second time with Cyandelta today, but I will try out tomorrow.

Please let me know what you want me to try out and provide logs.
[One (M8) Original Android Development] mrrocketdog:
[MENTION=1162986]Captain_Throwback[/MENTION] , link down ¿ tried with 2 different browsers if matters.

[tp_noparse]W2NlbnRlcl1baW1nXWH0dHBzOi8vZGwuZHJvcGJveHVzZXJjb25OZW50LmNvbS91LzlzNjl3OTl3L0ltYWdlcy9TaWduYXR1cmVzL3ZhcmlvdXMvcmRiLmdpZlsvaW1nXVsvY2VudGVyXQ==[/tp_noparse]
[One (M8) Original Android Development] Captain_Throwback:
Nope. Link works fine.
[One (M8) Original Android Development] doomscooter:
Downloading now
[One (M8) Original Android Development] -Duir-:
Are you trying on your phone? The link returns 404 for me in Tapatalk, but if I copy and paste the link it works fine. Another fine example of their redirects breaking things.