Android test Environment Setup

Source: Internet
Author: User

Build your Android test environment:
1). Android Phone driver (General phone USB mode connection pc
will be installed automatically, if not Baidu)
2). JDK32 bit/64-bit
3). ADT32 bit/64 bit: As System variable added:
Android_home:h:\adt-bundle-windows-x86_64-20140702\sdk
Path:%android_home%\platform-tools;%android_home%\tools;

Verify that the environment is successful:
cmd command line input: ADB devices
If the error: A. USB mode on the phone is turned on
B. Whether the driver has a problem

What is ADB?

ADB is a tool in the Android SDK, the ADB is all called Androiddebug Bridge, is to play the role of the Debug bridge. With ADB we can debug the Android program via DDMS in Eclipse, which is the Debug tool. The ADB works in a very special way,
The IDE and QEMU are communicated by listening to sockettcp 5554 ports, and ADB will daemon the associated network ports by default, so the ADB process will run automatically when we run eclipse.

What's the use of ADB?

With ADB tools, we can manage the status of devices or phone simulators. You can also do a lot of phone operations, such as installing software, system upgrades, running shell commands, and so on.
In fact, Jane said, the ADB is connected to the Android phone and PC-side bridge, can let users on the computer on the mobile phone for full operation.
(1) Quickly update the code in the device or phone simulator, such as app or Android system upgrade;
(2) Run the shell command on the device;
(3) Management equipment or mobile phone simulator on the predetermined port;
(4) Copy or paste the file on the device or phone simulator.

ADB devices, get device list and device status
ADB install, installation application, overwrite installation is using the-r option
ADB Uninstall, uninstall the app, followed by the parameter is the app's package name, please distinguish it from the APK file name
-k option to save data and cache directory when uninstalling
ADB kill-server,adb start-server, end adb service, start adb service, pass?? Often two commands are used
ADB push, push local files to Android device, ADB push d:\push.txt sdcard/
ADB pull, copy files or folders on Android device to local, ADB pulling sdcard/pull.txt d:\
ADB logcat, print Android system logs (priority from low to high)
D-debug
W-warning
S-silent Basic does not print
such as: adb logcat*:w (print w,s)

Android test Environment Setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.