Changeset 11718


Ignore:
Timestamp:
03/15/12 13:47:10 (13 years ago)
Author:
glperez
Message:

Modified the install.sh script of Android-SDK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/externalpackages/android-sdk/install.sh

    r11673 r11718  
    22#which is needed for the compilation of the Java project.
    33
    4 step=1;
     4step=3;
    55
    66#Different steps here.
     
    1111
    1212present_dir=`pwd`;
     13default_droid="Android-4.0.3"
    1314
    1415if [[ $step == "1" ]]; then
     
    3132        #For now, we need to install: 
    3233        #android sdk platform tools 
    33         #a specific android api: API 15
     34        #and a specific android api: API 15
     35        #Note: API 15 corresponds to Android 4.0.3
    3436
    35         cd install-sdk/tools/ && source ./android
     37        cd install-sdk/tools/ && source ./android update sdk -t platform-tools,android-15 --no-ui
     38
    3639fi
    3740
     
    4245        #For now, it's called: Android-4.0.3
    4346
     47
     48        #Here we delete the Android-4.0.3 device if it already exists.
    4449        cd $present_dir/install-sdk/tools
    45         ./android avd
    46         mv ~/.android/avd/Android-4.0.3.*  $ISSM_TIER/externalpackages/android-emulators
     50        ./android delete avd -n $default_droid
     51
     52        #Android will prompt the user to specify hardware emulation options. For now, default
     53        #default settings will suffice. Press 'enter' to take default settings or enter 'no'.
     54
     55        ./android create avd -f -n $default_droid -t 1
     56        ./android move avd -n Android-4.0.3 -p $ISSM_TIER/externalpackages/android-emulators/$default_droid
    4757
    4858fi
     
    5161if [[ $step == "3" ]]; then
    5262       
    53         cd $present_dir/install-sdk/platform-tools
    54         ./adb -p "$ISSM_TIER/externalpackages/android-emulators" devices
    55 
     63        cd $present_dir/install-sdk/tools
     64        ./emulator -avd $default_droid
    5665fi
    5766
Note: See TracChangeset for help on using the changeset viewer.