Hello im trying to pull a file from my phone with adb but its not working (picture)
What am i doing wrong? ??
Sent from my GT-I9300 using xda app-developers app
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Thabks allot it worked!!!
Sent from my GT-I9300 using xda app-developers app
Yup. You'll pick it all up quickly enough.. loads of people can't even do this yet
Sent from my GT-I9300 using Tapatalk 2
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
joshua101 said:
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
should be the same, its a command after all.
you could go get the list from a shady internet site with all the things you can do
Yep same principle. Obviously flip the locations around
adb push c:\blah.apk /system/app/
Sent from my GT-I9300 using Tapatalk 2
Related
hey guys i'm having problem in adb when i put the remount command
it gives this message : opreation remount not prometted
why is that??? i'm rooted on ba023 and a lot of programs that use su is working correctly
h.boushi1987 said:
hey guys i'm having problem in adb when i put the remount command
it gives this message : opreation remount not prometted
why is that??? i'm rooted on ba023 and a lot of programs that use su is working correctly
Click to expand...
Click to collapse
Try typing 'su' (without inverted commas) before that command, when using your phone, and on a PC, do 'adb shell su' or 'adb shell' then 'su'. The command should now work.
You have to do this, if you followed the 'secure root' instructions before.
thanks man it works!!!!!
Sent from my X10i using the XDA mobile application powered by Tapatalk
Okay, so I'm a bit an ADB noob here. I've been trying to push my avatar apk into /system/apps for awhile here but every time i do so, it fails with this error:
/bin/sh: adb: not found
did I set it up wrong somehow?
Oniyuri said:
Okay, so I'm a bit an ADB noob here. I've been trying to push my avatar apk into /system/apps for awhile here but every time i do so, it fails with this error:
/bin/sh: adb: not found
did I set it up wrong somehow?
Click to expand...
Click to collapse
Make sure you are running the adb command from the directory where your adb is located. There is tons of info on this site and google that will give you everything you need to know about using adb. Try typing the error message into search
yeah, i know to change directories already. this error is happening after i'm in the directory.
i basically start out like this:
cd C:\android-sdk-windows\tools
and after that, switch to adb shell
C:\android-sdk-windows\tools> adb shell
i get some characters and then try for a push
"adb push C:\users\myuser\downloads/avatar.apk /system/app
after that, boom! error.
bump
+10char
Oniyuri said:
yeah, i know to change directories already. this error is happening after i'm in the directory.
i basically start out like this:
cd C:\android-sdk-windows\tools
and after that, switch to adb shell
C:\android-sdk-windows\tools> adb shell
i get some characters and then try for a push
"adb push C:\users\myuser\downloads/avatar.apk /system/app
after that, boom! error.
Click to expand...
Click to collapse
You really should be using either the search bar here or google because this information is in abundance. "adb push" should not be run from inside the shell. adb is not recognized by the shell. Do the same thing that you listed above minus the step where you typed "adb shell"
********
Sent from my Paragon RC3 Captivate using the XDA app
Try 'cd C:\android-sdk-windows\platform-tools', not C:\android-sdk-windows\tools.
Better yet, just add that to the environment variable, PATH.
hth
Ive pushed all kinds of other stuff, I did do the add system enviromental variable to XP so this could be my issue, though like i said its worked for other things ...
ERROR I GET>
CANNOT STAT
adb push stock-hc-flyer-hboot_1.11.0006.nb0 / && adb shell dd if=/stock-hc-flyer-hboot_1.11.0006.nb0 of=/dev/block/mmcblk0p18
NO SUCH FILE OR DIRECTORY
a thourough explanation or a cut and pastable pointing my adb to this file, its in the root, the variable is to the root C also, so....
PLEASE HELP, to get me past this 10+hours of hell
May be a connection between your computer and phone issue. I have this error when I wanted to root my nexus s. Try different driver for your flyer.
Accidentally sent from my Google Nexus S using XDA Premium
Make sure the adb works via "adb devices" and "adb shell". If it does not work you can try "adb kill-server" first.
I don't think you can write (push) to "/" without "adb remount". Not sure if it is a good idea to write to root directory.
Alternatively, you can use the storage in /data/local/tmp, it is always writable.
I am using the app for ternimal i type within android
Code:
adb shell
i get error device not found.
i am using jelly beans v6 it comes with busybox and supersu.
im not sure whats up?
With terminal emulator you are already in a shell on the phone.
That is exactly what adb shell does, it opens a shell on the phone.
Pick up starting with the commands after adb shell.
Sent from my Samsung Galaxy Note 2 using Tapatalk 2.x
What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
leodani said:
What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Shell is nothing but terminal (it is Linux command prompt).
Android is built on Linux kernel. So it includes terminal thing and it is present on every android.
You can use Terminal Emulator from Play Store or "adb shell" command from adb to get access to terminal and execute commands. (Most of the Linux commands work if you have busybox).
Speaking about toast messages of root access-
If you have used any Linux then you will see in Linux you achieve "root" rights (much similar to administrator in Windows) by executing "su" command in terminal to get elevated administrative rights. Same command is executed by root apps to get root access and when they get access toast message pops up.
You can also get "root" access in terminal/adb shell by typing "su" command (required when you use "ls", "dd" and many other commands where you cannot normally access).
Sent from my GT-S5360 Gadget of Mass Destruction by xda-app
using CWM........Busybox commands........ No I use my hands