Detailed explanation of Android ADB usage under Mac OS X

Detailed explanation of Android ADB usage under Mac OS X

1、 What is ADB?

The full name of ADB is Android debug bridge, which is used to debug Android programs. In the vernacular, it is the debug tool!

Location: generally, when downloading Android SDK, there is an ADB program in platform tools.

2、 Configuring ADB command environment on MAC

1. Run the command CD $home to enter the user home directory

2. Create. Bash_ Profile file: touch. Bash_ profile

Open file command: Open - E. Bash_ profile

3. Enter export path = / ~ / Android / SDK / platform tools /: $path in the file

Users can search the database according to the ADB directory in their SDK

4. Run the command source. Bash_ Profile updates the configuration. Use the ADB command to check whether the configuration is successful!

3、 Problems in identifying Android phones under mac

1. Pass the command system_ The profiler spusbdatatype reads the merchant ID (vendor ID) of the mobile phone

2. Use the command echo "merchant ID" > ~ /. Android / ADB_ Usb.ini writes the ID to the file

If ADB_ Usb.ini file does not exist:

Cd ~ /. Android (switch to current path) and touch ADB_ Usn.ini (New)

3. Use the command ADB kill server

ADB start server

ADB devices (view devices)

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>