Android Debugging Tools ADB
ADB Android Debug Bridge.
The ADB tool is located in the Platform-tools subdirectory of the Android SDK installation directory.
main functions:
- Shell running the device (command line)
- Manage port mappings for emulators or devices
- Upload/download files between your computer and your device
- Install the local APK software to the emulator or Android device
Common commands:
- ADB Connect 192.168.1.103
- ADB devices
- ADB remount
- ADB install [-r] *.apk
- ADB shell
- ADB logcat
common error during network set-top box (OTT) Development:
1, the network set-top box (OTT) development process, OTT box can not use the ADB tool, need to enter the following command in the serial port
setprop service.adb.tcp.port5555start adbd
2. ADB Connect FAQs
notrunningiton5037to start daemon *errorto daemon
Problem Analysis: ADB uses port 5037 occupied by other application, view and kill
Terminal input Netstat-a-o 5037
See 6520 which process is Tasklist/fi "pid eq 6520"
Kill the Adb.exe process.
ADB FAQs and the corresponding reasons
install_failed_already_exists:Program already exists
install_failed_invalid_apk:Invalid APK
Install_failed_invalid_uri:Invalid link
Install_failed_insufficient_storage:Not enough storage space
Install_failed_duplicate_package:A program with the same name already exists
Install_failed_no_shared_user:The required shared user does not exist
install_failed_update_incompatible:Versions cannot coexist
install_failed_shared_user_incompatible:Shared user Signature error for demand
install_failed_missing_shared_library:The shared library of requirements is missing
Install_failed_replace_couldnt_delete:The shared library for requirements is not valid
**install_failed_dexopt:**dex Optimization validation failed
INSTALL_FAILED_OLDER_SDK:System version is too old
Install_failed_conflicting_provider:There is a content provider with the same name
INSTALL_FAILED_NEWER_SDK:System version is too new
install_failed_test_only:Test program that the caller is not allowed to test
install_failed_cpu_abi_incompatible:The included native code is not compatible
cpu_abiinstall_failed_missing_feature:An invalid attribute was used
install_failed_container_error SD:Card access failed
install_failed_invalid_install_location:Invalid installation path
install_failed_media_unavailable SD:Card does not exist
Install_failed_internal_error:System problem causes installation to fail
DEFAULT:Unknown error
Android Debugging Tools adb