Skip to content

Commit a86bcba

Browse files
committed
Set AVD partition size
1 parent 4a2a9c7 commit a86bcba

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/scripts/android/android-emulator-tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,22 @@ sdkmanager --install "emulator" "platform-tools" "platforms;android-${ANDROID_AP
108108

109109
log "Creating Android emulator"
110110
avdmanager create avd --force -n "${EMULATOR_NAME}" --package "${EMULATOR_SPEC}" --device "${ANDROID_PROFILE}"
111+
echo "Searching for emulator in: ${ANDROID_AVD_HOME}"
112+
find "${ANDROID_AVD_HOME}" || true
113+
echo "Searching for emulator in: /"
114+
find / | grep "${EMULATOR_NAME}" || true
111115

112116
ANDROID_AVD_CONFIG="${ANDROID_AVD_HOME}"/"${EMULATOR_NAME}".avd/config.ini
113117
#mkdir -p "$(dirname ${ANDROID_AVD_CONFIG})"
114118
# ~2G partition size
115119
echo 'disk.dataPartition.size=1024MB' >> "${ANDROID_AVD_CONFIG}"
116120
log "Checking Android emulator"
117-
find "${ANDROID_AVD_HOME}"
118121

119122
log "Listing Android emulators"
120123
emulator -list-avds
121124

122-
log "Enable KVM"
123-
emulator -accel-check || true
125+
#log "Enable KVM"
126+
#emulator -accel-check || true
124127

125128
# enable KVM on Linux, else error on emulator launch:
126129
# CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).

0 commit comments

Comments
 (0)