adb pull and adb push fail when filename contains punctuation characters like */\":?
Hello, I've encountered a major error with adb push and adb pull. It makes trying to backup my phone's data (the internal 'sdcard' drive) to my Windows computer an absolute nightmare. Apparently adb can't handle punctuation characters such as */\":?|<> if they're in a filename. If one of these files is encountered while doing an adb pull or adb push, the operation fails entirely and gives no information about what has been backed up or is yet to be backed up.
As you might imagine this issue makes backing up the phone data (like the 'sdcard') almost impossible. Imagine being gigabytes into a transfer and then having it just stop with no opportunity to resolve the issue, resume the transfer or an indication of what's left to backup.
The only resolution I've found is to attempt to search out and eliminate these characters from file names before starting the transfer. Needless to say it's a very poor solution and often results in many, many failures.
Does anyone have a way to resolve this error / failure when doing an adb pull or push WITHOUT searching / removing these characters from filenames first?
cognitivedissonance said:
adb pull and adb push fail when filename contains punctuation characters like */\":?
Hello, I've encountered a major error with adb push and adb pull. It makes trying to backup my phone's data (the internal 'sdcard' drive) to my Windows computer an absolute nightmare. Apparently adb can't handle punctuation characters such as */\":?|<> if they're in a filename. If one of these files is encountered while doing an adb pull or adb push, the operation fails entirely and gives no information about what has been backed up or is yet to be backed up.
As you might imagine this issue makes backing up the phone data (like the 'sdcard') almost impossible. Imagine being gigabytes into a transfer and then having it just stop with no opportunity to resolve the issue, resume the transfer or an indication of what's left to backup.
The only resolution I've found is to attempt to search out and eliminate these characters from file names before starting the transfer. Needless to say it's a very poor solution and often results in many, many failures.
Does anyone have a way to resolve this error / failure when doing an adb pull or push WITHOUT searching / removing these characters from filenames first?
Click to expand...
Click to collapse
did u find any solution
Related
Ok, I know I gotta PM mods here but I thought I'd make another topic about it since there might be more ppl out there knowing how to fix my problem. Feel free to delete it, or tell me to remove the topic and I'll pm any of you one by one, as you desire.
My Windows Mobile went crazy. Its a known bug but I just can't seem to fix it.
Already made another topic about it, since it occurs to a lot of ppl using the HTC Touch Diamond, but it might be a common Windows error, and not just to ppl using the listed device.
The symptoms:
- Access is denied error message when trying to copy files to the phone using ActiveSync.
- Access is denied error message when trying to delete any files or copy files between folders and/or the storage card on the phone.
- You do not have permission to download that type of file in Internet Explorer when trying to download any files.
- No programs show up in Remove Programs.
- Installation Unsuccessful error messages when trying to install any applications.
- ActiveSync will fail with an error message that you should start the troubleshooter.
And the solution:
Code:
- Please follow the exact steps listed below.
- Soft Reset is done with the stylus, if you press it in the little round hole that is next to the USB port of HTC touch (the other oval hole at the other side of the USB port is the microphone. Do not stick your stylus in that hole)
- Power off is done when you keep the power button (on the top) pressed and you see a message from windows, asking if you want to power off your device.
The procedure to fix and recover from this amazing bug.
1) soft reset device
2) Start / Office Mobile / Word
3) Create a new document (click on New)
4) type some text (just plain text - no formatting - it was 'plain text document') just a few characters
5) File / Save As...
6) I have selected type 'Plain Text'
7) It asked me whether I want to save it at 'Word document instead' - I clicked No.
8) I have powered off the device and did soft reset
9) Start file explorer, find the file (it was in My Device / My Documents), click on it - it opens Word again.
10) Add some formatting (I have selected part of text and changed font to bold)
11) Close Word - it asked whether to save it in Word format - this time I said Yes
12) Power-off the device and press soft reset again
Now you can find this anywhere on the map, with a lil bit of google skills, however .. its just not working for me. I did the exact things listed, and even changed some small parts of it during the 10 times I tried. And yet my problems aren't solved. I'm wondering, quite desperately, if theres anyone out there that might actual know what could have caused it or fixes it. I'm sooo not looking into a format/reinstall.
Thanks in advance
is active sync giving you an error code (a number)
Thank you for your fast response. Sync isn't giving an error code or number. Baiscally what the error messages tells me is, free translated:
"Synchronization cannot be completed successfully. Reconnect your device and try again. If the problem persists, see the Microsoft ActiveSync troubleshooter in Microsoft ActiveSync help on your desktop computer"
but in Dutch. All it leaves me to do is press OK and start a sync checkup, which doesn't find anything but the usual Outlook "problem" (I don't have it installed, nor do I wan't to sync email with it).
joel got an idea ?
Waited half a day, plox joel, if you got any idea help me out. I'm afraid I gotta hard-reset, but I wanna avoid it. Any help is welcome ...
No clue?
I'd like to bump this once more, since theres been some interest in it but now it's just forgotten
honestly, the best way to solve these types of problems is a hard reset.
the time you spend in here / searching in google / trying stuff is much longer than what you'd spend hard reseting and installing stuff.
i also suggest you get a system backup app so you won't have to reinstall and copy and sync every time you need to hard reset.
I know thats the easy solution, and I will hard reset my device, but only ONCE I got my photos contacts and texts off it. Especially the photo's are quite important to me.
I just wanted to throw a comment on this automated root method for the TF300:
http://forum.xda-developers.com/showthread.php?t=1706588
It worked, but I had to play a little bit with the batch file. I had a previous ADB setup from rooting phones over time, so I'm familiar with that, but what I noticed is:
1. It was having trouble finding files - to counter this, updated the bat file to "push" files from C:\blah\blah\file instead of just file. This may be painfully obvious to some, but I don't do this very often, so took me a little while to find
2. Same thing for installing superuser.apk - change that file to be C:\blah\blah\file wherever you unzipped the content from.
3. Noticed that even though it was sending commands to "wait-for-device" it wasn't doing so properly. Windows detected it, but it was still in the "ASUS spinning circle" phase - the batch file was trying to send commands in this phase, and it was failing. To counter this - after every "adb reboot" command listed in the file, I put a "TIMEOUT 60" line in there, which as you can guess, causes the batch file to hold for 60 seconds before continuing, which was just enough time to allow for the main screen to pop up and allow for processing.
Once the "root check" apk I use to verify root was given superuser access (in the market by joeykrim), it turned green, and I turned happy )) Thank you so much for an easy, automated way to make this happen. I'm not interested in unlocking / bootloaders, etc at this time, but rooting I was, and this did the job.
I incidentally broke the digitizer connector on the motherboard of my Nexus 10 tablet. I can still power on the tablet, but cannot do anything since the touchscreen is not working. I asked around a couple of repair stores, and was told that there is no easy fix for the connector. My question is: buying another connector or soldering the broken one would not be feasible?
If unfixable, I would like to pull out the data from the tablet, and move it to another device. Since I can't use TitaniumBackup in this case, how can I extract each specific app and the data associated with that app so that I could transfer it to a phone or another tablet via shell command adb? I could run 'adb backup...' (actually this probably can't be done because it requires a touchscreen confirmation!), but with that I don't know how to transfer the backup to another device.
My Nexus 10 is rooted, so some of apps are rooted and others are non-rooted, and the rooted apps seem to be anywhere on the phone. Also with TitaniumBackup, I know how to transfer the app and its data to another device. In this case, after pulling out the data, how do I move it to another device? For example, I notice that some apps are stored under /data/data/ with multiple directories such as databases/, lib/, files/, shared_prefs/, etc. Can I directly move the whole directory tree over to another device?
I actually only want to pull out a few apps plus their data, so I don't want to pull out or backup everything on the tablet. Another question: the rooted apps seem to be installed as /data/app/com../base.apk. I tried to pull out base.apk, but it can't be installed properly on another device with adb (error: /system/bin/pm[6]: app_process: not found).
Thanks in advance!
Dropped my pixel and now the screen doesn't turn on, i am assuming it is responding to touch since i can guess where the numbers are and enter my passcode and i don't feel the vibrations on the finger print sensor over and over. Only thing i care about are the pictures on the phone. Is there any adb commands to put the phone into file transfer mode? i have tried for hours guessing where it is on the screen but just can't get it, or is there any affordable software that will get the files for me? Phone is not rooted and bootloader locked
Idk about a command to put it into transfer mode, but you could always "adb pull" them, they should be under the DCIM folder if they were photos you had taken.
davehasninjas said:
Idk about a command to put it into transfer mode, but you could always "adb pull" them, they should be under the DCIM folder if they were photos you had taken.
Click to expand...
Click to collapse
I have been trying the pull command all night, i can't seem to find where the dcim folder is. Even tried to pull the entire phone. I am adb dumb. I did manage to pull the contents of the bin dir. but thats it.
I use adb pull /storage/emulated/0/Dcim/ and it comes back as not a file or directory
pensfan76 said:
I have been trying the pull command all night, i can't seem to find where the dcim folder is. Even tried to pull the entire phone. I am adb dumb. I did manage to pull the contents of the bin dir. but thats it.
I use adb pull /storage/emulated/0/Dcim/ and it comes back as not a file or directory
Click to expand...
Click to collapse
Hmm... What about adb pull /sdcard/DCIM/
@davehasninjas is right. Remember that it's case-sensitive.
Without invoking root, and in charge-only mode, I can adb shell and connect to my phone. Under /sdcard/DCIM, I have 2 folders: Pictures and Google Photos (which shows up as "Google/ Photos" because of the space).
post-mortem said:
@davehasninjas is right. Remember that it's case-sensitive.
Without invoking root, and in charge-only mode, I can adb shell and connect to my phone. Under /sdcard/DCIM, I have 2 folders: Pictures and Google Photos (which shows up as "Google/ Photos" because of the space).
Click to expand...
Click to collapse
Amazing how well things work when you do them correctly, wasn't even paying attention to the case. Thank you, everything worked.
since i am not rooted is that why i couldn't just grab the entire contents of /sdcard? i kept getting required key missing
About a year and a half ago, most of my Google Play apps needed to update, but I've accidentally tapped to uninstall them. The most stupid idea I could got, was to restart the phone in order to revoke that miss - since than, phone can't start normally. It always boot in the safe mode, no matter what I've tried. There's always pop-up after loading that says sth alike "there is something preventing your system to start normally. Please backup your data and do factory reset, yadyyada..." I've managed to transfer most files to PC, but I can't access 2 years worth of notes saved somewhere in Samsung Notes. According to this thread, they should be saved in \data\data\com.samsung.android.app.notes but I can't access them, since Android Studio throws error "package not debuggable". I tried using ADB backup, but that will result in 1 KB file (empty), probably because Samsung Notes has parameter allowBackup="false" in its manifest. There was some effort to rewrite it, but mostly failed, since I can't use Linux commands on Windows. There is a chance, that the data is no longer here. All packages seen in Android Studio show size of 4 KB. But when i do space analysis using the files app after loading the safe mode system, it shows to house 11 GB of system data and 12 GB of apps - which I don't have access to.
Is there any way to either crack that Samsung Notes app, or to repair that corupted system? Maybe get some log to see, whats crashing the system? Last resort solution may be rooting it?
Thanks in advance for your help. Mark