[One (M8) Q&A, Help & Troubleshooting] TravisTX:
I have an HTC One m8 which may be currently bricked. I'm really hoping someone can help me get this phone functional again.

I purchased the device unlocked from ebay with Sense UI. I wanted to use Google Play Edition, so I began the process of rooting, obtaining S-Off, and flash the GPE RUU. With the RUU, my sim card was no longer recognized. Not being able to return to stock (because there was not an RUU available), I opted to install the Viper One ROM which solved my sim card issue and the phone was fully functional (it just had sense ui on it, which I don't really care for).

Recently I decided to give GPE another go, and tried lots of things, one of which (stupid, I know) was S-On. Now I seem to be stuck with S-On and the device won't recognize my sim card. I am quite confident this sim card issue is not related to a phyiscal problem with the sim card, as I've had this issue before with other ROMs, and switching to Viper One always resolved it. Additionally, I have other devices and other sim cards at my disposal. I can still get to recovery, and Cyanogenmod nightlies. However I can't get back to S-Off. firewater now tells me "device patched by HTC, you are out of luck" and Sunshine tells me "Sunshine cannot be used on your current rom/Kernel combination. If you are running custom software, you will need to flash a stock sense-based rom, and try sunshine again".

I've tried installing many other roms but they are giving install errors (Viper One, Android Revolution, InsertCoin). I have tried installing these from TWRP, CWM, and Philz Touch. I've tried formatting partitions before installing them, and mounting or unmounting partitions.

Any help to get this device functional again would be appreciated.

Here is a recent log from trying to install ViperOne.

AROMA Installer version 2.70RC2

(c) 2013 by amarullz xda-developers

ROM Name : ViperOneM8

ROM Version : 1.7.1

ROM Author : Team Venom

Device : HTC One M8

Start at : Wed Aug 6 19:39:43 2014

I:emmc_scan_partitions:[partition_count:0] [allocat_num:50]

load_volume_table: Can't get the /proc/emmc table

===========================================

ViperOneM8 1.7.1 By Team Venom

about to run program [/sbin/getprop] with 2 args

m8

about to run program [/sbin/getprop] with 2 args

m8

Be patient - 1st boot may take a while

===========================================

emmc_umount_partition: umount /cache failed

emmc_umount_partition: umount /data failed

Extracting tools

Installing Venom Tools

Extracting Build Tools

about to run program [/sbin/busybox] with 3 args

Setting permissions

about to run program [/sbin/busybox] with 7 args

Setting ConfigExists to 1 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 7 args

Setting HostsFileExists to 0 in /tmp/VenomSettings.prop

Formatting Partitions

Formatting /system

about to run program [/sbin/mke2fs] with 6 args

mke2fs 1.41.14 (22-Dec-2010)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

65536 inodes, 262144 blocks

0 blocks (0.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=268435456

8 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376

Writing inode tables: 0/81/82/83/84/85/86/87/8done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.

Formatting /cache

about to run program [/sbin/mke2fs] with 6 args

mke2fs 1.41.14 (22-Dec-2010)

/dev/block/mmcblk0p46 is apparently in use by the system; will not make a filesystem here!

run_program: child exited with status 1

about to run program [/sbin/sleep] with 2 args

Extracting Files

Writing System

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 3 args

mount: mounting /dev/block/platform/msm_sdcc.1/by-name/userdata on /data failed: Device or resource busy

run_program: child exited with status 255

Writing Data

Installing Mods

about to run program [/sbin/busybox] with 7 args

Setting CustomizePropExists to 1 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting CustomizePropExists to 1 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting CarrierPropExists to 1 in /tmp/VenomSettings.prop

Flashing Carrier Tweaks

about to run program [/sbin/busybox] with 7 args

Setting MergeBuildProp to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting CarrierIconExists to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting LauncherPropExists to 1 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting RemoveAppsPropExists to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting RemoveMediaPropExists to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting KeyboardsPropExists to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 7 args

Setting ConfigExists to 1 in /tmp/VenomSettings.prop

about to run program [/sbin/busybox] with 5 args

/sdcard/Venom/Tools/SetSetting.sh: line 2: /system/xbin/sqlite3: not found

run_program: child exited with status 127

about to run program [/sbin/busybox] with 7 args

Setting VenomMods to 0 in /tmp/VenomSettings.prop

Installing Kernel

about to run program [/sbin/busybox] with 7 args

Setting KernelExists to 0 in /tmp/VenomSettings.prop

about to run program [/sbin/dd] with 3 args

16524+0 records in

16524+0 records out

8460288 bytes (8.1MB) copied, 1.492394 seconds, 5.4MB/s

Kernel Flashed.

Finalizing Install

Creating toolbox symlinks

Installing busybox

set_perm: chown of /system/xbin/busybox to 0 1000 failed: No such file or directory

set_perm: chmod of /system/xbin/busybox to 755 failed: No such file or directory

script aborted: set_perm: some changes failed

set_perm: some changes failed

Installer Error (Status 7)

End at : Wed Aug 6 19:40:31 2014

And the results from 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:

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

(bootloader) serialno: (omitted)

(bootloader) imei: (omitted)

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B11000

(bootloader) cidnum: GOOGL001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 6e0f5a3d

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.007s