yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] moloch:
I did the same thing and it turns out that there isnt anything to be done, must go to htc store and hope they swap it :(
[One (M7) Q&A, Help & Troubleshooting] twerg:
dont think they'll swapping it being our fault and all, reckon have to pay to get fixed
[One (M7) Q&A, Help & Troubleshooting] cellycell619:
I was having all the same issues as everybody is reporting here, the following worked for me.

1. Reboot phone into recovery

2. Open SDK/Platform-tools (you need to copy your rom also into this folder)

3. Hold Down Shift + Right Click in folder and select "Open Command Window Here"

4.Confirm your device is connected by typing 'adb devices' without the quotes

5. Type the following code "adb shell" (without the quotes)

6. Type "mount data" (without the quotes)

7. Hold down ctrl and press the letter c

8. Type "adb push nameofRom.zip /data/" (without the quotes and make sure you use the exact name of the rom you will use and don't forget to add the.zip after the name

9. This may take 3 - 5 minutes for the rom to be pushed into your system

10. After the rom is pushed to your system on your recovery select install, look for the data folder, find the name of your rom and install

Hope this works for you like it did for me!
[One (M7) Q&A, Help & Troubleshooting] Bseagull:
So how do I know if it's actually pushing without an indicator? is there anything it says? Because my cmd just went down a line without saying anything, but pressing buttons won't do anything. Does that mean it's pushing? How do i know it's done?
[One (M7) Q&A, Help & Troubleshooting] cellycell619:
When it's done, CMD will be ready to accept a new command and it will tell you that's it's pushed the file. Just give it about 5 minutes, don't do anything to the phone...
[One (M7) Q&A, Help & Troubleshooting] Bseagull:
Got it, thanks!
[One (M7) Q&A, Help & Troubleshooting] brockyneo:
Great guide Matt this saved my life a while back if you remember ;)

Thanks :good:
[One (M7) Q&A, Help & Troubleshooting] kasper1977:
mike

try to push invalid file or directory
[One (M7) Q&A, Help & Troubleshooting] jorvacf:
When I type "mount data" it says "/data failed: device or resource busy" what can I do? I made everything else and the process just takes 2 seconds, it is normal?

Edit: I´ve already made it, thanks anyway.
[One (M7) Q&A, Help & Troubleshooting] jeyessh:
Thanks

Thanks a ton.

This saved my sorry Ass
[One (M7) Q&A, Help & Troubleshooting] TCole3:
Trouble

I am still having trouble. I think it is because I cant quite type the name of the ROM in correctly to the terminal....

---------- Post added at 11:50 PM ---------- Previous post was at 11:00 PM ----------

After I try the ./adb push NameofRom.zip it comes up with

"error: device not found"

What do I do??
[One (M7) Q&A, Help & Troubleshooting] gendolookin:
So, this might not be the proper place to post. But I do in fact have a screwed up SDcard..

I flashed a rom a couple weeks ago, which for some reason created another /sdcard mount point (or folder). I had the normal sdcard and a /media/0 which had my original sdcard contents, including my TWRP backup files (which I didn't realize until I used the ADB push method to get a new rom installed. I then deleted the 0 location since it wasn't really needed anymore. But here is my problem.

I have a working file system, and a proper /media/sdcard, but it is only 4 gigs instead of 25. I'm not sure what the hell happened, but it is like it created a whole new android file system on top of a previous one, or simply resized it all and deleted the old one...I am unable to see any other root directory (as expected). All I see is the normal android setup except its only 4 gig.

I'm not sure how to resize it, or if I am capable of doing so without wiping everything. When I plug it into a computer, it says "25gb 3gb free" but there is NOTHING taking up all that space. I assume I can just reformat it all to the proper size, and then reinstall the rom, but I am looking for a way to resize it without a wipe.

Thanks to anyone that has any idea.

I'm fairly competent in ADB, as well as linux in general. I just don't want to screw anything up further.
[One (M7) Q&A, Help & Troubleshooting] Matt:
4.2.2 moves your sdcard to /data/media/0/. This is where all your files are now saved. You need to delete everything in the /data/media folder excpet 0
[One (M7) Q&A, Help & Troubleshooting] gendolookin:
Interesting. Well, right now I'm on CleanRom 5.0, and have no longer have a /data/media/ directory. I just have /sdcard, /mnt/sdcard , /storage/emulated , /storage/sdcard0, and /storage/usb. I still only have 4 gig of space left too....It is like the other 21gb just disappeared. When I go to Storage in settings, it says I have 3.2gb left. It says I have used 28.8 of 32gb. The problem is, i just did a fresh install, i'm only using like 900mb. It says Other is using 26gb. I can't see that "other" anywhere. It is invisible somewhere.... Like it is behind my / filesystem. I've looked at how big all the folders in / are, and it is only like 900 mb. Which should leave me with 90% of my storage left ...

It is really really strange, and I'm not sure what the hell I did.
[One (M7) Q&A, Help & Troubleshooting] Matt:
If you're not bothered about the data on there just format internal storage in recovery, won't affect your rom
[One (M7) Q&A, Help & Troubleshooting] gendolookin:
I think I figured it out. Using root file manager, I can see there is a /data/media/0 AS well as a /data/media/(my old /sdcard contents) So It organized the files and put my old sdcard contents inside /data/media, which I couldn't see in ES file manager. So. I should be able to just delete all that extra, and get my space back.

Thanks for the info!
[One (M7) Q&A, Help & Troubleshooting] citifone:
First of all, thanks for this great thread..

I've tried this method to try to revise my bricked HTC One. When using this method, does it have to be in stock recovery mode or could we use CWM recovery and select what? I'm using Windows Vista..

I've tried with stock recovery that shows triangle on screen and issue command: adb push rom.zip /data/media/ but it says device not found..I check the drivers and everything seems OK. Could you please help confirm this? Thanks
[One (M7) Q&A, Help & Troubleshooting] phatoa:
thanks for your work
[One (M7) Q&A, Help & Troubleshooting] citifone:
Probably the Easier way to Push or sideload ROM

This is the way I found how to push or sideload a custom rom after all methods failed such as: cannot mount USB storage to copy rom to phone and phone freeze at logo.

1)Find a custom rom from this forum and rename to rom.zip, of course if you use windows like me with .zip extension hidden then just simply rename it rom (to make it simple and short) and copy it to adb shell folder.

2)After unlock bootloader, flash a custom recovery, find it in this forum or here: http://clockworkmod.com/rommanager

3) Boot phone to recovery, and select Install zip from sideload and plug phone to PC. Wait until phone installs all adb drivers..

4) In adb shell type command: "adb devices" without quotes, of course..to make sure adb sees your phone..You should see your device name.

5) In adb type commad" adb sideload rom.zip..at this point you should see "sending: sideload....1%..wait until it show 100%..some roms need to install from the screen, just follow instruction on screen...
[One (M7) Q&A, Help & Troubleshooting] Matt:
Why have you posted this on my superior guide :S
[One (M7) Q&A, Help & Troubleshooting] timbernot:
Thanks Matt

I accidentally wiped my sd card instead of data whilst in a heated conversation with the missus.

I had only 18gb space after clean install of arhd 13.4 of a 32gb htc one.Now 22.4gb after all my apps and back-up for restore..lovely..feels even more smooth now too !

This tutorial just saved my life thanks :victory:
[One (M7) Q&A, Help & Troubleshooting] jflora1:
Error: closed message?

Same issue here with complete wipe and need to push new ROM to phone. However, when I try to push to the sdcard or data/media/ I get the following message: ERROR: CLOSED

Any thoughts on what I'm doing wrong or a workaround?

Thanks!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
can you copy/paste the command prompt please
[One (M7) Q&A, Help & Troubleshooting] jflora1:
C:\androidnew\sdk\platform-tools>adb push bob.zip /data/media/

error: closed
[One (M7) Q&A, Help & Troubleshooting] nkk71:
and you'e sure "bob.zip" is in your "C:\androidnew\sdk\platform-tools" folder?

can you do "dir" and check that it's called "bob.zip" and not (for example) "bob.zip.zip"

BTW, it's easier and faster to copy/paste command prompt, not screenshot:
[One (M7) Q&A, Help & Troubleshooting] jflora1:
You are correct that it is called bob.zip.zip, but same result when I try to push it.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
well "ren bob.zip.zip bob.zip" then restart your computer and phone (to recovery if you don't have a ROM installed) then

adb push bob.zip /data/media/

if it still gives an error copy/paste command prompt from the beginning, not just the push command, so we can see the "deamon starting" msg etc.
[One (M7) Q&A, Help & Troubleshooting] jflora1:
Daemon started successfully after your suggestion, but then got "protocol error". See attached.

Frustration.....
[One (M7) Q&A, Help & Troubleshooting] nkk71:
try typing "adb" the first line will show you version number, maybe you need to upgrade to latest
[One (M7) Q&A, Help & Troubleshooting] jflora1:
ADB Version 1.0.31 pulled off the developer.android.com site yesterday.

Oh, and thanks for your help so far.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
version should be good, I'm still on .29, and it works. this makes no sense :confused:

have you tried adb sideload? the only reason(s) beyond adb i can think of:

1- bad cable

2- need a newer/different recovery?
[One (M7) Q&A, Help & Troubleshooting] jflora1:
'adb get-state' show sideload so I think the cable is ok.

Must use 'adb push' as 'adb sideload' not recognized.

sdcard/O shows clockworkmod/, but no files are found???
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Both methods should work. Google adb sideload, there's a full guide somewhere around here.

I'm off for tonight, sorry mate.
[One (M7) Q&A, Help & Troubleshooting] chrisxpratt:
ive tried a couple of different roms and did the adb push, it took a couple of minutes and then finished, so i reboot into recovery and go to install, and NOTHING shows up.

edit: one time the zip showed up, i clicked install, and then it said it failed. so i rebooted and went back to try again and the zip was gone. weird.

does it matter if its a 4.2 or a 4.3 rom? i was doing the 4.3 and trying to put it on /sdcard and also trying the /data thats been suggested. TWRP says 0 MB on my storage so obviously it didnt transfer over.
[One (M7) Q&A, Help & Troubleshooting] SirrJonathan:
Hey guys,

Im having some of the same issues mentioned through the pages. This all started after i formatted my internal storage with TWRP - At first, I couldn't mount the cache, data, system etc nor could I wipe them.

I've been at this since yesterday. I cant get a rom to start. I tried to install Viper 3.5 and it goes through the installer but once I reboot the phone, it gets stuck on the HTC screen. I left it thinking it might be the kernel installing or something like that but after the 7th time I knew something was off, any suggestions?

I using adb version 1.0.31

Hboot 1.55 S-ON

I have access to fastboot and CWM - I have tried flashing multiple roms (Ruu stock, Max HD, and another the name escapes me)

I have tried different recoveries (TWRP and CWM- current CWM 6.0.4.3)

I also get this error "E: unknown volume "sdcard'. android_secure" when I do a CWM Factory reset

for this from "fastboot getvar all"

Any help would be greatly appreciated.
[One (M7) Q&A, Help & Troubleshooting] jacklei:
Help please

I usually use ADB to push custom roms to my HTC One but today I formatted everything, I ticked all the boxes in the options with TWRP 2.6.3.4. After I restarted I did the following.

1. Reboot phone into Recovery mode.

2. Launch cmd

3. Type into cmd "cd c:\Android\SDK\"

4. Type into cmd "adb devices"

Usually after step 4 it should say something about HTC One and then I can proceed to push a rom.

It has not, I tried rebooting and repeating the couple of steps, but still no success. I think something happened to my HTC One's drivers. I've already downloaded and updated the latest HTC Drivers and Sync Manager, also got a fresh copy of AndroidSDK. Still no success, I really need some assistance, this is my only phone I have so I'm really desperate to fix this issues..
[One (M7) Q&A, Help & Troubleshooting] Son_Of_Diablo:
Hey guys, I accidentally removed all data in the system folder of my HTC One, will this still work for me to get my phone to work again?

Just wanted to ask before I try anything more, or before I go to a store to get it fixed :)
[One (M7) Q&A, Help & Troubleshooting] Boachti:
thank you very much

you saved my life (htc one ) :P

thanks a lot
[One (M7) Q&A, Help & Troubleshooting] vance74:
Thank you so much !!!!

This Tutorial saved my life, this really should be a sticky ,,i can see how many people could be frustrated by searching for the CORRECT solution to this problem... you rock dude!!:good::good::good::good:
[One (M7) Q&A, Help & Troubleshooting] jackosteel:
help

[help]

I have smartfren andromax i3s with info:

model number: smartfren andromax AD682H

android version: 4.3

baseband version: smartfren_andromax_AD682H_V3.7

kernel version:

3.4.0-g664b6d6-00003-gabffbd7

android @ android # 1

wed apr 30 18:35:46 CST 2014

build number: smartfren_andromax_AD682H_V.3.7

1.have issues regarding media data can not format, be it through a factory reset.

position cwm broken and damaged root, only through adb command can improve.

2.android.process.media error, though already deleted the data via the app manager but still the data remains unchanged

3.google play store can not connect, force close and also force close google services ...

4.Install cwm always blank because the media problem error

or may be damaged in the media partition update error

maybe you guys ever experienced this problem or there is a fix problems ....

please help, sorry for my english
[One (M7) Q&A, Help & Troubleshooting] yaninio:
I forgot to download the ROM before wiping my system partition

in fastboot mode:

fastboot devices

HT35XW902492 fastboot

C:\Users\ik\Downloads\Development\adt-bundle-windows-x86-20140702\sdk\platform-tools>fastboot reboot-bootloader

rebooting into bootloader...

OKAY 0.040s

finished. total time: 0.050s

C:\Users\ik\Downloads\Development\adt-bundle-windows-x86-20140702\sdk\platform-tools>adb kill-server

C:\Users\ik\Downloads\Development\adt-bundle-windows-x86-20140702\sdk\platform-tools>adb usb

daemon not running. starting it now on port 5037 *

daemon started successfully

error: device not found

error: device not found

C:\Users\ik\Downloads\Development\adt-bundle-windows-x86-20140702\sdk\platform-tools>adb devices

List of devices attached

C:\Users\ik\Downloads\Development\adt-bundle-windows-x86-20140702\sdk\platform-tools>adb devices

List of devices attached

I've tried this many times but still get the same.

I've HTC Sync, re-attached usb and again and again ,i used different USB port but nothing.

Can you help me please?
[One (M7) Q&A, Help & Troubleshooting] clsA:
adb only works in custom recovery and booted OS

boot into TWRP and try again
[One (M7) Q&A, Help & Troubleshooting] yaninio:
I am in TWRP
[One (M7) Q&A, Help & Troubleshooting] ahmad smairat:
thx man

this was really incredible.thank you

in russian спасибо (spasiba)

in arabic شكرا (shokran)
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Device won't start after successful Install

Hi Guys,

After lot of struggle I successfully installed The ROM ViperOne 9.0.0. After it installed successfully it said reboot your device now when I rebooted the Device didn't start and It is not starting now.

When I keep pressed the power button the soft keys started blinking but the device didn't start. Can anyone help me with this issue plz ???
[One (M7) Q&A, Help & Troubleshooting] alray:
What is your recovery name + version?

And what is your firmware version? (better to post a "fastboot getvar all". don't post imei/sn)
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Thank you for Quick response, My recovery name is ClockworkMod Touch v6.0.4.6 installed from here http://xdaforums.com/showthread.php?t=2173863

I can't tell firmware version, How to check it ?

Even it doesn't start recovery I keep press Power button and Vol down soft keys blink screen remains black.

The one I installed is http://venomroms.com/htc-one-m7/ the 9.0.0-fix
[One (M7) Q&A, Help & Troubleshooting] alray:
Not sure if this can cause issue but its not the latest version of CWM, latest one is 6.0.4.8, howerver it is specified in the rom thread to use TWRP recovery:

Faq 2 : http://xdaforums.com/showpost.php?p=42842426&postcount=5

So you didn't read the warning from the link you gave me?

http://venomroms.com/htc-one-m7

I guess that if you don't know your firmware version and how to check it, you didn't make sure that it was running a 5.0.2 (7.xx.xxx.x) firmware... To know your firmware you must be booted in bootloader mode. "fastboot getvar all" command will tell you what your main-version (firmware version) is.

You'll need at least to be able to boot the phone in bootloader mode either by using power + volume down. Is your phone detected by your computer? If yes try "adb reboot bootloader" or "fastboot reboot-bootloader"
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
I now can confirm I didn't read the warning and Mine device was running Android 4.2.1 or probably 4.1.2 Device is not detected by computer and I can't boot into bootloader with power + volume down either. :( Don't know what possible can be done now ???

Again Thanks for the help.
[One (M7) Q&A, Help & Troubleshooting] alray:
Well without access to the bootloader there is not much you can do. You need to be able to get in bootloader so you can update your firmware (if possible depending your current one), flash a custom recovery and re-flash the rom. Try everything you can to get in bootloader or it will be impossible to fix it. If you are in a dark room, make sure to shine a bright light at the light sensor when trying to boot it.

Don't really understand why it wouldn't boot in bootloader. These kind of error (flashing a rom using the wrong recovery or firmware) will generally only cause bootloop, not kill the phone completely...
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Maybe I have lost it. A miracle can start it into bootloader now, What is in my hand now ? 3 buttons to do it ? That's all. Is there any recovery that can be installed without booting phone ? Weird but Its good to be weird in this situation. :(
[One (M7) Q&A, Help & Troubleshooting] alray:
If it can't boot at all, you'll need to send it for repair or maybe a JTAG repair could work. Might worth to try letting it charge for a couples hours and try again later.
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Ok Thank you. One last thing what ROM should I try if boots up ?

---------- Post added at 08:10 PM ---------- Previous post was at 08:00 PM ----------

Thank God it did boot now. Please now tell me which ROM and which Recovery should I try ? I was previously on Android 4.1.2 or 4.2.1

If possible please also provide the links to recovery and rom.

Really appreciate your time. Thanks again.
[One (M7) Q&A, Help & Troubleshooting] alray:
please start by posting the output of "fastboot getvar all" (remove your imei and s/n)

Then I'll be able to guide you
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Sure plz tell me where I would implement that command? In CMD ? I am newbie to such type of tampering :pp
[One (M7) Q&A, Help & Troubleshooting] alray:
install htc drivers: http://www.mediafire.com/download/k7trah995whrw0d/HTC-Mobile-Driver_v4.16.0.001.exe

install minimal adb and fastboot: http://xdaforums.com/showthread.php?t=2317790

boot your phone in bootloader and make sure "fastboot usb" is shown in red.

Go to your Windows start menu--> program --> minimal adb and fastboot --> minimal adb and fastboot.exe

in the command window, type:

fastboot getvar all

copy/paste (or take a screenshot) of the output and post it here. Make sure to delete or censor your IMEI number as well as your serialno before posting the output.
[One (M7) Q&A, Help & Troubleshooting] mnadeemughal:
Here are the:

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

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.44.0000

(bootloader) version-baseband: 4V.13.3231.27

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 1.28.401.7

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

(bootloader) serialno: ***************

(bootloader) imei: **************

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0710000

(bootloader) cidnum: HTC__001

(bootloader) battery-status: low

(bootloader) battery-voltage: 3331mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

getvar:all FAILED (status read failed (Too many links))

finished. total time: 0.153s

C:\Program Files (x86)\Minimal ADB and Fastboot>
[One (M7) Q&A, Help & Troubleshooting] alray:
Ok your firmware is one of the oldest one, we'll need to update that first, then we'll flash the recovery and finally the rom. But before, you'll have to charge your phone more. Updating the firmware requires a lot of battery. If the battery fails during the firmware update, it could brick your phone. So better to power off the phone and let it charge for at least 30/45 min using the wall charger (charges faster then usb).

Meanwhile you can download these files you'll need later:

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

https://dl.twrp.me/m7/twrp-2.8.7.0-m7.img

save both these files in the same folder where you have adb and fastboot installed on your computer (in the installation folder of minimal adb and fastboot)

Here the instructions how to update the firmware, again wait for your battery to be charged.

make sure the phone is booted in bootloader mode with "fastboot usb" shown in red.

Open the command window (minimal adb and fastboot) and type these commands:

fastboot oem rebootRUU

don't forget RUU in capital letters. adb and fastboot commands are case sensitive.

Your phone should now reboot to a black screen with silver HTC logo, this is the RUU mode. then proceed with the next command:

fastboot flash zip M7_UL_Firmware_7.19.401.2.zip

First flash is only a pre-update and will output an error message like: FAILED <remote: 90 hboot pre-update! Please flush image again immediately>

So proceed with the same command again:

fastboot flash zip M7_UL_Firmware_7.19.401.2.zip

You should now see a lot more text scrolling down and the end result should be <OK. Finished. Total time: xxx>

Now you can reboot the phone using:

fastboot reboot-bootloader

Instructions how to flash the recovery:

make sure the phone is booted in bootloader mode with "fastboot usb" shown in red.

Open the command window (minimal adb and fastboot) and type these commands:

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

Flash the rom:

boot in recovery (twrp) main menu

You should see your phone storage from your computer like an external hard drive. Drag and drop your rom.zip to your phone storage. When the transfer is complete, select "install" from twrp main menu, then choose your "rom.zip" and swipe the bottom slider to install the rom. Once installed reboot the phone (twrp main menu ---> reboot --> reboot to system) and hopefully, the phone will boot normally to the system. Note that the first boot can take much more time than usual (around 10 min stuck at the white htc splash screen), just be patient it should boot eventually.