Hey Guys,
I was running lineageos (7.1.1) on my MI5 and while trying to root the phone something went wrong and the phone got stuck in a boot loop. At first I was having ADB connection issues but finally got it working with the correct drivers and booting into twrp. I connected the phone to my computer but the storage is acting really strange.
It takes forever to load the phones storage in windows and when I try to copy files to the storage i got the copy prompt but it never progresses and eventually times out without an error. I've tried using ADB sideload and ADB push commands to get an image onto storage so I can try to flash it but both fail (sideload just hangs at serving: 0%). kind of seems like a write permission issue or something but I'm pretty stumped. Any Ideas?
f:\android\platform-tools>adb sideload lineage-14.1-20170228-nightly-gemini-signed.zip
serving: 'lineage-14.1-20170228-nightly-gemini-signed.zip' (~0%) * failed to read command: Connection reset by peer
and
F:\android\platform-tools>adb push lineage-14.1-20170228-nightly-gemini-signed.zip /sdcard/.
adb: error: failed to copy 'lineage-14.1-20170228-nightly-gemini-signed.zip' to '/sdcard/./lineage-14.1-20170228-nightly-gemini-signed.zip': no response: Connection reset by peer
also when I do mount the storage to my pc, I can create folders and delete files, just cant seem to copy files over usb...
maybe try copying files using linux machin ..
Related
I just loaded a new version of CM 10.1 on my sdcard ready to flash. I rebooted in TWRP, did the necessary wipes, then went to install my new ROM. Surprise, using Safari on Mac, it automatically opened the downloaded .zip file to a folder I didn't realize this as I was transferring, so now I have the extracted folder for my ROM, but the system can apparently only read .zips. So I am now without an OS. And no, I don't have a backup on the card. I just transferred it to my Hard Drive a few days ago to save on storage. But now I am VERY clear why it should stay on the card. Stupid.
I noticed that TWRP has a USB mount feature so I could copy over the proper .zip. But it won't mount on my computer (Mac or PC). In the console I see "E:Unable to locate volume information for USB storage mode." I tried getting into it via ADB, which worked before, but now it does not even list my device. Tried ADB side load, and it just never starts up on the Kindle.
I could never get fastboot to detect the device in the first place, so I haven't even bothered with any of that.
What can I do? All I want is to get my .zip back on the kindle. Or is there a way to .zip the extracted folder back into a .zip on the kindle itself with command line? Is there a way to install folders instead of .zips?
I've scoured several similar posts but nothing seemed to be resolved, or their fixes depending on ADB working.
Please help!
There isn't a way to re-zip a directory within Android in such a way that it can be flashed in recovery. You'll need to sort out your driver issue in Windows, or use the Mac (better choice anyway) to 'adb push' a new ROM to your sdcard.
Did you happen to wipe your internal storage before this happened?
soupmagnet said:
There isn't a way to re-zip a directory within Android in such a way that it can be flashed in recovery. You'll need to sort out your driver issue in Windows, or use the Mac (better choice anyway) to 'adb push' a new ROM to your sdcard.
Did you happen to wipe your internal storage before this happened?
Click to expand...
Click to collapse
When I did my wipe, I just followed the same instructions as when I did my original flash. Wiped system first, and then did the Factory Reset which includes data, cache and dalvik.
I tried plugging in the Kindle to my Mac while TWRP had the USB mounted, but nothing. I was just using the Android File Transfer for Mac that Amazon originally recommended when I first got it. That does not recognize anything now. Is there another way to access a Kindle on a Mac? Can you get Android SDK and run from a Mac Console command line? I thought all the commands were only for Windows. Does the Mac work better?
For my PC, I had the ADB drivers working fine before this. When I plug in now, I hear the windows SFX and it shows up in device manager as "Other Device" but listed as a Kindle. But the driver doesn't work, and it can't find drivers when I search. The Kindle used to show up as its own device with Android ADB under it. That never shows up anymore, probably why I can't do ADB commands.
But I think the computer is fine, because when I try to reinstall those drivers, it says they are already there. I'm guessing the Kindle itself is not allowing it to be recognized because there is no way to "enable ADB" in its settings since the OS is gone. I was hoping TWRP would have this built in.
I'm not sure why ADB Sideload doesn't work. It just sits there forever trying to start. I wish I could just push a new .zip that way. It's driving me nuts trying to figure out why nothing ADB works after the wipe.
Thanks
I downloaded the SDK for Mac and ran the ADB commands through Mac Terminal — it recognized the device! I never would have thought to try the Mac. Not sure why it worked differently, but it did. I was able to push a new ROM .zip through ADB and all is well.
Still not sure why I couldn't get the TWRP USB mount to work, but I learned my lesson, always keep a backup ON-CARD.
Thank you!
jhonny0099 said:
I downloaded the SDK for Mac and ran the ADB commands through Mac Terminal — it recognized the device! I never would have thought to try the Mac. Not sure why it worked differently, but it did. I was able to push a new ROM .zip through ADB and all is well.
Still not sure why I couldn't get the TWRP USB mount to work, but I learned my lesson, always keep a backup ON-CARD.
Thank you!
Click to expand...
Click to collapse
I assumed you already tried it on the Mac. But yeah....Mac is waaaaaay better at detecting the Kindle Fire than Windows.
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
I got my phone unlocked and rooted. I installed CWM than I attempted to S-OFF.
First attempt - realized I had 2 problems.
1) I had HTC Sync Manager Installed
2) MY PC cmd/adb is wonky. It was constantly unable to recognized internal/external command. I checked my enviormental variable path and all that jazz and didn't find no solution. (WIN XP) I tried shift-right clicking on the folder and I do not have that option. I attempted to install a program that does that shift-right click feature and it didn't work. I went to Start>Run>cmd and input the entire path and it didn't work. I tried dragging the platform-tools folder into the cmd and it didn't work, HOWEVER when I dragged the adb.exe file on the cmd it ran.
So I began following the instruction.
a) (((Drag adb.exe into cmd window))) [creating the path/director] devices
[adb deamon server starts than device is found]
b) (((Drag adb.exe into cmd window again))) reboot
[phone reboots]
c) (((Drag adb.exe into cmd again))) wait-for-device push firewater /data/local/tmp
[different results from file not found, error command, wrong syntax, unrecognized batch
I attempted to do the same above with firewater.bin - file not found, doesnt exsist type of error.]
ragequit
ROUND 2
re-read guide and realize I had HTC sync manager installed. So I uninstalled it.
During this go around - it seemed to have gotten worse, multiple errors and headaches, I did click YES to everything during the htc syn unintallation so I might have uninstalled the drivers (it showed it was there, but the installer image looked blanked instead of the typical exe image). But I eventually I managed to push the firewater normally before failing on the adb shell command. I probably have pushed this file into data local tmp MULTIPLE TIMES
ragequit after many attempts
ROUND 3
uninstalled all HTC from my PC, unplugged USB, revoke usb priv, reconnect phone to pc - installed manager, waited 30 min, uninstall only the manager and kept the drivers and this time it looked normal and not a blank image. Had to repeat the same steps as Round 1, constantly moving my adb.exe into the cmd window.
a) (((Drag adb.exe into cmd window))) [creating the path/director] devices
[adb deamon server starts than device is found]
b) (((Drag adb.exe into cmd window again))) reboot
[phone reboots]
c) (((Drag adb.exe into cmd))) wait-for-device push (((drag firewater.file into cmd))) /data/local/tmp
[installed]
[During this time, my phone is going crazy - mounting/dismounting, htc manager trying to install, the stupid sync folder pop up multiple times..... Several times, I just ignored it and tried to continues, other times I wait until it's stable.. but at this point, I am not sure if I ****ed up]
d) (((Drag adb.exe into cmd))) shell
[The command went through but my phone never recieved a shell prompt as I have seen in a youtube video, I continued anyhow]
e) something something m8: [already there after I hit enter from shell command] su
[During, Before and/or After - my phone is still mounting/dismounting sometimes, I have waited patiently at times, and other times, I would try rush through all of this step impatiently, I was in hour 4 at this time, frustrated]
f) su
g) Here is where I had more issues, after SU, sometimes the pre-installed path/command is there for me to input chmod 755, sometimes it goes back to my default C:document.\etc\etc and I would either start from a or attempted to run adb shell, while my phone harassing me with the mount/dismount.
sometimes, I am able to type in chmod 755 /data/loc before I get booted back to the C:docu/etv/etc
other times it goes through fine but does that same ****.
ragequit
Round 9,000 (today)
I was calm, I waited until the mount/dismount stopped and it showed my phone was connected. I've done this 2 ways (htc syn usb mode and mount as disk drive)
I manage to get all the way to the end, typed in "Yes".... WHELP, can not install... T_____T
*epic ragequit*
So now, I am sure, I may have corrupted or dmg my data/local/tmp folder?????
What I am curious now is:
A) Can I do a Factory Reset?? Will I loose my Root and/or re-lock bootloader? Soft-brick?
B) If I can't Factory Reset, what can I do?
C) I also tried to OTA the system update and CWM is tellling me installation abort (no error code)
Also, I ran my Titanium backup to see if that would fix any corruption I may have done during the adb fiasco, attempted to install the OTA and still failed/aborted.
I just want to go back to Factory and use twrp/weaksauce or as I read, use another ROM (forgot whom) to get S-off as it worked for others. I can't Flash the current Sinister/Stock Rom since they are on the new 1.54.651.8 while I am on 1.12.xx.x....
frustrated and ready to ragequit again lol
So trying to get TWRP manually on my VS980 didn't work. Trying to put CWM back on it then borked the phone. I'm stuck at the LG logo.
I'm on adb and have found the following:
1. There is no shell on the phone. So any chance to access internal commands seems a long shot.
"- exec '/system/bin/sh' failed: No such file or directory (2) -"
2. adb can't remount /system as R/W. This is preventing me from doing just about any pushing/recovery flashing.
"remount failed: Success"
3. I'm on a mac... no flashing tools seem to exist. The one I found needs adb and I get to see the same errors, just in a different setting.
4. I can supposedly use adbd as root, but that doesn't afford me much.
5. I can confirm that a device ID shows up with adb devices command.
I just need to get a recovery back on this phone. I just want it to live again. Any hope? Any ideas?
ddzado said:
So trying to get TWRP manually on my VS980 didn't work. Trying to put CWM back on it then borked the phone. I'm stuck at the LG logo.
I'm on adb and have found the following:
1. There is no shell on the phone. So any chance to access internal commands seems a long shot.
"- exec '/system/bin/sh' failed: No such file or directory (2) -"
2. adb can't remount /system as R/W. This is preventing me from doing just about any pushing/recovery flashing.
"remount failed: Success"
3. I'm on a mac... no flashing tools seem to exist. The one I found needs adb and I get to see the same errors, just in a different setting.
4. I can supposedly use adbd as root, but that doesn't afford me much.
5. I can confirm that a device ID shows up with adb devices command.
I just need to get a recovery back on this phone. I just want it to live again. Any hope? Any ideas?
Click to expand...
Click to collapse
Get a friend with a PC to let you run flashtools on it. There's no fastboot on the phone to push a recovery by default.
Hello, i'm trying to backup SDCARD0 using ADB, because MTP and MSC file transfer doesn't work correctly under Windows 10.
I tried this command adb pull /storage/sdcard0/ C:\backupz1
But it keeps telling me /storage/sdcard0/ doesn't exist ?
I also tried emulated, but that didn't work too.
Any suggestions ?
Somehow i got it working after multiple tries, but i still like to know why MSC can't copy files from the device to my computer.