Configuring the Android Real-world debugging environment on MAC systems

Source: Internet
Author: User


The system I use is OS X Yosemite 10.10.2, using the Android phone is MX4 Pro

1. Install the ADB client. You can download the latest version of the SDK and have the ADB command in the Platform-tools directory

2. Configure the environment variables for the ADB command. Join in. Bash_profile

Export path= $PATH:/users/jerikc/library/android/sdk/platform-tools
If the. Bash_profile is not found on the OS X system, you can create the. bash_profile file by using the following command
$ touch. Bash_profile
3. Execution. bash_profile
$ source ~/.bash_profile
4. Check that the ADB environment variable is configured successfully
$ adb versionandroid Debug Bridge version 1.0.32

5. Connect your Android phone, and be careful not to use the charging cable to connect with the data cable.

The "Connection mode" selected on the phone is "built-in disc" mode:

I am using MX4 Pro, as follows:

6. Find the vendor ID of the device

That is, the Vender ID is 0x2a45

7. Add the vendor ID to the ~/.android/adb_usb.ini file

$ vim ~/.android/adb_usb.ini# android 3RD Party USB VENDOR ID LIST--Don't edit.# use ' android update adb ' to generate.# 1 USB VENDOR ID PER line.0x2a45
8. Turn on USB debugging under Developer tools for your phone, restart ADB server

$ adb kill-server$ adb deviceslist of devices attached 76ubbl322by2device

9. Use the ADB command

$ adb remountremount failed:permission denied$ adb shell[email protected]:/$

Because there is no root permission, so remount will appear Permission denied prompt.

10. Run the app on Android Studio/eclipse + ADT and the following screen appears:

Click "OK" to enter the real-machine debugging environment.

Configuring the Android Real-world debugging environment on MAC systems

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.