Changeset 12707 for issm/trunk/externalpackages/android/android-sdk
- Timestamp:
- 07/24/12 10:36:46 (13 years ago)
- Location:
- issm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
-
issm/trunk/externalpackages/android/android-sdk/install.sh
r12332 r12707 1 1 #This installs the Android SDK (Software Development Kit) 2 2 #which is needed for the compilation of the Java project. 3 source $ANDROID_DIR/android_variables.sh 3 4 4 step= 3;5 step=1; 5 6 6 7 #Different steps here. … … 11 12 12 13 present_dir=`pwd`; 13 default_droid="Android-4.0"14 14 sd_card="issm-sdcard" 15 16 ((tmp=$1 )) 17 18 if [[ $tmp -ge "1" && $tmp -le "4" ]]; then 19 step=$1 20 else 21 echo "Using default step: " $step 22 fi 15 23 16 24 if [[ $step == "1" ]]; then 17 25 18 26 #Cleanup the install 19 rm -rf install-sdk install-ant27 rm -rf install-sdk 20 28 21 29 #Download from ISSM server 22 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk-r16-macosx.zip' 'android-sdk-r16-macosx.zip' 23 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/apache-ant-1.8.2-bin.zip' 'apache-ant-1.8.2-bin.zip' 30 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk_r'$sdk_rev'-macosx.zip' 'android-sdk_r'${sdk_rev}'-macosx.zip' 24 31 25 32 # Install Android SDK and NDK. 26 unzip -o android-sdk-r16-macosx.zip 27 unzip -o apache-ant-1.8.2-bin.zip 33 unzip -o android-sdk_r${sdk_rev}-macosx.zip 28 34 29 35 #Move to install 30 mv android-sdk-macosx install-sdk 31 mv apache-ant-1.8.2 install-ant 36 mv -f android-sdk-macosx install-sdk 32 37 33 38 #Post_install configuration: … … 37 42 #For now, we need to install: 38 43 #android sdk platform tools 39 #and a specific android api: API 1 540 #Note: API 1 5 corresponds to Android 4.0.344 #and a specific android api: API 16, API 15 and API 14 45 #Note: API 16, API 15 and 14 correspond to Android 4.1, 4.0.3 and 4.0 respectively. 41 46 42 cd install-sdk/tools/ && source ./android update sdk -t platform-tool s,android-15,android-14,system-image --no-ui47 cd install-sdk/tools/ && source ./android update sdk -t platform-tool,${api_levels},system-image --no-ui 43 48 44 49 fi … … 76 81 77 82 cd ../platform-tools 78 ./adb wait-for-device shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system 83 ./adb wait-for-device shell 84 #./adb wait-for-device shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system 79 85 #./adb wait-for-device shell 80 ./adb push $ISSM_TIER/src/c/issm.exe /data/issm.exe81 ./adb shell chmod 777 /data/issm.exe82 ./adb shell /data/issm.exe86 #./adb push $ISSM_TIER/src/c/issm.exe /data/issm.exe 87 #./adb shell chmod 777 /data/issm.exe 88 #./adb shell /data/issm.exe 83 89 fi 84 90 85 91 if [[ $step == "4" ]]; then 86 rm -rf install-sdk install-ant92 rm -rf install-sdk 87 93 fi
Note:
See TracChangeset
for help on using the changeset viewer.