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