yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Hi, I'm new to the site so I apologize if this particular problem has been solved somewhere - but I cannot find it.

My phone was running fine - it WAS STOCK with all the latest kit kat OS - including sense 6 (the one that has the greenish highlights versus the blue ones for blink feed etc.)

My phone is from Thailand - I guess it is the Asia or SEA version.

After I restarted the phone the other morning, it just went into the boot loop - white screen, saying powered by android - and then the HTC logo - with beats audio - over and over again.

I tried to do a hard reset - it didn't seem to work.

I then started to investigate - downloaded the RUU file etc - I can get the phone into the fastboot mode and get it talking to the computer - but then I got a 155 error when I tried to run the RUU file on to the phone.

Then I went to the HTCdev site and managed to UNLOCK the phone - it is still S-ON - and ran the RUU again - and with the same result.

It may be that I need to S- OFF the phone or run the TWRP thing on the side, but I do not know how to do this, or if it is the right thing to do - but I don't want to do anymore until I discuss with someone here - I am currently on holidays for a few more weeks in Australia, and will return to Thailand - the phone is still under warranty - but I would like to try to fix it and get it working before then.

At the very least, I would like to return it completely to stock - or at least LOCK it again - so that if I cannot fix it now, maybe I can submit it under warranty in a few more weeks. (but I would like to try to get the phone working now).

Any help someone can give would be great.

Thank you very much.
[One (M7) Q&A, Help & Troubleshooting] gawoz:
This is the information that comes up if I type the getvar command - I just did this because I saw others asked for it on other threads, in case it helps...

version: 0.5

version-bootloader: 1.57.0000

version-baseband: 4T.27.3218.14

version-cpld: None

version-microp: None

version-main: 5.12.707.104

version-misc: PVT SHIP S-ON

meid: 00000000000000

product: m7_u

platform: HBOOT-8064

modelid: PN0711000

cidnum: HTC__044

battery-status: good

battery-voltage: 4303mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: dirty-1f512bb6

hbootpreupdate: 11

gencheckpt: 0

al time: 0.048s
[One (M7) Q&A, Help & Troubleshooting] gawoz:
204

Dear people, I am getting desperate here - I have been told by Thailand HTC service that once my bootloader has been unlocked, it is no longer covered under warranty - so I am getting anxious to try to unbrick my phone....

further to the above - this is what i have done/tried...

I have downloaded the latest TWRP image and put it in the same folder as the adb fastboot file - ran the command to flash the recovery image - and it cannot read the file.

FYI, when I type in fastboot devices, it does register that the phone is connected.

I have tried to flash other RUU exe files for my phone - but there does not seem to be the right EXE file anywhere that I can find.

my phone is still in S ON.

Ideally, I just want my phone to get back to stock and hopefully relock or return to stock locked status the bootloader - I understand that I may need to perform S OFF to do this - however I can't seem to find the process for doing all this for my particular situation.

I have looked around a lot for tutorials etc to do this - but cannot seem to find something cohesive from start to finish for my problem.

I am not very computer literate - but I can follow clear instructions.

If anyone can help, I would be very grateful.

Cheers....
[One (M7) Q&A, Help & Troubleshooting] BenPope:
Just follow the return to stock guide. The 707 in your firmware version is the important bit.
[One (M7) Q&A, Help & Troubleshooting] clsA:
The above is all that matters

Your already on the new Firmware and S-On ... theirs no RUU that will help you.

use these instructions I just posted in another thread

Unlock the bootloader at HTCDEV

then from fastboot USB

Flash recovery 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 this Rom to your phone

http://www.androidrevolution.org/downloader/download.php?file=One_5.11.401.10_odexed.zip

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
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Hi - many thanks for this - I feel that there is something simple that is going wrong - when I download the TWRP file - and put it in the same folder as fastboot etc - this is the result I get - cannot open:

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>fastboot devices

MB336W900370 fastboot

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>fastboot flash recovery openrecovery-twrp-2.6.

3.4-m7.img

error: cannot open 'openrecovery-twrp-2.6.3.4-m7.img'

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>

I also tried the very latest TWRP file on the techerrata site - same result.

Is there something else that might be going wrong here? For some reason, the phone is having trouble with the img files. I also tried a CWM image file too - same result.

Any help most welcome and thanks for your assistance so far....
[One (M7) Q&A, Help & Troubleshooting] Seanie280672:
Did you follow clsA 1st instruction - UNLOCK THE BOOTLOADER FIRST.

You cant flash anything with that locked.
[One (M7) Q&A, Help & Troubleshooting] fenstre:
You probably need to type the full path to the file, or to put the file in the same directory as the shell is running from (you can see the directory before the command prompt).
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Hi - yes - I used the HTC Dev site to successfully unlock the bootloader a few days ago.

I believe I did clear the cache at some point yesterday while trying to find a solution to this - but this was after I has downloaded the TWRP IMG file and failed to load it to the phone - the message has been the same - cannot open.

I am using windows 8.1 OS.

Other info:

When I select IMAGE CRC on phone - it calculates - then gives:

rpm: 0x403AD75

sbl1:0xFE316EA5

sbl2:0x EBF06ECC

sbl3:0x3A410C2C

tz: 0xC73B0D94

radio:0xE9CC6D25

hboot: 0x0

boot: 0x0

recovery: 0x0

system 0x0

This is the latest GETVAR information - I notice that now the baseband version says N/A...I don't know what this means - maybe it is a result of the cache wipe? Maybe i have messed something up? But, the FASTBOOT command would not read the IMG file before this change.

version: 0.5

version-bootloader: 1.57.0000

version-baseband: N/A

version-cpld: None

version-microp: None

version-main: 5.12.707.104

version-misc: PVT SHIP S-ON

serialno: xxxxxxxxxxxxxxxxx

imei: xxxxxxxxxxxxxxxxx

meid: 00000000000000

product: m7_u

platform: HBOOT-8064

modelid: PN0711000

cidnum: HTC__044

battery-status: good

battery-voltage: 4313mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: dirty-1f512bb6

hbootpreupdate: 11

gencheckpt: 0

Again - thank you for any help you may be able to give...
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Hi - I have put the img file (which I have renamed TWRP.img) in the platform-tools folder - the fastboot file is also in this folder - see below....

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>

...and when I try to load/run it - I type the following:

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools> fastboot flash recovery TWRP.img

....then I get the error - cannot open 'TWRP.img'

:(
[One (M7) Q&A, Help & Troubleshooting] SaHiLzZ:
Looks like it is NOT in the same folder or atleast not the same name.

Can you type dir, and post a screenshot of it ?

---------- Post added at 12:03 PM ---------- Previous post was at 12:02 PM ----------

Also, because you are On 1.57 HBOOT, chances of going back to LOCKED bootloader by S-OFF are slim to none.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
indeed, "a powerful ally that dir command can be"

if I had to take a wild guess, it's probably in the same folder but with a .img.img extension, courtesy of Windows Explorer ;)
[One (M7) Q&A, Help & Troubleshooting] clsA:
LOL this guy sent me a PM and I get to the thread and see the entire team is here to help where's [MENTION=4654136]alray[/MENTION].

thanks guys .... I'm not positive the bootloader is still unlocked .. he relocked it to run a RUU.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
[MENTION=2895182]clsA[/MENTION] [MENTION=3525160]SaHiLzZ[/MENTION] [MENTION=4654136]alray[/MENTION] all in one thread... looks like trouble... i'm better go watch a movie/series :) (a few come to mind :P)

but for the OP, don't know if you have a locked (remote failed) or unlocked bootloader, but "cannot load" = MyFileNameIsWrong (or isn't even in the correct folder)

try that DIR command in command prompt to see what the filenames are
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Thanks for your help - here is the details of the DIR command - ( it seems the the file has an img.img identity - this doesn't show up on the folder - how do I change it? - Do I need to download again and save it to the folder some other way? It gets saved straight to the downloads folder - then I rename it and cut and paste it to the same folder as fastboot - which is also still in the downloads folder...) - I don't know what to do next - and is it true that I cannot relock the bootloader if I get phone up and working? It does say UNLOCKED on the phone....

<DIR> .

<DIR> ..

819,200 adb.exe

96,256 AdbWinApi.dll

60,928 AdbWinUsbApi.dll

<DIR> api

8,968,192 CWM.img.img

0 fastboot

160,256 fastboot.exe

727,881 NOTICE.txt

9,404,416 openrecovery-twrp-2.6.3.3-m7.img

9,660,416 openrecovery-twrp-2.7.1.1-m7.img

1,054,703,616 ruu.zip.zip

39 source.properties

<DIR> systrace

9,660,416 TWRP.img.img

256 Unlock_code.bin

File(s) 1,094,261,872 bytes

Dir(s) 452,554,018,816 bytes free

ONE other thing - 9,404,416 openrecovery-twrp-2.6.3.3-m7.img

9,660,416 openrecovery-twrp-2.7.1.1-m7.img

These files are not img.img - and they didn't seem to work either - and I also notice one of the RUU zip files I had downloaded to try to help with all this is also a zip.zip = why does this happen and how do I prevent it?

Thanks again for any help....:)
[One (M7) Q&A, Help & Troubleshooting] alray:
You have double file extension (.zip.zip or .img.img) because by default, windows hide known file type extensions and you manually renamed your file adding a .zip or a .img. To prevent that kind of error and always display file extensions, open any folder,then click in that folder and hit left ALT then click on Tools ---> Folders options ---> View tab ---> make sure ''Hide extensions of known files type'' is not selected. Then click ''apply''.

Now in your folder, delete double extensions, rename all your file so they have only have one file extension.

edit: here is a nice tutorial with pictures: http://askabouttech.com/how-to-show-file-extension-in-windows-7/
[One (M7) Q&A, Help & Troubleshooting] gawoz:
You were right! Thank you - I am having progress - I have successfully put TWRP onto the phone now - but it is not letting me sideload now!

Please see errors in next post...
[One (M7) Q&A, Help & Troubleshooting] gawoz:
284

Hi - i got TWRP into the phone - the guys were correct - there were double .img descriptions in the saved file names - so once that was cleared up - it loaded onto the phone straight away.

I did download that ROM file - and followed the instructions - however here are the details of what came up on the computer screen next - (FYI, the TWRP screen on phone continued to say: updating partitiion details, Full SELinux support is present, Starting ADB sideload feature.

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>fastboot erase cache

******** Did you mean to fastboot format this partition?

erasing 'cache'...

OKAY [ 0.562s]

finished. total time: 0.563s

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.034s]

finished. total time: 0.034s

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>adb sideload One_5.11.401.10_odexed.zip

error: device not found

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>adb sideload One_5.11.401.10_odexed.zip

error: device not found

C:\Users\Grant\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x

86_64-20140321\sdk\platform-tools>

(is this ROM file the stock ROM - is there anyway to get that? or is this the first step in the process to that? I think my stock ROM is this one - but again - I guess I am taking baby steps - and it's good to have some progress...)

http://www.htc1guru.com/dld/ruu-zip...0-01_release_312087_signed_2_4_decrypted-zip/

(NB - I have not downloaded or tried to sideload the above ZIP - only the one provided by clsA)

In the Bootloader mode - my phone now says UNLOCKED TAMPERED.

Feeling violated, hahaha. Anyway - thanks for the continued help so far....
[One (M7) Q&A, Help & Troubleshooting] nkk71:
while in custom recovery, what does "adb devices" report?

it should report, List of attached devices

<serial number> recovery

or

<serial number> sideload

if it doesn't, open Windows Device Manager and check the FAQ#2 here: http://xdaforums.com/showpost.php?p=52135024&postcount=2

PS: Alternatively, in an effort to avoid reposting the same thing several times, I've also added this information, in the FAQ sticky thread. (I believe it's still in the last post)... you may want to check it.
[One (M7) Q&A, Help & Troubleshooting] gawoz:
THANK YOU! It is working - I did what you suggested and yes - the driver was not there - now the zip file has sideloaded!

Is the next thing to do to go to recovery and install the sideloaded zip file? NOTE that my phone is not rooted - the TWRP is asking me if I want to root the phone - using the SU thing - do I need to do anything like that first - or just go ahead and confirm to flash the file - TWRP is saying "this operation may install incompatible software which may render your device unusable..."

**My phone is an ASIAN one - from Thailand actually - so does this matter at all at this point?**

If you could just let me know....thanks so much!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Sorry, but I didn't understand what you meant exactly, but TWRP asks to install SU, say No for now, (you can always install SuperSU later)

but where did this "this operation may install incompatible software which may render your device unusable..." come from??

you have an m7_u model, so "One_5.11.401.10_odexed.zip" should work fine.
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Hi - that warning comes up after I click on the zip file to install onto the phone - I think it is just like a disclaimer from TWRP....?

Anyway - I swiped to confirm to flash the zip file -and the phone went through some processes - here's what comes up:

updating partition details

full selinux support is pretent

installing /sd card/sideload zip

checking md5 file - skipping - no file found

and roid revolution - by mike - b patient this may take a while

formatting partitions

system is unmounted already

mounting parttions

cleaning process

writing data and system

creating toolbox sym links

setting permissions

flashing kernel

unmounting partitions

NEw rom flashed successfully!

PLease share your experience on XDA

Everydonation appreciated

script succeeded: result was [==================================}

updating partition details....

Successful

Home, Wipe Cache/dalvik, reboot system

*****this is promising -but when I reboot system - it shuts down - then starts up and into boot loop again***** :(

I really thought this was gonna work - not sure what might have gone wrong....?

When the boot loop starts - the initial screen is the powered by Android one - then it goes away and then the white screen - HTC logo in green - then one comes up and gets stuck on the "o" an "n" - before fully coming up - then just stuck on there -before going into a loop all over again....

Thank you anyway for your patience and help....
[One (M7) Q&A, Help & Troubleshooting] clsA:
I'm not sure if it's the correct thing to do, but I would reboot to recovery and Wipe / Format Data and Advanced Wipe and check everything and sideload the rom again
[One (M7) Q&A, Help & Troubleshooting] gawoz:
OK - I just did that - and it wiped most things but failed at usb-otg

It says:

E: Unable to wipe "/usb-otg" -- unknown file system 'auto'

E: UNable to wipe "/usb-otg"

Updating partition details....

- do I need to keep the phone connected to the computer with the USB while I am performing these wiping actions - and also including the flashing activity (after I sideload the file onto the phone, I mean)

BTW - the TWRP file I have on the phone is the latest one v2.7.1.1 - this is OK, right?

Should I go as far as to REFORMAT everything? - I am still S- ON - UNLOCKED _ TAMPERED

Is there anything worth trying here....

http://www.htc1guru.com/guides/return-stock-guide/

Thanks again....
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Best to use TWRP 2.6.3.3 or 2.6.3.4 at the moment, not sure about 2.7.1.1, but most of 2.7 series had problems with 4.4+ ROMs, so better stick with something known to work.

then check here, about formatting /data: http://xdaforums.com/showthread.php?p=53325218&postcount=15

then scroll up to post #11 (in the same thread) for adb push instructions
[One (M7) Q&A, Help & Troubleshooting] gawoz:
OK - I put version 2.6.3.3 on the phone - I managed to sideload and also flash the file - it said successful - but it also said unable to wipe/mount usb-otg

Then I rebooted and back into the bootloop again.

Is there anything in the mounting folders or wiping or anything that I could be doing? Or could this ROM file be not the right one for this phone?

Phone is NOT ROOTED, still S-ON, UNLOCKED, TAMPERED.

I also did format it. results same as above...
[One (M7) Q&A, Help & Troubleshooting] Egrier:
Just from past experience with HTC phones and S-On, correct me if I'm wrong but don't you still have to flash the boot.img from the rom separately since he's S-On to avoid bootloops?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
I don't think that applies to the m7, I've flashed custom ROMs before getting S-Off just fine, none of the ROM threads mention anything about having to flash boot.img separately with S-On, and even more, none of the custom kernel threads mention anything.

Since many people are still flashing with S-On, I'm pretty sure this no longer applies to newer HTCs.

Also, previously flashing radio was impossible without S-Off, on the M7 you can flash radio (any version, up and down), with no problems.
[One (M7) Q&A, Help & Troubleshooting] gawoz:
OK - any ideas on what I might be able to try next - or is there a way that I can just return the phone to UNLOCKED and get rid of the TAMPERED notice - so I can just take the phone back to the Thailand service centre in a few weeks when I return to Thailand and get them to fix it?

(Phone is under warranty - was bought in Thailand - I am in Australia for a few more weeks- and have been trying to get this working - Australia and Thailand HTC won't warranty if bootloader unlocked)

Cheers!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
I just re-read your thread, and this sounds like a hardware problem.

Your phone was completely stock and under warranty, but you unlocked bootloader with a bootlooping 100% stock untampered phone :rolleyes:

And the above information in red, doesn't sound interesting at all :(

Try reflashing your firmware again firmware_5.12.707.104_signed.zip

Since you are S-ON, you will need to relock bootloader to flash it:

fastboot oem lock

fastboot reboot-bootloader

fastboot oem rebootRUU

fastboot flash zip firmware_5.12.707.104_signed.zip

fastboot flash zip firmware_5.12.707.104_signed.zip <- yes, TWICE !!

fastboot reboot-bootloader

then check if baseband came back.

you would then have to unlock again and reflash TWRP.

and forget about the 'usb-otg' since you don't have one attached, it's not going to wipe it.

To completely

format

the relevant partitions, you do the following in TWRP:

1) "Format Data", that will format /data and internal storage

2) Advanced Wipe -> /system and /cache, that will format /system and /cache

3) reboot to recovery

then you can push the ROM again and install it.
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Thank you for this. After flashing the ZIP firmware file - BASEBAND has come back - and I also have all fields filled in with values when I check the IMAGE CRC - H Boot, Boot, Recovery and System

AND NOW _ GREAT NEWS!!!!

I followed the steps you gave and then waited anxiously - until finally the phone rebooted and is now working - !!!

This is awesome and I appreciate your perseverance and help getting me through this experience!

I have a final few questions - maybe you can tell me:

- How do I try to prevent this happening again - do I just keep this back up file in TWRP?

- Is there anyway to get/flash the stock ROM - or doesn't it make any difference ( I have not explored this one yet)?

- Is there some way I can return phone to LOCKED and get rid of Tampered?

- I also tried to factory reset the phone through the settings menu - and it went back into TWRP - is there a reason for this? How do I factory reset and then restore from HTC Backup/restore?

and finally - will I receive notifications of software and other OS updates - such as sense etc - OTA?

And again, and again - thank you thank you thank you to everyone that helped get me and this great phone through this!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Great news :good: :good: :victory:

Honestly, this shouldn't have happened at all. And I recommend you keep a "cloud" backup (whatever your choice is) activated, including camera upload, just in case.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
If you look in the Development section you'll find plenty of custom ROMs (some very close to stock, others with many many tweaks, and a lot in between the two), you would need to try a few to find which one suits your needs.... everyone has different expectations, so there is no "best" ROM or similar, it's all an individual perspective.

And we update (if one wants to) by installing the latest release. Many times a "dirty-flash" works (ie installing without wiping /data, which keeps your apps+data+settings intact), and if it doesn't then we do a clean install (wiping /data), and use a Backup/Restore program to reinstall apps+data (and possibly some settings).

I

personally

use Titanium Backup Pro (requires root) to restore all my apps+data, and manually setup my accounts again. There are many backup programs out there, including HTC Backup/Restore which seems to do a decent job too (though i've never tried it).

You'll have to experiment/ask to find out what works best for you.

Remember to always make a nandroid backup before flashing anything new, that way you can quickly restore your phone, in case you installed something but didn't like it.

(...takes cold beer inserted above and enjoys...)
[One (M7) Q&A, Help & Troubleshooting] gawoz:
Ok mate - thanks for these tips - I will hunt around and let the games begin!

Respect and thanks to you and everyone that chimed in to help me out with this. It's great to have the old girl back!!! :victory:

(I was starting to think if a new LG G3 for a few minutes there.....:silly:)