[Q] Wiped everything > no OS - One (M7) Q&A, Help & Troubleshooting

Hey there.
Was playing around with recovery and managed to wipe EVERYTHING (yeah...I know... )
I now have no OS and, obviously, when I reboot I get stuck in a bootloop.
My question is how do I flash a rom onto it, as there is no sdcard slot?
Thanks in advance!

adb sideload

b0gd4n said:
Hey there.
Was playing around with recovery and managed to wipe EVERYTHING (yeah...I know... )
I now have no OS and, obviously, when I reboot I get stuck in a bootloop.
My question is how do I flash a rom onto it, as there is no sdcard slot?
Thanks in advance!
Click to expand...
Click to collapse
you use adb from your adb / fastboot folder
TWRP / Advanced / Sideload
From PC adb /fastboot folder
you use
adb sideload name_of_rom.zip
or
just have TWRP loaded on the first screen and
adb push name_of_rom.zip /sdcard/
both ways the name_of_rom.zip needs to be in the same folder as adb / fastboot

1) Go back into recovery (power on while holding vol-, then select recovery). Plug in to PC and use "adb push <rom>.zip \sdcard\(rom).zip. Flash.
2) ADB Sideload (don't know how to use personally).
3) Go back into recovery and plug in a USB flash stick (either an OTG flash that will plug right in, or a microUSB-to-FemaleUSB cable and any USB flash stick or hdd).
I don't understand why people are so in love with microSD, when hardly anyone spends the cash on a 64gb card so the built in 32gb is just fine. If you need removable media, you have it in a $1.99 otg cable and any flash stick (or even a 3tb usb-hdd).

rpmccormick said:
1) Go back into recovery (power on while holding vol-, then select recovery). Plug in to PC and use "adb push <rom>.zip \sdcard\(rom).zip. Flash.
2) ADB Sideload (don't know how to use personally).
3) Go back into recovery and plug in a USB flash stick (either an OTG flash that will plug right in, or a microUSB-to-FemaleUSB cable and any USB flash stick or hdd).
I don't understand why people are so in love with microSD, when hardly anyone spends the cash on a 64gb card so the built in 32gb is just fine. If you need removable media, you have it in a $1.99 otg cable and any flash stick (or even a 3tb usb-hdd).
Click to expand...
Click to collapse
clsA said:
you use adb from your adb / fastboot folder
TWRP / Advanced / Sideload
From PC adb /fastboot folder
you use
adb sideload name_of_rom.zip
or
just have TWRP loaded on the first screen and
adb push name_of_rom.zip /sdcard/
both ways the name_of_rom.zip needs to be in the same folder as adb / fastboot
Click to expand...
Click to collapse
BenPope said:
adb sideload
Click to expand...
Click to collapse
thank you all!!!

ok, tried using and OTG cable...but it just broke when unplugged a driver from it...oh well.
Then tried booting into recovery, plugged in the the to my pc, started cmd as admin. now I can't find the phone.
adb devices returns an empty list.
Also tried starting adb sideload, but it just gets stuck at Starting ADB sideload feature. left it for up to 30 mins and nothing...
EDIT: also tried updating TWRP recovery. now I have 2.7.0.0 and I still have the same problems...

b0gd4n said:
ok, tried using and OTG cable...but it just broke when unplugged a driver from it...oh well.
Then tried booting into recovery, plugged in the the to my pc, started cmd as admin. now I can't find the phone.
adb devices returns an empty list.
Also tried starting adb sideload, but it just gets stuck at Starting ADB sideload feature. left it for up to 30 mins and nothing...
EDIT: also tried updating TWRP recovery. now I have 2.7.0.0 and I still have the same problems...
Click to expand...
Click to collapse
Yeah adb will not list any devices as USB Debugging needs to be enabled and as you dont have a OS installed you won't be able to enable it. Luckily you have the latest version if twrp install so you can use adb sideload from twrp, I think it's in the advanced tab. Start up adb sideload and make sure your Rom.zip file is in the adb folder on your PC and then type, adb sideload <name of Rom>.zip, and the sideload will copy zip file over abd install for you.

BlockABoots said:
Yeah adb will not list any devices as USB Debugging needs to be enabled and as you dont have a OS installed you won't be able to enable it. Luckily you have the latest version if twrp install so you can use adb sideload from twrp, I think it's in the advanced tab. Start up adb sideload and make sure your Rom.zip file is in the adb folder on your PC and then type, adb sideload <name of Rom>.zip, and the sideload will copy zip file over abd install for you.
Click to expand...
Click to collapse
yeah, I tried that. every time I try to enable it, it gets stuck at "Starting adb sideload". Left if for 30 mins and still nothing...

b0gd4n said:
yeah, I tried that. every time I try to enable it, it gets stuck at "Starting adb sideload". Left if for 30 mins and still nothing...
Click to expand...
Click to collapse
a bit misleading it is, it wont come up with a msg started or something (in other words your waiting for nothing, its already running after the starting msg). Plug your phone in and start the adb sideload in cmd. Of course your system must recognize your phone else your will error out with no device found.

windieboss said:
a bit misleading it is, it wont come up with a msg started or something (in other words your waiting for nothing). Plug your phone in and start the adb sideload in cmd. Of course your system must recognize your phone else your will error out with no device found.
Click to expand...
Click to collapse
aaah, so I don't have to wait for it to "start". OK then, I'll try this.
When I plug in the phone, Windows makes the "New device" sound, so I guess it does recognise it.
so it's adb sideload ....zip ?

b0gd4n said:
aaah, so I don't have to wait for it to "start". OK then, I'll try this.
When I plug in the phone, Windows makes the "New device" sound, so I guess it does recognise it.
so it's adb sideload ....zip ?
Click to expand...
Click to collapse
yup.

BlockABoots said:
Yeah adb will not list any devices as USB Debugging needs to be enabled and as you dont have a OS installed you won't be able to enable it. Luckily you have the latest version if twrp install so you can use adb sideload from twrp, I think it's in the advanced tab. Start up adb sideload and make sure your Rom.zip file is in the adb folder on your PC and then type, adb sideload <name of Rom>.zip, and the sideload will copy zip file over abd install for you.
Click to expand...
Click to collapse
windieboss said:
a bit misleading it is, it wont come up with a msg started or something (in other words your waiting for nothing, its already running after the starting msg). Plug your phone in and start the adb sideload in cmd. Of course your system must recognize your phone else your will error out with no device found.
Click to expand...
Click to collapse
ok, booted to recovery > Advanced > ADB Sideload > now it ways "Starting ADB sideload feature..."
Plugged in the device, started cmd from adb folder. Doing adb devices here returns no devices...
Tried all USB ports, still none...

b0gd4n said:
ok, booted to recovery > Advanced > ADB Sideload > now it ways "Starting ADB sideload feature..."
Plugged in the device, started cmd from adb folder. Doing adb devices here returns no devices...
Tried all USB ports, still none...
Click to expand...
Click to collapse
Same Problem here. No Solution?

b0gd4n said:
ok, booted to recovery > Advanced > ADB Sideload > now it ways "Starting ADB sideload feature..."
Plugged in the device, started cmd from adb folder. Doing adb devices here returns no devices...
Tried all USB ports, still none...
Click to expand...
Click to collapse
After you have started the sideloader server in twrp, just type adb sideload <name of rom>.zip and it will start sending the file. Dont bother trying to search for the device (adb device) as sideloader only understand the above command

BlockABoots said:
After you have started the sideloader server in twrp, just type adb sideload <name of rom>.zip and it will start sending the file. Dont bother trying to search for the device (adb device) as sideloader only understand the above command
Click to expand...
Click to collapse
doing just that:
start in recovery> start adb sideload (saying "starting adb sideload feature...") > plugged in (windows new device sound) > cmd with admin > navigate to sdk/platform-tools/ > and now I do the following command:
Code:
adb sideload filename.zip
and I get:
error: device not found

b0gd4n said:
doing just that:
start in recovery> start adb sideload (saying "starting adb sideload feature...") > plugged in (windows new device sound) > cmd with admin > navigate to sdk/platform-tools/ > and now I do the following command:
Code:
adb sideload filename.zip
and I get:
error: device not found
Click to expand...
Click to collapse
Hmmm, maybe try uninstalling all HTC drivers on the PC and then reinstalling.....
HTCDriver_4.2.0.001.exe
HTC_BMP_USB_Driver_x64_1.0.5375.msi (or x86 version if on win 32)
SyncManager_2.0.61.0.exe
found here, http://forum.xda-developers.com/showthread.php?t=2217396
http://www.mediafire.com/?o10b16j5b3r3o

try the above. If that still fails then give this a go
http://koush.com/post/universal-adb-driver
(after again uninstalling htc drivers)

I deleted os
Hello brother pls help me . I am sorry but i deleted is of htc one. Now can't anything . Here is the details
Twrp - yes
Hboot- unlocked tampered.
S-off
T-mobile htc one 4.4.2
Please help me . Here I saw many many expert so brother pls help me how to solve it & I can use my htc one .
Pls brother........
If someone can mail me in [email protected]
The details what to do. As I am really new & don't know what to do.
So again brother pls help.

windieboss said:
try the above. If that still fails then give this a go
http://koush.com/post/universal-adb-driver
(after again uninstalling htc drivers)
Click to expand...
Click to collapse
Whooo this worked!! Finally!!!
So I uninstalled all HTC stuff I had installed (drivers, sync manager, everything), then installed the stuff in the link.
Plugged in the HTC One in sideload mode and did
Code:
adb sideload filename.zip
and it worked!! Thanks again mate!

Related

Mounting storage in recovery

So I managed to screw up by wiping both my data and my system, so now I have no os installed and no way to flash an OS from .zip files. Is there anyway for me to add a file to my storage and then flash it via recovery?
jason27131 said:
So I managed to screw up by wiping both my data and my system, so now I have no os installed and no way to flash an OS from .zip files. Is there anyway for me to add a file to my storage and then flash it via recovery?
Click to expand...
Click to collapse
Download a rom and put it in your adb folder
hold in shift and right click on your adb folder - 'open folder in terminal' or similar (not at my computer atm) should be there
Type
adb push name_of_rom.zip /sdcard/
Or
adb sideload name_of_rom.zip
both must be done in recovery. If you do the sideload method, choose the sideload option in recovery - once it transfers it will begin to install automatically. 'adb push' will put the file onto your sdcard then install it yourself in recovery.
Sent from my HTC One using xda premium
Awesome i'll try that. Thanks!
redbull123 said:
Download a rom and put it in your adb folder
hold in shift and right click on your adb folder - 'open folder in terminal' or similar (not at my computer atm) should be there
Type
adb push name_of_rom.zip /sdcard/
Or
adb sideload name_of_rom.zip
both must be done in recovery. If you do the sideload method, choose the sideload option in recovery - once it transfers it will begin to install automatically. 'adb push' will put the file onto your sdcard then install it yourself in recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
It says device not found.
What about if you go into fastboot in the bootloader screen and type
fastboot devices
Maybe you need to reinstall your adb files...
Sent from my HTC One using xda premium
then you need to install HTC drivers for your phone. If configured correctly you can do adb devices and it will show up.
If you have drivers installed correctly under device manager the phone shows up as My HTC. Make sure you aren't using a USB 3 port if your computer has one.
Reboot your computer. That worked for me. I did the same thing
Also download HTC all in one tool kit. Its a lifesaver.
Sent from my HTC One using xda app-developers app
fastboot does work. Can i use the adb command in bootloader screen?
jason27131 said:
So I managed to screw up by wiping both my data and my system, so now I have no os installed and no way to flash an OS from .zip files. Is there anyway for me to add a file to my storage and then flash it via recovery?
Click to expand...
Click to collapse
I had same problem nothing was working .i used twrp and from there mount storage as otg as that was only working and put a rom in external pendrive and flash your rom
Sent from my HTC One aka M7
jason27131 said:
fastboot does work. Can i use the adb command in bootloader screen?
Click to expand...
Click to collapse
no only fastboot commands.
So then where do i do the adb commands? In the recovery? I don't get why adb devices isn't giving me anything when fastboot is.
jason27131 said:
fastboot does work. Can i use the adb command in bootloader screen?
Click to expand...
Click to collapse
No, adb must be done in recovery.
Go into recovery and try
adb devices
If nothing shows up you need to re-install/update your adb files and HTC drivers.
If your devices shows up this time then do what I said earlier...
Sent from my HTC One using xda premium
You can either reboot the computer or stop and restart the adb service from the windows management console. The driver for fastboot and adb are the same so I suspect it's something with adb server acting up
I'm guessing you update adb files via sdk manager?
redbull123 said:
Download a rom and put it in your adb folder
hold in shift and right click on your adb folder - 'open folder in terminal' or similar (not at my computer atm) should be there
Type
adb push name_of_rom.zip /sdcard/
Or
adb sideload name_of_rom.zip
both must be done in recovery. If you do the sideload method, choose the sideload option in recovery - once it transfers it will begin to install automatically. 'adb push' will put the file onto your sdcard then install it yourself in recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
gunnyman said:
You can either reboot the computer or stop and restart the adb service from the windows management console. The driver for fastboot and adb are the same so I suspect it's something with adb server acting up
Click to expand...
Click to collapse
I stopped and restarted the adb services and it stil lcan't find the phone. is there any thing specific I have to do in recovery? This is confusing me so much.
jason27131 said:
I stopped and restarted the adb services and it stil lcan't find the phone. is there any thing specific I have to do in recovery? This is confusing me so much.
Click to expand...
Click to collapse
How hard is to flash via external flash drive using micro usb otg in recovery menu
Sent from my HTC One aka M7
Remove and reinstall the driver
zinder33 said:
How hard is to flash via external flash drive using micro usb otg in recovery menu
Sent from my HTC One aka M7
Click to expand...
Click to collapse
Reasonably hard if he doesn't have a USB OTG cable atm...
Sent from my HTC One using xda premium
zinder33 said:
How hard is to flash via external flash drive using micro usb otg in recovery menu
Sent from my HTC One aka M7
Click to expand...
Click to collapse
Very, since clicking on the micro-otg doesn't do anything. I managed to get sideload working I believe. It's at 40%, hopefully it is sideloading the file.
jason27131 said:
Very, since clicking on the micro-otg doesn't do anything. I managed to get sideload working I believe. It's at 40%, hopefully it is sideloading the file.
Click to expand...
Click to collapse
Should be good to go
If it freezes in Aroma just force reboot and try again.
Sent from my HTC One using xda premium

[Q] Can't get adb working on my One

Hello
I have done all many researches in forum, and made sure all of below are done but just can't get adb working on my device in fastboot mode...
- Installed USB driver
- Debugging mode is on
- Not using 3.0 USB port
- Using Win 7 64 bits
Fastboot is working fine but adb can't find my device at all. It shows blank list after I typed "adb devices"
Funny thing is when I boot into TWRP recovery and use the adb sideload function, adb can find my device correctly!
Anyone got a clue what's happening on my One? I really want to make adb works so I can make it s-off.
Thanks.
adb doesn't work in fastboot mode.
BenPope said:
adb doesn't work in fastboot mode.
Click to expand...
Click to collapse
Thanks and sorry for my noobiness.
I always think I need to boot into fastboot mode for adb.
:fingers-crossed:
try an custom recovery witch support adb like teawin
I use TWRP for ADB. TWRP > Advanced > ADB Sideload.

[Q] HELP! Wiped everything by accident!

I accidentally wiped everything from my HTC One which was previously running Android Revolution HD 31.0. I tried using ADB sideload from TWRP recovery, which is still on my phone, and when typing ADB devices, I do see a random string of numbers with the text ''sideload'' next to it. However, when I try to sideload the rom I get an error: closed or cannot read 'sideload' message. Any ideas? I really need my phone to work..
YoungStarDC said:
I accidentally wiped everything from my HTC One which was previously running Android Revolution HD 31.0. I tried using ADB sideload from TWRP recovery, which is still on my phone, and when typing ADB devices, I do see a random string of numbers with the text ''sideload'' next to it. However, when I try to sideload the rom I get an error: closed or cannot read 'sideload' message. Any ideas? I really need my phone to work..
Click to expand...
Click to collapse
What have you tried..
Assume you have latest drivers and ADB installed fully on PC?
Not sure as I don't use TWRP, but can you mount storage? (if so copy ROM onto sd card via PC)
If you have everything loaded and still no go, is your device s-off?
have you tried "ADB Push" ??
some times this works...when adb sideload fails
"adb push yourrom.zip /data/media/0/"
even this one has to be done from recovery
Harish_Kumar said:
have you tried "ADB Push" ??
some times this works...when adb sideload fails
"adb push yourrom.zip /data/media/0/"
even this one has to be done from recovery
Click to expand...
Click to collapse
flash this recovery and chose side load it will work tested by me. though it takes abt 5min to load 1gb file.
this progress will be showin in your cmd
just place the zip in your adb folder and run
adb push (name of the zip)
http://goo.gl/Q5mfQl

[Q] Can't get past Recovery Mode - Need Help!

After rebooting for a cyanogenmod update which failed to install, my phone will not boot into Cyanogenmod - only clockwork.
I have precious data on the phone that I need to extract, mainly pictures.
ADB only recognizes the phone as "offline" and I cannot pull any files from it.
Any suggestions? Thanks a lot guys.
icer22x said:
After rebooting for a cyanogenmod update which failed to install, my phone will not boot into Cyanogenmod - only clockwork.
I have precious data on the phone that I need to extract, mainly pictures.
ADB only recognizes the phone as "offline" and I cannot pull any files from it.
Any suggestions? Thanks a lot guys.
Click to expand...
Click to collapse
did you cleared cache?
When you are trying to use adb your phone is in cwm recovery?
alray said:
did you cleared cache?
When you are trying to use adb your phone is in cwm recovery?
Click to expand...
Click to collapse
Yes I've cleared the cache and rebooted with the same results - just boots back into Recovery Mode.
And yes, when I am using ADB I am in Recovery Mode. I can't get past that.
icer22x said:
Yes I've cleared the cache and rebooted with the same results - just boots back into Recovery Mode.
And yes, when I am using ADB I am in Recovery Mode. I can't get past that.
Click to expand...
Click to collapse
Do you have a nandroid backup on your phone?
Also is all your drivers properly set and updated on your cumputer? Can you post a screenshot of Windows devices manager with the phone info?
Are you using the original usb cable? Some usb cables only have GND and 5V pins (no data). Also be sure to use usb 2.0 and a usb port directly from your motherboard (not in front of your computer) and don't use any usb hub.
Well I got it recognized by ADB now.
What is the file structure like in order to pull files from the phone?
What commands can I use in ADB to pull the main sd directory?
icer22x said:
Yes I've cleared the cache and rebooted with the same results - just boots back into Recovery Mode.
And yes, when I am using ADB I am in Recovery Mode. I can't get past that.
Click to expand...
Click to collapse
oh and when you are in bootloader, is fastboot working?
Code:
fastboot devices
does it says fastboot usb or only fastboot (in red)
I nerver used adb to pull files so idk. Maybe somthing like ''adb pull /sdcard/ C:\something'' ?
maybe you can find here
or use twrp to make a backup of your data, then pull the backup to your computer
alray said:
oh and when you are in bootloader, is fastboot working?
Code:
fastboot devices
does it says fastboot usb or only fastboot (in red)
I nerver used adb to pull files so idk. Maybe somthing like ''adb pull /sdcard/ C:\something'' ?
Click to expand...
Click to collapse
Thanks man. That helped.
If anyone ever finds themselves in this situation, make sure your SDK packages are updated to the latest Android OS version. This is why ADB was recognizing my device as offline.
Also, running the command adb pull /sdcard/ C:<somewhereonyourPC> will pull all the data from your HTC one.
icer22x said:
Thanks man. That helped.
If anyone ever finds themselves in this situation, make sure your SDK packages are updated to the latest Android OS version. This is why ADB was recognizing my device as offline.
Also, running the command adb pull /sdcard/ C:<somewhereonyourPC> will pull all the data from your HTC one.
Click to expand...
Click to collapse
oh nice to see adb pull /sdcard/ C:<somewhereonyourPC> was the right syntax :laugh:
For the sdk packages you should always make sure it is updated before doing anything to the phone. Same for drivers. An ''adb devices'' and ''fastboot devices'' won't hurt before messing with the phone to make sure everything set correctly.
Now I presume you'll be ok to flash your rom again?1

[Q] Stucked in recovery badly.. Please help me

My device is Moto X (XT1060). I wiped my Internal storage, Cache, Data, System entirely.
I went to my TWRP v2.6.3.1 recovery and tried to sideload cm12.zip via adb.exe but it failed to recognize the device.
I tried
Code:
adb sideload cmfile.zip
but it show's
Code:
error: device not found
I installed Motorola Device manager.. but no luck so far.
I think I need drivers or something for XT1060.. Please help me.
You should search for twrp 2.8.4.0 for Moto X 2013. Also, make sure you have the latest android SDK and ADB files installed. You'll need to search for threads that help get your phone connected to a pc.
Or you could use 'adb push cm12.zip /sdcard' (without the apostrophes) in a cmd prompt then flash in recovery. Why does everyone resort to sideloading when there's any easier method that will always work?
Once you get your Android SDK and drivers set up and storage mounted in recovery.
nhizzat said:
Or you could use 'adb push cm12.zip /sdcard' (without the apostrophes) in a cmd prompt then flash in recovery. Why does everyone resort to sideloading when there's any easier method that will always work?
Once you get your Android SDK and drivers set up and storage mounted in recovery.
Click to expand...
Click to collapse
or you can boot your phone into bootloader if you can and flash the device back to stock and start over.
nhizzat said:
Or you could use 'adb push cm12.zip /sdcard' (without the apostrophes) in a cmd prompt then flash in recovery. Why does everyone resort to sideloading when there's any easier method that will always work?
Once you get your Android SDK and drivers set up and storage mounted in recovery.
Click to expand...
Click to collapse
That is basically all the sideload command does isn't it? I seemed to notice when I side loaded I was left with the zip I installed on my device... I could swear I deleted it manually, which would mean that sideload just pushes and installs for you in once nice package.
Either way, the issue he is having is that ADB won't find his devices... read the error message its not having trouble with the sideload or the zip... He just doesn't know how to use ADB and make it recognize his device...
Pushing doesn't always work when ADB doesn't recognize your device....

Categories

Resources