Changeset 2a71559 in subsurface


Ignore:
Timestamp:
May 31, 2017, 10:16:29 AM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
b9760f1
Parents:
4e16bd7
git-author:
Dirk Hohndel <dirk@…> (05/31/17 10:09:38)
git-committer:
Dirk Hohndel <dirk@…> (05/31/17 10:16:29)
Message:

Android build script: use interactive SDK install

And then manually fix the license as that doesn't appear to work correctly
in the tool.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/android/android-build-wrapper.sh

    r4e16bd7 r2a71559  
    8989        pushd $ANDROID_SDK
    9090        unzip -q ../$SDK_TOOLS
    91         ( sleep 5 && while true ; do sleep 1; echo y; done ) | bash tools/android update sdk --no-ui -a -t 1,2,3,33
     91        echo "Please select the SDK Platform for the latest API and for API 16 (Android 4.2.1)"
     92        echo "as well as the latest Android SDK Tools and Android SDK Platform-tools."
     93        echo "You can unselect the various system images that usually are selected by default."
     94        echo "Then accept the licenses and install."
     95        bash tools/android update sdk
     96        # ( sleep 5 && while true ; do sleep 1; echo y; done ) | bash tools/android update sdk --no-ui -a -t 1,2,3,33
     97        # this is copied from https://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences
     98        mkdir -p licenses
     99        echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "licenses/android-sdk-license"
     100        echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "licenses/android-sdk-preview-license"
     101
    92102        popd
    93103fi
Note: See TracChangeset for help on using the changeset viewer.