Last active
          April 14, 2016 02:47 
        
      - 
      
 - 
        
Save alopatindev/cbae16e162cd073e91931621d3c08483 to your computer and use it in GitHub Desktop.  
    android_emulator.sh
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| TARGET='android-18' | |
| NAME='android' | |
| RECREATE=1 | |
| APATH=$ANDROID_SDK/tools/android | |
| LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ANDROID_SDK}/tools/lib64" | |
| [ ${RECREATE} = 1 ] && ( | |
| # $APATH delete avd -n ${NAME} | |
| echo no | $APATH create avd -f -n ${NAME} -t ${TARGET} -c 512M | |
| sed -i 's!vm\.heapSize=[0-9]*!64!;s!vm\.ramSize=[0-9]*!vm.ramSize=2048!;s!hw.mainKeys=no!hw.mainKeys=yes!' ~/.android/avd/${NAME}.avd/config.ini | |
| ) | |
| ${ANDROID_SDK}/tools/emulator64-arm -avd ${NAME} -gpu on | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment