Hello all,
I have 5.0.1 stock rooted, with few mods.
So I wanted to backup all my storage because I haven't done it in a while and because 5.1 is coming so just in case something goes wrong I would still have backup.
But, here is the problem:
I don't use MTP because its slow and cuts off all the time(It's not the cable, I tried using other cables same cutting off)
So for a while I have been using adb pull command to pull files with:
adb pull /sdcard/ C:\Backup
or
adb pull /storage/sdcard0/ C:\Backup
All good for now, started to pull but I realized it's not pulling everything, it's just pulling my music, .mp3 files.
So I saw that, but didn't wanted to stop it I let it do it's work.
After 30-40 min cmd window just closed and it didn't pull whole music folder. So I tried it again, same thing, but the windows didn't close and it didn't even said: x files pulled. x files skipped.
I tried copy files using MTP and copy-paste to my backup folder, but it was just stuck on Calculating copying time and that window just closed and it didn't copy my storage, just a few folders.
Anybody know solution?
Bump
zEr0Punk said:
Hello all,
I have 5.0.1 stock rooted, with few mods.
So I wanted to backup all my storage because I haven't done it in a while and because 5.1 is coming so just in case something goes wrong I would still have backup.
But, here is the problem:
I don't use MTP because its slow and cuts off all the time(It's not the cable, I tried using other cables same cutting off)
So for a while I have been using adb pull command to pull files with:
adb pull /sdcard/ C:\Backup
or
adb pull /storage/sdcard0/ C:\Backup
All good for now, started to pull but I realized it's not pulling everything, it's just pulling my music, .mp3 files.
So I saw that, but didn't wanted to stop it I let it do it's work.
After 30-40 min cmd window just closed and it didn't pull whole music folder. So I tried it again, same thing, but the windows didn't close and it didn't even said: x files pulled. x files skipped.
I tried copy files using MTP and copy-paste to my backup folder, but it was just stuck on Calculating copying time and that window just closed and it didn't copy my storage, just a few folders.
Anybody know solution?
Click to expand...
Click to collapse
I hear so many reports that MTP file transfers are unreliable.
I guess I am just a lucky dog or maybe it's because I usually MPT from TWRP instead of Android,
but I've never experienced a single file transfer failure. Push or pull.
If your having issues with ADB pull command not working correctly. Maybe that would explain MPT failures too?
I'd suggest re-doing your ADB drivers if you are certain its not your cable or USB ports.
I FIXED IT I saw some music tracks with weird lettering in it, like: ã€â…
And I renamed it, and it copied the whole storage to my pc
I don't know why it didn't had issues before, because that song has been long time on my N4.
Am just glad I fixed the problem
Related
On a modRC30 G1, I've had no problems with "adb push", and "adb pull" works OK for smaller files (like Browser/Bugreport.apk). But when I try to pull a larger file (like Browser.apk) the local file is created but it does not appear that any data is transferred -- eventually I abort the process. Shell is fine, of course.
Destination in this case is a Vista system.
Any clues?
Thanks.
I know this is an old post, but I don't see an answer here, but I found something elsewhere. http://www.telesphoreo.org/pipermail/g1-hackers/2008-December/000190.html
Maybe it will help someone in the future if this bug still exists.
I've got Vista Home Premium (64bit), and haven't had any problems. I've run adp pull /system/sd/ < local directory > without a problem. It'll pull all of the subfolders and files and then stop when it's done. I don't think I've had any problems. Some files do take longer. I'll doublecheck when I get home.
Im a XP user.
Sometimes i have to reboot or even kill adb.exe prior to performing some adb commands.
I have noticed it needs to be freshly opened for some commands.
Weird but it works
FYI i'm moving this topic to General cause it has no bearing on developing.
Thanks
Somehow I let my ritual of deleting my messages get away from me and now I have an inbox with over 2k messages...and I can delete none of them. Anytime I try my app (both the stock one and handcent) lock up and become non responsive.
Any advice?
So, I got impatient and did a data wipe (i backed up first). It obiviously got rid of my messages. But I decided that I don't like losing everything else, so I tried to restore my backup. No go. It returns something about needing to run it in the console?
The more advice I could get at this point, the better...
I have a fix for this that I helped brock do. I knew I should have made it public. lol. One day too late! I'll post it here in a little bit.
Edit:
So yea I too have noticed that when trying to delete large threads (500+ texts) it will typically FC. Sometimes if I click "wait" enough it will eventually delete, however 1000+ threads never seem to go. This work around will wipe ALL of your threads, however it's much better than wiping your entire phone. The best advice I guess would be to just clear them out every 250 texts or so.
These instructions are for windows. If you have mac or linux then you'll just need to change the parts about pulling the db from the phone.
Code:
mkdir c:\temp
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db c:\temp (this will backup the database to your computer at c:\temp, just in case)
adb remount
adb shell
rm /data/data/com.android.providers.telephony/databases/mmssms.db
reboot
Let me know if you have any problems. Maybe I should add this is a fix in my apps installer program, just like clearing the cache.
Flip, you are a wizard! Thank you!
hello ive got exactly the same problem i have atleast 5k messages in on thread and cant delete them i dont understand what to do with that code you have put up flipzmode can you shed some light on it for me please .
Connect your phone via USB.
Bring up command prompt (or terminal if in osx or Linux)
Change directory to where you're adb is and then input flip's commands.
nvm got it wewt~
and adding this to app installer would be hot~
Permission Denied
I am Getting a "permission Denied" after i Type in the command, "adb pull /data/data/com.android.providers.telephony/databases/mmssms.db c:\temp"..... phone is rooted and i did verify that the phone is pulling up in the bridge... Any help is greatly appreciated
i had to do this: (just put in w/e drive your adb is on if it isnt a H~ more then likely a C drive)
cd H:\android-sdk-windows\tools
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db H:\temp (this will backup the database to your computer at H:\temp, just in case)
adb remount
adb shell
rm /data/data/com.android.providers.telephony/databases/mmssms.db
reboot
all this is complete jiberish to me im not very compouter literate with these codes etc been trying for ages to figure it out and delete these messages its really doing my head in now
cant delete sum msgs how n where do i put that code so i can delete msgs over +1000
sprint hero messages
still cannot get this to work, i have changed the dir to F but i still get errors that says adb is not a rec. internal or ext command
plz help
I had the same problem (about 1600 messages for one contact) I set the phone's display to never turn off so it wouldn't go to "sleep" then I clicked delete on the thread and walked away for about 15 minutes and it eventually deleted. It seemed like the screen turning off and going to the lock screen is what was making the messaging app unresponsive.
riotkid976 said:
Connect your phone via USB.
Bring up command prompt (or terminal if in osx or Linux)
Change directory to where you're adb is and then input flip's commands.
Click to expand...
Click to collapse
What is "Abd"? It is not recognizable in my command prompt!! Please help!!! Thanks!!
I'm adding this in to my kitchen so it can be done with the click of a button. I'll post here when it's released.
Fresh is Sick
Thanks Fresh i definitely that was the easiest way to delete the threads and it worked great. Can't wait for the next best thing you put out there!
SOO glad I found this thread. My girlfriend doesn't even have this phone but this thread has solved her issue with her mms.apk force closing. This needs to be pinned or something.
I did a few things the other day in SDK, messing around with emulators. Now I can't get adb to work.
I keep getting this:
c:\AndroidSDK>adb
'adb' is not recognized as an internal or external command,
operable program or batch file.
This is the exact path I had used in the past, even following the .txt instructions that have worked for me in the past.
Yes in am in debugging, charge only, partition mount showing "unmount /system" like it has in the past. Does this have anything to do with what packages I updated when I was messing with SDK emulator?
duckredbeard said:
I did a few things the other day in SDK, messing around with emulators. Now I can't get adb to work.
I keep getting this:
c:\AndroidSDK>adb
'adb' is not recognized as an internal or external command,
operable program or batch file.
This is the exact path I had used in the past, even following the .txt instructions that have worked for me in the past.
Yes in am in debugging, charge only, partition mount showing "unmount /system" like it has in the past. Does this have anything to do with what packages I updated when I was messing with SDK emulator?
Click to expand...
Click to collapse
Go into the directory and see if there is a file called adb in there...if it's not check the other folders like tools or something like that i'm at work so i don't know the exact name of the directories...
duckredbeard said:
I did a few things the other day in SDK, messing around with emulators. Now I can't get adb to work.
I keep getting this:
c:\AndroidSDK>adb
'adb' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
This is a PC error message stating that the file adb.exe is no longer in the AndroidSDK directory. As zervic mentioned, check and see if the file adb.exe is in that directory.
We're onto something...there is no adb in the AndroidSDK folder. So where do I get this adb? I did the SDK so long ago, like 5 months. Don't remember a thing about it and consider myself lucky that I got it going back then, piecing together youtube videos and several forums.
duckredbeard said:
We're onto something...there is no adb in the AndroidSDK folder. So where do I get this adb? I did the SDK so long ago, like 5 months. Don't remember a thing about it and consider myself lucky that I got it going back then, piecing together youtube videos and several forums.
Click to expand...
Click to collapse
Just reinstall (or unzip if I remember right) the Android SDK into that directory
I started the "update all" in the "installed packages" window. If that doesn't fix it, I shall follow your advice.
Edit: The "update all" didn't fix it.
I found the .zip and extracted it to my c:\AndroidSDK folder, but still a nogo. I also tried copying adb.exe straight to the AndroidSDK folder, still a nogo.
Anything else to try?
When I copied adb.exe to the tools folder and tried adb in cmd prompt, I got "This application has failed to start because AdbWinApi.dll was not found. Re-installing the application may fix this problem"
Are they telling me to uninstall SDK and start over? Like I said, I was lucky to get it going the first time!
Smack myself in the head while I Edit: Found the AdbWinApi.dll in the zip and copied it to the tools folder. Adb runs now and recognizes my device. Later I will find out if I can rm some stock apps from my wife's new phone.
Thanks for your help in this matter.
duckredbeard said:
I found the .zip and extracted it to my c:\AndroidSDK folder, but still a nogo. I also tried copying adb.exe straight to the AndroidSDK folder, still a nogo.
Anything else to try?
When I copied adb.exe to the tools folder and tried adb in cmd prompt, I got "This application has failed to start because AdbWinApi.dll was not found. Re-installing the application may fix this problem"
Are they telling me to uninstall SDK and start over? Like I said, I was lucky to get it going the first time!
Smack myself in the head while I Edit: Found the AdbWinApi.dll in the zip and copied it to the tools folder. Adb runs now and recognizes my device. Later I will find out if I can rm some stock apps from my wife's new phone.
Thanks for your help in this matter.
Click to expand...
Click to collapse
Just so you know that may be a little unstable. It may be worth your while to check the "platform-tools" folder and see if adb is in there, i believe that's where it is by default and it also may be worth your while to run adb from that folder instead of where you jerry rigged it to run. But, on the other hand, it may work the way you have it. You never know. Just figured I'd throw that out there.
While rooting my Nook Color, I came across a recommendation for a free app in the market called adbWireless.
It's AWESOME! No need to use USB or worry about drivers, just install the app, push the big huge button and then type the adb command it shows you to connect to your device. Worked absolutely perfectly on my Nook... haven't tried it on my Aria, but next time I need to ADB something on it, you can bet I will!
did anyone check their tools directory?
ie: C:\android-sdk-windows\tools
LOL
Hi All,
I am in the process of trying to root and install a custom rom on my Nexus 4 4.4.2. I am a new linux user (Linux Mint 16) and my rooting experience is limited. When I try to do an "abd pull /sdcard/ /sdcard/" this is what it says
adb pull /sdcard/ /sdcard/
pull: building file list...
pull: /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1 -> /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1
cannot create '/sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1': No such file or directory
I was able to successfully do an abd backup...
USB debugging is enabled.
I get the same error whether the phone is connected as a Media device (MTP) or Camera (PTP).
any reason why the pull command wont work?
Any help is appreciated!
smokewagon said:
Hi All,
I am in the process of trying to root and install a custom rom on my Nexus 4 4.4.2. I am a new linux user (Linux Mint 16) and my rooting experience is limited. When I try to do an "abd pull /sdcard/ /sdcard/" this is what it says
adb pull /sdcard/ /sdcard/
pull: building file list...
pull: /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1 -> /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1
cannot create '/sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1': No such file or directory
I was able to successfully do an abd backup...
USB debugging is enabled.
I get the same error whether the phone is connected as a Media device (MTP) or Camera (PTP).
any reason why the pull command wont work?
Any help is appreciated!
Click to expand...
Click to collapse
Maybe this will help?
http://www.herongyang.com/Android/adb-push-and-pull-Command.html
Not a big fan of the CLI.
Sent from my Nexus 7 (2013)
Your problem (almost certainly) is that you don't have a /sdcard directory (folder) on your computer unless you created one (there certainly is no default /sdcard in a linux desktop system).
I also don't know how you installed ADB on your computer.
(This should work, otherwise I'll have to change what I wrote below).
Try this:
$ cd ~/Desktop
(This changes you to your desktop directory, if you are not already there)
$ mkdir sdcard
(this will make a new directory called "sdcard" on your desktop, you should see it pop up on your desktop)
$ adb pull /sdcard/ ~/Desktop/sdcard
(should pull the contents of /sdcard from your phone and put them in your newly created directory on your desktop: ~/Desktop/sdcard)
BAM
A little extra basic info for you, and welcome to linux. Soon you have the power to take over the world (ha ha ha... no, actually I'm not kidding at all).
As a basic rule, you should pretty much always be working inside of your home directory, for dealing with your personal files. Your home directory is /home/yourname. On my computers, my home is /home/kirk. My wife's home directory is /home/amy.
"~" is a shortcut for the home directory, for whomever is logged in at that moment.
If you wanted something that is on your desktop, it would be in the directory: /home/yourname/Desktop (~/Desktop). If you wanted to use your documents directory, it is : /home/yourname/Documents(~/Documents).
/home/yourname is where you usually where want to do your stuff.
"/" is the very root directory of the whole system, so you would be better off not creating and doing things like making directories like "/sdcard". That's a bad move. Leave root for system files. Not that you are necessarily going to destroy something by creating a /sdcard directory. But it'll cause you a few hassles.
So, use /home/yourname/sdcard (~/sdcard). Or if you want it on your desktop, (like I did above) use /home/yourname/Desktop/sdcard (~/Desktop/sdcard). Doing things inside of /home/yourname(~) means that you are the owner of that folder and everything in it, not root.
Otherwise you will just be causing headaches for yourself and having to grant yourself root permissions to work with those files (hassle). There's no good reason to do that to yourself. And if you did give yourself root permissions, and screwed up other stuff in the root directory like in: /etc or /dev or /bin, then you will REALLY be irritated.
Stick to your home for your personal files. /home/yourname (~)
Leave "/" or the "root" directory for system files.
You could check my little bash program for adb for Linux too. It's a program to be used in the terminal and it'll pull data off the sdcard etc. You can find it here
Sent from my Nexus 4 running Android 4.4
Thank you all for the help, I'll let you know how it goes.
Do I need drivers for my nexus 4 to work with Linux?
Sent from my Nexus 4 using Tapatalk
smokewagon said:
Thank you all for the help, I'll let you know how it goes.
Do I need drivers for my nexus 4 to work with Linux?
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Try it without any installation of drivers just install adb tools and try the command line or my little tool. If it's not working, check the guides how to set up the usb-rules for adb
Sent from my Nexus 4 running Android 4.4
Thanks, will do.
Sent from my Nexus 4 using Tapatalk
iowabeakster said:
Try this:
$ cd ~/Desktop
(This changes you to your desktop directory, if you are not already there)
$ mkdir sdcard
(this will make a new directory called "sdcard" on your desktop, you should see it pop up on your desktop)
$ adb pull /sdcard/ ~/Desktop/sdcard
(should pull the contents of /sdcard from your phone and put them in your newly created directory on your desktop: ~/Desktop/sdcard)
BAM
Click to expand...
Click to collapse
BAM INDEED! It worked! I am pulling the contents now. Thanks a ton, and thanks for the other basic linux info, I will put it to good use.
Any other tips on using Linux to root android?
Shooooot....
So after the pull command finished, i opened the sdcard directory I created on my desktop, and it was empty....the pull command said this when it was done...
1733 files pulled. 0 files skipped.
2129 KB/s (995292697 bytes in 456.480s)
Any ideas?
Ok, I played with some settings and got it to work, though I don't know why it worked.
USB Debugged is enabled.
The first time I tried to 'pull' i had my USB computer connection set to "Camera (PTP)" - it didn't work.
I tried again changing the USB computer connection to "Media device (MTP)" - it didn't work.
I changed it back to "Camera (PTP)" and my computer recognized it in a different way than the first time (a dialog box popped up asking me what I wanted to do with the pictures that were on the device I had connected, this didn't happen the first time).
I am glad the pull command finally worked, I just wish I knew why.
I guess it's a tough road being a linux NOOB and a (near) Android NOOB. It's good to learn something new and keep my brain young.
Hi guys,
I'm helping a friend pull data from their phone that is bootlooping, but they wanted to get data off their phone first. I'm having a hell of a time trying to use ADB Pull to pull everything in /sdcard/ (or /data/media/0).
It seems when I run a test command say on /sdcard/Download/ it will only pull the folders and skip all the files below.
What the heck am I doing wrong? I thought the command would simply be: adb pull /sdcard/ C:\GS4
It ends up just copying the first Android folder with the .folders and stops. I have no idea why it is acting this way.
I'm not familiar with adb, but is there maybe some line command line that would specify that you want the whole folder?
eggman618 said:
Hi guys,
I'm helping a friend pull data from their phone that is bootlooping, but they wanted to get data off their phone first. I'm having a hell of a time trying to use ADB Pull to pull everything in /sdcard/ (or /data/media/0).
It seems when I run a test command say on /sdcard/Download/ it will only pull the folders and skip all the files below.
What the heck am I doing wrong? I thought the command would simply be: adb pull /sdcard/ C:\GS4
It ends up just copying the first Android folder with the .folders and stops. I have no idea why it is acting this way.
Click to expand...
Click to collapse
Did you give adb permisision when booted fully into android? If not, then it's a waste of time what you are trying to do.
What you could do is flash TWRP and use the build in Aroma file manager to transfer the files that you want.
Yes currently the phone is running twrp 2.5. Im wondering if its an issue with an older version.
Im trying to figure out how to flash a newer version of twrp. Im only familiar with nexus devices so i have to figure out how flash in another version of twrp on this att samsung gs4.
Usually i just need to go into bootloader and fastboot recovery but there seems to be a lot of gs4 variants.
Edit also the phone isnt booting into the system so im attempting to pull while its in twrp recovery. Since i can still adb to it.
Okay, good news everyone. I manage to get TWRP updated to 3.0 by using this method: http://forum.xda-developers.com/gal.../jdcteam-twrp-touch-recovery-3-0-0-0-t3312115
Since the TWRP 2.5 was functioning properly, I was able to ADB push the zip file over and flash the new TWRP 3.0. The great thing about 3.0 it seems is that it will mount as MTP if you have it in recovery mode and connected to Windows. So now I don't even have to do adb pull anymore, a simple drag and drop will do.