Android adb won't let me type commands

I am trying to deal with some SQLiteDB issues and wanted to use the ABD tool to access my emulator database. When I click on the adb file in the platform tool file, it opens, but very quickly displays a bunch of text in the window and then closes. Its so fast I can’t even say what it is doing. I tried to work as an administrator, and he has not changed. I use Vista if it has anything to do with it.

Any suggestions on how I can make him stop from closing so that I can enter a command?

+6
source share
3 answers

Run the command shell ( WindowsKey + R , type cmd in the window that appears and press 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 added the path to your PATH environment you don't need cd there. [ This ] should be a good example of how to do this.

+10
source

As mentioned in zapl, you need to run the command prompt, add the adb directory to the path, and then run the adb commands. You can also get the trick using DDMS.

0
source

The answer was not clear that you first need to run the windows cmd.exe window program. Make sure you are in the correct directory, then run ADB from this cmd program.

In order for windows to find adb.exe ("located in the correct directory"), you can manually go to the location of adb.exe (usually platform tools) manually using the "cd" command or update the instruction along the way so that windows can find its no matter where the cmd.exe prompt is indicated.

0
source

Source: https://habr.com/ru/post/914141/


All Articles