Skip to content

Commit fd4a277

Browse files
committed
Try to run the Android emulator
1 parent 87cc313 commit fd4a277

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ jobs:
3737
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -f -n test -d "Nexus 10" -k "system-images;android-${ANDROID_API};default;${ANDROID_ARCH}" --force
3838
echo "y" | $ANDROID_HOME/emulator/emulator -list-avds
3939
echo "Starting emulator"
40+
41+
xml_content='<?xml version="1.0" encoding="UTF-8"?>
42+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
43+
<plist version="1.0">
44+
<dict>
45+
<key>com.apple.security.hypervisor</key>
46+
<true/>
47+
</dict>
48+
</plist>'
49+
eho "$xml_content" > entitlements.xml
50+
codesign -s - --entitlements entitlements.xml --force ${ANDROID_HOME}/emulator/qemu/darwin-aarch64/qemu-system-aarch64-headless
51+
4052
# Start emulator in background
4153
nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics &
4254
# Fixed quoting around "\r"

0 commit comments

Comments
 (0)