diff --git a/tasks/workstation/linux/software/android.yml b/tasks/workstation/linux/software/android.yml index 51618b6..d787c20 100644 --- a/tasks/workstation/linux/software/android.yml +++ b/tasks/workstation/linux/software/android.yml @@ -122,6 +122,43 @@ become_user: "{{ user }}" when: coding == true and not android_sdkmanager_final_stat.stat.exists +# Regarding images to download; the `default` is the smallest, then `playstore`. +# The `google_apis` images are significantly larger than the `playstore` option. +# +# This script was used to download and test the sizes: +# +### #!/bin/bash +### +### cd /home/ling/SDKs/Android/Sdk/cmdline-tools/latest/bin +### +### # Actually to be used +### echo "35 Play Store" +### ./sdkmanager --install "system-images;android-35;google_apis_playstore;x86_64" +### echo "36 Play Store" +### ./sdkmanager --install "system-images;android-36;google_apis_playstore;x86_64" +### +### # FORTESTING file size +### echo "35 AOSP" +### ./sdkmanager --install "system-images;android-35;default;x86_64" +### echo "36 APIs Only" +### ./sdkmanager --install "system-images;android-36;google_apis;x86_64" +### echo "35 APIs Only" +### ./sdkmanager --install "system-images;android-35;google_apis;x86_64" +### +### exit 0 +# +# These were the results: +# +### ~/SDKs/Android/Sdk/system-images]$ du -had2 | sort -h +### 1.7G ./android-35/default +### 2.2G ./android-35/google_apis_playstore +### 2.3G ./android-36/google_apis_playstore +### 3.5G ./android-35/google_apis +### 4.3G ./android-36/google_apis +### 6.6G ./android-36 +### 7.3G ./android-35 +### 14G . + # These are safe to run multiple times, and uses the new `latest` version. - name: Workstation | Linux | Software | Android | Install Modules shell: "yes | {{ android_sdkmanager_final }} --install '{{ item }}' --sdk_root={{ android_sdk_location }}" @@ -132,15 +169,13 @@ - sources;android-36 ## Images #- system-images;android-35;default;x86_64 # Does not exist yet - #- system-images;android-36;google_apis;x86_64 # Unsure whether to use this - system-images;android-36;google_apis_playstore;x86_64 ### 35 ### - build-tools;35.0.1 - platforms;android-35 - sources;android-35 ## Images - #- system-images;android-35;default;x86_64 # Already have Store version - #- system-images;android-35;google_apis;x86_64 # Already have Store version + - system-images;android-35;default;x86_64 - system-images;android-35;google_apis_playstore;x86_64 become_user: "{{ user }}" when: coding == true @@ -149,10 +184,14 @@ - name: Workstation | Linux | Software | Android | Remove Modules shell: "yes | {{ android_sdkmanager_final }} --uninstall '{{ item }}' --sdk_root={{ android_sdk_location }}" loop: + ### 36 ### + ## Images + - system-images;android-36;google_apis;x86_64 ### 35 ### - build-tools;35.0.0 ## Images - system-images;android-35;aosp_atd;x86_64 # Automated Test Device, unnecessary. + - system-images;android-35;google_apis;x86_64 ### 34 ### - build-tools;34.0.0 - platforms;android-34