ADB command (Help) - Vibrant Q&A, Help & Troubleshooting

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

Related

[Q] How to edit /system in recovery/fastboot?

I want to edit the /system/build.prop on my phone from my recovery because my phone doesn't boot and I know what change led to that.
How can I do this? Can anybody give me nooby instructions on how to do this?
I think I may have to use ADB pull/push, but how do you use it? Also, can I do it via moto-fastboot?
Thanks.
Notorious544d said:
I want to edit the /system/build.prop on my phone from my recovery because my phone doesn't boot and I know what change led to that.
How can I do this? Can anybody give me nooby instructions on how to do this?
I think I may have to use ADB pull/push, but how do you use it? Also, can I do it via moto-fastboot?
Thanks.
Click to expand...
Click to collapse
Boot to recovery, go into mounts and storage and mount /system then use adb to pull build.prop off, edit it, then push it back up.
Speedily sent from CM7 Beta
d3athsd00r said:
Boot to recovery, go into mounts and storage and mount /system then use adb to pull build.prop off, edit it, then push it back up.
Speedily sent from CM7 Beta
Click to expand...
Click to collapse
What's the exact command for ADB pull? My Android SDK is saved on C:\
I copied the commands from adb;
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
Open up CMD under administrator privilages (right click the CMD icon and select run as administrator)
type cd c:\
type adb pull /system/build.prop c:\
this should copy the file to the c:\ and when your done editing use the following commands to push it back
adb push c:\build.prop /system/
I accidently pulled all of /system. How do I push it all back? If I don't push it, does it mean that my phone has no /system?
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
all you did was make a copy of the files...
Thanks!
Thanks for your advice everybody, but in the end, I ended up reflashing Rom. However, this situation has at least given me experience with ADB commands.

[Q] ADB, Is a directory help

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...

[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.

Step by Step for ADB Push

I soft bricked my One. I have a rom to flash but have no idea how to push it via adb. I am downloading the Android SDK now but can someone point me to a very clear step by step tutorial on how to push via adb? Everything I find on the internet seems to be geared to those who are already familiar with command prompts. I am not.
thank you.
I wrote a primer about a year ago
http://forum.xda-developers.com/showthread.php?t=1754018
most of the instructions are universal though.
gunnyman said:
I wrote a primer about a year ago
http://forum.xda-developers.com/showthread.php?t=1754018
most of the instructions are universal though.
Click to expand...
Click to collapse
Thanks for the response, but I need to back up a little bit.
I go to start, type in cmd and then what? I have to switch users?
garment69 said:
Thanks for the response, but I need to back up a little bit.
I go to start, type in cmd and then what? I have to switch users?
Click to expand...
Click to collapse
Can somebody please help me. I have to get this phone up and running today.
garment69 said:
Thanks for the response, but I need to back up a little bit.
I go to start, type in cmd and then what? I have to switch users?
Click to expand...
Click to collapse
I cant get adb installed on my computer I think. When I go to start, cmd and type adb i get "adb is not a recognized command".
Run adb from the directory you installed it. Also on a mac put a./ dot slash in front of the command
garment69 said:
I cant get adb installed on my computer I think. When I go to start, cmd and type adb i get "adb is not a recognized command".
Click to expand...
Click to collapse
When I try and install the ADB exe from the zip file provided in your tutorial it says unable to start because ADBWinApi.dll is missing from my computer.
gunnyman said:
Run adb from the directory you installed it. Also on a mac put a./ dot slash in front of the command
Click to expand...
Click to collapse
Run adb from the directory I installed it? How?
garment69 said:
Run adb from the directory I installed it? How?
Click to expand...
Click to collapse
Find adb.exe in your hard drive. When you downloaded the sdk you unzipped the files somewhere.. I'm assuming you didn't add the path of adb.exe to your environment variables (if you did you would be able to type in adb commands from any directory in cmd prompt).
So navigate to driveletter:\adbdirectory\
From this directory you should be able to type in adb and get feedback
Sent from my HTC One using xda premium
born_fisherman said:
Find adb.exe in your hard drive. When you downloaded the sdk you unzipped the files somewhere.. I'm assuming you didn't add the path of adb.exe to your environment variables (if you did you would be able to type in adb commands from any directory in cmd prompt).
So navigate to driveletter:\adbdirectory\
From this directory you should be able to type in adb and get feedback
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
I found the adb.exe and I ran it. A cmd window popped up for a second then vanished. I have no adb directory that I can find.
garment69 said:
I found the adb.exe and I ran it. A cmd window popped up for a second then vanished. I have no adb directory that I can find.
Click to expand...
Click to collapse
You don't run adb as an application, you run it in command prompt as an MS Dos command.
Adb is located in the tools directory of the sdk..not necessarily it's own directory. I was just saying to navigate to where that directory is from within cmd prompt.. I.e if adb.exe was located in c:\android, you would go to "cd c:\android" then run "adb commandhere"
Sent from my HTC One using xda premium
born_fisherman said:
You don't run adb as an application, you run it in command prompt as an MS Dos command.
Adb is located in the tools directory of the sdk..not necessarily it's own directory. I was just saying to navigate to where that directory is from within cmd prompt.. I.e if adb.exe was located in c:\android, you would go to "cd c:\android" then run "adb commandhere"
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
thank you. I found a tutorial which instructed me to put the destination folder into environmental variables. Then I was able to get it to work.
Minor miracle I was able to get it to work!

[Q]Fastboot

Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please
HeavenKinder said:
Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please
Click to expand...
Click to collapse
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shimp208 said:
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Ok so i did the recovery command and it says waiting for device, what do i need to do?
Now if i try to fastboot using that comand it says:
ADB server is didn't ACK
*failed to start daemon*
error:
And if i write the comand to fast bood and then use Android Ultimate toolbox to flash the recovery image it just sits at waiting for device and if i cancel it and do it again it just says i need to fastboot...
if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good
anabhi said:
if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good
Click to expand...
Click to collapse
When i try to use MobileUncletools and i flash the recovery image, it asks if i want to boot into the new recovery, it turns off the phone, and when it turns it back on it just freezes in the apple logo
Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...
bump
HeavenKinder said:
Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...
Click to expand...
Click to collapse
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}
shimp208 said:
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}
Click to expand...
Click to collapse
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.
bump
Bump
HeavenKinder said:
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.
Click to expand...
Click to collapse
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.
shimp208 said:
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.
Click to expand...
Click to collapse
Wheres the cache file?
HeavenKinder said:
Wheres the cache file?
Click to expand...
Click to collapse
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.
shimp208 said:
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.
Click to expand...
Click to collapse
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?
HeavenKinder said:
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?
Click to expand...
Click to collapse
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log
shimp208 said:
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log
Click to expand...
Click to collapse
'cat' is not recognized as an internal or external command, operable program or batch file
HeavenKinder said:
'cat' is not recognized as an internal or external command, operable program or batch file
Click to expand...
Click to collapse
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log
shimp208 said:
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log
Click to expand...
Click to collapse
No such file or directory...

Categories

Resources