Can I push a file via fastboot? - AT&T, Rogers HTC One X, Telstra One XL

I accidentally wiped by SYSTEM partition (ouch) but my nandroid backup is not stored on the phone. I know in TWRP you can mount USB storage and transfer the file, but I heard this is risky (corruption) compared to the adb/fastboot method.
So I have now connected my phone via fastboot but I can't seem to find a command that will push my android backup files to the SD card. Can someone help? Thanks!

Your better off doing it through mass storage
AdB is alot slower
You could do adb push "file" /sdcard/
but it would be slow like I said and you would have to know the directory names to push the nandroid
My suggestion would be to push a aosp ROM just to get it flashed and booted then transfer the nandroid
Sent from my One X using Tapatalk 2

Edit:
NVM: got it working. Thanks!

Related

Need help backing up data with ADB on my captivate (broken screen)

[resolved]
I have a broken (completely black) screen on my captivate Im trying to back up all my files from the INTERNAL memory. I can't see the screen so obviously I can't mount the phone to view the files on my PC. I have gotten 'pull /system/ /local/' to work however when I try something like 'pull /data/ /local/' it says "pull: building file list... 0 files pulled. 0 files skipped."
Basically, how do I use ADB to get all of my files to my computer? Help is certainly appreciated. After this I will probably reset the phone and then maybe sell it as is. Not too sure.
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
diablo009 said:
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
Click to expand...
Click to collapse
I do not have any type of backups apps or anything like that on the phone.
I have an external sd card however Im not sure how thats different than using adb to copy the files from the internal memory to my computer. I am fine with using pull but maybe im using the wrong directory name for my personal files?
Have you tried qtadb or droidexplorer. Would be easier imo.
newter55 said:
Have you tried qtadb or droidexplorer. Would be easier imo.
Click to expand...
Click to collapse
That requires a rooted phone right? My phone is currently not rooted and I don't know if I would want to. How come I cant just use the adb pull command on the folder with my data in it?
edit - i might have found a command that works, i will update when finished.
ok this worked for me: 'adb pull / d:\backup\'
thanks everyone for your help.
Yeah. Assumed you were rooted sorry. Just thought that way you could see everything and point and click.
So I have a similar situation to this only I have a phone that isnt rooted and usb debugging isnt enabled. However I know the phone boots on, and I can also get into recovery mode where I am able to ADB to get a basic shell, and see the device but that is about it. I feel that if I could enable usb debugging thru recovery mode I might be able to mount the /sdcard and then pull files from there. anyone got any ideas if I could get a reboot with usb debugging enabled from recovery or maybe just a command that I could use in shell via recovery?? Please Please lol. I have a strong feeling i might have hit a wall.
http://forum.xda-developers.com/showthread.php?t=1164598

Wiped Internal sd card help........????

Ok I wiped my internal memory on my htc one s , I can boot into TWRP ive tried to enable adb sideload mode but keep getting a FAILED message in red when i try to swype to activate sideload mode , ANY THOUGHTS?????? Im using twrp v.2.5.0.0
Can you adb push to your phone? I've just been where you are, side load didn't work. Had to use different pc to ensure adb was working correctly. After that pushing files to the sd card was easy. Do you currently have a working rom on the phone?
Sent from my One S using Tapatalk
Frankyg said:
Can you adb push to your phone? I've just been where you are, side load didn't work. Had to use different pc to ensure adb was working correctly. After that pushing files to the sd card was easy. Do you currently have a working rom on the phone?
Sent from my One S using Tapatalk
Click to expand...
Click to collapse
No rom on the phone only TWRP recovery ive tried adb sideload on my laptop and another laptop nothing is working any help would be great thanks !
the error im getting when trying to push via adb is "adb is not recognized as internal or external command, operable program or batch file"
tybo971 said:
the error im getting when trying to push via adb is "adb is not recognized as internal or external command, operable program or batch file"
Click to expand...
Click to collapse
if I type in adb devices in the window it does see my phone, but when i type the push command it scrolls a bunch of text in the command window which only takes about 3 seconds then it stops and doesnt put the rom onto my phone.....................????
ok think i got it, i did a format of the internal sd card through my pc now I can see the internal memory can anyone suggest a good S ON rom for this phone...thanks
tybo971 said:
ok think i got it, i did a format of the internal sd card through my pc now I can see the internal memory can anyone suggest a good S ON rom for this phone...thanks
Click to expand...
Click to collapse
Source rom works with s-on

Confused about (internal) storage

Hello,
I am little confused about phones storage. Hope someone can help me.
OK, When I first configured my phone I installed TitaniumBackup and restored all my apps and data from my former phone HTC Sensation. Then I copied Sensations SD Card data to Nexus' internal storage via Windows. For example also the folder "WhatsApp".
When I connect the phone to my PC I can see its internal storage. In the folder "WhatsApp/Database" I can find some files like "msgstore-2014-01-17.1.db.crypt" or "msgstore-2014-01-16.1.db.crypt".
Now I open ES FileExplorer, go to device/sdcard: there I can see mainly the same folders I copied from Sensation to Nexus. WhatsApp is also there. When I look inside I can't find any files like "msgstore-2014-01-17.1.db.crypt" I see on "internal storage" via PC. but I see others like "msgstore-2014-01-24.1.db.crypt". What?! I don't understand that.
OK, next Test: Via PC I copy a file named 123test.txt to the Whatsapp Folder. Again I look via ES FileExplorer on the phone, what happens. Ola, I can see 123test.txt in device/sdcard. But not e.g. "msgstore-2014-01-17.1.db.crypt". Aha... strange.
And while writing this question I had to copy the filename of "msgstore-2014-01-17.1.db.crypt" from Windows explorer to paste it here. And now I can see also "msgstore-2014-01-17.1.db.crypt" in device/sdcard on my phone, but not the ohers like "msgstore-2014-01-16.1.db.crypt". I touch a file in Windows Explorer on "internal storage" and after that it's copied to device/sdcard?
This can't be normal?! That's zero transparent... and weird...
Can someone please clear it up for me?!
THANKS!
dbsoundz said:
Hello,
I am little confused about phones storage. Hope someone can help me.
OK, When I first configured my phone I installed TitaniumBackup and restored all my apps and data from my former phone HTC Sensation. Then I copied Sensations SD Card data to Nexus' internal storage via Windows. For example also the folder "WhatsApp".
When I connect the phone to my PC I can see its internal storage. In the folder "WhatsApp/Database" I can find some files like "msgstore-2014-01-17.1.db.crypt" or "msgstore-2014-01-16.1.db.crypt".
Now I open ES FileExplorer, go to device/sdcard: there I can see mainly the same folders I copied from Sensation to Nexus. WhatsApp is also there. When I look inside I can't find any files like "msgstore-2014-01-17.1.db.crypt" I see on "internal storage" via PC. but I see others like "msgstore-2014-01-24.1.db.crypt". What?! I don't understand that.
OK, next Test: Via PC I copy a file named 123test.txt to the Whatsapp Folder. Again I look via ES FileExplorer on the phone, what happens. Ola, I can see 123test.txt in device/sdcard. But not e.g. "msgstore-2014-01-17.1.db.crypt". Aha... strange.
And while writing this question I had to copy the filename of "msgstore-2014-01-17.1.db.crypt" from Windows explorer to paste it here. And now I can see also "msgstore-2014-01-17.1.db.crypt" in device/sdcard on my phone, but not the ohers like "msgstore-2014-01-16.1.db.crypt". I touch a file in Windows Explorer on "internal storage" and after that it's copied to device/sdcard?
This can't be normal?! That's zero transparent... and weird...
Can someone please clear it up for me?!
THANKS!
Click to expand...
Click to collapse
Maybe it's because I haven't finished my coffee yet, but I reread your post a few times and only sort of understand what you are trying to figure out...
Since the Nexus doesn't have external storage, then the Internal Storage you see in Windows is /sdcard. It sounds like maybe either the database files from your Sensation might not have transferred over to the Nexus correctly, or the older file maybe was rewritten with the version of the app on the Nexus? Or if it just doesn't show up when you copy the file to the phone while it is still plugged in, then it might not show up in a file manager on the phone until you unplug it and then the phone rescans the media to sync the contents so file managers can display everything. This is common behavior with the MTP set up. Let me know if I am not on the right path with the info and I'll see if I can help clarify more.
es0tericcha0s said:
Maybe it's because I haven't finished my coffee yet, but I reread your post a few times and only sort of understand what you are trying to figure out...
Since the Nexus doesn't have external storage, then the Internal Storage you see in Windows is /sdcard. It sounds like maybe either the database files from your Sensation might not have transferred over to the Nexus correctly, or the older file maybe was rewritten with the version of the app on the Nexus? Or if it just doesn't show up when you copy the file to the phone while it is still plugged in, then it might not show up in a file manager on the phone until you unplug it and then the phone rescans the media to sync the contents so file managers can display everything. This is common behavior with the MTP set up. Let me know if I am not on the right path with the info and I'll see if I can help clarify more.
Click to expand...
Click to collapse
Hello es0tericcha0s,
what I do not understand is: Why do I see on my PC other files then on my phone?
Why I looked at that: On phones with SD Card I backuped all my SD Card before ROM changes. Then I just copy my backup back to SD Card. But now I am not sure what to backup. If I backup my internal storage via PC I have definitily not the current data in it!
I don't understand that behaviour?!
dbsoundz said:
Hello es0tericcha0s,
what I do not understand is: Why do I see on my PC other files then on my phone?
Why I looked at that: On phones with SD Card I backuped all my SD Card before ROM changes. Then I just copy my backup back to SD Card. But now I am not sure what to backup. If I backup my internal storage via PC I have definitily not the current data in it!
I don't understand that behaviour?!
Click to expand...
Click to collapse
I'd have to go with good old buggy MTP. I've seen lots of these 'ghost files' in Windows explorer with my previous phone (GNEX). If both file manager apps and for instance adb shell do not show files that Windows explorer via MTP does show, you can safely assume Windows explorer is wrong.
Tip: for a more secure data transfer, copy your /sdcard content from your PC to the N5 using the adb push command. I believe there are even GUIs for adb nowadays if you don't like working on the command line.
Guys... I still do not understand that thing...
I installed CM11. Copied via Windows Explorer my Titanium Backup folder to internal storage. Nothing else. Then I restored WhatsApp to see what happens. Everything worked fine. Whatsapp is OK but has no media file I sent or received. OK, I can copy them from my backup to internal memory. BUT I CAN'T SEE ANY WHATSAPP FOLDER in my Windows Explorer. But in my phone file explorer I can see it!
This can't be normal!
How does one can make a consistent backup of it's phone with that behaviour?!
EDIT: After I rebooted the phone I can also see the WhatsApp folder in Windows... :/
Like I said: MTP is buggy. For reliable file transfers via usb use adb push and pull commands.
Sent from my Nexus 5 using Tapatalk
This is sooo strange...
I made a TWRP backup. Then I used adb pull /sdcard/ /sdcardbackup to copy my storage with my TWRP backup to PC. But I can't find the backup on my PC after adb finished the copy job. Where is it? I searched with the explorer on the phone:
/sdcard/ -> I am redirected to /storage/emulated/legacy - this view is identical with my backup on pc
/storage/sdcard0/ -> I am redirected to /storage/emulated/legacy - same as above
/storage/emulated/ -> There are folders 0, legacy and TWRP and there I found my backup.
Shouldn't I find TWRP backups on my sdcard, storage, emultade, legacy or I don't know how the place is called?!
OK, I try to copy thios TWRP backup to my PC:
- via PC: I can't, because I see only the "internal storage"
via adb: I can't, too: E:\Nexus 5\android-sdk-windows\platform-tools>adb pull /storage/emulated/TWRP /TWRPbackup DOES NOT WORK
BUUHUUUUUUUUUU unbelievable
How do you check where your data is? I don't...
You used a relative path for the destination folder, meaning that folder was created on the location where your adb executable is. Look for it there or use an absolute path for your destination folder.
Sent from my Nexus 5 using Tapatalk
You're supposed to adb pull from /sdcard not /storage
If you didn't change directory (cd) in cmd / terminal, then your pulled data is in the directory that opens by default in cmd. Open cmd to see what path you let it default to. Often c:\users\username
Don't forget if you're in windows, you need to
adb pull /sdcard/source \destination
And linux
adb pull /sdcard/source /destination
Sent from my Nexus 5 using Tapatalk
dbsoundz said:
This is sooo strange...
via adb: I can't, too: E:\Nexus 5\android-sdk-windows\platform-tools>adb pull /storage/emulated/TWRP /TWRPbackup DOES NOT WORK
.
Click to expand...
Click to collapse
Hello,
copy command should be ok. hoever. Why is TWRP backup saved to location /storage/emulated/TWRP, not on "internal memory"?
Really guys... this can't be normal. is there something wrong with my phone or ROM?!
dbsoundz said:
Hello,
copy command should be ok. hoever. Why is TWRP backup saved to location /storage/emulated/TWRP, not on "internal memory"?
Really guys... this can't be normal. is there something wrong with my phone or ROM?!
Click to expand...
Click to collapse
No, it's something wrong with you. I'd be easier to copy the backup to the phone memory visible to a PC using a root explorer and then copy it to the PC that way if you can't get adb working

Phone not recognised by PC

Hello,
So I made the mistake of wiping my sdcard partition, so I don't have the .zip with the ROM on the phone's memory.
The ROM I currently had was deleted aswell when I formatted /system/. Recovery works, but because I don't have an external SD card, I can not put anything on the phone memory.
So now, I can not push the zip file with adb because my Moto G is not recognised, even though I installed all the drivers (in AP Flashboot Mode) it says that the USB is connected, but "adb devices" shows nothing.
So in a few words, phone memory is empty, it's not recognised by the PC so I can not push the .zip with adb sideload.
have you tried to connect an USB stick (in cwm or TWRP)?
Probably you can mount it and install a zip.
a.lex said:
have you tried to connect an USB stick (in cwm or TWRP)?
Probably you can mount it and install a zip.
Click to expand...
Click to collapse
I found a version of the Universal ADB Drivers, installed them and the adb sideload worked.
Let this be a lesson for others with phones that don't have external SD cards - NEVER delete the ROM from your phone's internal memory
FIXED
Are you using Win8 or Win7? I have read posts from people that had problems using fastboot commands in Win8.

Looking for a way to to upload a custom ROM zip to my phone.

Hi.
I have the Xiaomi Mi note 10 and i am trying to install a custom ROM.
However the sdcard is encrypted and TWRP doesn't seem to be able to decrypt it since it's all gibberish there, even after format/factory reset, so i cannot just upload it there from my PC.
I tried to ADB sideload it but it fails instantly writing "total xfer: 0.00x"
I also tried to ADB push it on /sdcard/ or on /sideload/ but it fails again after completes 100% writing "No space left on the device"
ADB push works with smaller files tho.
I don't have an OTG USB cable at the moment.
Anything else i can try so i can install that custom ROM?
Pushing a ZIP to /sdcard/Downloads should always be possible unless storage space isn't sufficient.
Hence make room on /sdcard.
jwoegerbauer said:
Pushing a ZIP to /sdcard/Downloads should always be possible unless storage space isn't sufficient.
Hence make room on /sdcard.
Click to expand...
Click to collapse
Somehow it worked now that i created a downloads folder in the sdcard and copied it there.
Really weird.
Thanks.

Categories

Resources