Ignore:
Timestamp:
05/09/12 14:42:43 (13 years ago)
Author:
glperez
Message:

SDK Install script now pushes issm.exe to the device, changes permissions and runs the executable.

File:
1 edited

Legend:

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

    r12189 r12227  
    22#which is needed for the compilation of the Java project.
    33
    4 step=1;
     4step=3;
    55
    66#Different steps here.
     
    1212present_dir=`pwd`;
    1313default_droid="Android-4.0"
     14sd_card="issm-sdcard"
    1415
    1516if [[ $step == "1" ]]; then
     
    6263
    6364        ./android create avd -f -n $default_droid -t 1 -p $ANDROID_DIR/android-emulators/$default_droid --abi armeabi-v7a
     65    echo "Creating an SD Card"
     66    ./mksdcard -l $sd_card 2G $ANDROID_DIR/android-emulators/$sd_card.img
    6467fi
    6568
     
    7073
    7174        cd $present_dir/install-sdk/tools
    72         ./emulator -avd $default_droid -sdcard $ANDROID_DIR/android-emulators/test &
     75        ./emulator -avd $default_droid -sdcard $ANDROID_DIR/android-emulators/$sd_card.img &
    7376
    7477    cd ../platform-tools
    75     ./adb wait-for-device shell
    76 
     78    ./adb wait-for-device shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system
     79    #./adb wait-for-device shell
     80    ./adb push $ISSM_TIER/src/c/issm.exe /data/issm.exe
     81    ./adb shell chmod 777 /data/issm.exe
     82    ./adb shell /data/issm.exe
    7783fi
    7884
Note: See TracChangeset for help on using the changeset viewer.