Android---ADB (Android Debug Bridge) using a simple introduction to ADB:ADB full name Android Debug Bridge, Android debugging Bridges. Connecting the bridge is the connection between your computer and your phone, allowing you to run Linux commands on your computer to manage your phone, and also to load and unload software. Ii. Common directives of the ADB:ADB devices # List all the devices
Reset adb # If you restart ADB. If the device fails to connect in the DDMS, it can be restarted to resolve
ADB kill-server # Kill ADB Debug Bridge
ADB start-server # start ADB Debug bridge
ADB shell # If the computer has only one simulator or only one phone, then enter the shell of the device, you can execute the Linux command at this time
ADB Shell [command] # Executing Linux commands, such as adb shell LS, is the list of all files under the connected device
ADB bugreport # View Bug reports
ADB install <apk file path > # This command installs the specified APK file on the device
ADB uninstall < software name > # Uninstall Software
ADB uninstall-k < software name > # If you add the-K parameter to uninstall the software but retain the configuration and cache files
ADB Push < Local path > < remote path > # Use the push command to copy files or folders on your computer to your device (mobile)
ADB pull < Remote path > < local path > # Use the pull command to copy files or folders on your device (phone) to your local computer
Third, the ADB environment variable settings:in the past to use ADB, we need to go to the Platform-tools directory under the SDK directory, drag adb.exe to the Command window before you can enter the command. But this is very inconvenient, every time to use the ADB, all this is very troublesome, how to do?
Workaround: Configure the environment variables. Add the full path to the ADB directory in path so that we can use the ADB in any path
Iv. using the ADB to install the APK file into the emulator
- Ready to install APK file
- Copy the files to the Adt-bundle Sdk/platform-tools folder
- Launch simulator
- Install the APK file using the adb install apkname command
- Viewing results in the emulator
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Use of Android---adb (Android Debug Bridge)