yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] nugzo:
on the One M8 its

Power and Vol up+

to force shut down if system will not respond to anything else. It's just like pulling the battery. I was in a similar situation day 1 and tried power and ambient light over and over, didnt help.

I just formatted fat32 and put my rom install on SD but recovery still doesnt see my rom file, or other folders on the SD. When in recovery i hit install, up a level, then External-sd. Am i choosing the right location? If i choose Partition SD from recovery, is that the internal or external sd card? I also try to mount Micro SDcard but it wont let me check the box. Any tips on formatting? its a 64GB sandisk and i used EaseUS Partition Master in windows to format fat32. seemed to work without a hitch and took about a minute to format. Properties show it is fat32.
[One (M8) Original Android Development] jmz:
Not really sure. Out of curiousity, did you make sure it was mounted under the mount menu?
[One (M8) Original Android Development] Electronic Punk:
Getting invalid protocol when using adb, was fine with mikes port version, anyone able to reproduce?
[One (M8) Original Android Development] jmz:
Linux or windows? If Linux kill and start adb as root then try
[One (M8) Original Android Development] guyd:
FAT32 Format Tool

Formatting a 64+ GB uSD card in the phone will result in a exFAT format, so I use this tool to Format my uSD to FAT32 on my Windows PC.

(Windows) FAT32 GUI Format Tool

Click on the screenshot to download the executable.

Also, I've seen other users of TWRP 2.7.x.x report some "quirks" using the External SD Card in Recovery. I'm sure jmz and the TWRP crew are working on fixing the issues, being this is a brand new device.
[One (M8) Original Android Development] jmz:
Yeah. Its really all down to waiting till kernel source is released
[One (M8) Original Android Development] nugzo:
yes i tried, it wont mount

---------- Post added at 11:44 AM ---------- Previous post was at 11:42 AM ----------

Thanks guys. It's not that important now, i know all the bugs will be worked out in time.
[One (M8) Original Android Development] ErasZhou:
Is this for the htc one m8 developer edition?
[One (M8) Original Android Development] jmz:
Uploaded new version that should fix the random segfaults.

Thanks to [MENTION=4973732]simonsickle[/MENTION] for finding the issue
[One (M8) Original Android Development] Nathan2:
Sorry if this is a stupid question, but is it possible to access data after encrypting the device in Settings->Storage in the stock ROM?

TWRP seems to suggest this is supported for AOSP and TouchWiz... does that mean not on HTC?

I've encrypted my device and TWRP 2.7.0.2 doesn't ask for a password, simply refuses to mount. TWRP 2.6.x (M7_PORT) did ask me for the password, but wouldn't accept the correct one.
[One (M8) Original Android Development] guywithdesire1992:
I am still getting the issue of the phones screen switching off and having to wait ages for it to come back on and do a reboot after flashing a ROM even after upon updating to TWRP 2.7.0.3. Anything I should be doing?
[One (M8) Original Android Development] GuyAdams:
Thanks, I reformatted today in FAT32 and its currently doing a backup now :)

Turn off screen timeout in SETTINGS > SCREEN.

Thats resolved the issue for me. It also occurred on the M7.

Thanks
[One (M8) Original Android Development] StuMcBill:
Quick question (that I am pretty sure I know the answer to), wiping data / factory reset from within recovery will not wipe the internal SD Card - right?

Cheers
[One (M8) Original Android Development] beanbean50:
correct ! your sd card will be untouched
[One (M8) Original Android Development] Levistras:
Can you confirm if this will work on the Rogers M8?

Here's my "cat /proc/emmc"

dev: size erasesize name

mmcblk0p1: 00100000 00000200 "sbl1"

mmcblk0p2: 076f7c00 00000200 "pg1fs"

mmcblk0p3: 00004000 00000200 "board_info"

mmcblk0p4: 00800000 00000200 "reserve_1"

mmcblk0p5: 00040000 00000200 "mfg"

mmcblk0p6: 017afc00 00000200 "pg2fs"

mmcblk0p7: 00040000 00000200 "sbl1_update"

mmcblk0p8: 00040000 00000200 "rpm"

mmcblk0p9: 00200000 00000200 "tz"

mmcblk0p10: 00008000 00000200 "sdi"

mmcblk0p11: 00400000 00000200 "hboot"

mmcblk0p12: 00500000 00000200 "sp1"

mmcblk0p13: 00100000 00000200 "wifi"

mmcblk0p14: 00008000 00000200 "ddr"

mmcblk0p15: 00100000 00000200 "dsps"

mmcblk0p16: 03c00400 00000200 "adsp"

mmcblk0p17: 00500000 00000200 "wcnss"

mmcblk0p18: 00800000 00000200 "radio_config"

mmcblk0p19: 00180000 00000200 "fsg"

mmcblk0p20: 04b00400 00000200 "radio"

mmcblk0p21: 00400000 00000200 "tool_diag"

mmcblk0p22: 03200000 00000200 "custdata"

mmcblk0p23: 00effc00 00000200 "reserve_2"

mmcblk0p24: 00100000 00000200 "misc"

mmcblk0p25: 00180000 00000200 "modem_st1"

mmcblk0p26: 00180000 00000200 "modem_st2"

mmcblk0p27: 01400000 00000200 "fataldevlog"

mmcblk0p28: 00001000 00000200 "debug_config"

mmcblk0p29: 00040000 00000200 "pdata"

mmcblk0p30: 00004000 00000200 "control"

mmcblk0p31: 00140400 00000200 "local"

mmcblk0p32: 00010000 00000200 "extra"

mmcblk0p33: 00100000 00000200 "cdma_record"

mmcblk0p34: 00000400 00000200 "fsc"

mmcblk0p35: 00002000 00000200 "ssd"

mmcblk0p36: 00040000 00000200 "skylink"

mmcblk0p37: 01900000 00000200 "carrier"

mmcblk0p38: 00040000 00000200 "sensor_hub"

mmcblk0p39: 01e00000 00000200 "devlog"

mmcblk0p40: 00002800 00000200 "cir_img"

mmcblk0p41: 02de6000 00000200 "reserve"

mmcblk0p42: 01000000 00000200 "boot"

mmcblk0p43: 01800000 00000200 "recovery"

mmcblk0p44: 05800000 00000200 "reserve_3"

mmcblk0p45: a8000000 00000200 "system"

mmcblk0p46: 18000000 00000200 "cache"

mmcblk0p47: 58000000 00000200 "userdata"
[One (M8) Original Android Development] brar.arsh:
Yes it will not touch SD card.
[One (M8) Original Android Development] darksurfr:
so I flashed in the recovery after doing the HTCdev unlock and now the top of the screen says tampered and it wont let me boot into recovery.

Any thoughts? It just keeps rebooting to Hboot.
[One (M8) Original Android Development] Nathan2:
The tampered thing is normal, it will say that after you overwrite the stock recovery. At least, it says that for me and I have a perfectly working TWRP 2.7.0.3.

So in HBOOT, you select 'recovery' from the menu and it just reboots hack in HBOOT? Sounds like a bad flash/corrupted file, I'd double check and do it again.
[One (M8) Original Android Development] darksurfr:
I did. I even dowloaded 2.7.0.2 just to try a different one. Still boots into the system. not sure. Fastboot utility when I run it says it completes
[One (M8) Original Android Development] Nathan2:
Just to make sure, you put the phone into fastboot mode by selecting FASTBOOT from the HBOOT menu, correct (at this point it should say 'FASTBOOT USB' on the phone in red, I think.) Then you ran fastboot flash recovery <filename>.img?

If so then I'm at a loss... one thing I would try is, put your phone in fastboot again and try 'fastboot boot <filename>.img'. This should boot the recovery directly without flashing it onto your phone.
[One (M8) Original Android Development] darksurfr:
D:\Android\M8>fastboot flash recovery openrecovery.img

sending 'recovery' (12496 KB)...

OKAY [ 1.228s]

writing 'recovery'...

OKAY [ 0.754s]

finished. total time: 1.984s

D:\Android\M8>fastboot boot openrecovery.img

downloading 'boot.img'...

OKAY [ 1.229s]

booting...

FAILED (remote: dtb not found)

finished. total time: 1.233s

no go. Good try. Didn't know to try that
[One (M8) Original Android Development] Nathan2:
Weird... sorry, I'm out of ideas. Hopefully someone more experienced will be able to help you out!
[One (M8) Original Android Development] darksurfr:
Yea. Thanks for the thoughts.

I have done this on so many HTC phones and never had an issue. First time always has to happen I guess. Even doing the stupid wire trick on the 3D I never had any problems.

---------- Post added at 11:04 PM ---------- Previous post was at 10:57 PM ----------

So I figured out that IF I went to TWRP's website and DLed the one labeled for sprint it worked perfectly.

Fixed.
[One (M8) Original Android Development] Electronic Punk:
Why does this happen in recovery?

C:\Fastboot>adb shell

~ # ←[6ncat /proc/emmc

cat /proc/emmc

dev: size erasesize name

~ # ←[6n

Pretty sure that is why some of the format commands are not working.

Also is that "~ # ←[6n" normal?
[One (M8) Original Android Development] MrMikeSv:
"ESC [ 6 n" is cursor position request. It's your terminal emulator issue, term type mismatch, you can ignore it
[One (M8) Original Android Development] daorderdillon:
does any of the gestures stop working when boot loader is unlocked
[One (M8) Original Android Development] drakeymcmb:
no
[One (M8) Original Android Development] Electronic Punk:
Just adb on windows, surely it could be made prettier, or more usefully clearer where input starts

---------- Post added at 02:20 PM ---------- Previous post was at 02:19 PM ----------

Just to edit my own quote for clarity.

Shouldn't this correct return partitions?

It can't seem to find it for recovery causing issues flashing some roms. (ie system does not appear to get wiped with commands that have worked for many previous generations)
[One (M8) Original Android Development] maurydes:
command for flash is correct but is better first this:fastboot erase cache and after flash the recovery again fastboot erase cache then reboot:good:
[One (M8) Original Android Development] blubbers:
hi

writing to the external sdcard is not yet supported i guess?

adb shell
~ # mount |grep external
/dev/block/mmcblk1p1 on /external_sd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=131072,blksize=4096)
~ # touch /external_sd/asdf
touch: /external_sd/asdf: Permission denied
~ # id
uid=0(root) gid=0(root)
[One (M8) Original Android Development] Tikerz:
http://xdaforums.com/showthread.php?t=2700310
[One (M8) Original Android Development] blubbers:
Thanks but i am talking about the ext sdcard in the recovery mode
[One (M8) Original Android Development] Tikerz:
exFat is currently not supported. Have to format card as fat32 for now.
[One (M8) Original Android Development] fisha21:
I've also found that format commands don't seem to be working properly at the moment. Still getting the recovery reboot issue with the latest build, not sure if I'm the only one
[One (M8) Original Android Development] Root-Maniac:
[MENTION=1219335]jmz[/MENTION] Kernel source is available http://www.xda-developers.com/andro...ource-and-framework-files-for-the-htc-one-m8/
[One (M8) Original Android Development] iSaint:
Sorry for the stupid question but just to make sure this method is for the developer edition m8 right?
[One (M8) Original Android Development] Turge:
Same here.. had to format system through twrp because my rom wouldn't format properly and wouldn't extract /system or /data and would immediately reboot afterwards.

Also seeing this in Aroma:

and when I try to cat /proc/emmc:
[One (M8) Original Android Development] jmz:
Use command below. Works perfectly fine for me

run_program("/sbin/mke2fs", "-t", "ext4", "-m", "0", "/dev/block/mmcblk0p45");
[One (M8) Original Android Development] shorty1483:
Dumb user needs an answer :D

Today I tried a backup with compression. It stuck at the system part. Only way to reboot device was via fastboot. Are there any problems with compression until now?
[One (M8) Original Android Development] houstie:
This happened to me too
[One (M8) Original Android Development] djkinetic:
Question has anyone else been experiencing random reboots in recovery while performing certain actions like wiping partitions, or installing zips it starts then immediately starts recovery and you have to flash the file again...also has anyone else experienced usually with aroma installers after the install the screen just shuts off and your forced to do a hard reboot. This just started happening to my device recently.
[One (M8) Original Android Development] omar302:
I had the same thing. I flashed a mod that caused a bootloop, then couldn't flash any Rom because recovery rebooted every time during flash, restore worked though. Flashed Philz CWM recovery and then all was ok again.
[One (M8) Original Android Development] djkinetic:
I just put Philz on, gonna try that for a bit, then try TWRP again probably. I'm guessing its a segfault.
[One (M8) Original Android Development] poczynek:
Help! Tried backing up and stuck at 'backing up system...' Cannot restart via holding down power button for any length of time as the twrp unlock symbol comes up. Volume down and power button also won't work. Frozen now for 30 mins. Please don't tell me I have to wait till battery slowly runs out! Also tried the bright light trick and nothing. HELP! !
[One (M8) Original Android Development] jmz:
It's volume up and power
[One (M8) Original Android Development] poczynek:
Me = dumb. Restarted ok now!

Any idea why it freezes on backup?
[One (M8) Original Android Development] seanyuan62:
If I want to convert my device to a dev editon (I'm using Verizon M8 on T-Mobile) do I still have to flash my device specific recovery after s-off and super Cid? Or will the International twrp work?

Since technically it's not a Verizon anymore software wise
[One (M8) Original Android Development] Mr Hofs:
[MENTION=1219335]jmz[/MENTION]

is there any insight why some nandroid backups contain the recovery and some backups don't after making a nand ? (recovery.emmc.win) is this possible or am i overlooking/misunderstanding something ?
[One (M8) Original Android Development] Tikerz:
You can choose whether or not backup recovery. I only choose boot, system, and data for my backups.
[One (M8) Original Android Development] Mr Hofs:
Thanks, i was wondering about that as i don't own the device so i could not test myself.

I had several without and one with a recovery file ......

http://xdaforums.com/showthread.php?t=2701376
[One (M8) Original Android Development] fisha21:
Where do you get the choice? I just get the options of boot, cache, system and data....
[One (M8) Original Android Development] dkotoric:
does this recovery work ok ive heard phills works better

Sent from my HTC One M8
[One (M8) Original Android Development] housry23:
I think it works OK, but it's unofficial and a little buggy yet. Not everything is working and I'm going to stay away until the Official version. TWRP is definitely my custom recovery of choice, but this phone is so new, with no kernel source(afaik) released yet. Things will be buggy at first, but once HTC complies with GPL, we'll have even more goodies to flash and play with!

---------- Post added at 05:07 PM ---------- Previous post was at 05:04 PM ----------

Oops correction, kernel source has been released. It's only a matter of time before we get Official TWRP. Sprint HTC m8 has it. They've also released the framework support files. It's about to get fun!!!
[One (M8) Original Android Development] poczynek:
Ok no matter what I do I cannot backup. I can flash stuff and do everything else but every time I try backing up it freezes in twrp. Any suggestions?
[One (M8) Original Android Development] rootrider:
Try changing the backup name. That did it on the One S with 2.7.0.0. Not shure if it helps here, as 2.7.0.3. on this device differs more or less...
[One (M8) Original Android Development] freelockuk:
hi guys

just got my m8 on tuesday.

moved away from the s4.

rooted on wednesday and installed twrp 2.7.0.2 did a backup which way very big 5gig. s4 was about 2gig.

updated to the one from this post last night and did a backup.

start it at 10 last night just got up now and checked it and it wasnt even half way through 9hours some not right.

had to manually cancel it.

thanks Paul

(just install phils touch recovery and backup 10 min again 5 gig)
[One (M8) Original Android Development] Krocko:
The same for me.

I have disabled the compression and it works.
[One (M8) Original Android Development] Mr Hofs:
Any clarification on this thingy :fingers-crossed:
[One (M8) Original Android Development] pablo11:
Sorry, I've been meaning to test it but just haven't had any time lately. Work is necessary BOLLOX!
[One (M8) Original Android Development] rootrider:
ok, here we go: You can't back up to your external SD, doesn't matter compressed or not. You'll need to change to your internal SD. Then everything is fine.

-edit

Please see 2nd post, if your external SD is formatted with exFAT...
[One (M8) Original Android Development] rootrider:
ya, here we go again: Backup worked with stock rom but backing up a custom rom failed. To be exactly, backing up system failed.

Saved log file shows all good so far, but suddenly:

I:addFile '/system/priv-app/SoundPicker.apk' including root: 0
setting selinux context: u:object_r:system_file:s0
Splitting thread ID 0 into archive 2
E:tar_open error opening ''
E:Error creating tar '' for thread 0
I:ERROR tarList for thread ID 0
E:Error creating backup.
I:createTarFork() process ended with ERROR=255
I:Set page: 'action_complete'
I:Set page: 'clear_vars'
I:Set page: 'backup'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log
[One (M8) Original Android Development] mattman83:
Backup size depends on the rom and your apps. Re the long backup, turn off compression for now.

M.
[One (M8) Original Android Development] c5satellite2:
C:\ANDROIDSDK\sdk\platform-tools>adb sideload rom.zip

* failed to write data 'protocol fault (no status)' *

Sideload not working here
[One (M8) Original Android Development] nugzo:
Whats up C5.. updated SDK? what OS? what usb port? maybe change to a 2 of on a 3. try a different cable?
[One (M8) Original Android Development] c5satellite2:
USB 2.0 port, new cable that came with device. Win7 64.

ADB push worked when sideload failed the first time.

Flashed ROM.

Just tried again and it sent the file, but then TWRP wouldnt wake up. Had to hold power and vol up.

Trying again, wont let it sleep this time.

Guess what, it worked. I kept tapping the screen every 20 sec or so to keep it from turning off the display.
[One (M8) Original Android Development] krps13:
i have m8_ul, not att so can i flash this revcovery/m8_ul_ca on my m8_ul?
[One (M8) Original Android Development] Electronic Punk:
Yup, I had this working on my M7_UL.
[One (M8) Original Android Development] houstie:
Indeed you can, working ok on my M8_UL
[One (M8) Original Android Development] jeremy.martinus:
Hi there I have just got my M8 International version 2.5ghz 16gb . I have my bootloader unlocked and rooted with Supersu, using TWRP 2.7.0.3 recovery. I tired to do a nandriod backup to my ext_sdcard but it failed. what could be the problem please?
[One (M8) Original Android Development] houstie:
Try without compression, and use your internal storage. you can always transfer it later.
[One (M8) Original Android Development] jmz:
You sdcard is exfat. read second post
[One (M8) Original Android Development] BWA80:
Hi!

I can't mount my internal storage from twrp recovery.

Any idea how I can get that working?

Thanks!
[One (M8) Original Android Development] CB620:
Any update coming for this or maybe a official one?

I'm getting too many reboots when trying to restore, flash or backup.

That's a deal breaker for me.

NVM:

I see the AT&T one works for us too.
[One (M8) Original Android Development] jmz:
New version coming in official capacity shortly. Segfaults are definately fixed. Once you see it updated to 2.7.0.2 officially that means the new code has been updated.

http://techerrata.com/browse/twrp2/m8
[One (M8) Original Android Development] jmz:
iin the meantime I present to you a fully working TWRP. This means no segfaults and full exFAT support. Grab from OP. version 2.7.0.4 Enjoy

Thanks goes to [MENTION=4973732]simonsickle[/MENTION] for figuring out how to inline build the DTBs

And [MENTION=2638973]bigbiff[/MENTION] for pointing out selinux being the problem with exFAT
[One (M8) Original Android Development] frankcck:
Should I enable any feature in TWRP?

I've updated to 2.7.0.4 but still couldn't find my files from external card with exFAT.
[One (M8) Original Android Development] DeathmonkeyGTX:
Thank you. I came from LG Optimus G E970 and exfat sd cards worked fine in TWRP over there, glad to see it works here as well now!
[One (M8) Original Android Development] jmz:
If I remember correctly it doesn't automatically mount the sdcard. Go to mounts menu and see if it's mounted
[One (M8) Original Android Development] topjohnwu:
Hello, I flashed the latest 2.7.0.4 version, and found out that the screen brightness settings are missing. Is it normal??
[One (M8) Original Android Development] jmz:
Official will have that option
[One (M8) Original Android Development] Turge:
Any idea about /proc/emmc being blank or do you think it'll be resolved in the official version?
[One (M8) Original Android Development] jmz:
Should be fixed in the .4 version i posted
[One (M8) Original Android Development] rtubbs85:
Is there a zip for this I could just flash? Sorry don't have access to a computer fight now

---------- Post added at 08:40 PM ---------- Previous post was at 08:06 PM ----------

so I'm having am issue were once it starts to flash a rom it re boots before it's done and puts me back on old room. I'm not on the newest version of this recovery yet but is this something that was fixed?
[One (M8) Original Android Development] DeathmonkeyGTX:
Yes that was fixed. The .4 version works fine. You should be able to flash it without fastboot flashing via a computer with an app like Flashify.
[One (M8) Original Android Development] rtubbs85:
So I flashed the new update and the issue is still not fixed at least for me. Once it gets to the part were it says writing system I just reboots

---------- Post added at 10:25 PM ---------- Previous post was at 09:53 PM ----------

Alright so it's says symlinks failed . I'm on the newest version also . How do I fix this?
[One (M8) Original Android Development] Electronic Punk:
I ahve seen the symlink issues when the system hasn't actually been wiped, busy with customers at the moment but will try the old format commands when I do get a chance.

---------- Post added at 10:09 AM ---------- Previous post was at 09:50 AM ----------

Nope :(
[One (M8) Original Android Development] Turge:
Getting the same thing:

~ # ←[6ncat /proc/emmc
cat /proc/emmc
dev: size erasesize name
[One (M8) Original Android Development] Cuppeerr:
Flashed this fine on the T-Mobile version, and it rooted just fine. Just a heads up:)
[One (M8) Original Android Development] rtubbs85:
Okay i figured out my issuse i had to do a manuel wipe 3 times then it flashed perfectly
[One (M8) Original Android Development] mitsucats:
Download link is down ?
[One (M8) Original Android Development] starbase64:
No, works fine here

http://androidfiles.org/getdownload.php?file=M8/Recoveries/openrecovery-twrp-2.7.0.4-m8_ul_ca.img
[One (M8) Original Android Development] bpdev:
Twrp has been officially updated! :D

http://techerrata.com/browse/twrp2/m8
[One (M8) Original Android Development] Tower1972:
so the "official" update went down in number? I have the 2.7.0.4...but the official is 2.7.0.2?
[One (M8) Original Android Development] Electronic Punk:
Second official release I guess :)

Had a quick look last night but it made Aroma feel really laggy and of course "cat /proc/emmc" still returns very little.
[One (M8) Original Android Development] jmz:
My recoveries were never official. I only manually changed the version number to keep things straight here
[One (M8) Original Android Development] jmz:
Double post
[One (M8) Original Android Development] Tower1972:
Thanks for the heads up!!!
[One (M8) Original Android Development] Tiffany84:
So would you recommend using your latest or the latest official?
[One (M8) Original Android Development] jmz:
My .04 version Is the same as the official .02 version. I updated the OP to point to the official versions
[One (M8) Original Android Development] martinezma99:
[MENTION=1219335]jmz[/MENTION] So flash to the "official" or keep your .04 version? Which is more stable?
[One (M8) Original Android Development] Tiffany84:
Cool. Thanks for the quick reply and all the work you've done for us.