[HOW TO] ADB Sideload/Push if you Wipe Internal Storage & No ROM to Flash [19 May 15]

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
pushing the rom worked better for me also then flashed it but took me for ever to figure out I didn't have my rom zip in a regular file don't know why but would not push or sideload till rom zip was in an unzipped file
Thats weird never heard of that before
 

born_fisherman

Senior Member
Jul 28, 2010
1,585
203
0
Yes you are correct

Sent from my SGH-T889 using xda premium
I could see how that would confuse people when they sideload xyz.zip, but then when they look for xyz.zip, they don't see it. Maybe add another line in the op saying the file is sideload.zip? :thumbup:

Sent from my HTC One using xda premium
 
  • Like
Reactions: tecz0r

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
I could see how that would confuse people when they sideload xyz.zip, but then when they look for xyz.zip, they don't see it. Maybe add another line in the op saying the file is sideload.zip? :thumbup:

Sent from my HTC One using xda premium
I didn't see how because you are using sideload so if you see the zip its gonna be the same name of the program you were just using and your memory is supposed t be blank or empty with nothing on it....So when you sideload the zip it will be the only file to flash on your phone. Thats all I am saying but you are the only one that brought this up but if any others do I will def keep you in mind and post something in the OP about it. I appreciate your concern and feedback
 

Dafer12

Member
Apr 2, 2012
16
1
0
When I type ADB devices it doesn't show HTC(other random letter) it just says "List of devices attached" any help would be appreciated


Thank you Daniel
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
When I type ADB devices it doesn't show HTC(other random letter) it just says "List of devices attached" any help would be appreciated


Thank you Daniel
Its not listing any devices attached at all? How about straight from the Main Recovery Screen...Does your phone display then?
 

jdep1

Senior Member
Sep 14, 2009
225
15
0
El Paso
Its not listing any devices attached at all? How about straight from the Main Recovery Screen...Does your phone display then?
I have the same issue I get devices not listed. HTC syn opens & my computer recognized the device as HTC but I can't do any commands. I accidentally deleted everything on the phone but it looks like adb is the only fix. Im new to adb any help would be appreciated.
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
I have the same issue I get devices not listed. HTC syn opens & my computer recognized the device as HTC but I can't do any commands. I accidentally deleted everything on the phone but it looks like adb is the only fix. Im new to adb any help would be appreciated.

When I type ADB devices it doesn't show HTC(other random letter) it just says "List of devices attached" any help would be appreciated


Thank you Daniel

EDIT* Refert to Post #2 - IF ADB Does Not See Your Device for better instructions



If you don't already have Android SDK then you need to get it. Go Here and download it.

Extract the contents of the zip to your c:\ in a folder named Android

Inside that Android folder should be an eclipse folder, sdk folder, and SDK Manager..

Open SDK Manager and update all the 4.1.2 and 4.2.2 stuff and even 4.3 - This will ensure all the binaries are up to date and ADB should work with no issues

Then follow the OP, remember, you have to place the zip you want to push inside the platform-tools folder because thats where ADB will be pushing the zip from...please ask more questions if you need
 
Last edited:

jdep1

Senior Member
Sep 14, 2009
225
15
0
El Paso
EDIT* Refert to Post #2 - IF ADB Does Not See Your Device for better instructions



If you don't already have Android SDK then you need to get it. Go Here and download it.

Extract the contents of the zip to your c:\ in a folder named Android

Inside that Android folder should be an eclipse folder, sdk folder, and SDK Manager..

Open SDK Manager and update all the 4.1.2 and 4.2.2 stuff and even 4.3 - This will ensure all the binaries are up to date and ADB should work with no issues

Then follow the OP, remember, you have to place the zip you want to push inside the platform-tools folder because thats where ADB will be pushing the zip from...please ask more questions if you need
I did everything the right way. the issue was is with my hct driver certificates on windows 8. I did everything on a windows 7 & sideloaded successfully.
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
I did not know you were on windows 8 but I have not had an issue with 8 either. Glad you have it figured out

Sent from my SGH-T889 using XDA Premium 4 mobile app
 

shawnd44

Member
Aug 17, 2013
5
0
0
HELP, This is what i get when trying to sideload

I have downloaded all the SDK updates previously stated but i am still having a problem.... PLEASE HELP :eek:

Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be u
pdated.

- If it is "system" or "data", only the corresponding partition
is updated.
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
Read troubleshooting post 2, you are not entering the command properly from what it looks like... I am at work but at quick glance that is what I am seeing

Sent from my SGH-T889 using XDA Premium 4 mobile app
 

Chaios

Member
May 31, 2012
7
1
0
THANKS

Thanks sooo much!!! it helped a ton!!1:D:D been stuck here for hours trying to get a rom on my htc one:D accidentally erased the rom while wiping data.
 
  • Like
Reactions: bdorr1105

quantumtransfer

Senior Member
Apr 10, 2010
150
102
0
Phoenix
Hello,

I've followed all the directions in post 1 and 2. I've also taken some advice for instances people were able to get it working using other methods yet similar. I however have downloaded the SDK and unzipped it into C: with a folder named android with 4.1., 4.2, 4.3 all downloaded including the extras. Also downloaded HTC sync to see if there were additional drivers that i may need. At this point when i preform adb devices, it shows no devices and also windows doesn't recognize it as being installed. I've tried all the driver ideas and all your ideas.. pretty much. I am S-OFF, and my bootloader is unlocked with TWRP installed for recovery. Not sure what else to do, i think windows just can't see my phone in side load for what ever reason.. any suggestions would be great.
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
Hello,

I've followed all the directions in post 1 and 2. I've also taken some advice for instances people were able to get it working using other methods yet similar. I however have downloaded the SDK and unzipped it into C: with a folder named android with 4.1., 4.2, 4.3 all downloaded including the extras. Also downloaded HTC sync to see if there were additional drivers that i may need. At this point when i preform adb devices, it shows no devices and also windows doesn't recognize it as being installed. I've tried all the driver ideas and all your ideas.. pretty much. I am S-OFF, and my bootloader is unlocked with TWRP installed for recovery. Not sure what else to do, i think windows just can't see my phone in side load for what ever reason.. any suggestions would be great.
Why are you making so many folders, Extract the ZIP and then place it on your C: drive. Dont change anything else about it. Open SDK from insde the folders you extracted and update them all. Make sure you have USB Debugging enabled and your HTC Drivers are working properly on the computer. If you can't get adb to recognize your phone you got some big issues.
 
  • Like
Reactions: lejurassien40

avinashhh

New member
Sep 19, 2013
2
0
0
adb push error closed

When pushing to file with the following code : adb push file.zip /data/media, it says; error: closed.

Why is this happening?

thnkx