Debugging example of Android connection to a real machine on a Mac computer

Source: Internet
Author: User


I picked up the Android development again. In, I made a preliminary exploration. After that, the various packaging methods of phonegap finally had to be native to be smooth;

No more nonsense. Paste the steps directly (open the development and debugging mode of the mobile phone)

1. Command window input: system_profiler SPUSBDataType
Display
MX4:

Product ID: 0x0c02

Vendor ID: 0x2a45

Version: ff. ff

Serial Number: 750BBKJ22QMV

Speed: Up to 480 Mb/sec

Manufacturer: Meizu

Location ID: 0x14100000/8

Current Available (mA): 500

Current Required (mA): 500
Record the value of Vendor ID: 0x2a45 and leave it as a backup

Step 2: create and modify the adb_usb.ini file
Input: vi ~ /. Android/adb_usb.ini command, add 0x2a45 to the open adb_usb.ini File (save and exit)

Then restart the finder: click the Apple icon in the upper left corner of the window-> force exit-> Finder-> restart

2: Add the adb command to the environment (skip this step if added)

Vi ~ /. Bash_profile file
Export PATH =/Users/leeyz/Desktop/adt-bundle-mac/sdk/platform-tools/: $ PATH

3. Step 3: restart adb
Adb kill-server

Adb start-server)

Adb devices

The list is displayed.

Related Article

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.