[Q] ADB, Is a directory help - HTC EVO 3D

Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg

filmaker said:
Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg
Click to expand...
Click to collapse
you're typing incorrect paths and commands.
first you need to cd into your tools, mine looks like this:
cd C:\android-sdk\platform-tools
then it'll be in your tools folder and you'd do this:
adb push Capture.jpg /sdcard/Capture.jpg
by the way, you probably coud've simply mounted the phone as a disk drive and transefered the image that way too.
it is in your best interest to learn more about adb, I made a links thread with a few links to adb guides, just click my avatar to find my threads. also if you ever have a quick question feel free to ask in the q+a thread in my sig.

filmaker said:
Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg
Click to expand...
Click to collapse
First cd to the directory that the file you want to push is in. So if its in documents, do:
cd \Users\David\Documents\
Then do : adb push Capture.jpg /sdcard/
That should do the trick, assuming you have adb set up properly to execute commands from any directory (adb.exe must be set in PATH)
Sent from my PG86100 using Tapatalk

il Duce said:
you're typing incorrect paths and commands.
first you need to cd into your tools, mine looks like this:
cd C:\android-sdk\platform-tools
then it'll be in your tools folder and you'd do this:
adb push Capture.jpg /sdcard/Capture.jpg
by the way, you probably coud've simply mounted the phone as a disk drive and transefered the image that way too.
it is in your best interest to learn more about adb, I made a links thread with a few links to adb guides, just click my avatar to find my threads. also if you ever have a quick question feel free to ask in the q+a thread in my sig.
Click to expand...
Click to collapse
Thanks lol that helped a lot

Pushing via ADB - permission denied
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...

AlexDGF said:
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...
Click to expand...
Click to collapse
This is an HTC Evo 3D thread. Check this thread for Zenfone 2. If you can't figure it out feel free to send me a message to give you some information.
http://forum.xda-developers.com/showthread.php?t=3096596
Asus Zenfone 2 | Resources all in one thread
Sent from my Evo 3D.

Crashed zenfone 2
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...

Related

ADB command (Help)

Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
player4lifeov said:
Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
Click to expand...
Click to collapse
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
watcher64 said:
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Click to expand...
Click to collapse
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
ms79723 said:
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
Click to expand...
Click to collapse
Tried this but I can't acces anything on the drive. It says "please insert disk"
player4lifeov said:
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
Click to expand...
Click to collapse
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
watcher64 said:
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
Click to expand...
Click to collapse
It worked!!
Your a lifesaver!! Thank youuuuuuu sooooo much! I thought I had bricked my friends phone!
I am very gratefull

[Q] ADB, Odin & SuperOne Click

Any one out there that can help me understand the last part of Adb.
lol.
I learned how to use Odin and superoneclick.
Now I am on Adb.
I read all I can on Team Whiskeys and XDA website and other googled websites. I installed everything and did the My computer/system properties/advance/Enviroment Variables/Path entries.
I start ADB and then I do in command prompt "adb devices" and whoopie I see my phone.
NOW WHAT?
No body on the instructions or website that I have read goes past that.
How do I push down a Rom to overwrite the system with the new Rom I want to try?
Hope someone out in the Forum has really done this before and will post how they do it.
Need to find someone smart enough to finish the instructions.
Thanks,
CatfishKnight
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
birgertime said:
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
Click to expand...
Click to collapse
Thanks for showing me how to push to my phone. Now do I install it. In recovery mode as a zip? I thought adv installed it and I just rebooted and it was installed.
birgertime said:
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
Click to expand...
Click to collapse
Thanks for showing me how to push to my phone. Now do I install it. In recovery mode as a zip? I thought adb installed it and I just rebooted and it was installed.
It just moves the file to the phone. You have to flash the file yourself if it is a flashable.
You can push a .jpg file if you want, it doesn't matter, it only moves it.
And I think you're getting confused with the 'adb install' command. You can install NON-system APKs by doing that.
Code:
adb install someprogram.apk
birgertime said:
It just moves the file to the phone. You have to flash the file yourself if it is a flashable.
You can push a .jpg file if you want, it doesn't matter, it only moves it.
And I think you're getting confused with the 'adb install' command. You can install NON-system APKs by doing that.
Code:
adb install someprogram.apk
Click to expand...
Click to collapse
I guess I was confused on what ADB could do.
I thought it could push down a Rom and install it onto the phone.
Then I would disconnect it and reboot the phone and I would have the newer rom installed.
I didn't know that it only pushed the ROM onto the sdcard and then I would install the zip from the phone itself.
Finally I got an answer to my question.
LOL.
I have tried on the team whiskey site to and no one answered it. Also all the stuff I read on it really didn't tell me that either.
I really appreciate your answer in helping me understand it.
I am also using Trigger 2.8 like you. But you said you had Trigger2.8.1 saved??
I have only seen Trigger 2.8 today.
^ birgertime is the developer of Trigger. He is already cooking something new in the kitchen.
s15274n said:
^ birgertime is the developer of Trigger. He is already cooking something new in the kitchen.
Click to expand...
Click to collapse
Duhhh... I missed that... LOL. I am brain fried!!! I have installed Odin, SuperOneClick, and ADM. I have be learning all three but was having trouble with understanding what ADB could do. Been reading lots and lots about it all day. Whew. I am tired. Ever instruction got down to connecting and seeing your phone and then it would end there. Finally I got an answer from Birgertime. Thanks.
I have 4 different roms saved to my phone to switch between if I want too. But I love Trigger 2.8 with Overclock v2. Also I am seeing 9 sats out of 11 on my gps. With Overclock v2 and using CPUBoostPro I am right at 2000 with Quadrant.

How to do this ADB command Will pay!

Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
What does it tell you when you try to run the first command?
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
BrandonPrice31 said:
Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
Click to expand...
Click to collapse
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
donbowman said:
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
Click to expand...
Click to collapse
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
maxjivi05 said:
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
Click to expand...
Click to collapse
Problem is there is only one file given?
http://forum.xda-developers.com/showthread.php?t=1504920
BrandonPrice31 said:
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
Click to expand...
Click to collapse
ah, the files are in a tar.gz file.
If you are on windows, open this with winzip and extract.
if u r on linux, do 'tar zxvf modded-libs.tar.gz'
You need to install the SDK for Windows to get ADB installed. That would be easiest
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
There are three files in there. it's a tar.gz file. You have to extract twice. Once to get a .tar file, then you extract the three files from the .tar.
DAGr8 said:
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Waiting for your response
Okay so I have the three files unzipped, where do I place them so the commands will work?
uh, any old directory will do.
then 'cd' to that directory.
then run adb as above.
the 'adb push' will be copying them to the device.
For some reason the overclock freezes on me I don't get it.
try 1 notch above 1544 speed first.
BrandonPrice31 said:
For some reason the overclock freezes on me I don't get it.
Click to expand...
Click to collapse
Im sorry something came up im afk atm hang around ill help when i get home in about an hour
Sent from my GT-I9000 using xda premium

[Q] Unable to ADB push a ROM (using CM9 with CWM v6.0.1.0)

Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
shadowcaster31 said:
Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
Click to expand...
Click to collapse
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
fxrb said:
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
Click to expand...
Click to collapse
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
shadowcaster31 said:
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
Click to expand...
Click to collapse
No. Just connect the phone and enter ADB devices. Your phone should show up then.
fxrb said:
No. Just connect the phone and enter ADB devices. Your phone should show up then.
Click to expand...
Click to collapse
Great i can use adb devices. But now idea why it doesnt show my device ID correctly.
anyway i tried ADB push like this:
1. put my rom zip in the same folder as adb.exe
2. open cmd
3. type in "adb push ROM.zip /sdcard" (without the quotes)
4. i get error "failed to copy to 'ROM.zip' to '/sdcard': Is a directory"
Any idea how do i copy something into my /sdcard path?
edit: okay nvm i solved it. forgot another / after /sdcard.

Summoning Those with T-Mobile V521!

I'm trying to make an AOSP ROM, and while doing so, I now have a dysfunctional bootloader. If your tablet is rooted, please duplicate the boot.img from your system and share it with me. Would very much appreciate.
Instructions:
Use CMD and paste these 2 lines:
adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img"
adb pull /sdcard/boot.img
Then from ADB directory, upload to somewhere easily accessible.
Does it matter if we have updated to 7.0 or not? I'm rooted and have updated to 7.0 and would be happy to help.
That would actually be a good idea. The ROM is supposed to be 7.0.0 anyways.
Running the first command comes up as " no such file or directory"
Do you already have ADB?
mr_verystock said:
Do you already have ADB?
Click to expand...
Click to collapse
Yep. I do adb devices to make sure it recognizes the tablet and all is good there.
Maybe so I'm the same page i just open up ADB as normal : open the command prompt in my platform tools. I paste the first line in : adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img" I get no file or directory.
Unable to get the dumb file:
adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img"
dd: /dev/block/platform/soc.0/by-name/boot: No such file or directory
Edit: does a backup from the recovery could make the task done ? I backup the boot from the TWRP and I get a file of 32Mb with the name: boot.emmc.win
adb shell
cd /dev/block/platform
ls
And tell me the output. I appreciate your help!
mr_verystock said:
adb shell
cd /dev/block/platform
ls
And tell me the output. I appreciate your help!
Click to expand...
Click to collapse
Nothing, it returns an empty result
Unusual... Normally there's soc.0 or msm_sdcc.1.
mr_verystock said:
Unusual... Normally there's soc.0 or msm_sdcc.1.
Click to expand...
Click to collapse
That command never worked for me on this tablet. Yes the default kernels is 32mb.
You can get it from twrp backup as .win and then rename it (if it is not compressed) or use AUT or SuperR's kitchen to obtain it.
Another method would be flashifire>backup.
Im still on MM so I can not help you.
Try these: https://drive.google.com/file/d/0Bz54O_w1LEYpQ1k0aDVHX29NbkE/view?usp=sharing
the rooted files I grabbed from TWRP backup, should be idential to the ones get using dd method.
the stock files I extracted from stock kdz file using WindowsLGFirmwareExtract-1.2.6.1-Release

Categories

Resources