Skip to content

Commit 3299601

Browse files
committed
Press power button on emulator with adb shell input keyevent 26
1 parent 47f8b44 commit 3299601

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ jobs:
153153
- name: Emulator - Create
154154
run: avdmanager --verbose create avd --force -n "${ANDROID_EMULATOR_NAME}" --device "${ANDROID_PROFILE}" --abi "${ANDROID_TARGET}/${EMULATOR_ARCH}" --package "system-images;android-${ANDROID_API};${ANDROID_TARGET};${EMULATOR_ARCH}" --sdcard 512M
155155

156-
- name: Emulator - Find AVDs
157-
run: find ~/ -type d -name '*.avd'
156+
#- name: Emulator - Find AVDs
157+
# run: find ~/ -type d -name '*.avd'
158158

159-
- name: Emulator - List AVDs
160-
run: emulator -list-avds
159+
#- name: Emulator - List AVDs
160+
# run: emulator -list-avds
161161

162162
- name: Emulator - Boot
163163
run: nohup emulator -memory 4096 -avd "${ANDROID_EMULATOR_NAME}" -wipe-data -no-window -accel off -no-accel -gpu "${EMULATOR_GPU}" -no-snapshot -noaudio -no-boot-anim &
@@ -166,6 +166,10 @@ jobs:
166166
run: adb wait-for-any-device
167167
timeout-minutes: 5
168168

169+
- name: ADB Press Power Button
170+
run: adb shell input keyevent 26
171+
timeout-minutes: 5
172+
169173
- name: "Check Emulator"
170174
run: |
171175
adb shell 'echo Hello Android!'

0 commit comments

Comments
 (0)