[Q] Bricked HTC One M7 after attempting to restore to stock using YouTube video guide

Search This thread

TexMachina

Member
Mar 26, 2009
12
1
I am looking for some help in getting my HTC One M7 back up and working.

I used the online Cyanogenmod installer on my at&t HTC One M7 and it worked for the most part including where it contacts the HTC site to place the phone in developer mode.

Unfortunately the radio was far weaker and was losing it's signal all the time. I tried a few nightly's in hopes it was a bug that would be addressed but the issue with radio strength continued. Then an alert about an update from Cyanogen popped up and I trustingly clocked OK thinking that perhaps THIS would fix the radio stregth issue and I can keep my rooted ROM. Instead it broke Bluetooth entirely.

So I watched a YouTube video on restoring to stock. Apparently I can't post the link,

I got all the way to the part where I use fastboot to install the zip, HTCOne-32GB-ATT-5.12.502.2-TWRP-stock-unrooted.zip

It failed but not in the manner described in the video I believe it is due to the phone security set to S-ON but I have yet to find a way to set it back to S-OFF from where things are now.

This was the steps from the video I followed starting with fastboot getvar version-main and the fastboot oem lock

I then went through the following commands

C:\fastboot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.054s]
finished. total time: 0.054s

C:\fastboot>fastboot oem rebootRUU
...
(bootloader) Start Verify: 3
OKAY [ 0.031s]
finished. total time: 0.031s

C:\fastboot>fastboot flash zip HTCOne-32GB-ATT-5.12.502.2-TWRP-stock-unrooted.zip
sending 'zip' (1249780 KB)...
OKAY [ 47.434s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 171.191s


And so it failed. The HTC screen came up but there was no progress bar so I know that fast boot is talking to the phone. I have been looking for a fix ever since and I am presently using a flip phone while working on getting the HTC One back.

Presently the phone boots directly into fastboot and will not allow me to do anything but reboot or power down but I can still use fastboot.

Revolutionary just sits at waiting for device.
The HTC One Toolkit is of no use as it also cannot see the device.


This is what is on the screen presently. Any help would be appreciated.

*** TAMPERED ***
*** RELOCKED ***
*** Security Warning ***
M7_UL PVT SHIP S-ON RH
HBOOT-1.57.0000
RADIO-4M.27.3218.14
OpenDSP-v32.120.274.0909
OS-5.12.502.2
eMMC-boot 2048MB
Apr 22 2014,01:10:58.0

FASTBOOT USB

<VOL UP> to previous item
<VOL DOWN> to next item
<POWER> to select item

BOOTLOADER
REBOOT
REBOOT BOOTLOADER
POWER DOWN


Here is the results for fastboot getvar all

C:\fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.57.0000
(bootloader) version-baseband: 4M.27.3218.14
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 5.12.502.2
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: XXXXXXXXXXXXX
(bootloader) imei: XXXXXXXXXXXXXXX
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4290mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-1f512bb6
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.048s
 
Last edited:

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I am looking for some help in getting my HTC One M7 back up and working.

I used the online Cyanogenmod installer on my at&t HTC One M7 and it worked for the most part including where it contacts the HTC site to place the phone in developer mode.

Unfortunately the radio was far weaker and was losing it's signal all the time. I tried a few nightly's in hopes it was a bug that would be addressed but the issue with radio strength continued. Then an alert about an update from Cyanogen popped up and I trustingly clocked OK thinking that perhaps THIS would fix the radio stregth issue and I can keep my rooted ROM. Instead it broke Bluetooth entirely.

So I watched a YouTube video on restoring to stock. Apparently I can't post the link,

I got all the way to the part where I use fastboot to install the zip, HTCOne-32GB-ATT-5.12.502.2-TWRP-stock-unrooted.zip

It failed but not in the manner described in the video I believe it is due to the phone security set to S-ON but I have yet to find a way to set it back to S-OFF from where things are now.

This was the steps from the video I followed starting with fastboot getvar version-main and the fastboot oem lock

I then went through the following commands

C:\fastboot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.054s]
finished. total time: 0.054s

C:\fastboot>fastboot oem rebootRUU
...
(bootloader) Start Verify: 3
OKAY [ 0.031s]
finished. total time: 0.031s

C:\fastboot>fastboot flash zip HTCOne-32GB-ATT-5.12.502.2-TWRP-stock-unrooted.zip
sending 'zip' (1249780 KB)...
OKAY [ 47.434s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 171.191s


And so it failed. The HTC screen came up but there was no progress bar so I know that fast boot is talking to the phone. I have been looking for a fix ever since and I am presently using a flip phone while working on getting the HTC One back.

Presently the phone boots directly into fastboot and will not allow me to do anything but reboot or power down but I can still use fastboot.

Revolutionary just sits at waiting for device.
The HTC One Toolkit is of no use as it also cannot see the device.


This is what is on the screen presently. Any help would be appreciated.

*** TAMPERED ***
*** RELOCKED ***
*** Security Warning ***
M7_UL PVT SHIP S-ON RH
HBOOT-1.57.0000
RADIO-4M.27.3218.14
OpenDSP-v32.120.274.0909
OS-5.12.502.2
eMMC-boot 2048MB
Apr 22 2014,01:10:58.0

FASTBOOT USB

<VOL UP> to previous item
<VOL DOWN> to next item
<POWER> to select item

BOOTLOADER
REBOOT
REBOOT BOOTLOADER
POWER DOWN


Here is the results for fastboot getvar all

C:\fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.57.0000
(bootloader) version-baseband: 4M.27.3218.14
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 5.12.502.2
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: HT3xxxxxxxxxxxxxx
(bootloader) imei: 354xxxxxxxxx
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4290mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-1f512bb6
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.048s

Ok
First thing .. edit your post above and remove the Serialno and IMEI

second the file you downloaded is my TWRP Backup and has to be restored using TWRP ...not flashed

it would be easier for you to use the Guru Reset I made
here >> http://www.androidfilehost.com/?fid=23501681358545274

So unlock your bootloader and flash TWRP 2.6.3.3
http://techerrata.com/browse/twrp2/m7

fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader

then sideload the Guru Reset from within TWRP



TWRP / Advanced / ADB Sideload - swipe to sideload
From PC adb / fastboot folder
you use
adb sideload name-of-rom.zip

make sure the rom is in the same folder as adb / fastboot
 
Last edited:

TexMachina

Member
Mar 26, 2009
12
1
I am getting the signature verify fail error when attempting to load the recovery image now. Is this due to security being set on, S-ON?

C:\fastboot>fastboot flash recovery openrecovery-twrp-2.6.
3.3-m7.img
sending 'recovery' (9184 KB)...
OKAY [ 1.116s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 1.863s


I made sure the images were in the fastboot directory.

Directory of C:\fastboot

08/23/2014 12:56 PM <DIR> .
08/23/2014 12:56 PM <DIR> ..
04/05/2012 05:49 AM 162,816 adb.exe
04/05/2012 05:49 AM 96,256 AdbWinApi.dll
04/05/2012 05:49 AM 70,144 fastboot.exe
08/23/2014 12:48 PM 986,880,264 Guru_Reset_M7_5.12.502.2_clsA.zip
08/23/2014 12:42 PM 9,404,416 openrecovery-twrp-2.6.3.3-m7.img
5 File(s) 996,613,896 bytes
 

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I am getting the signature verify fail error when attempting to load the recovery image now. Is this due to security being set on, S-ON?

C:\fastboot>fastboot flash recovery openrecovery-twrp-2.6.
3.3-m7.img
sending 'recovery' (9184 KB)...
OKAY [ 1.116s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 1.863s


I made sure the images were in the fastboot directory.

Directory of C:\fastboot

08/23/2014 12:56 PM <DIR> .
08/23/2014 12:56 PM <DIR> ..
04/05/2012 05:49 AM 162,816 adb.exe
04/05/2012 05:49 AM 96,256 AdbWinApi.dll
04/05/2012 05:49 AM 70,144 fastboot.exe
08/23/2014 12:48 PM 986,880,264 Guru_Reset_M7_5.12.502.2_clsA.zip
08/23/2014 12:42 PM 9,404,416 openrecovery-twrp-2.6.3.3-m7.img
5 File(s) 996,613,896 bytes

no your doing fine.. just unlock the bootloader
 

TexMachina

Member
Mar 26, 2009
12
1
no your doing fine.. just unlock the bootloader

I'm not sure I am doing this right. I am getting what appears to be a syntax error.

C:\fastboot>fastboot devices
HT34XXXXXXXX fastboot

C:\fastboot>fastboot oem unlock
...
(bootloader) [ERR] Command error !!!
OKAY [ 0.023s]
finished. total time: 0.023s


This is the command I sued from the original YouTube video on locking it for stock ROM. It shows it as having already been locked now.

C:\fastboot>fastboot oem lock
...
(bootloader) Device was already locked!
OKAY [ 0.002s]
finished. total time: 0.002s


Stupid me, sorry. I had Cyanogenmod do it for me last time. I am on HTCDev getting my unlock token now.
 
Last edited:

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I'm not sure I am doing this right. I am getting what appears to be a syntax error.

C:\fastboot>fastboot devices
HT34XXXXXXXX fastboot

C:\fastboot>fastboot oem unlock
...
(bootloader) [ERR] Command error !!!
OKAY [ 0.023s]
finished. total time: 0.023s


This is the command I sued from the original YouTube video on locking it for stock ROM. It shows it as having already been locked now.

C:\fastboot>fastboot oem lock
...
(bootloader) Device was already locked!
OKAY [ 0.002s]
finished. total time: 0.002s

no you have to go back to HTCDEV.com and get the unlock token from htc
 

TexMachina

Member
Mar 26, 2009
12
1
no you have to go back to HTCDEV.com and get the unlock token from htc

Sorry about that. I had the Cyanogenmod install site do it for me last time.

I completed the unlocking but the Android Debug Bridge does not recognize the sideload command. It just spits back the help menu.

C:\fastboot>fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
OKAY [ 0.141s]
writing 'unlocktoken'...
(bootloader) unlock token check successfully
OKAY [ 0.003s]
finished. total time: 0.146s

C:\fastboot>fastboot devices
HT34xxxxxxxx fastboot

C:\fastboot>fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
sending 'recovery' (9184 KB)...
OKAY [ 1.115s]
writing 'recovery'...
OKAY [ 0.718s]
finished. total time: 1.833s

C:\fastboot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.050s]
finished. total time: 0.050s

C:\fastboot>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.034s]
finished. total time: 0.034s

C:\fastboot>adb sideload Guru_Reset_M7_5.12.502.2_clsA.zip
Android Debug Bridge version 1.0.29
... <entire help menu>


Perhaps my adb version is not correct. I did find reference to a push command in the help menu.

adb push <local> <remote> - copy file/dir to device

Also, there is that fastboot command I attempted to use before I unlocked the bootloader.

Also also, thanks for all the help.

edit: I didn't reboot into recovery. I did now but it is asking for a password
 
Last edited:

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
Sorry about that. I had the Cyanogenmod install site do it for me last time.

I completed the unlocking but the Android Debug Bridge does not recognize the sideload command. It just spits back the help menu.

C:\fastboot>fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
OKAY [ 0.141s]
writing 'unlocktoken'...
(bootloader) unlock token check successfully
OKAY [ 0.003s]
finished. total time: 0.146s

C:\fastboot>fastboot devices
HT34xxxxxxxx fastboot

C:\fastboot>fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
sending 'recovery' (9184 KB)...
OKAY [ 1.115s]
writing 'recovery'...
OKAY [ 0.718s]
finished. total time: 1.833s

C:\fastboot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.050s]
finished. total time: 0.050s

C:\fastboot>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.034s]
finished. total time: 0.034s

C:\fastboot>adb sideload Guru_Reset_M7_5.12.502.2_clsA.zip
Android Debug Bridge version 1.0.29
... <entire help menu>


Perhaps my adb version is not correct. I did find reference to a push command in the help menu.

adb push <local> <remote> - copy file/dir to device

Also, there is that fastboot command I attempted to use before I unlocked the bootloader.

Also also, thanks for all the help.

edit: I didn't reboot into recovery. I did now but it is asking for a password

theirs no password on TWRP

To sideload


TWRP / Advanced / ADB Sideload - swipe to sideload
From PC adb / fastboot folder
you use
adb sideload name-of-rom.zip

make sure the rom is in the same folder as adb / fastboot
 

TexMachina

Member
Mar 26, 2009
12
1
theirs no password on TWRP

To sideload


TWRP / Advanced / ADB Sideload - swipe to sideload
From PC adb / fastboot folder
you use
adb sideload name-of-rom.zip

make sure the rom is in the same folder as adb / fastboot

I appreciate all the help and I don't want to appear difficult but when I run the adb sideload Guru_Reset_M7_5.12.502.2_clsA.zip with the rom in the same folder adb simply refuses to recognize the sideload command. It spits back the help menu and I can't find sideload in said menu.

edit: I am using adb push to place the rom on the phones /sdcard directory and I am gong to use TWRP to install while in recovery mode. The copy is taking a while so if this is going to brick my phone let me know.

edit 2: now I don;t think I want to do this. The online resource don't mention anything specifically about installing a ROM using this method.

edit 3: I tried using the HTC One Toolkit which comes with adb 1.0.31. It gave me the following error

adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
HT34xxxxxxxx recovery
adb sideload "File Path..."
* cannot read 'sideload' *
adb sideload "C:\fastboot\Guru_Reset_M7_5.12.502.2_clsA.zip"
error: closed

I am going to the gym to clear my head. Thanks again for all the help so far.
 
Last edited:

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I appreciate all the help and I don't want to appear difficult but when I run the adb sideload Guru_Reset_M7_5.12.502.2_clsA.zip with the rom in the same folder adb simply refuses to recognize the sideload command. It spits back the help menu and I can't find sideload in said menu.

edit: I am using adb push to place the rom on the phones /sdcard directory and I am gong to use TWRP to install while in recovery mode. The copy is taking a while so if this is going to brick my phone let me know.

edit 2: now I don;t think I want to do this. The online resource don't mention anything specifically about installing a ROM using this method.

your doing fine ..what was the error and why is sideload not in your version of TWRP ?

Is this the same resource that suggested flashing a TWRP recovery file with fastboot ? ... trust me you in good hands now ..just push the rom and flash it

during install choose no to install stock recovery and yes to Root the phone.
unless of coarse you want a stock unrooted phone
 
Last edited:

TexMachina

Member
Mar 26, 2009
12
1
your doing fine ..what was the error and why is sideload not in your version of TWRP ?

Is this the same resource that suggested flashing a TWRP recovery file with fastboot ? ... trust me you in good hands now ..just push the rom and flash it

during install choose no to install stock recovery and yes to Root the phone.
unless of coarse you want a stock unrooted phone

I didn't realize the thread went to page 2. I thought you just dropped off the tread.

Sideload is in TWRP but it does ask for a password. I loaded TWRP 2.6.3.0 and it doesn't ask for a password.

I am pushing the Guru_Reset_M7_5.12.502.2_clsA.zip to /sdcard again. I will try the install once it is there.
 

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I didn't realize the thread went to page 2. I thought you just dropped off the tread.

Sideload is in TWRP but it does ask for a password. I loaded TWRP 2.6.3.0 and it doesn't ask for a password.

I am pushing the Guru_Reset_M7_5.12.502.2_clsA.zip to /sdcard again. I will try the install once it is there.

I can't tell you if TWRP 2.6.3.0 will work with the Guru Reset ..it's very old and untested

if you saw a password in TWRP 2.6.3.3 you just swipe to make it go away
 

TexMachina

Member
Mar 26, 2009
12
1
I can't tell you if TWRP 2.6.3.0 will work with the Guru Reset ..it's very old and untested

if you saw a password in TWRP 2.6.3.3 you just swipe to make it go away

I loaded TWRP 2.6.3.3 again and I have to hit cancel to get past the password. I then can go to ADB Sideload but it always says Failed at the top while the only thing in the terminal window is Updating partition details.

I loaded TWRP 2.7.1.1 and was able to load up ADB Sideload and attempt a sideload from HTC One Tools which uses adb 1.0.31. I still get a syntax error when trying to use sidelaod from the command line.

It got as far as 77% before failing with this error message

sending: 'sideload' 77%
* failed to write data 'protocol fault (no status)' *


I also keep getting unable to mount /data and unable to mount internal storage errors on the TWRP ADB Sideload terminal.

I need to quit for the night. It seems like I am getting closer to a solution though.

I'll use the backup flip phone and I'll just have to talk to people while out tonight I guess. Thanks for your help.
 

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
I loaded TWRP 2.6.3.3 again and I have to hit cancel to get past the password. I then can go to ADB Sideload but it always says Failed at the top while the only thing in the terminal window is Updating partition details.

I loaded TWRP 2.7.1.1 and was able to load up ADB Sideload and attempt a sideload from HTC One Tools which uses adb 1.0.31. I still get a syntax error when trying to use sidelaod from the command line.

It got as far as 77% before failing with this error message

sending: 'sideload' 77%
* failed to write data 'protocol fault (no status)' *


I also keep getting unable to mount /data and unable to mount internal storage errors on the TWRP ADB Sideload terminal.

I need to quit for the night. It seems like I am getting closer to a solution though.

I'll use the backup flip phone and I'll just have to talk to people while out tonight I guess. Thanks for your help.

Yeah have a great night.

When you get back >>
Is you phone sdcard full ?
have you done factory reset and or format data partition in TWRP?

If it's too full to push / sideload a rom.
TWRP does have a file manager feature you may need to free up space using it. adb 1.0.31 is the version i use all the time... never an issue.

you would get mounting errors if the partitions were formatted or erased...it's ok the new rom recreates them
 
Last edited:

nkk71

Inactive Recognized Developer / Contributor
May 26, 2010
8,741
7,571
53
Beirut
I loaded TWRP 2.6.3.3 again and I have to hit cancel to get past the password. I then can go to ADB Sideload but it always says Failed at the top while the only thing in the terminal window is Updating partition details.

I loaded TWRP 2.7.1.1 and was able to load up ADB Sideload and attempt a sideload from HTC One Tools which uses adb 1.0.31. I still get a syntax error when trying to use sidelaod from the command line.

It got as far as 77% before failing with this error message

sending: 'sideload' 77%
* failed to write data 'protocol fault (no status)' *


I also keep getting unable to mount /data and unable to mount internal storage errors on the TWRP ADB Sideload terminal.

I need to quit for the night. It seems like I am getting closer to a solution though.

I'll use the backup flip phone and I'll just have to talk to people while out tonight I guess. Thanks for your help.

Point D here: http://xdaforums.com/showpost.php?p=53270352&postcount=21
 

TexMachina

Member
Mar 26, 2009
12
1
Yeah have a great night.

When you get back >>
Is you phone sdcard full ?
have you done factory reset and or format data partition in TWRP?

If it's too full to push / sideload a rom.
TWRP does have a file manager feature you may need to free up space using it. adb 1.0.31 is the version i use all the time... never an issue.

you would get mounting errors if the partitions were formatted or erased...it's ok the new rom recreates them

That final instruction did it. With the partitions cleared I was able to sideload the ROM and it installed without issue in from TWRP 2.7.1.1

Thanks for all the help.
 

xaviergreaux

New member
Jan 20, 2015
2
0
That final instruction did it. With the partitions cleared I was able to sideload the ROM and it installed without issue in from TWRP 2.7.1.1

Thanks for all the help.

Great !! Thank you !

a few months late to the party but how did you clear the partitions because I'm getting

E: Unable to mount '/cashe'

edit: Finished the adb push but HTC One still goes into Cyanogenmod......hopefully i can just leave this alone for a while cause atleast it turns on now
 
Last edited:

clsA

Senior Member
Aug 28, 2010
9,912
3,535
Central Florida
a few months late to the party but how did you clear the partitions because I'm getting

E: Unable to mount '/cashe'

edit: Finished the adb push but HTC One still goes into Cyanogenmod......hopefully i can just leave this alone for a while cause atleast it turns on now

after pushing a file you still have to install it
adb sideload copy's the file and installs it. Push does not
 
  • Like
Reactions: xaviergreaux

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    a few months late to the party but how did you clear the partitions because I'm getting

    E: Unable to mount '/cashe'

    edit: Finished the adb push but HTC One still goes into Cyanogenmod......hopefully i can just leave this alone for a while cause atleast it turns on now

    after pushing a file you still have to install it
    adb sideload copy's the file and installs it. Push does not