[AT&T HTC One (M8)] StratcatNC:
HTC One M8 ATT GSM Converted from Stock Sense > ViperRom > CM11 > GPE Conversion (Firmware Included)

I have two of these devices mine worked fine when I moved to the Skydragon 5.0 Rom, I installed the firmware, followed the instructions in the thread, no issues. On my other phone this has been an issue.

On the phone in questions it is unlocked, rooted, S-Off. Here are the issues I am experiencing and what I have tried.

Issue: Cannot install custom recovery (philz,cwm or TWRP)

- Tried via fastboot - Reports successful, no change.

- Tried via hboot - Reports Update Failed, Reboot, no change.

- Tried via TWRP application - TWRP crashes, no change

Issue:	Any changes made to the phone are reverted on reboot including app updates, installations, progress in media, anything.

Issue: In fastboot usb mode, if I enter the command "fastboot oem rebootRUU" the phone will simply reboot, so I have to try to flash firmware via hboot.

Issue: The phone will randomly reboot.

I have tried:

1. Flashing custom recoveries. (multiple ways, multiple version, multiple types)

2. Flashing RUU (multiple via hboot, all fail)

3. Flashing FUU (via windows) (Stock, Full Wipe, It reboots the phones and then claims no USB connection)

4. e2fsck -fn the /dev/block/mmcblk0p47 - Reports Errors cannot be fixed. I can't do anything with the drive mounted, and cannot access adb in recovery so, not sure...

5. wp_mod.ko ( can insmod while the phone is booted, any changes to the install-recovery.sh are lost on reboot so it does not stick)

6. Tried flashing the partition fix 1.54 splash for the GPE converted devices (again via hboot, failed)

7. Different cables, different USB ports, and every other guides I could find on XDA :)

8. Tried factory reset from recovery and phone OS.

I have available to me on the phone

Stock GPE Recovery - No ADB shell

ADB access while phone is booted, including root shell

Fastboot access in bootloader, minus ability to access rebootRUU

Here is some data output below, and if I can provide anything else I am more than happy to do so. Appreciate any help you all can provide me on this.

--GETVAR--

$ fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.18.0.0000

(bootloader) version-baseband: 1.14.21331931.LA02_2G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 1.16.1700.16

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

(bootloader) serialno: HT43KWM01872

(bootloader) imei: <redacted>

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul_ca

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: GOOGL001

(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: a1aef34e

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.016s

--BANNER--

*** Unlocked ***

M8_UL_CA PVT SHIP S-OFF

CID-GOOGL001

HBOOT-3.18.0.0000

RADIO-1.14.21331931.LA02_2G

OpenDSP-v32.2.2-00542-M8974.0213

OS-1.16.1700.16

eMMC-boot 2048

Mar 21 2014, 22:29:15.0

--ROOT DF--

root@htc_m8:/ # df

Filesystem Size Used Free Blksize

/dev 913.8M 128.0K 913.6M 4096

/sys/fs/cgroup 913.8M 12.0K 913.7M 4096

/mnt/asec 913.8M 0.0K 913.8M 4096

/mnt/obb 913.8M 0.0K 913.8M 4096

/system 1006.7M 786.2M 220.5M 4096

/data 26.3G 3.6G 22.7G 4096

/cache 678.4M 10.8M 667.6M 4096

/devlog 29.5M 20.4M 9.1M 4096

/fataldevlog 19.6M 13.5M 6.2M 4096

/firmware/radio 199.8M 44.3M 155.5M 4096

/firmware/adsp 199.8M 8.9M 190.9M 4096

/firmware/wcnss 199.8M 3.8M 196.0M 4096

/custdata 49.2M 4.0M 45.2M 4096

/mnt/shell/emulated 26.3G 3.6G 22.7G 4096

/storage/emulated 913.8M 0.0K 913.8M 4096

/mnt/media_rw/ext_sd 29.8G 4.1G 25.8G 4096

--LSMOD--

root@htc_m8:/ # lsmod

wlan 3543984 0 - Live 0x00000000 (O)

adsprpc 21680 3 - Live 0x00000000

ecryptfs 88689 0 - Live 0x00000000

dm_crypt 22668 0 - Live 0x00000000

texfat 178608 0 - Live 0x00000000 (PO)

--FSCK OUTPUT--

root@htc_m8:/sdcard2/untitled folder # ./fsck.ext4 -f -n /dev/block/platform/m>

e2fsck 1.42.9 (28-Dec-2013)

Warning! /dev/block/platform/msm_sdcc.1/by-name/userdata is mounted.

Warning: skipping journal recovery because doing a read-only filesystem check.

Pass 1: Checking inodes, blocks, and sizes

Deleted inode 83039 has zero dtime. Fix? no

Inodes that were part of a corrupted orphan linked list found. Fix? no

Inode 164419 was part of the orphaned inode list. IGNORED.

Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information

Block bitmap differences: -(328880--328887) -524802 +524803 -(560736--560754) -(4719168--4719203) -(4796672--4796759)

Fix? no

Free blocks count wrong for group #17 (13436, counted=13417).

Fix? no

Free blocks count wrong for group #146 (5013, counted=4925).

Fix? no

Free blocks count wrong (5946355, counted=5946561).

Fix? no

Inode bitmap differences: -83039 -164419

Fix? no

Free inodes count wrong (1733054, counted=1733358).

Fix? no

/dev/block/platform/msm_sdcc.1/by-name/userdata: ********** WARNING: Filesystem still has errors **********

/dev/block/platform/msm_sdcc.1/by-name/userdata: 20034/1753088 files (4.8% non-contiguous), 1065997/7012352 blocks

4|root@htc_m8:/sdcard2/untitled folder #

***UPDATE*** I was able to get the phone into RUU mode via this command:

adb -s HT43KWM01872 shell /system/bin/reboot oem-78

So here is the output of my attempt to flash a custom recovery as well as flash the RUU. The RUU flash completes with the failure, but before I am able to re-flash it. The device reboots and I am back into the OS.

rr at RR-MBP in ~/Desktop

$ fastboot flash recovery openrecovery-twrp-2.6.3.3-m8_0.6.img

target reported max download size of 1830715392 bytes

sending 'recovery' (11164 KB)...

OKAY [ 1.191s]

writing 'recovery'...

OKAY [ 0.674s]

finished. total time: 1.866s

rr at RR-MBP in ~/Desktop

$ fastboot flash zip RUU-HTC_One_M8_GPE_4.4.4-2.12.1700.1.zip

target reported max download size of 1830715392 bytes

sending 'zip' (567002 KB)...

OKAY [ 19.168s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

(bootloader) start image[hboot] unzipping for pre-update check...

(bootloader) total_image_number=7

(bootloader) start image[hboot] flushing...

(bootloader) [RUU]WP,hboot,0

(bootloader) [RUU]WP,hboot,99

(bootloader) [RUU]WP,hboot,100

(bootloader) ...... Successful

(bootloader) current_image_number=0

(bootloader) current_image_number=1

(bootloader) current_image_number=2

(bootloader) current_image_number=3

(bootloader) current_image_number=4

(bootloader) current_image_number=5

(bootloader) current_image_number=6

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

finished. total time: 20.477s