[q] adb push question - G2 and Desire Z Q&A, Help & Troubleshooting

Every time I try and us the command "adb push" I get a return that says
cannot stat 'file name' : No such file or directory
Its probably something simple but I'm a newbie to ADB
my complete command is:
adb push vision.lights.so /system/lib/hw/
cannot stat 'vision.lights.so': No such file or directory

Is that file located in the same folder as your adb? If not then you need to setup a path to use adb anywhere. Instructions for that are in the adb guide.
Sent from my HTC Vision using XDA App

Do I need to cd to the directory where that file is before I can push it?
My adb is already set up to run from any directory
Sent from my HTC Vision using XDA App

jbenson said:
Do I need to cd to the directory where that file is before I can push it?
My adb is already set up to run from any directory
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Yes, you need to be in (cd) the directory that contains the file, or you could use the full path
adb push /download/vision.lights.so /system/lib/hw
It might be slightly different with Windows (c:/ ?)
Sent from my CyanogenMod Vision

Example if your adb is in c:/sdk/tools/
then you would have to cd until you are in tools folder (i.e. c:/sdk/tools/)
Copy your file into the tools folder.
Your command should work.

Example if your adb is in c:/sdk/tools/
then you would have to cd until you are in tools folder (i.e. c:/sdk/tools/)
Copy vision.lights.so into the tools folder.
Your command should work.

Yes yes and yes windows needs c:/whatever assuming its in c
Sent from my HTC Vision using XDA App

Works perfect thank you guys so much for your help!
I was confused as to how it found the file to push but this makes more sense!
Sent from my HTC Vision using XDA App

Related

Can't install "app sharing.apk" Desire Rom

Rooted G2 with Desire rom. I can see the "app sharing apk" in TI backup but there is no option to install it. Please help I really like that app.
Sent from my HTC Vision using XDA App
thisisspeedy said:
Rooted G2 with Desire rom. I can see the "app sharing apk" in TI backup but there is no option to install it. Please help I really like that app.
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
I assume that's a system file, if it is you have to extract it from the ROM it came from, you need ADB and unyaffs ( get it http://code.google.com/p/unyaffs/)
*I never actually used it to get your apk, but I will give you a "guideline"
*here is a nice tutorial on how to use unyaffs http://mdzlog.alcor.net/2010/05/29/extracting-files-from-a-nandroid-backup-using-unyaffs/
# Prepare a staging area on your computer
mkdir nandtmp
cd nandtmp
# Copy your old nandroid (stock or NANDroid) backup to your staging area..........
# i.e. /androidbackups/clockworkmod/backup/2010-11-01.02.02.02 cp $WHEREVER_OLD_IMAGE_IS/system.img .
# extract files... unyaffs system.img adb remount
# Push the app sharing files back to your Android device adb push ./system/lib/libapp sharingCore.so /system/lib/ adb push ./system/app/app sharing.apk /system/app/
# Some know issues can happen if you are not mounted (possibly non read/write system?)
Sent by inconveniencing a large number of electrons from my mobile command center

[Q] Quick Office Cm6.1.1

Does anyone know where I can find QuickOffice for my g2? Im running cm6.1.1 and I downloaded a pdf and when I pressed it it went to quicloffice but when I exit I can't find it on the app.drawer or anywhere ..
Sent from my HTC Vision using XDA App
You can get it from the stock deodex rom and push it to /system/app, I'm about to do that once I get home from work, so I can confirm.. I got the ezpdf from market but I think quick office seems better
Edit: I can confirm that it works by just extracting the Quickoffice.apk in stock deodex rom and push it back to cm, its usable and will also appear in the app drawer now
Sent from my HTC Vision using Tapatalk
def. let us know noodles, this is something im looking to get as well..
Can you give me the exact steps im a noob :/
Sent from my HTC Vision using XDA App
Same here. I have CM6.1.1 and I can see Quickoffice in Titanium but it won't let me restore it.
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
noodles2224 said:
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
Click to expand...
Click to collapse
Before you do the "cp /sdc...." command, you have to mount system using this command: mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
Please correct me if it's wrong, I just copied it from another thread.
Yea you do, but sometimes you don't need to.. well, some that I notice or maybe its because I'm always switching roms and forget which ones which
A shorter one would be
mount -o remount rw /system
Sent from my HTC Vision
This also works and is pretty easy
http://forum.xda-developers.com/showthread.php?t=837599
If you have a nandroid backup of your stock rom you could also restore it and extract from there. Otherwise just flash the stock rom like noodles said and extract from there
Sent from my HTC Vision using XDA App
You don't have to flash the stock rom, just download it to the computer and extract it there
Sent from my HTC Vision
My bad. Thanks!
noodles2224 said:
You don't have to flash the stock rom, just download it to the computer and extract it there
Sent from my HTC Vision
Click to expand...
Click to collapse
Sent from my HTC Vision using XDA App
If you are running CM6.1.1 you can just type this from the tools directory of your androidsdk install in the windows command prompt.
"c:\{android sdk path here}\tools\adb push Quickoffice.apk sdcard/"
then
"c:\{android sdk path here}\tools\adb remount"
that will remount the system partition. Then you can type this
"c:\{android sdk path here}\tools\adb shell"
then you will see this
"#"
then you can type
"# cp sdcard/Quickoffice.apk /system/app"
shadowofzeus said:
If you are running CM6.1.1 you can just type this from the tools directory of your androidsdk install in the windows command prompt.
"c:\{android sdk path here}\tools\adb push Quickoffice.apk sdcard/"
then
"c:\{android sdk path here}\tools\adb remount"
that will remount the system partition. Then you can type this
"c:\{android sdk path here}\tools\adb shell"
then you will see this
"#"
then you can type
"# cp sdcard/Quickoffice.apk /system/app"
Click to expand...
Click to collapse
"Ok".. pretty much exacly what I said..
Sent from my HTC Vision
noodles2224 said:
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
Click to expand...
Click to collapse
Thanks.. I got it to work.
methead said:
Thanks.. I got it to work.
Click to expand...
Click to collapse
...edited...found answer/solution

Adb

Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
30bushido1 said:
Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
What version of windows are you on? You followed all of the instructions on setting up adb from that thread in the Shift forums? I also rooted my roomate's Shift, and I read that adb setup tutorial when I was over there. It was pretty solid. I already had adb set up, but read it through to see. When I set up adb, I had someone advise to me to place the adb.exe, and that .dll file (found in platform tools, in the SDK download) in my 'system32' folder of my PC. Once I placed those two files in the 'system32' folder, adb has worked flawlessly.
Also, have you made sure you have all the correct drivers installed? I believe I also had to install HTC Sync, because that installed some drivers that were necessary. Once it installed, I uninstalled it (the drivers will remain installed) because it can interfere with adb communication, apparently. Hope you get it set up. Once you do, rooting the Shift wasn't hard. Just follow the instructions to the t, and just copy and paste the commands, to eliminate the possibility of messing up the commands.
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
30bushido1 said:
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You're welcome, feel free to PM me if you have any more issues.
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Muellersirch said:
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Click to expand...
Click to collapse
By putting the adb.exe and the .dll files in the 'system32' folder, that will allow you to execute adb commands from any directory in the command prompt. I don't have to navigate to my sdk tools to use adb. It saves a few steps, so you can just open up your command prompt and command away.
Or you can put the directory that contains adb in your system PATH. This will let you execute adb in a command prompt anywhere...
Sent from my ADR6300 using XDA App
I'm running wd7. I've gone through it again and installed the drivers then uninstall HTC sync I'm still not able to access sdk through the command prompt. I know its something simple I'm missing how do I move adb to the system path
Sent from my PC36100 using XDA App
C:\user\paul>
Is what the terminal reads any command I enter is not recognized as an internal or external command.
I have got the command list to show up but cannot exicute any of them
Sent from my PC36100 using XDA App

(q) adb

I know this is a noob question but I installed the sdk on my windows vista 32bit PC I've read like everything I could about doing this but I can't seem to get adb working when I run cmd adb it says 'adb' is not recongnized as an internal or external command, operable program or batch file. I'm pretty new to this but want to be able to use this any help would be great thanks in advance..
Sent from my PC36100 using XDA App
Are you running adb from within the /platform-tools directory?
The basics of adb
http://forum.xda-developers.com/showthread.php?t=694250
You have to run the commands from wherever you extracted the sdk ex I put mine on the main c drive so I have to type this first:
cd c:/android-sdk-windows/tools
Sent from my PC36100 using XDA Premium App
bender1077 said:
Are you running adb from within the /platform-tools directory?
Click to expand...
Click to collapse
I tried it from the start menu and that was what it said I also tried it in platform-tools it just flashes the screen for a second and thats all..
Sent from my PC36100 using XDA App
You're getting that error because you're not in the folder where adb is. Look in the platform-tools folder. You can run it from that folder, or just copy it into the tools folder.
teh roxxorz said:
You can run it from that folder, or just copy it into the tools folder.
Click to expand...
Click to collapse
If all you are using from the SDK is ADB, then moving ADB to the /tools directory is not an issue. This will bork the functionality of other tools in the SDK though.
U can also add it to ur command lines so u don't have to always be in ur sdk folder to use it. Google adb and there r instructions on how to do this. Its very easy

[Q] help with adb

hey guys. im tryin to put a file from my computer to my sdcard on my phone through adb and this is the path that im using
/Users/my name/androidsdk/platform-tools/adb push cm_supersonic_full-170.zip /sdcard/cm_supersonic_full-170.zip
and it keeps saying
cannot stat 'cm_supersonic_full-170.zip': No such file or directory
can anyone tell me what im doing wrong. i have the zip file in the platform-tools folder.
It looks like adb may be looking for the zip file in whatever folder you're in when you run adb. You have the zip file in the platform-tools folder, but are you also running adb while in that folder? If not, try moving to the platform-tools folder and then running adb, or else fully qualify your zip file name.
I do have adb in the platform-tools folder along with the zip file.
quikswitch said:
hey guys. im tryin to put a file from my computer to my sdcard on my phone through adb and this is the path that im using
/Users/my name/androidsdk/platform-tools/adb push cm_supersonic_full-170.zip /sdcard/cm_supersonic_full-170.zip
and it keeps saying
cannot stat 'cm_supersonic_full-170.zip': No such file or directory
can anyone tell me what im doing wrong. i have the zip file in the platform-tools folder.
Click to expand...
Click to collapse
Looks like a syntax error. Are you running adb from c:\ or are you in the platform-tools folder when you run adb?
im running it from the platform-tools folder. im also on a mac
Try this.
Adb push cm_supersonic_full-170.zip /sdcard/
The syntax error it is giving is saying that you are trying to push the zip to a folder on the sdcard called cm_supersonic_full-170.zip
Sent from my PC36100 using Tapatalk
Khilbron said:
Try this.
Adb push cm_supersonic_full-170.zip /sdcard/
The syntax error it is giving is saying that you are trying to push the zip to a folder on the sdcard called cm_supersonic_full-170.zip
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
that didnt work either.

Categories

Resources