Last active
August 29, 2015 13:57
-
-
Save kazu69/9520624 to your computer and use it in GitHub Desktop.
android sdk for mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb logcat | grep browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install | |
brew install android-sdk | |
/usr/local/Cellar/android-sdk/22.3: 678 files, 94M, built in 18 seconds | |
# path | |
which android | |
/usr/local/bin/android | |
# check Software Development Kit | |
android list sdk | |
Packages available for installation or update: 12 | |
1- ARM EABI v7a System Image, Android API 19, revision 2 | |
2- Intel x86 Atom System Image, Android API 19, revision 2 | |
3- Android Support Repository, revision 4 | |
4- Google Analytics App Tracking SDK, revision 3 | |
5- Google Play services for Froyo, revision 12 | |
6- Google Play services, revision 15 | |
7- Google Repository, revision 6 | |
8- Google Play APK Expansion Library, revision 3 | |
9- Google Play Billing Library, revision 5 | |
10- Google Play Licensing Library, revision 2 | |
11- Google Web Driver, revision 2 | |
12- Intel x86 Emulator Accelerator (HAXM), revision 3 | |
# example: update & install sdk | |
android update sdk --no-ui --filter 1,2,3 | |
# Android Debug Bridge | |
adb version | |
Android Debug Bridge version 1.0.31 | |
android list targets | |
---------- | |
id: 1 or "android-10" | |
Name: Android 2.3.3 | |
Type: Platform | |
API level: 10 | |
Revision: 2 | |
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 | |
Tag/ABIs : default/armeabi, default/x86 | |
---------- | |
id: 2 or "android-16" | |
Name: Android 4.1.2 | |
Type: Platform | |
API level: 16 | |
Revision: 4 | |
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in | |
Tag/ABIs : default/armeabi-v7a, default/mips, default/x86 | |
---------- | |
id: 3 or "android-19" | |
Name: Android 4.4.2 | |
Type: Platform | |
API level: 19 | |
Revision: 3 | |
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in | |
Tag/ABIs : default/armeabi-v7a, default/x86 | |
---------- | |
id: 4 or "Google Inc.:Google APIs:10" | |
Name: Google APIs | |
Type: Add-On | |
Vendor: Google Inc. | |
Revision: 2 | |
Description: Android + Google APIs | |
Based on Android 2.3.3 (API level 10) | |
Libraries: | |
* com.android.future.usb.accessory (usb.jar) | |
API for USB Accessories | |
* com.google.android.maps (maps.jar) | |
API for Google Maps | |
Skins: WVGA854, QVGA, WQVGA400, WQVGA432, WVGA800 (default), HVGA | |
Tag/ABIs : default/armeabi | |
---------- | |
id: 5 or "Google Inc.:Google APIs:16" | |
Name: Google APIs | |
Type: Add-On | |
Vendor: Google Inc. | |
Revision: 3 | |
Description: Android + Google APIs | |
Based on Android 4.1.2 (API level 16) | |
Libraries: | |
* com.google.android.media.effects (effects.jar) | |
Collection of video effects | |
* com.android.future.usb.accessory (usb.jar) | |
API for USB Accessories | |
* com.google.android.maps (maps.jar) | |
API for Google Maps | |
Skins: WXGA720, WXGA800-7in, WVGA800 (default), WXGA800, WSVGA, WQVGA432, HVGA, WVGA854, WQVGA400, QVGA | |
Tag/ABIs : default/armeabi-v7a | |
---------- | |
id: 6 or "Google Inc.:Google APIs x86:19" | |
Name: Google APIs x86 | |
Type: Add-On | |
Vendor: Google Inc. | |
Revision: 2 | |
Description: Android + Google APIs x86 | |
Based on Android 4.4.2 (API level 19) | |
Libraries: | |
* com.google.android.media.effects (effects.jar) | |
Collection of video effects | |
* com.android.future.usb.accessory (usb.jar) | |
API for USB Accessories | |
* com.google.android.maps (maps.jar) | |
API for Google Maps | |
Skins: WXGA720, WQVGA432, WXGA800-7in, WSVGA, WVGA800 (default), HVGA, WQVGA400, WVGA854, QVGA, WXGA800 | |
Tag/ABIs : default/x86 | |
---------- | |
id: 7 or "Google Inc.:Google APIs:19" | |
Name: Google APIs | |
Type: Add-On | |
Vendor: Google Inc. | |
Revision: 3 | |
Description: Android + Google APIs | |
Based on Android 4.4.2 (API level 19) | |
Libraries: | |
* com.google.android.media.effects (effects.jar) | |
Collection of video effects | |
* com.android.future.usb.accessory (usb.jar) | |
API for USB Accessories | |
* com.google.android.maps (maps.jar) | |
API for Google Maps | |
Skins: WXGA720, WQVGA432, WXGA800-7in, WSVGA, WVGA800 (default), HVGA, WQVGA400, WVGA854, QVGA, WXGA800 | |
Tag/ABIs : default/armeabi-v7a | |
# create emulator | |
android create avd --abi -n avd_2_3_3 -t 1 | |
# GUI start | |
android avd | |
# where local avd | |
ls ~/.android/avd | |
4.1.2.avd GalaxyNxus.avd Nexus10.avd android3.avd avd_2_3_3.avd | |
4.1.2.ini GalaxyNxus.ini Nexus10.ini android3.ini avd_2_3_3.ini | |
# start emulator | |
emulator -avd avd_2_3_3 | |
# logcat | |
emulator -avd avd_2_3_3 -logcat v | |
# log level | |
# v verbose level | |
# d debug level | |
# i informative log level | |
# w warning log level | |
# e error log level | |
# s silent log level | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# long url pass android browser | |
adb shell am start -a android.intent.action.VIEW http://example.com/?mode=your-logn-url-too-long-etc-etc | |
# long test pass | |
adb shell input text xxxxxxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment