• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help unlocked HTC one m8 with twrp

hello , i have a rooted m8 and i was trying to unroot so accidentally i deleted my os and ive been stuck with the phone for a while , i tried putting the os on my sd card to flash it but i fail , so please anyone can assist?
 
im not sure I downloaded it fro htcs site and when I tried to flash it from TWRP it says unable to mount cache
I've never seen an HTC rom that you can flash through TWRP on their site - and HTC's support in your region won't supply the rom update utility that would make this just one-click easy for you.

Let's get some information from your phone to see what the best options are for getting your phone working the way you want.

If you don't have fastboot you can get it by unzipping the sdk-tools.zip file here -

http://androidforums.com/threads/adb-guide-updated-2014-11-11.443072/#post-5389081

Windows Explorer, shift+right_click on sdk-tools folder and choose to open command window here.

Get into FASTBOOT USB mode (boot into bootloader from TWRP, follow prompts if needed to get to FASTBOOT), from the command window -

fastboot getvar all

In command window: Alt+space gives menu, E for edit, select all, copy and paste here.

Edit out your IMEI and serial numbers for your protection.

Please also post this -

Tell me what the top of the screen says as exactly as you can while in FASTBOOT USB mode, up to and including the line with the date.

Please also tell me what version of TWRP you're using.

No chance that you made a backup from TWRP before this happened?
 
I've never seen an HTC rom that you can flash through TWRP on their site - and HTC's support in your region won't supply the rom update utility that would make this just one-click easy for you.

Let's get some information from your phone to see what the best options are for getting your phone working the way you want.

If you don't have fastboot you can get it by unzipping the sdk-tools.zip file here -

http://androidforums.com/threads/adb-guide-updated-2014-11-11.443072/#post-5389081

Windows Explorer, shift+right_click on sdk-tools folder and choose to open command window here.

Get into FASTBOOT USB mode (boot into bootloader from TWRP, follow prompts if needed to get to FASTBOOT), from the command window -

fastboot getvar all

In command window: Alt+space gives menu, E for edit, select all, copy and paste here.

Edit out your IMEI and serial numbers for your protection.

Please also post this -

Tell me what the top of the screen says as exactly as you can while in FASTBOOT USB mode, up to and including the line with the date.

Please also tell me what version of TWRP you're using.

No chance that you made a backup from TWRP before this happened?
I've never seen an HTC rom that you can flash through TWRP on their site - and HTC's support in your region won't supply the rom update utility that would make this just one-click easy for you.

Let's get some information from your phone to see what the best options are for getting your phone working the way you want.

If you don't have fastboot you can get it by unzipping the sdk-tools.zip file here -

http://androidforums.com/threads/adb-guide-updated-2014-11-11.443072/#post-5389081

Windows Explorer, shift+right_click on sdk-tools folder and choose to open command window here.

Get into FASTBOOT USB mode (boot into bootloader from TWRP, follow prompts if needed to get to FASTBOOT), from the command window -

fastboot getvar all

In command window: Alt+space gives menu, E for edit, select all, copy and paste here.

Edit out your IMEI and serial numbers for your protection.

Please also post this -

Tell me what the top of the screen says as exactly as you can while in FASTBOOT USB mode, up to and including the line with the date.

Please also tell me what version of TWRP you're using.

No chance that you made a backup from TWRP before this happened?
and no unfortunately i didnt , i appreciate your help man and sorry if i seem a bit bothering
 
look i found this amazing thread of yours this guy had the same problem http://androidforums.com/threads/he...al-storage-and-os-on-htc-one-m8.906784/page-4

so i followed it and downloaded the viperone m8 and i was all set but i stopped at the point where i my adb sideloader gives me a failed message
I was going to suggest that very method but I went the other way thinking that you really wanted out of root. :)

Yeah, adb sideload fails for some people.

We're still trying to sort out why, one theory is that it has to do with some security settings on the usb driver for adb.

You're not stuck though.

In TWRP, Mount, check to mount the internal storage and your SD card.

At that point it's pretty common for Windows Explorer to just see the storage and allow you to copy the ViperOneM8 zip file over to the phone - and then install normally from TWRP.

If that fails, an inexpensive OTG USB cable and a USB stick formatted FAT32 will definitely work. Copy the ViperOneM8 zip to the USB stick, plug the stick into your phone and do the normal install.

If you don't have a USB stick, you can use an inexpensive sd card adapter for your pc - plug the sd card into a USB port with that, copy the zip file over, install from there.

The latest ViperOneM8 is going to need Lollipop firmware to work right. If your OS version on your bootloader screen begins with a 4 you'll be fine.

The latest TWRP is more reliable than 2.7 and below.

Let me know if this helps or you have any other questions. :)
 
okay done that
by your help i managed to install TWRP 2.8.7.0 ,
and now i have the file on my sd card but it fails when i try to install it , am i doing something wrong?
 
Last edited:
it gives me this when trying to flash
 

Attachments

  • WIN_20150624_183001.JPG
    WIN_20150624_183001.JPG
    158 KB · Views: 75
i tried now again the cmd adb sideload .\ViperOneM8_4.3.0.zip
it says
E:\Downloads\sdk-tools\sdk-tools>adb sideload .\ViperOneM8_4.3.0.zip
loading: '.\ViperOneM8_4.3.0.zip'adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *

adb server is out of date. killing...
* daemon started successfully *
error: closed

E:\Downloads\sdk-tools\sdk-tools>
 
i have a final question is it better to keep twrp or go for stock recovery coz i wanted to unroot now all i want is an operating phone
 
yes it is installing! I wouldn't have done it without you!
thanks so much i really appreciate your time and effort

My pleasure.
i have a final question is it better to keep twrp or go for stock recovery coz i wanted to unroot now all i want is an operating phone

My advice - let it run a while, make sure it's all working. In fact, if it does, make a backup from TWRP in case any of my following advice doesn't work out.

To return to stock, here's a stock rom zip that you flash from TWRP -

https://www.androidfilehost.com/?w=files&flid=25150

Get that, make sure it works. Leave TWRP in place until you're happy with it. If something is wrong you can restore your backup from TWRP.

Alongside the zip file is a stock recovery in a rar file. I haven't confirmed it but I'm about 99% sure that if you open it with 7zip, you'll find the matching stock recovery there, as a ".img" file. Extract it, copy to the sdk-tools folder.

When you're ready to replace TWRP -

Fastboot flash it the same way you did to install the updated TWRP.

If everything still works, find and make sure that you save your Unlock_code.bin file in case you need it again.

The final step for return to stock when you're sure about the rom and stock recovery - FASTBOOT USB mode and say -

fastboot oem lock
 
Back
Top Bottom