Configuring the Android Real-world debugging environment on MAC systems

Source: Internet
Author: User

Configuring the Android Real-world debugging environment on MAC Systems

Configuring the Android Environment on Mac is also very convenient, the real machine debugging is better than win. Win on the various software was forced to install the XXX assistant.

It's a clean feeling on the Mac.

Download Android Studio and then you can install the Download SDK. (as just out of the not available, now more and more convenient)

Environment configuration:

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

PATH=$PATH:/Users/huanglin/Library/Android/sdk/platform-tools

(This file needs to be edited in the terminal input open-s. bash_profile)

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

(The source command is typically used to re-execute the initialization file you just modified so that it takes effect immediately without having to log off and log back on.) )

4. Check that the ADB environment variable is configured successfully

versionAndroid Debug Bridge version 1.0.32

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

This can be from "about this machine"-"system Report"-"USB"-Manufacturer id:0x2717

View can use Vim ~/.android/adb_usb.ini

View can

$ vim ~/.android/adb_usb.ini # android 3RD Party USB VENDOR ID LIST--Don't EDIT. # use ' Android upd Ate adb ' to GENERATE # 1 USB VENDOR ID PER line . 0x2a45

6. Turn on USB debugging under Developer tools for your phone, restart ADB server

kill-server$ adb devicesList of devices attached 76UBBL322BY2device

7. Use the ADB command

$ adb remountremount failed: Permission denied$ adb shellshell@mx4pro:/ $

  

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

Configuring the Android Real-world debugging environment on MAC systems

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.