I have no intention of reading this article today. I want to use the simulator and ADB commands when I don't know how to operate SQLite at the time. I can't do it when I use a mobile phone. I am busy with the operating system today, and I want to add it to my favorites for the moment. Try again in ~
The full name of ADB is Android debug Bridge. It connects your computer to your mobile phone so that you can execute Linux commands on your computer to manage your mobile phone, you can also install and uninstall the software.
First, directly use the ADB command and set D: \ Android-SDK-Windows \ platform-tools in the path of the system environment variable; this path is the directory under ADB's path on my computer. then run the CMD command
1. view the device serial number in ADB Devices
2. ADB shell: if the computer has only one simulator or only one mobile phone, enter the shell of the device and run the Linux Command.
3. ADB-e shell if the computer is connected to a simulator and many mobile phones, this command directly enters the shell of the simulator device.
4. ADB-s shell if the computer is connected to only one mobile phone and many simulators, this command directly enters the shell of the mobile phone device
5. If many mobile phone or simulator devices are connected to the computer, use ADB devices to check the device number and run it on the computer.
C: \ Users \ Administrator> ADB Devices
List of devices attached
Emulator-5554 Device
A device number emulator-5554 is displayed.
Then run the command ADB-s emulator-5554 shell to enter the device. No matter how many devices are there, you can use this command to access the specified device accurately.
6. If you only want to execute a shell command, you can use the following method:
ADB shell [command]
For example, ADB shell LS is used to list all files under the connected device.
7. ADB install <APK file path>: This command installs the specified APK file on the device.
8. ADB uninstall <software Name> uninstall software
ADB uninstall-k <software Name>If the-k parameter is added, the software is uninstalled but the configuration and cache files are retained.
9. ADB push <local path> <remote path>
Use the push command to copy files or folders on the local computer to the device (mobile phone)
10. ADB pull <remote path> <local path>
Run the pull command to copy files or folders on the device (mobile phone) to the local computer.
Local Path on the computer
Remote path: Mobile Phone device or Simulator
11. view the device serial number in ADB get-serialno. On my PC, It is emulator-5554
12.
ADB bugreport view bug report
13.
ADB Shell
Logcat-B radio
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set records through commands.
There are so many commonly used commands of ADB. You can enter ADB in cmd to view the help commands. All command options of ADB are included.
In addition, I personally think it is mainly the use of ADB shell commands, but also a good study of Linux commands
I have no intention of reading this article today. I want to use the simulator and ADB commands when I don't know how to operate SQLite at the time. I can't do it when I use a mobile phone. I am busy with the operating system today, and I want to add it to my favorites for the moment. Try again in ~
The full name of ADB is Android debug Bridge. It connects your computer to your mobile phone so that you can execute Linux commands on your computer to manage your mobile phone, you can also install and uninstall the software.
First, directly use the ADB command and set D: \ Android-SDK-Windows \ platform-tools in the path of the system environment variable; this path is the directory under ADB's path on my computer. then run the CMD command
1. view the device serial number in ADB Devices
2. ADB shell: if the computer has only one simulator or only one mobile phone, enter the shell of the device and run the Linux Command.
3. ADB-e shell if the computer is connected to a simulator and many mobile phones, this command directly enters the shell of the simulator device.
4. ADB-s shell if the computer is connected to only one mobile phone and many simulators, this command directly enters the shell of the mobile phone device
5. If many mobile phone or simulator devices are connected to the computer, use ADB devices to check the device number and run it on the computer.
C: \ Users \ Administrator> ADB Devices
List of devices attached
Emulator-5554 Device
A device number emulator-5554 is displayed.
Then run the command ADB-s emulator-5554 shell to enter the device. No matter how many devices are there, you can use this command to access the specified device accurately.
6. If you only want to execute a shell command, you can use the following method:
ADB shell [command]
For example, ADB shell LS is used to list all files under the connected device.
7. ADB install <APK file path>: This command installs the specified APK file on the device.
8. ADB uninstall <software Name> uninstall software
ADB uninstall-k <software Name>If the-k parameter is added, the software is uninstalled but the configuration and cache files are retained.
9. ADB push <local path> <remote path>
Use the push command to copy files or folders on the local computer to the device (mobile phone)
10. ADB pull <remote path> <local path>
Run the pull command to copy files or folders on the device (mobile phone) to the local computer.
Local Path on the computer
Remote path: Mobile Phone device or Simulator
11. view the device serial number in ADB get-serialno. On my PC, It is emulator-5554
12.
ADB bugreport view bug report
13.
ADB Shell
Logcat-B radio
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set records through commands.
There are so many commonly used commands of ADB. You can enter ADB in cmd to view the help commands. All command options of ADB are included.
In addition, I personally think it is mainly the use of ADB shell commands, but also a good study of Linux commands