Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android adb won't let me enter commands

Tags:

android

adb

I'm trying to deal with some SQLiteDB issues and wanted to use the ABD tool to access my emulators database. When I click on the adb file in the platform-tool file, it opens up but very quickly throws a bunch of text on the window and then closes. Its so fast I can't even tell what it is doing. I tried running as administrator and it didn't change. I'm using Vista if that has anything to do with it.

Any suggestions for how I can even get it to stop from closing so I can enter a command?

like image 289
willmer Avatar asked Apr 25 '12 15:04

willmer


People also ask

Why adb command is not working?

If the ADB command is not found, most likely you need to install the Android SDK Platform-Tools package to make it available in the command prompt. Also, the phone should be in USB debugging mode.

How do I enable adb commands?

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.

Can I run adb commands on Android?

For devices running Android 10 or older, ADB over WiFi can be enabled after some initial setup from a PC. That means on older Android versions, you'll still need to go through the process to set up ADB on your PC. Once you do that, you can then have the app send commands to the ADB server started on the device.


1 Answers

You start the command shell (WindowsKey + R, enter cmd in the window that appears and hit Enter.), then use it from there. adb shell is probably the command you need.

C:\> cd \Path\to\platform-tools
C:\Path\to\platform-tools\> adb shell

if you add the path to your environment PATH you don't need to cd there. [This] should be a good example how to do that.

like image 172
zapl Avatar answered Sep 20 '22 04:09

zapl