[One (M7) Q&A, Help & Troubleshooting] IcyAgitator:
I have decided to switch my AT&T Htc One M7 from GPE back to Sense. This device is S-Off and Bootloader Unlocked. This m7 was originally used on AT&T with Sense 4.4 Kitkat before being converted it to GPE.

My setup:

Windows 10 Pro

Latest HTC Drivers with USB 3.0 and 2.0 working correctly (Tested and working with fastboot commands)

HTC Sync Disabled.

Latest Android SDK (Updated)

New HTC Cable (Old one works too)

HTC One M7 - getvar all

C:\asdk>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.54.0000

(bootloader) version-baseband: 4T.36.3218.06

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.04.1700.11

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

(bootloader) serialno: HT38ZW900702

(bootloader) imei: 354439056913306

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0712000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 4187mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-0ddc65a3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.113s

To continue, I have tried two different HTC RUU.exe. They both give the same error code.

ERROR [155]: Unknown Error

RUU_M7_UL_L50_SENSE60_MR_BrightstarUS_WWE_7.17.1540.51.exe

RUU_M7_UL_L50_SENSE60_MR_BrightstarUS_WWE_7.17.1540.35_Radio_4T.35.3218.16_10.33Q.1718.01L_release_448825_signed_2.exe

I also tried two AT&T RUU's. These had the same results as the above two.

RUU_M7_UL_L50_SENSE60_MR_Cingular_US_7.23.502.4_Radio_4M.32.3218.06_10.46.1718.01L_release_449059_signed_2.exe

RUU_M7_UL_L50_SENSE60_MR_Cingular_US_7.23.502.1_Radio_4M.32.3218.06_10.46.1718.01L_release_424933_signed_2.exe

I extracted the Rom.zip from both of these RUU's and tried flashing them thru fastboot oem rebootRUU. It failed to flash giving me this error; target reported max download size of 1526722560 bytes

target reported max download size of 1526722560 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 25202263 is not a multiple of the block size 4096

sending sparse 'zip' (1490936 KB)...

error: write_sparse_skip_chunk: don't care size 25202263 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 25202263 is not a multiple of the block size 4096

OKAY [106.289s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

FAILED (remote: 32 header error)

finished. total time: 106.624s

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

I have read a lot of information from XDA and the internet. But I feel I am missing a step :confused: At this point I figure all of these flashing errors are due to the difference in filesystem sizes between Sense and GPE. If you have any suggestions I'd really appreciate it. Please include links and files if possible. Thanks

*** I have included pics in the attachments.