yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] nc5959:
I installed the sdk from the link provided. Moved the htc_fastboot and RUU.zip file to sdk folder C:/Users/nc5959/Appdata/Local/Android/sdk

Now I m finding it difficult to run the commands, how to run the sdk. i m sorry i am a newbie here and don't know how to run this software. Sorry for asking stupid question.

Also when i copied the h&c_fastboot and RUU.zip file within sdk and ran command htc_fastboot em rebootRUU (by shift+right click and open window cmd here) , I m still getting error "the program can't start because AdbWinApi.dll is missing from your computer". Do I need to open RUU, coz it says file cannot be opened? Please help.

Thanks
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
By default the sdk should have been installed at this location

C:\Program Files (x86)\Minimal ADB and Fastboot

open this folder on your pc and you should find AdbWinApi.dll inside along with some other files (see Screenshot 1)

This is the folder you need the RUU and htc_fastboot to be in. Copy both files here.

Now launch the sdk with the Desktop Icon or from the start menu. It should open up a command window. (see Screenshot 2)

Now connect your phone to your PC with the usb cable and boot to the bootloader screen. Make sure the bootloader is in fastboot mode by selecting the Fastboot option from the bootloader menu. If you dont see an option for fastboot mode its probably already in fastboot mode. bootloader should look somthing like this with "fastboot usb" in red (see screenshot 3)

Now you can issue fastboot commands to your phone through the command window. Try

fastboot devices

this is a simple command that will give an output of your devices serial number. This confirms fastboot can see your device. (Never share your Serial Number nor your IMEI number on the forums) These 2 numbers should be kept private for your own security ;)
[One (M7) Q&A, Help & Troubleshooting] mpasternak_:
Stuck at htc logo

Hello, I have an HTC one M7 that I tried installing the Eragon v63 rom on that is stuck on the logo screen.

Previously it was running the custom GPE+ rom but I decided to switch roms for fun. I transferred the file on my phone via USB cable, and installed it with the clockwork recovery mod(after wiping the data) and the installation wizard went perfect. It said to reboot my phone, and now it just stays at the HTC logo with the red text at the bottom. I can enter fastboot and recovery, and I've tried reinstalling the rom several times.

If someone could tell me how to get another rom file onto the device or anything like that I would be eternally grateful.
[One (M7) Q&A, Help & Troubleshooting] nc5959:
Hi, After performing all the above steps and running command " fastboot devices", the command prompt returns to C:\Program Files<x86>\Minimal ADB and Fastboot.

No device serial number is returned.

When I type "fastboot device" in command prompt I get a message <waiting for device> and nothing happens. The cursor just blinks.

The screen on phone is FASTBOOT USB in red.

Still worried whether this phone will work? Please help.
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
OK with your device on the fastboot USB screen connected with usb check your pc's device manager. What is your device listed as?

Which version of Windows are you running?

---------- Post added at 09:48 AM ---------- Previous post was at 09:45 AM ----------

If your sure the rom is compatible with your device then I would flash a different recovery then install the rom. Try TWRP recovery or a different version of CWM.
[One (M7) Q&A, Help & Troubleshooting] acomp182:
Hi,

I have a HTC One M8 that turned off in the the middle of the night and never turned back on. Letting it charge for hours did nothing. Holding PWR+Vol UP buttons did nothing. When I plug it in the computer, its picks it up as a qualcomm hs-usb qdloader 9008 device. Is there any hope of unbricking this device? Stock ATT ROM. Never rooted or flashed.
[One (M7) Q&A, Help & Troubleshooting] nc5959:
Hi,

My device is listed as Android 1.0 with an exclamation mark in the device manager . I am using windows 8.1.

Device Status is as below

The drivers for this device are not installed. (Code 28)

There are no compatible drivers for this device.

To find a driver for this device click Update Driver. (did that, no drivers were found).
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
OK so you need to install windows drivers for your m7. The easiest way to get the drivers is to install htcsync manager. You can get it from HTC website here http://www.htc.com/us/support/software/htc-sync-manager.aspx?region=true

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

Any warranty on the device? If so I recommend sending it to HTC service. When the device enters qloader mode randomly it generally means a hardware (mainboard) failure.
[One (M7) Q&A, Help & Troubleshooting] nc5959:
Hi,

I am getting below error in command prompt.

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot device

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot, system, vendor and if fo

nd,

recovery

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

format[:[<fs type>][:[<size>]] <partition> format a flash partition.

Can override the fs type and/or

size the bootloader reports.

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and

flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s <specific device> specify device serial number

or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address

default: 0x10000000

-n <page size> specify the nand page size.

default: 2048

-S <size>[K|M|G] automatically sparse files greater

than size. 0 to disable

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot oem rebootRUU

... (bootloader) [ERR] Cmd18 polling status timed out, MCI_STATUS: 0x4C2000

(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2

(bootloader) [SD_HW_ERR] read data fail in CMD18

(bootloader) CMD18: cmd failed

(bootloader) [SD_HW_ERR] SD: Read data fail..

(bootloader) [ERR] partition_read_emmc(876): error 2

(bootloader) Start Verify: 3

(bootloader) [ERR] Cmd25 polling status timed out, MCI_STATUS: 0x4C0000

(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2

OKAY

Execution time is 26(ms)

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot flash zip RUU.zip

sending 'zip'... (50282 KB) OKAY

sending time = 2.895 secs

writing 'zip'... (bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

FAILnot allowed

FAILED (remote: not allowed)

Execution time is 8(s)

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot reboot-bootloader

rebooting into bootloader... OKAY

Execution time is 20(ms)

C:\Program Files (x86)\Minimal ADB and Fastboot>
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
OK so your drivers and sdk are all working now. Unfortunately there are some errors here to cause concern :(

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot oem rebootRUU
... (bootloader) [ERR] Cmd18 polling status timed out, MCI_STATUS: 0x4C2000
(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2
(bootloader) [SD_HW_ERR] read data fail in CMD18
(bootloader) CMD18: cmd failed
(bootloader) [SD_HW_ERR] SD: Read data fail..
[B](bootloader) [ERR] partition_read_emmc(876): error 2[/B]
(bootloader) Start Verify: 3
(bootloader) [ERR] Cmd25 polling status timed out, MCI_STATUS: 0x4C0000
(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2
OKAY
Execution time is 26(ms)

Your device does not appear to have correctly entered ruu mode. After issuing the command "fastboot oem rebootRUU" your device should reboot to a black screen with silver HTC logo. I guessing that didn't happen given the above emmc error? Unfortunately this indicates a hardware problem :(

The error below shows the ruu failed to flash, if your sure you used the correct ruu this is most likely because the device did not enter ruu mode.

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot flash zip RUU.zip
sending 'zip'... (50282 KB) OKAY
sending time = 2.895 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
FAILnot allowed
FAILED (remote: not allowed)
Execution time is 8(s)

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot reboot-bootloader
rebooting into bootloader... OKAY
Execution time is 20(ms)
[One (M7) Q&A, Help & Troubleshooting] nc5959:
Thanks Danny for all your help. Yes you are right its the wrong RUU. Found it on the forum. Now trying to flash it

Many Thanks

---------- Post added at 01:23 PM ---------- Previous post was at 12:53 PM ----------

Still unable to flash. You are again right its the hardware. (bootloader) [ERR] partition_read_emmc(876): error 2. Any idea how to fix this. Any place in London who would fix this hardware issue?
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Your welcome sorry it didn't turn out better.

The emmc is basicly the main memory chip. So I guess to replace it you need to replace the mainboard.

I'm sure in London there would be somewhere that can do it. But I live in Wales so can't recommend I'm afraid. Google should be able to help you with that ;)

Although it may be just as cheap to by a second hand m7 from eBay depending on how much the repair costs. :good:
[One (M7) Q&A, Help & Troubleshooting] htc011:
Bricked M7

Hello,

I bricked my (non-rooted) M7 by attempting a factory reset, and then powering the phone off while it was still in progress. Now it's in a boot loop (I think that's what it's called - It just repeatedly shows the HTC powered by android screen, and restarts until it runs out of juice). I can't seem to get it to respond to any button presses (holding vol down + power button). Any thoughts?

Thanks!
[One (M7) Q&A, Help & Troubleshooting] klk999:
Decryption Unsuccessful on M7

Hi,

I was trying to backup photos and other items from my HTC m7 because I am getting a new phone. However, it rebooted and I got the "enter your password to decrypt. I enter the pin, and it says that decryption was unsuccessful, your data is corrupt and I need to perform a factory reset. All I really want to do is get my photos off. The rest can be dealt with later. Any help is appreciated. I am comfortable working with command line interface.
[One (M7) Q&A, Help & Troubleshooting] alray:
would try a factory reset again from the bootloader menu. Otherwise flashing a ruu might be an option, or flashing a custom recovery + a rom.

---------- Post added at 04:33 PM ---------- Previous post was at 04:32 PM ----------

Encryption can not be removed, only a factory reset using the stock recovery will give you access to the phone (with all data wiped).
[One (M7) Q&A, Help & Troubleshooting] htc011:
Is it possible to do this without being able to enter bootloader screen in the first place?
[One (M7) Q&A, Help & Troubleshooting] alray:
No, without access to the bootloader screen there is not much you can do.
[One (M7) Q&A, Help & Troubleshooting] htc011:
Hmm am I just out of luck then? Or have I not tried hard enough to get into the bootloader?
[One (M7) Q&A, Help & Troubleshooting] alray:
Well you have nothing to loose, try everything you can to get in bootloader mode, Hold Vol down and power or let the phone discharge completely then plug it in the wall charger while holding vol down and power.

If you can't boot in the rom, in the recovery or in the bootloader, there is nothing to do :(
[One (M7) Q&A, Help & Troubleshooting] Kapsi:
Hey guys,

I've got a big Problem with my HTC One M7, i bought a used Phone after my Baseband Chip on the first HTC got broken.

It has been repaired before because the Screen was broken. After that the Sim-Slot was corrupted and I brought it back to the Repairservice who did the Change, they did everything well but the Problem was, it had a Maximus Rom installed an the Guy from the Shop Updated it OTA.

After I tried to do a Factory reset because the Speakers are not working the System wont start up. It stops in the Bootloader, I cant enter the Recovery its stopping at the white HTC Screen and the text: Entering Recovery........ and nothing happens, except it restarts only somethimes and tries to enter the Recovery with the same failure.

It has a locked Bootloader and S-On. If I try to unlock it its going into the Recovery after clicking Yes. At the and its stuck at Recovery again, I cant install a new Recovery, Rom or start into the Firmware. If i try to install an RUU it says its not veryfied.

Please help me if you have a Solution for this Problem. My first HTC definitely broken and the second one shouldnt be ^^.

And I have to say Sorry for any Mistake in the text, I'm German :D
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Quite a lot going on here, but primarily you need to unlock the bootloader. The device will not boot custom software while the bootloader is locked.

The bootloader won't unlock because you have a custom recovery so first you need to restore the stock recovery. This can be done by flashing a firmware package or an ruu.

Can you please post the output of

fastboot getvar all

Please remove your IMEI and Serial numbers before posting. Then we can see which is the best course of action :good:
[One (M7) Q&A, Help & Troubleshooting] Kapsi:
Hi,

my Problem ist Im not able to flash a new Firmware or Ruu, it always says that the signature is missing.

But anyway:

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.57.0000

(bootloader) version-baseband: 4T.29.3218.08

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.09.401.11

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

(bootloader) serialno: ***

(bootloader) imei: ***

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0710000

(bootloader) cidnum: HTC__102

(bootloader) battery-status: good

(bootloader) battery-voltage: 4240mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-6d8a0b9b

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.045s

I hope theres a way out of this mess ^^
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Download this firmware

https://www.androidfilehost.com/?fid=23991606952612395

Drop it in your fastboot folder on your PC. Rename it firmware.zip. flash it with fastboot.

fastboot erase cache
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot flash zip firmware.zip
fastboot reboot-bootloader

Assuming that goes well proceed to unlock the bootloader with the Unlock_code.bin.

If you get any errors during the flash copy and paste the command window here.
[One (M7) Q&A, Help & Troubleshooting] Kapsi:
Everything went quite well :D

But the Phone isnt able to go into the recovery mode, its now unlocked but theres always a Phone with a exclamation mark in the middle.

After installing the twrp recovery with succes theres the white HTC screen with the text Entering Recovery..... again.

I can flash the recovery from your firmware again but the phone with the red exclamation mark appears again....
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
The phone with the red exclamation is normal, that is the stock recovery. :good:

TWRP gets stuck at entering recovery? Which version of twrp did you flash? Did you "fastboot erase cache" after flashing twrp?
[One (M7) Q&A, Help & Troubleshooting] edegg:
HTC One Dual 802d (HTC__621) is half-dead, but not like brick...

Unlocked, rooted, TWRP... ed, Soul39 (802T&D&W-Sense6.0-KK4.4.3-Soul39.0_mod) works good for 2 years....

But 2 weeks ago it can not boot fully and stops on "BeatsAudio" logo.

Bootloader works good:

[IMG="bootloader"]https://yadi.sk/i/Z05JjWLRjJtvz[/IMG]

If I try to enter recovery, its stop on TWRP logo:

[IMG="twrp"]https://yadi.sk/i/-6C8WeKnjJtvx[/IMG]

If I try to flash recovery (cvm, twrp, stock) it says OK, but nothing change:

[IMG="flashin recovery"]https://yadi.sk/i/Ur_Ppt1DjJtvk[/IMG]

if I try oem rebootRUU - phone boots simply, not in RUU. (in case of UNLOCKED, I guess....)

if I try oem lock - successfuliy.... but still unlocked:

[IMG="oem lock"]https://yadi.sk/i/aHry65x1jJtwF[/IMG]

Can't lock via adb shell ...

Can't S-OFF via rumrunner....

Fastboot flashing firmware.zip - not allowed

Partition Table exist.... I think:

[IMG="partinfo"]https://yadi.sk/i/TSOEIS4hjJvqh[/IMG]

but when I send command watch -n ,1 lsusb in kubuntu terminal, phone looks like HTC(High Tech Computer Corporation) and after command sudo ./brickdetect.sh - Device can't be detected. Check connections

After command sudo ./getbrickdrive.sh - device is on /dev/sdc or /dev/sdd, but other coommands

(sudo dd if=/home/.../hboot_signedbyaa.img of=/dev/sdX12 for example) bring no success:eek:

I don't know what to do more.... I think emmc 'fall in" read-only mode (by HTC OTA-programmers' sh***t), but I don't know commands in adb-fastboot-linux that can check and solve this problem.... :(

PS: I add pictures, but there are only "names" of them. Wt...?
[One (M7) Q&A, Help & Troubleshooting] methoddon1:
what's up everyone... got a little question and apologise if it's been asked many times before. my wife loves htc (sense UI) so recently i bought a brand new one for her (M7)... the reason im telling this is the fact that I have already drivers and adb installed on my pc (unlocked, rooted and flashed a rom for her on the second day after buying it) but few days ago I bought another M7 at a good price just to use with mhl-vga converter (as a stationary with Bluetooth keyboard and mouse connected so we wouldn't have to connect her m7 or my s5 all the time back and forth) but the thing is, that volume rocker (the one you actually need to enter a fastboot mode, the Volume Down) - dont work, so my question is, - is it possible to enter a fastboot mode through pc using cmd ? I've read that it is possible but yesterday I connected, opened command window, typed ADB devices just to see if pc recognizes the device and nothing, then typed other commands I found googling... commands for reboot, reboot to fastboot... whatever... so I'm asking is it possible? or the only way to get there is to use power and volume down buttons? thanx.

edit : drivers are all good (updated), adb us on my pc. the device was On (booted).
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Best thing for you is to flash an ruu, please post the output of

fastboot getvar all

Please remove your IMEI and serial number before posting. Then I can hopefully point you to correct RUU if there is one available.

Is the bootloader already unlocked or still stock?

For adb to detect the device while booted to Android you need USB debugging enabled I'm developer options.

You might also try installing a rebooted app from the playstore, I'm fairly sure they all require root but worth a try. ;)
[One (M7) Q&A, Help & Troubleshooting] methoddon1:
USB debugging enabled, it's completely stock, reboot app needs root.
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Then your only hope really is to try one of the temp root methods like Kingo root or Towel Root. If you can get that to work then you can use a rebooter app to get to the bootloader.

Alternatively you could use Sunshine App. It should unlock the bootloader and root the device as well as giving s-off. Although Sunshine does cost $25 to use.

Temp root = free but most likely troublesome to get it to work

Sunshine = Cost $25 but very simple to use.
[One (M7) Q&A, Help & Troubleshooting] methoddon1:
I see... i'm mostly for Sammy and the last time I had htc was when m7 came out but not for long, went with Galaxy s4 back then.... then switched to phablets and s5 so I feel like a noob in a way... so you're saying that it's possible to root htc device without unlocking a bootloader?

p. s. I know about all of the mobile root apps, I'm ready to try (only used one once and it's only because the tab I bought was impossible to root in general... if only with mobile app and it worked. but I prefer Odin and pc) but im definitely not paying 25$. imma change the body soon enough and it's gonna cost me 45$ with casing and the job. so instead of paying 25 I'll wait and have the volume rocker fully functional. thanx for your time.
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Yes flashing the ruu from the SD card is what I was going to suggest, if the bootloader saying its the wrong zip then you probably need to update your firmware, or find an older ruu that is closer to your current version main. But for this I need the getvar all or full OS Version number from the bootloader screen. ;)
[One (M7) Q&A, Help & Troubleshooting] edegg:
To update firmware RUU-mode needed... And for RUU.zip flashing bootloader must be LOCKED... :(
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Have you tried flashing a Stock recovery? Never known having a custom recovery to cause issues while locking the bootloader but it often can prevent unlocking.

It does seem like some type of hardware issue though. When you can get to you PC with the phone. Run this command

fastboot oem last_dmesg

The output will be very large, it may be easier to past it to a .txt file and link it. That will atleast show any serious bootloader or emmc issues.
[One (M7) Q&A, Help & Troubleshooting] Kapsi:
Now its working, i got twrp 2.8.6.0 and now i downloaded 2.8.7.0 and everything works fine.

Atm Im downloading a stock rom for twrp but not the corrent one, to update a newer one via OTA.

I hope everything goes well ^^
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
I have a TWRP nandroid backup you can use. https://www.androidfilehost.com/?fid=95897840722641162

It's full stock and should enable you to take OTA updates.

Download it and extract the zip to your desktop. Copy the folder to your TWRP/BACKUPS/SHxxxxxxxx/ folder on your device. Then use the Restore option in twrp to restore the stock rom :good:
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Good job :) Glad I could help [emoji106] and now you know how, you'll never be stuck without adb /Fastboot again
[One (M7) Q&A, Help & Troubleshooting] kh6rsb:
Verizon HTC One M8

Hey there. It looks like I am need of your services. I was able to successfully achieve S-off on my Verizon HTC M8 but when I tried to flash a recovery it never rebooted. Right now i have a blank screen. The screen is black but is on and just blank. I have tried to hold the power button to power off, tried to boot into fastboot with power and down volume button, tried to plug into computer. When I plug in the usb I get the bells sound that it recognizes it but adb does not recognize when I use fastboot devices command. Please help!
[One (M7) Q&A, Help & Troubleshooting] Danny201281:
Are you sure you flashed the correct recovery? There are specific versions of recoveries for Verizon phone.

Try this

Find a bright light, (halogen desklamp or something similar) hold the phone underneath the light and try to power on with

Volume down + power on hold both for quite a long time at least 60 secs

This works for some M7s not sure about M8 but gotta be worth a try