[Q] Can't adb push - Fire TV Q&A, Help & Troubleshooting

Hi,
I am in the platform-tools folder but the push command won't work.
See screenshot.
Odd..

aassaf said:
Hi,
I am in the platform-tools folder but the push command won't work.
See screenshot.
Odd..
Click to expand...
Click to collapse
looking at your screenshot your entering a second > sign before adb and thats whats causing the problem. replicated your issue on my pc by adding a second > before adb
for example your setup says
c:/adt/sdk/platform-tools>>adb push llama_events /sdcard/llama/
it should say
c:/adt/sdk/platform-tools>adb push llama_events /sdcard/llama/

Run these commands 1 after another, copy and paste:
Code:
adb kill-server
adb connect 192.168.1.144
adb push keyboard.xml /sdcard/android/data/org.xbmc.xbmc/files/.xbmc/userdata/keymaps
adb push Llama /sdcard/Llama/

Many thanks
What an idiot i am :laugh:
roligov said:
Run these commands 1 after another, copy and paste:
Code:
adb kill-server
adb connect 192.168.1.144
adb push keyboard.xml /sdcard/android/data/org.xbmc.xbmc/files/.xbmc/userdata/keymaps
adb push Llama /sdcard/Llama/
Click to expand...
Click to collapse

Related

Help using ADB to push an app

Hi all, I am using a froyo rom based on richardtrips rom.
I'm trying to push a themed facebook apk. I have placed the apk in the tools folder.
This is what I did.. Boot to recovery, then open a cmd on my windows laptop. I then did the cd to go to my adb tools folder.
Then I typed
Code:
adb remount
This gave me an error saying error 0.
So I tried while the handset was booted normally. The remount was successful.
I then typed
Code:
adb push system/app/facebook.apk
This just gave me the help list with details of all the commands.
Can anyone tell me where I am going wrong?
how about
adb shell mount /system
adb push C:\Facebook.apk /system/app/
adb reboot
MasDroid said:
how about
adb shell mount /system
adb push C:\Facebook.apk /system/app/
adb reboot
Click to expand...
Click to collapse
This one seems to have worked. Thanks very much. I'm half sleeping and it was doing my head in
socktug said:
This one seems to have worked. Thanks very much. I'm half sleeping and it was doing my head in
Click to expand...
Click to collapse
No problem bud
It's pretty late here too and my eyes are half open and they feel as if they are burning lol.

[Q] Cant get ADB to work!!!

Ok so i used adb to root my phone when i first got it. set up the sdk tools file and all of that, however im having trouble trying to push a framework-res file back to my phone. actually no adb commands will work. i keep getting this message "/sbin/sh: adb: not found" can someone pleaseeee help me figure this out
chingy51o said:
Ok so i used adb to root my phone when i first got it. set up the sdk tools file and all of that, however im having trouble trying to push a framework-res file back to my phone. actually no adb commands will work. i keep getting this message "/sbin/sh: adb: not found" can someone pleaseeee help me figure this out
Click to expand...
Click to collapse
What exactly are you doing? You're not in the shell are you? If so, exit the shell and do it at the dos command prompt.
chingy51o said:
Ok so i used adb to root my phone when i first got it. set up the sdk tools file and all of that, however im having trouble trying to push a framework-res file back to my phone. actually no adb commands will work. i keep getting this message "/sbin/sh: adb: not found" can someone pleaseeee help me figure this out
Click to expand...
Click to collapse
wrong section. did you cd to the tools folder inside sdk folder
Make sure you have the SDK installed and when you open up Command Prompt type in "cd C:\Program Files (x86)\android-sdk-windows\tools" Obviously programs folder would be wherever you have your SDK located. After you type that in, type ADB Shell and you should be in.
Blindlabel said:
Make sure you have the SDK installed and when you open up Command Prompt type in "cd C:\Program Files (x86)\android-sdk-windows\tools" Obviously programs folder would be wherever you have your SDK located. After you type that in, type ADB Shell and you should be in.
Click to expand...
Click to collapse
it sounds like he's already in shell which he souldn't be. he needs to just be in a command prompt. you can't use the adb push command when in shell
This result from the command "adb" not being found.
Two ways to fix, either go to the folder with the adb executable in it, right-click, "Open terminal here." And then "adb" will work.
Second way is to copy the adb executable to /usr/bin. (I think xD) (One of the */bins.)
Good luck!
so im not supposed to run the whole cd\ cd sdk cd tools... all that stuff?
chingy51o said:
so im not supposed to run the whole cd\ cd sdk cd tools... all that stuff?
Click to expand...
Click to collapse
Oops, that's my bad. I assumed you were in Linux. If you are windows, then follow that other guy's instruction. (cd to blah blah) but if Linux thenfollow mine.
Moved to Q&A. Please do not post questions in the Development thread.

[Q] Help with setting up adb shell

I must be stupid or something cause I'm stuck on getting this to work. Can someone help me finalize setting up adb shell?
This is where I am so far:
I have installed phone driver and Android SDK. In SDK have installed packages API 2 through 8, usb driver package 3, etc.
What do I need to do when opening SDK manager? My phone is in tether mode but it just sits there. What am I not doing?
Thanks.
No love from the community on this one??
I'm a little confused.
When you set the evo to usb debugging and open a command prompt, cd to your sdk/tools dir, enter "adb devices" does your evo show up? It should be listed as a serial #.
Yes.....an HT### serial comes up which I am assuming is the phone. Guessing I can now just run the commands I need and it will communicate with the phone?
My confusion was that I was running the SDK Manager.exe and expecting it to find my phone and produce the adb shell.
Ok! You should be good to go. Just enter "adb shell" and you are set.
Good deal....thx.
Ok....thought I had this working. However, when in adb shell any commands I put in tells me "adb: not found".
What do I need to do from this point?
Let me clarify this.....
When I list devices it does find my phone. But, when issuing the adb shell command and trying to enter anything from the "#" prompt it always says "adb: not found".
I must be missing a step or something.
I'm kind of confused, mostly because I don't know what it is you're doing in a shell, but once you're in the shell and you get the # sign, there's no need to type in adb before your commands, for example, from the command line you would navigate to your tools folder. For me it would be
cd AndroidSDK/tools
./adb shell
Some jibber jabber about daemon starting
#
From then on I could run whatever command I planned on running in the shell like
echo 1 > /sys/class/leds/flashlight/brightness
And not
./adb echo 1 > /sys/class/leds/flashlight/brightness
CCallahan said:
Let me clarify this.....
When I list devices it does find my phone. But, when issuing the adb shell command and trying to enter anything from the "#" prompt it always says "adb: not found".
I must be missing a step or something.
Click to expand...
Click to collapse
What exactly are you trying to accomplish? Then we can determine what's going on.
I'm running Myn's RLS4 and am trying to change the power bar in the notifications.
Trying to follow the instructions in this link: http://forum.xda-developers.com/showthread.php?t=836721
OK. What part are you getting stuck at?
Edit: for this code, you do not need to be in the ADB shell:
Code:
adb remount
adb push widget.txt /system/customize/
adb reboot
You just need to cd to your tools folder of the SDK in your command prompt.
CCallahan said:
I'm running Myn's RLS4 and am trying to change the power bar in the notifications.
Trying to follow the instructions in this link: http://forum.xda-developers.com/showthread.php?t=836721
Click to expand...
Click to collapse
The commands he has given here
Code:
adb remount adb push widget.txt /system/customize/ adb reboot
do not require you to be in an adb shell, you just open up the command window do an adb remount then type in his commands one by one and male sure you have the .txt file that specifies what widgets you're going to use is in the tools folder of your AndroidSDK folder so that adb can locate and push it to its respective directory.
Ok...that worked.
Knew I was doing something wrong. Was trying to run those commands from the adb shell....makes sense that it could not find adb.
Thanks.
i have no adb shell at all can anyone help?

cant use adb push command on gsm galaxy nexus

I can run adb devices and my phone will show up as a long string of numbers. But if I try to push a dir to my device with adb push <local dir> device it just hangs. I'm running debian and have tried using tutorials to mount as rw but cant copy and paste files. they sem to copy very slowly but when finished the files are no there.
the command is
Code:
adb push <local> <remote>
for example:
Code:
adb push testfile.txt /sdcard/
or to pull:
Code:
adb pull <remote> [<local>]
You have to tell it where to push/pull it to. You can't just assume its pushing to "the device".
works great thanks
tman7510 said:
works great thanks
Click to expand...
Click to collapse
No problem. Feel free to hit that "thanks" button there, champ.
Also for future reference, type "adb" and hit enter in the command prompt. It'll list common adb commands and their proper syntax to use them.
more detail please
hi
i am new to adb
i want to know how to write a command to push gapps from computer to virtualbox.in detail please.thank u

[Q] Remount and forse??

When someone says this
Code:
adb remount
adb push ApexLauncher.apk /system/app
What does that mean and how do i do it
slimpickins said:
When someone says this
Code:
adb remount
adb push ApexLauncher.apk /system/app
What does that mean and how do i do it
Click to expand...
Click to collapse
It means you need adb installed which is a package that is Dowloaded through the android sdk available on Google developers Website.
Adb is an interface tool for interacting with android via terminal.
Once these are setup you can run those commands.

Categories

Resources