[one m7] [factory reset] [accidentally wiped system] - One (M7) Q&A, Help & Troubleshooting

Hi guys,
I had some bugs on my rom and wanted to reset the phone with factory reset. I'm using TWRP 2.3.6 and tried to factory reset on recovery but I accidentally wiped my system data, too. I noticed that when my phone reboot and the HTC logo didn't skip. I can enter fastboot and recovery but I wiped all data and I have no backup on phone now. I have backup on my pc but I cant access the phone storage, its looks like an unavailable disc and no access but htc sync manager and Usb recognize my phone as an android phone. I have android sdk and htc sync manager but my phone storage is unavaliable.
So how can I see the phone storage on my pc and copy my backup files in storage?
Or should I flash a rom with cmd commands? ( and how? )
Thanks for all help, I am waiting for the solve :crying:

burhannde said:
Hi guys,
I had some bugs on my rom and wanted to reset the phone with factory reset. I'm using TWRP 2.3.6 and tried to factory reset on recovery but I accidentally wiped my system data, too. I noticed that when my phone reboot and the HTC logo didn't skip. I can enter fastboot and recovery but I wiped all data and I have no backup on phone now. I have backup on my pc but I cant access the phone storage, its looks like an unavailable disc and no access but htc sync manager and Usb recognize my phone as an android phone. I have android sdk and htc sync manager but my phone storage is unavaliable.
So how can I see the phone storage on my pc and copy my backup files in storage?
Or should I flash a rom with cmd commands? ( and how? )
Thanks for all help, I am waiting for the solve :crying:
Click to expand...
Click to collapse
use adb to push your backup or a rom back to your phone
btw not sure if it was a typo but use twrp 2.6.3.3 not 2.3.6
boot in recovery mode (twrp)
Code:
adb push name_of_rom.zip /sdcard
The command prompt will be unresponsive for a few minutes
then in recovery, select install, select your rom and swipe to flash.
if you want to use your backup:
Code:
adb push your_backup_folder /sdcard/TWRP/BACKUPS/YOUR_SERIAL_NUMBER/DATE_OF_BACKUP/YOUR_BACKUP_FOLDER
the command prompt will be unresponsive for a few minutes.
then in twrp select restore and choose your backup, swipe to restore,

uh it was my mistake, its 2.6.3.3
but i dont know what actually adb is and how to use it :/ do i just need to enter the command prompt and type the code you gave ?
sorry,I need a description how to push my back up on my storage

burhannde said:
uh it was my mistake, its 2.6.3.3
but i dont know what actually adb is and how to use it :/ do i just need to enter the command prompt and type the code you gave ?
sorry,I need a description how to push my back up on my storage
Click to expand...
Click to collapse
follow this:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse

does not work for me.
Hi i have tried this so many times and have failed. is there another way. I am loosing hope for my m7.
really hope someone can help.

howelldog said:
Hi i have tried this so many times and have failed. is there another way. I am loosing hope for my m7.
really hope someone can help.
Click to expand...
Click to collapse
Post the output of "fastboot getvar all" (not your imei/sn)
Failed where? Be more precise

once i swipe to install the rom zip file from twrp it switches off then starts back up only to go into the white screen with green HTC in the middle and powered by android at the bottom with no progress just stays on this screen.

howelldog said:
once i swipe to install the rom zip file from twrp it switches off then starts back up only to go into the white screen with green HTC in the middle and powered by android at the bottom with no progress just stays on this screen.
Click to expand...
Click to collapse
I asked you 2 questions, you answered 1. Can't help if you don't answer. Additionally, I need to know what was done to the phone before (wha tled to this situation), What twrp version you are using and what rom you are trying to flash.
Edit:
Oh I see, you are posting in 3 different threads...
http://forum.xda-developers.com/htc-one/help/tried-everything-site-restore-htc-one-m7-t3254343
http://forum.xda-developers.com/htc-one/help/please-help-t3257635
How are we supposed to help you if you crate new threads every time you have additional info to post? Much easier for both you and us if you keep posting in the same thread.
So now that you have provided your "fastboot getvar all" in one of these thread, please keep posting there only.

Related

[Q] Bricked HTC One?

Hey guys, I'm seriously stuck. I think I bricked my phone...
I rooted my phone per the instructions in this forum, I installed SuperSU. Now I went to install CM from a nightly build and that failed - but since I had already wiped the local system now I'm stuck without an OS! I tried to use the sideload feature but it just stays stuck on "Starting ADB sideload feature"
Now what? Is this now a brick phone?! Pleas help!
rx8volution said:
Hey guys, I'm seriously stuck. I think I bricked my phone...
I rooted my phone per the instructions in this forum, I installed SuperSU. Now I went to install CM from a nightly build and that failed - but since I had already wiped the local system now I'm stuck without an OS! I tried to use the sideload feature but it just stays stuck on "Starting ADB sideload feature"
Now what? Is this now a brick phone?! Pleas help!
Click to expand...
Click to collapse
Here try this procedure:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
majmoz said:
Here try this procedure:
​
Click to expand...
Click to collapse
Appreciate the help - BUT - the issue was that my PC wasn't "seeing" the device. "adb devices" was showing nothing even with cable connected and booted as described. Furthermore, it was getting 'stuck' on starting the sideload feature. What I ended up doing it connecting it to my Mac (by mounting /system and turning on MTP (in TWRP) and my Mac saw it. Then I used Android transfer app to move over an older nightly build of Cyanogenmod and tried the an install again - and everything is great.
Thanks

[Q] Phone stuck on a loop

My phone is stuck on a loop after I tried fixing it. I tried installing Viper 6.2 on my m7 and it didn't work with an error of 7 or something and since I was coming from a different Rom I chose to wipe the data and start over. So now I have no Rom on my phone, no problem. I rebooted and tried to get into recovery again but then something weird happened where it would show the CW recovery logo and than skip to the Google logo like it was trying to boot up (no letters at top of screen). I tried installing a different recovery image but same thing it would show Teamwin logo and than cycle to the Google logo without letters at the top like it was trying to boot up and will go in a loop until I turn it off or go into the white bootloader menu. Also tried a factory reset from the white menu which did nothing. Please Help!
aznspdrmn said:
My phone is stuck on a loop after I tried fixing it. I tried installing Viper 6.2 on my m7 and it didn't work with an error of 7 or something and since I was coming from a different Rom I chose to wipe the data and start over. So now I have no Rom on my phone, no problem. I rebooted and tried to get into recovery again but then something weird happened where it would show the CW recovery logo and than skip to the Google logo like it was trying to boot up (no letters at top of screen). I tried installing a different recovery image but same thing it would show Teamwin logo and than cycle to the Google logo without letters at the top like it was trying to boot up and will go in a loop until I turn it off or go into the white bootloader menu. Also tried a factory reset from the white menu which did nothing. Please Help!
Click to expand...
Click to collapse
Try this procedure from alray:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
majmoz said:
Try this procedure from alray:
​
Click to expand...
Click to collapse
Yeah but the problem is I can't get to the recovery image anymore. the command says device not found and when trying to get to the recovery image it doesn't work.
aznspdrmn said:
Yeah but the problem is I can't get to the recovery image anymore. the command says device not found and when trying to get to the recovery image it doesn't work.
Click to expand...
Click to collapse
After you re-install the adb & fastboot disconnect your phone from the computer. Then reboot the computer and open the command window. Type: adb kill-server then when it is finished type: adb start-server. Now connect your phone to the PC. Type: adb devices
majmoz said:
After you re-install the adb & fastboot disconnect your phone from the computer. Then reboot the computer and open the command window. Type: adb kill-server then when it is finished type: adb start-server. Now connect your phone to the PC. Type: adb devices
Click to expand...
Click to collapse
ok when I do that it does nothing. The only menu I can get to on my phone is the bootloader one. If I choose recovery it'll get stuck in a loop and if I choose factory reset from the bootloader menu it'll get stuck in a loop. I think I need a way to factory reset the phone to any rom to get out of the loop. Right now I think the phone has a full recovery image on it but not a rom and that is somehow messing it up?
aznspdrmn said:
ok when I do that it does nothing. The only menu I can get to on my phone is the bootloader one. If I choose recovery it'll get stuck in a loop and if I choose factory reset from the bootloader menu it'll get stuck in a loop. I think I need a way to factory reset the phone to any rom to get out of the loop. Right now I think the phone has a full recovery image on it but not a rom and that is somehow messing it up?
Click to expand...
Click to collapse
If in setting USB Debugging is not enabled and there is an OS ADB will not work. It will work in Recovery.
If you have the stock firmware, you could flash it (if you are s-on, then you will need to relock your bootloader)
Then you would need to unlock your bootloader and flash a new recovery
ADB Push or sideload you rom while in recovery
Or
Flash a new recovery
ADB push or sideload your rom while in recovery
majmoz said:
If in setting USB Debugging is not enabled and there is an OS ADB will not work. It will work in Recovery.
If you have the stock firmware, you could flash it (if you are s-on, then you will need to relock your bootloader)
Then you would need to unlock your bootloader and flash a new recovery
ADB Push or sideload you rom while in recovery
Or
Flash a new recovery
ADB push or sideload your rom while in recovery
Click to expand...
Click to collapse
I've tried flashing a new recovery even changing the versions and types of recovery images. It still loops
Link to video of loop https://www.youtube.com/watch?v=efoXC-w45TA&list=UUXhWO2R4Ll4NrhM7M91T2sw
Fixed the issue by installing a RUU zip and then installing a custom rom.
aznspdrmn said:
I've tried flashing a new recovery even changing the versions and types of recovery images. It still loops
Link to video of loop https://www.youtube.com/watch?v=efoXC-w45TA&list=UUXhWO2R4Ll4NrhM7M91T2sw
Click to expand...
Click to collapse
It looks like your have an OS 3.09.401.1. I found a stock, non-rooted odex version.zip. This may wipe all of your personal data off of the phone. If fastboot is working, you should be able to flash it in FASTBOOT USB.
Code:
fastboot oem rebootRUU
fastboot flash zip name_of_rom.zip
fastboot flash zip name_of_rom.zip
fastboot reboot
You have to run the flash command twice, the first time prepares the firmware/rom to accept the changes.

HTC One Help

Hello,
So i got my phone as a trade for an old i phone. I have an htc one on ATT. It is rooted and S-off with TWRP 2.8.02. I attempted to flash Dirty unicorns 4.4.4 and accidentally wiped the whole phone. Now i do not have an OS on the phone or a back up to go to. The issue im having is getting ADB to work. Ive installed the SDK and just cannot get the ADB shell to work so i can push the rom to the phone for flashing. Im able to access recovery and the bootloader. When i get to the ADB shell portion i get "error; closed" . any help would be appreciated from anyone. I really dont have a phone other than this so i hope i can get this resolved quickly. If there is any additional info you might need to help me please ask and ill provide anything you need.
Thank you
adamdl97vo said:
Hello,
So i got my phone as a trade for an old i phone. I have an htc one on ATT. It is rooted and S-off with TWRP 2.8.02. I attempted to flash Dirty unicorns 4.4.4 and accidentally wiped the whole phone. Now i do not have an OS on the phone or a back up to go to. The issue im having is getting ADB to work. Ive installed the SDK and just cannot get the ADB shell to work so i can push the rom to the phone for flashing. Im able to access recovery and the bootloader. When i get to the ADB shell portion i get "error; closed" . any help would be appreciated from anyone. I really dont have a phone other than this so i hope i can get this resolved quickly. If there is any additional info you might need to help me please ask and ill provide anything you need.
Thank you
Click to expand...
Click to collapse
ADB works in OS/Android when USB Debugging is installed, since you wiped your OS no USB Debugging. ADB also works in custom recovery when the phone is in Recovery mode. Follow this guide to push Dirty Unicorns to your phone.
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse

Potentially fatal error! Bricked with no solutions!

Okay,
Basically my friend wanted to put cm12 on his stock htc one, so we unlocked the bootloader, rooted it and went to install cm12 by wiping cache, dalvik, data and system, suddenly we got errors saying failed to mount, and also "unmount of /system failed: no such volume". After we did this, we realise it might have had something to do with "S-ON", but we didn't have a clue what it was. we have tried multiple methods to try and fix this or at least flash some kind of rom, but to no avail. We have basically bricked the device. Can anyone suggest anything? My friend has left his phone with me to try and fix but so far I have found nothing that works.
Thanks in advance!
pinhead97 said:
Okay,
Basically my friend wanted to put cm12 on his stock htc one, so we unlocked the bootloader, rooted it and went to install cm12 by wiping cache, dalvik, data and system, suddenly we got errors saying failed to mount, and also "unmount of /system failed: no such volume". After we did this, we realise it might have had something to do with "S-ON", but we didn't have a clue what it was. we have tried multiple methods to try and fix this or at least flash some kind of rom, but to no avail. We have basically bricked the device. Can anyone suggest anything? My friend has left his phone with me to try and fix but so far I have found nothing that works.
Thanks in advance!
Click to expand...
Click to collapse
Try this method to get a ROM on your friend's phone:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone any ways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didn't install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Oh my god I am an idiot, turns out the version of TWRP we were using was over a year old, I just updated to the latest version, and now it works and I've managed to put cm12 on it Thanks anyway
Note to anyone else: ALWAYS check the recovery is up to date

Bricked HTC One - unable to use adb push or flash anything at alll

Hi all,
I really need some help, i've found so many guides with instructions but this still wont work for me - the adb command just says 'error:closed' but shows my phone fine when doing 'adb devices' it even shows as being in sideload mode.
im using TWRP v. 2.6.3.3
I really need to get a ROM flashed back to this phone, PLEASE help! My phone is also recognised using fastboot as I was able to flash the recovery.
cloudzero2006 said:
Hi all,
I really need some help, i've found so many guides with instructions but this still wont work for me - the adb command just says 'error:closed' but shows my phone fine when doing 'adb devices' it even shows as being in sideload mode.
im using TWRP v. 2.6.3.3
I really need to get a ROM flashed back to this phone, PLEASE help! My phone is also recognised using fastboot as I was able to flash the recovery.
Click to expand...
Click to collapse
Try this method:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone any ways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didn't install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Thanks for this, but I already came across this. I get to the point where I do adb push name_of_rom.zip /sdcard/ but this is where I get the 'error:closed'
What else can I try?
cloudzero2006 said:
Thanks for this, but I already came across this. I get to the point where I do adb push name_of_rom.zip /sdcard/ but this is where I get the 'error:closed'
What else can I try?
Click to expand...
Click to collapse
Run adb devices prior to running the adb push command. If it comes back to anything but your serial number and "recovery" then the push command will not work. If it comes back "sideload" then use the following command:
Code:
adb sideload name_of_zip.zip
Ahh man, I thought I was getting somewhere when it started sending!
C:\Users\Jason\AppData\Local\Android\android-sdk\platform-tools>adb sideload And
roid_Revolution_HD-One_83.1.zip
loading: 'Android_Revolution_HD-One_83.1.zip'
* failed to write data 'protocol fault (no status)' *
C:\Users\Jason\AppData\Local\Android\android-sdk\platform-tools>
any ideas? I appreciate your help by the way
So i've managed to flash the stock ARHD ROM! Its weird because all the guides say when doing the adb push to add the /sdcard/0 but on the end but in your reply you said to end at the .zip and this actually works
Thanks so much man!!! You the best!

Categories

Resources