trying to adb sideload but get msg "error: closed" - One (M7) Q&A, Help & Troubleshooting

basically I wiped my phone accidentally so i have no OS, i can access TRWP recovery and i tried to sideload adb following this video
https://www.youtube.com/watch?v=xWmnHwkDrKk
although when i enter "adb usb" i get the msg "error: closed"
i am totally stuck here.... help is very much appreciated!

Lanky09 said:
basically I wiped my phone accidentally so i have no OS, i can access TRWP recovery and i tried to sideload adb following this video
https://www.youtube.com/watch?v=xWmnHwkDrKk
although when i enter "adb usb" i get the msg "error: closed"
i am totally stuck here.... help is very much appreciated!
Click to expand...
Click to collapse
you have the rom.zip in the same folder as adb / fastboot, and the phone is in the home screen of TWRP
try adb push rom.zip /sdcard
wait for it to copy then install it from twrp

clsA said:
you have the rom.zip in the same folder as adb / fastboot, and the phone is in the home screen of TWRP
try adb push rom.zip /sdcard
wait for it to copy then install it from twrp
Click to expand...
Click to collapse
thanks for the reply.
i just tried that and get the msg "error: closed"

Lanky09 said:
thanks for the reply.
i just tried that and get the msg "error: closed"
Click to expand...
Click to collapse
update your adb
http://forum.xda-developers.com/showthread.php?t=2588979

clsA said:
update your adb
http://forum.xda-developers.com/showthread.php?t=2588979
Click to expand...
Click to collapse
i installed "fastboot_adb(1.0.32)_071114_r21"
but when i type adb version it says 1.0.31
now after usb device it does have s/n and sideload, before it said host
if i try push a .zip it still says error: closed
what directory does the cmd.exe need to be in?

Lanky09 said:
i installed "fastboot_adb(1.0.32)_071114_r21"
but when i type adb version it says 1.0.31
now after usb device it does have s/n and sideload, before it said host
if i try push a .zip it still says error: closed
what directory does the cmd.exe need to be in?
Click to expand...
Click to collapse
from the same dir as adb / fastboot
right click + shift / command prompt here

clsA said:
from the same dir as adb / fastboot
right click + shift / command prompt here
Click to expand...
Click to collapse
alright i managed to sideload a ROM but when I flash i get this error
"assert failed: getprop("ro.product.device") ==getprop("ro.build.product") == "m7"
E: Error executing updater binary in zip '/data/

Lanky09 said:
alright i managed to sideload a ROM but when I flash i get this error
"assert failed: getprop("ro.product.device") ==getprop("ro.build.product") == "m7"
E: Error executing updater binary in zip '/data/
Click to expand...
Click to collapse
that sounds like an OTA update error
what file are you trying to sideload / install ?

clsA said:
that sounds like an OTA update error
what file are you trying to sideload / install ?
Click to expand...
Click to collapse
the rom zip file of this http://forum.xda-developers.com/showthread.php?t=2514595&highlight=assert

Lanky09 said:
the rom zip file of this http://forum.xda-developers.com/showthread.php?t=2514595&highlight=assert
Click to expand...
Click to collapse
that explains it
Flashing Procedure:
1)Download TWRP 2.6.3.0 from here
Click to expand...
Click to collapse

Related

HELP

I was rooted and removed some of the bloatware, before applying this update I reinstalled the bloatware and unrooted, when I try to update(5.6.980) it goes through but hangs on updating bp then it says
assert failed: motorola.motoflash("/tmp/bp.img")
E:Error in /tmp/sideload/package.zip
(status 7)
installation aborted
...idk what to do I tried wiping, rooting then unrooting and I keep getting the sam message and I guess thats needed for radio because now my phone can't find it, is there a package file or something i need????????????
anybody....
LRiley said:
anybody....
Click to expand...
Click to collapse
Have you tried flashing bp.img in fastboot?
rynosaur said:
Have you tried flashing bp.img in fastboot?
Click to expand...
Click to collapse
how do I do that?
LRiley said:
how do I do that?
Click to expand...
Click to collapse
I think this will be the file you need.
Then, get fastboot and put that file in the same directory.
Put the phone in AP Flash mode.
Connect with Moto cable to a good USB port.
type in:
Code:
fastboot devices
and verify that your device is shown without restrictions (you'll see a 16-char HEX code/serial id#)
if windows:
Code:
.\fastboot flash bpsw bpsw.img
if linux/unix/Mac:
Code:
./fastboot flash bpsw bpsw.img
reboot into recovery then try the update again.
did it and it says sending, OKAY, writing, (bootloader) command restricted, FAILED...is that right?
LRiley said:
did it and it says sending, OKAY, writing, (bootloader) command restricted, FAILED...is that right?
Click to expand...
Click to collapse
Well, yes, probably. For some reason, only certain partitions are available to flash from AP Fastboot.
rynosaur said:
Well, yes, probably. For some reason, only certain partitions are available to flash from AP Fastboot.
Click to expand...
Click to collapse
no, that means nothing happened. It sent it to the device, but didnt write it. So right where you started.
I got the same error again, I'm gonna root and try again
edru said:
no, that means nothing happened. It sent it to the device, but didnt write it. So right where you started.
Click to expand...
Click to collapse
Well, yeah, that's what I meant. It's normal for that partition to fail out. I'm guessing certain blocks can only be written in raw form from BP/SBF.
now I'm stuck in fastboot wut do I do now
LRiley said:
now I'm stuck in fastboot wut do I do now
Click to expand...
Click to collapse
Stuck? Reflash a non-protected partition, like cdrom. Then.
Code:
fastboot reboot
did it with mdm, but I'm back to square one
In the future, you'll probably get more help by titling your thread something more useful. I have skipped over it a few times already.
What's the output of
Code:
df /system
Edit: scratch that. bp.img is extracted to /tmp, which I'm guessing is a RAM disk. Have you tried running the update again? I'm not sure I understand why it would fail. Regardless, it is flashed using a Motorola utility so I imagine flashing by fastboot won't work.
I flashed it a lot of times but the update always gets stuck at bp
any ideas?
Can you post /cache/recovery/last_log
limaxray said:
Can you post /cache/recovery/last_log
Click to expand...
Click to collapse
where do I get that
LRiley said:
where do I get that
Click to expand...
Click to collapse
I assume you have adb installed? In a terminal, run:
Code:
adb shell
su
cp /cache/recovery/last_log /sdcard/
exit
exit
adb pull /sdcard/last_log <some local directory>
Replacing <some local directory> with wherever is convenient.

[ISSUE SOLVED] My phone can't go to the internal sd card with the recovery!

Hello, I do some wipe in the ckw :
* wipe cache
* wipe data
* wipe dalvik-cache
* format data - cache - system
* format data in sdcard /data and /data/media
-> and here, my phone reboot when I want to go to "choose a zip from sd card", I can't do a backup... etc.
And like I do a format system, there isn't ROM which is installed in my HTC ONE... So I'm blocked !
And I don't do a "BIG" format, because I have some photos and videos which don't backup in my computer... I don't want to lose all my photos and videos.... :/
Please help !
EDIT :
When I want to flash a recovery other than the ckw, like twrp, it impossible to boot in this recovery...
I reflash the ckw and I can boot into this.
I think that my sd-card is "blocked" , and it impossible to write something in this sd-card...
EDIT 2 :
I use sideload, 5 times in order to reboot in this rom..
IT4ALii3EN said:
Hello, I do some wipe in the ckw :
* wipe cache
* wipe data
* wipe dalvik-cache
* format data - cache - system
* format data in sdcard /data and /data/media
-> and here, my phone reboot when I want to go to "choose a zip from sd card", I can't do a backup... etc.
And like I do a format system, there isn't ROM which is installed in my HTC ONE... So I blocked !
And I don't do a "BIG" format, because I have some photos and videos which don't backup in my computer... I don't want to lose all my photos and videos.... :/
Please help !
EDIT :
When I want to flash a recovery other than the ckw, like twrp, it impossible to boot in this recovery...
I reflash the ckw and I can boot into this.
I think that my sd-card is "blocked" , and it impossible to write something in this sd-card...
Click to expand...
Click to collapse
I've got a similar problem. I wanted to install a stock version and I said before formatting the phone just fine and I deleted the zip. Now only I have no operating system or copied zip. And I do not know how to install a copy on your phone.
You've wiped your sd, right?
However, when you will flash new rom, you don't have to do any wipe from recovery, it will wipe your sd and zip rom too.
You have to perform a full wipe in aroma.
Guich said:
You've wiped your sd, right?
However, when you will flash new rom, you don't have to do any wipe from recovery, it will wipe your sd and zip rom too.
You have to perform a full wipe in aroma.
Click to expand...
Click to collapse
yes i've wiped the sd but now how can I copy a rom into sd form recovery?
geox89 said:
yes i've wiped the sd but now how can I copy a rom into sd form recovery?
Click to expand...
Click to collapse
Are you using CWM or TWRP?
Guich said:
Are you using CWM or TWRP?
Click to expand...
Click to collapse
twrp
geox89 said:
twrp
Click to expand...
Click to collapse
You can use the
Code:
adb sideload or adb push
or use an OTG cable with rom into an usb pen
geox89 said:
twrp
Click to expand...
Click to collapse
You can either use adb sideload or adb push
Put your a rom zip and your adb file in a folder on your desktop, hold shift in the folder and right click, press open cmd in this location, then do
Code:
adb push ROM.zip /sdcard/ROM.zip
Replace ROM.zip with the zip name of your rom
Now wipe cache/dalvik in TWRP, and you will find the zip at the root of your SD Card
MacHackz said:
You can either use adb sideload or adb push
Put your a rom zip and your adb file in a folder on your desktop, hold shift in the folder and right click, press open cmd in this location, then do
Code:
adb push ROM.zip /sdcard/ROM.zip
Replace ROM.zip with the zip name of your rom
Now wipe cache/dalvik in TWRP, and you will find the zip at the root of your SD Card
Click to expand...
Click to collapse
I didn't format my sd-card, juste /data and /data/media (/sdcard) ...
And via fastboot, it's possible to push an .zip in my HTC ?
IT4ALii3EN said:
I didn't format my sd-card, juste /data and /data/media (/sdcard) ...
And via fastboot, it's possible to push an .zip in my HTC ?
Click to expand...
Click to collapse
No, you can in recovery with adb command like sideload (TWRP recovery) or push.
For example:
- Boot in recovery
- Open adb/fastboot folder
- Copy here the "rom"
open the prompt and use:
Code:
adb devices
(you can see if your device is connected, then
Code:
adb push name_of_rom.zip /sdcard
Now you can see your rom in your phone
Guich said:
No, you can in recovery with adb command like sideload (TWRP recovery) or push.
For example:
- Boot in recovery
- Open adb/fastboot folder
- Copy here the "rom"
open the prompt and use:
Code:
adb devices
(you can see if your device is connected, then
Code:
adb push name_of_rom.zip /sdcard
Now you can see your rom in your phone
Click to expand...
Click to collapse
Ok ! I test this now ! thx
IT4ALii3EN said:
Ok ! I test this now ! thx
Click to expand...
Click to collapse
I wrote the same thing
MacHackz said:
I wrote the same thing
Click to expand...
Click to collapse
Sorry, saw now
I have an error after the adb push xxxxx.zip /sdcard
error: closed
with CKW in sideload
IT4ALii3EN said:
I have an error after the adb push xxxxx.zip /sdcard
error: closed
with CKW in sideload
Click to expand...
Click to collapse
You don't need sideload if you will use adb push command
IT4ALii3EN said:
I have an error after the adb push xxxxx.zip /sdcard
error: closed
with CKW in sideload
Click to expand...
Click to collapse
Do the same thing but write
Code:
adb sideload ROMname.zip
MacHackz said:
Do the same thing but write
Code:
adb sideload ROMname.zip
Click to expand...
Click to collapse
I have :
Sideload started
Now send the package you want to apply to the device with "adb sideload <filename>...
failed to open driver control: No such file or diretory
restarting adbd...
failed to open driver control: No such file or diretory
E: can't mount /cache/recovery/last_install
E: failed to open last_install: Invalid argument
Finding update package...
Opening update package...
E: can't open /tmp/update.zip
(bad)
Installation aborted.
E: Can't mount /cache/recovery/log
E: can't open cache/recovery/log
E: Can't mount /cache/recovery/last_log
E: Can't open /cache/recovery/last_log
I don't know what I must do... :/
Boot in recovery, open propt and write:
Code:
adb push name_of_rom.zip /sdcard
If you have error, please report it here
Try looking in /data/media/
not /sdcard/
I flashed CM just to check it out and came back to ARHD and it borked my directories. Wth. That's where I had to look as I freaked out the same.
Guich said:
Boot in recovery, open propt and write:
Code:
adb push name_of_rom.zip /sdcard
If you have error, please report it here
Click to expand...
Click to collapse
can you repeat the steps again..I don't understand something goes wrong..
I have installed android sdk as said here (http://teamw.in/ADBSideload)
I enter in recovery-advanced-sideload and turn it on
Next I open cmd from folder platform-tools found in the android-sdk folder
in the platform tools folder I put the zip rom
and then I type adb push ROM.zip /sdcard/ROM.zip and nothing happens...appear a sequence of commands adb's..
Where I'm wrong?

So i messed up

Hi , I installed ColosOS beta without installing oppo.boot.img.
And whole system froze on booting up.
Now I have TWRP recovery installed , via fastboot.
But I have no ROM on my cellphone it seems.
I cant seem to use adb sideload command as the cmd window only shows up possible commands. it is adb version 1.0.29
My problem now is to get ROM.zip into my phone. Damn HTC ONE dont have external sd card.....
Anyone can help ?
mrcaligula said:
I cant seem to use adb sideload command as the cmd window only shows up possible commands. it is adb version 1.0.29
Click to expand...
Click to collapse
you're typing the command wrong, or the filename (of the ROM) is wrong.
you can also use an OTG cable, or "adb push <name of rom>.zip /data/media/"
nkk71 said:
you're typing the command wrong, or the filename (of the ROM) is wrong.
you can also use an OTG cable, or "adb push <name of rom>.zip /data/media/"
Click to expand...
Click to collapse
Example I have Zip file located in : C:/trip.zip
Then I write
adb sideload c:/trip.zip /sdcard
?
mrcaligula said:
Example I have Zip file located in : C:/trip.zip
Then I write
adb sideload c:/trip.zip /sdcard
?
Click to expand...
Click to collapse
that is the push method not sideload:
adb push c:\trip.zip /sdcard/
sideload is just: adb sideload c:\trip.zip
nkk71 said:
that is the push method not sideload:
adb push c:\trip.zip /sdcard/
sideload is just: adb sideload c:\trip.zip
Click to expand...
Click to collapse
Yes of course . Thank you!
I will now try to get MY HTC back in the ADB devices list again
It is back up again in ADB . And now I am pushing it to /data/media. I hope I will find the file in TWRP now One million thanks to you.
mrcaligula said:
Yes of course . Thank you!
I will now try to get MY HTC back in the ADB devices list again
It is back up again in ADB . And now I am pushing it to /data/media. I hope I will find the file in TWRP now One million thanks to you.
Click to expand...
Click to collapse
good luck, hit the thanks button if i've helped
Phone now up again with tripdroids newest.
It was the location of the push (data/media) that I screwed up before posting here. I pushed to sdcard but never find zip file in CWM. SO changed recovery to TWRP.
NKK71 :good:
mrcaligula said:
Phone now up again with tripdroids newest.
It was the location of the push (data/media) that I screwed up before posting here. I pushed to sdcard but never find zip file in CWM. SO changed recovery to TWRP.
NKK71 :good:
Click to expand...
Click to collapse
Good
BTW, /sdcard usually point to /data/media/0, so you should have browsed to the 0 folder in CWM, and then you would have seen the rom.zip

erased my htc one by accident

my kid played with my htc one and now he erased the os completely and i cant seem to get access to my htc one or transfer any files to it
can anyone help me?
i can still get into bootloader or recovery just cant transfer any rom to my phone in order to try and flash it
talmager1 said:
my kid played with my htc one and now he erased the os completely and i cant seem to get access to my htc one or transfer any files to it
can anyone help me?
i can still get into bootloader or recovery just cant transfer any rom to my phone in order to try and flash it
Click to expand...
Click to collapse
one of the following methods in custom recovery:
1) OTG cable
2) adb push <name of rom>.zip /data/media/
3) adb sideload <name of rom>.zip (http://forum.xda-developers.com/showthread.php?t=2317986)
but my computer cant seem to idenitfy my htc one once it is connected even if i can t still get to the bootloader and it does show fastboot usb on it
so i cant figure out a way to transfer a rom file to my phone.
talmager1 said:
but my computer cant seem to idenitfy my htc one once it is connected even if i can t still get to the bootloader and it does show fastboot usb on it
so i cant figure out a way to transfer a rom file to my phone.
Click to expand...
Click to collapse
so when in custom recovery (CWM or TWRP) if you type "adb devices" it doesn't show up?
you on Win8 or 8.1?
maybe easiest to use an OTG cable then.
nkk71 said:
so when in custom recovery (CWM or TWRP) if you type "adb devices" it doesn't show up?
you on Win8 or 8.1?
maybe easiest to use an OTG cable then.
Click to expand...
Click to collapse
im on windows 7 i had latest ar 40.3 installed fine its just my kid played with my phone guessing he wiped os and everything i can still enter recovery or bootloader but i cant seem to have usb conncetion while its connected im using latest twrp 2.6.3.3 dont see any of the options u told me to look for and again cant seem to transfer a zip file to my phone u have any other suggestion?
talmager1 said:
im on windows 7 i had latest ar 40.3 installed fine its just my kid played with my phone guessing he wiped os and everything i can still enter recovery or bootloader but i cant seem to have usb conncetion while its connected im using latest twrp 2.6.3.3 dont see any of the options u told me to look for and again cant seem to transfer a zip file to my phone u have any other suggestion?
Click to expand...
Click to collapse
I'm on Win7, HTC Drivers 4.8.0.002, TWRP 2.6.3.3 and adb works just fine:
Code:
C:\ADB2>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery [COLOR="Blue"]<- yep in TWRP recovery[/COLOR]
C:\ADB2>[B]adb push Android_Revolution_HD-One_40.3.zip /data/media/0/[/B]
3213 KB/s (1157600536 bytes in 351.780s) [COLOR="Blue"]<- yep, it will take 5 mins or so without showing any progress[/COLOR]
C:\ADB2>
nkk71 said:
I'm on Win7, HTC Drivers 4.8.0.002, TWRP 2.6.3.3 and adb works just fine:
Code:
C:\ADB2>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery [COLOR="Blue"]<- yep in TWRP recovery[/COLOR]
C:\ADB2>[B]adb push Android_Revolution_HD-One_40.3.zip /data/media/0/[/B]
3213 KB/s (1157600536 bytes in 351.780s) [COLOR="Blue"]<- yep, it will take 5 mins or so without showing any progress[/COLOR]
C:\ADB2>
Click to expand...
Click to collapse
i tried that i only get a message cannot stat rom.zip :no such file or directory
talmager1 said:
i tried that i only get a message cannot stat rom.zip :no such file or directory
Click to expand...
Click to collapse
1- usually better to copy/paste command prompt output (text, not screenshot) so that we can see what's going on
2- no such file or directory, anything like this:
Code:
C:\ADB2>adb push MyFilenameIsWrong.zip /data/media/0/
cannot stat 'MyFilenameIsWrong.zip': No such file or directory
C:\htcone>adb devices
List of devices attached
FA34MW909469 sideload
C:\htcone>adb sideload rom.zip
* cannot read 'sideload' *
C:\htcone>adb push rom.zip /data/media/0/
cannot stat 'rom.zip': No such file or directory
thats what i get
talmager1 said:
C:\htcone>adb devices
List of devices attached
FA34MW909469 sideload
C:\htcone>adb sideload rom.zip
* cannot read 'sideload' *
C:\htcone>adb push rom.zip /data/media/0/
cannot stat 'rom.zip': No such file or directory
thats what i get
Click to expand...
Click to collapse
if anyone wants to help i got teamviewer im desperate to get this fixed
I can help you over teamviewer if you want

[help] need a dump backup of latest pie update

Anyone successfully updated the pie update ? Your nokia 2.1 ? Please help to dump system and vendor partition please . For development propose . If you don't know how to make dump backup . Ask me i will guide you
Better just capture the link before accepting the OTA.
muralivijay said:
Anyone successfully updated the pie update ? Your nokia 2.1 ? Please help to dump system and vendor partition please . For development propose . If you don't know how to make dump backup . Ask me i will guide you
Click to expand...
Click to collapse
pls tell me how to dump partitions . My phone is running latest update.
Kexar007 said:
pls tell me how to dump partitions . My phone is running latest update.
Click to expand...
Click to collapse
1) connect phone to pc
2) enable adb from developer options
3) now open adb shell in your pc then type this
4( "adb pull /system" then "adb pull /vendor"
5) now you will see system and vendor inside where your adb installed
6) make zip vendor and system folder
7) sent this that's all
muralivijay said:
1) connect phone to pc
2) enable adb from developer options
3) now open adb shell in your pc then type this
4( "adb pull /system" then "adb pull /vendor"
5) now you will see system and vendor inside where your adb installed
6) make zip vendor and system folder
7) sent this that's all
Click to expand...
Click to collapse
Device is not rooted so above steps won't work.
How to root it safely ?
Kexar007 said:
Device is not rooted so above steps won't work.
How to root it safely ?
Click to expand...
Click to collapse
This step work without root . Your device have TWRP ?
Kexar007 said:
Device is not rooted so above steps won't work.
How to root it safely ?
Click to expand...
Click to collapse
Or just try this method https://forum.xda-developers.com/showthread.php?t=1578099
muralivijay said:
This step work without root . Your device have TWRP ?
Click to expand...
Click to collapse
i am getting this error on entering < adb pull /system
adb: error: failed to copy '/system/build.prop' to '.\system\build.prop': open failed: Permission denied
As far as i know there is no root or twrp for this device.
Kexar007 said:
i am getting this error on entering < adb pull /system
adb: error: failed to copy '/system/build.prop' to '.\system\build.prop': open failed: Permission denied
As far as i know there is no root or twrp for this device.
Click to expand...
Click to collapse
Sad. don,t worry i can make twrp for your device. is your device bootloader is unlockable ?
Kexar007 said:
i am getting this error on entering < adb pull /system
adb: error: failed to copy '/system/build.prop' to '.\system\build.prop': open failed: Permission denied
As far as i know there is no root or twrp for this device.
Click to expand...
Click to collapse
Do you have pc ? Connect with me vis TeamViewer
skmaiti2050 said:
Tried, not working, it is due to locked bootloader. Sometimes it shows error as bad system call, if there's a proper method to unlock bootloader in India on Pie, then it's easy.
Click to expand...
Click to collapse
Do you have pc ? if you have Connect with me via TeamViewer

Categories

Resources