Windows XP and Ubuntu 10.04. For other platforms, please take installing the SDK as a reference.
<Android_SDK_DIR> with windows XP command window
SDK Manager.exe to startup the Android SDK Manager
Android SDK platform-tools
Android SDK platform-tools, the adb tool will be included
platform-tools and execute adb.exe to list help message
Android_SDK_DIR> adb.exe
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
... ... ... ... ... ...
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
... ... ... ... ... ...
$ cd <Android_SDK_DIR>/tools
$ ./android
select Android SDK platform tools and click install packags
$ cd <Android_SDK_DIR>/platform-tools
$ ./adb
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
... ... ... ... ... ...
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
... ... ... ... ... ...
.apk application: adb install *.apk
adb push <file_name> <android_path>
adb pull <android_path/file_name> <local_path/file_name>
adb shell
<Android_SDK_DIR\platform-tools> with windows XP command window.
android.bat update adb, after this operation, you will get adb_usb.ini file under your $WINDOWS_HOME\.android directory.
adb_usb.ini file and add 0x03EB to this file.
<Android_SDK_DIR\platform-tools> and excute adb kill-server to kill the adb server, and then restart the adb server with adb start-server
<Android_SDK_DIR/platform-tools> with console.
./android update adb, after this operation, you will get adb_usb.ini file under your $HOME/.android directory.
adb_usb.ini file and add 0x03EB to this file.
<Android_SDK_DIR/platform-tools> and excute ./adb kill-server to kill the adb server, and then restart the adb server with ./adb start-server
Copyright by the contributing authors. All material on the platform is the property of the contributing authors.
Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions
Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.![]()
ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.
Under the terms of the Creative Commons Attribution License