I know the basic commands but I was wondering if I were to do
Adb pull /sdcard....
What command line would be needed for me to direct the contents to a folder in my adb/tools folder on my pc? I tried /sdcard backup (open folder) but it would not let me do so.
Also any great place to find a list or material for adb & busybox commands?
Related
Is there an ADB push nautilus script out there?
That'll be handy, but i'm no scripting expert. I suspect it'll be bit tricky since adb is terminal only, I'm sure someone will have to figure out a way to pipe the output from terminal to GUI pop up dialog box to display progress bar, with success or failure message.
this one seem to work but no progress bar or success/fail message tho. YMMV
Code:
#/bin/sh
adb push $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS /sdcard
save this as adb_push.sh
be sure to set this file with permission:
Code:
chmod a+x adb_push.sh
think of this as rough draft, not perfect. Above code will push straight to sdcard. Suppose you could create few scripts like this..
ADB - Push to System APP
Code:
#/bin/sh
adb remount
adb push $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS /system/app
ADB - Install APK
Code:
#/bin/sh
adb install $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
EDIT: Forgot to mention this, it'll work only if you've already set path to Android's SDK tools folder in .bashrc
awesome, thanks! I'll test it in a minute
Simple scrip to push files to your android device.
Just put it in your Nautilus script dir (HOME/.gnome2/nautilus-scripts) and make it executable (chmod +x Push\ sdcard). also set path for ADB inside script (ADB=...)
I did something similar a while back for both Konqueror and Dolphin in KDE, but I realized, I just don't use a file manager since I prefer the command line instead. I had a working ADB zsh completion script, but somehow forgot to back it up before my previous hard drive failure.
https://code.google.com/p/send-to-android/
this is interesting
Hi guys, I am trying to move some files into ext partition. I want to do it via adb but ...
It came to my attention that adb shell isn't the solution for adb push or adb pull. I need to do it via windows but whenever I do adb remount or adb kill-server and adb pull or adb push . When I input and press enter it shows an arrow I press enter cuz I dont know what I could input. It just tells me "push not found" or "adb not found" if I say adb push.
Please don't ask me what I do exactly just tell me the exact steps ^^
I would like to move Htc ime mod by jonasl by example.
Hope you will help me out guys
copy tools adb.exe, AdbWinApi.dll and AdbWinUsbApi.dll to the .../windows/system32/
Thank's but doesn't seem to work
I tried doing : cd C:\Program Files\Android SDK
adb push C:\Program Files\Android SDK\tools\su-2.1-e-signed\system\xbin\su \system\xbin\
but this just gives me all adb commands.
Doing this inside adb shell gives me the adb : not found
Any idea/ workaround? (< only adb plz I dont want to install linux)
Code:
cd C:\Program Files\Android SDK
adb remount
adb push tools\su-2.1-e-signed\system\xbin\su \system\xbin\
Give that a try.
You can't use push or pull with shell.
The biggest problem you sill face is having spaces in the PC side path names, try moving the SDK to c:\Android_SDK if the above fails
Try this:
Code:
cd C:\Program Files\Android SDK\tools
adb remount
adb push C:\Program Files\Android SDK\tools\su-2.1-e-signed\system\xbin\su /system/xbin/
AH great, by removing the space beetwin android and sdk I managed to get out but now I am facing Out of memory error
Damn I have like 1.5 gb of memory on my ext2 partition
Where can I check the remaining memory?
EDIT : su is 22ko so I dont think memory is the big deal. However I would still like to know what is left
Maybe my microSD is dying... Any idea?
Mister-Tea said:
yy whatever, if you don't want to answer then don't but don't look high on me.
lol......
Click to expand...
Click to collapse
1/ he already answer your question
2/ it's android DEV section, your question if far away from DEV
3/ You have to learn how to use command-line application (Windows suck at this, so you should try on a linux OS)
BTW: a little how-to
cd: a great command, you'll be able to change directory (yes you have "adb" on your harddrive, but you have to tell your computer where is it)
cp : copy
mv: move
ls: list content of working directory
pwd: print current working directory
Now: let say "adb" (adb.exe) is located here: /home/carbonyle/androidSDK/tools/
launch a terminal (WindowsKey + r on windows host, then type "cmd")
Yyour working directory maybe "C:" , or whatever (/home/carbonye/ for me)
now use "cd"
Code:
cd /home/carbonyle/androidSDK/tools/
<. of course adapt this to your environnment
(use ls / pwd to convince you what you're doing)
Code:
./adb reboot recovery
<- for linux user
Code:
adb reboot recovery
<- for Win**** users
Of course this will reboot your phone into recovery mode, just adapt command to your need
Right, this thread has gone far enough with enough flaming for today.
To all of you, im disappointed and you should all know better.
PLease refrain from further flames, tidy up in progress. I am also moving this to QnA.
@ Mister-Tea
You are equally responsible for the flaming by flaming yourself.
@ you all, quit it or i will take further action.
THanks.
For the past couple of days I have issues with transferring files over usb as no support is built into to the ics kernel for the usb transfer unless a physical sdcard is detected. I tried the mtp, thing and for some reason that wont show the files. Here is what I found that works best for transferring files rather than installing sketchy Chinese programs.
Note all commands are in quotes, do not type the quotes
Setting up and checking files in directories​
1. Install androidsdk
2. open a command prompt and cd to where your adb tools are. They are typically in C:\android-sdk-windows\platform-tools
3. "cd C:\android-sdk-windows\platform-tools" after you download the pack through the platform tools pack through the sdk manager. Yours may be in a different place depending on install. If you have set the system variable for adb skip to step 4.
4. Set your touchpad to go into android debugging mode when plugged in, under developers options
5. Type in "adb devices" to make sure your touchpad is seen by computer
6. Now access your devices by typing "adb shell" (if you have the ghost emulator 5554, use adb -d shell)
7. From there type "cd /sdcard/"
8. Type "ls" to receive a list of all files on your touchpad (note l is an L)
9. From there simply use the cd command to get in and out of directories
Transferring Files​
When you want to transfer files to and from the touchpad, open a new command prompt and get back to the location with your adb files.
To copy to touchpad
Use the adb push command, example of adb push:
"adb push C:\users\stephen\downloads\example.apk /sdcard/"
The format is adb push local directory to remote directory.
To pull from touchpad
To pull something from your touchpad use adb pull command. The format is adb pull remote directory to local directory.
Example: "adb pull /sdcard/getjar.apk c:\users\stephen\desktop"
I installed DroidSSHd for root GUI. and for GUI file transfer/install I use AirDriod.
edit: course, all this is done on the air.
my ADB will not work at all in command prompt i get this message 'adb' is not recognized as an internal or external command,
operable program or batch file.
thats what i get when i enter adb devices in the command prompt whether i have a device plugged in or not
I'm assuming that since you're asking about adb, you already have the Android SDK installed (or) you have a folder that you downloaded from somewhere with adb.exe, fastboot.exe and some other exe's in it. The reason you're getting that message is because your computer doesn't know where to look for adb.exe, unless you open command prompt in the folder itself. To be able to use the command universally in cmd, you need to add it to the Windows PATH system variable.
1. Control Panel->Search 'environment variables'->Click on 'Edit the system environment variables' with the administrator icon.
2. Click on 'Environment Variables' at the bottom, find Path (or) PATH under 'System variables', and click Edit.
3. Here, you need to provide the path to where the tools and platform-tools folders of the Android SDK are located, or to the location of the folder which contains adb.exe (if you have it that way instead of the SDK). There will already be some paths here for other stuff, each separated by a semicolon. Make sure that the previous path has a semicolon at the end before putting in your path. For example, the end of my path variable is - <previous paths>;F:\Programs\adt-bundle-windows-x86_64\sdk\tools;F:\Programs\adt-bundle-windows-x86_64\sdk\platform-tools
4. That's it. Now adb and fastboot will work in cmd anywhere from your computer (no need to be in the adb folder).
sashank said:
I'm assuming that since you're asking about adb, you already have the Android SDK installed (or) you have a folder that you downloaded from somewhere with adb.exe, fastboot.exe and some other exe's in it. The reason you're getting that message is because your computer doesn't know where to look for adb.exe, unless you open command prompt in the folder itself. To be able to use the command universally in cmd, you need to add it to the Windows PATH system variable.
1. Control Panel->Search 'environment variables'->Click on 'Edit the system environment variables' with the administrator icon.
2. Click on 'Environment Variables' at the bottom, find Path (or) PATH under 'System variables', and click Edit.
3. Here, you need to provide the path to where the tools and platform-tools folders of the Android SDK are located, or to the location of the folder which contains adb.exe (if you have it that way instead of the SDK). There will already be some paths here for other stuff, each separated by a semicolon. Make sure that the previous path has a semicolon at the end before putting in your path. For example, the end of my path variable is - <previous paths>;F:\Programs\adt-bundle-windows-x86_64\sdk\tools;F:\Programs\adt-bundle-windows-x86_64\sdk\platform-tools
4. That's it. Now adb and fastboot will work in cmd anywhere from your computer (no need to be in the adb folder).
Click to expand...
Click to collapse
ive done all that im just going to erase everything and run usbdeview and start over
you need to add the location of adb.exe to the path in your windows. with a default android sdk install, I added ";C:\Users\pat\AppData\Local\Android\android-sdk\platform-tools" to the end of my system path. then you need to reboot. (change the pat part to whatever your username is)
[Question][ADB] How to "adb push" with timestamps like "adb pull -a"
Hello, as said in the title of the post, I need to push photos to my phone but with their original timestamps. I backupped my internal storage with the command
Code:
adb pull -a -p /sdcard "PC_directory"
But I need a command to re-transfer everything back to my phone. I'd like to do this, because othewise, all the photos in my gallery will be set to the actual phone's date. Is there a way to do that? Thank you in advance!
Would also like to know if there is a solution to transfer files via adb while preserving timestamps.
You may use dd command to do a 1:1 ( bitwise ) copy of data / files - requires the source data / files are housed in an .IMG-file.
I believe you can achieve it by creating an archive with tar and output it to stdout. Then pipe it to adb exec-in with a tar command to extract it on the phone.
Update: tested it out and it seems that exec-in outputs to a file and you need to create an intermediate archive on the receiving device.