File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,18 @@ jobs:
3838 echo "y" | $ANDROID_HOME/emulator/emulator -list-avds
3939 echo "Starting emulator"
4040
41- xml_content='<?xml version="1.0" encoding="UTF-8"?>
41+ cd ${ANDROID_HOME}/emulator/qemu/darwin-aarch64/
42+ entitlements='<?xml version="1.0" encoding="UTF-8"?>
4243 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4344 <plist version="1.0">
4445 <dict>
4546 <key>com.apple.security.hypervisor</key>
4647 <true/>
4748 </dict>
4849 </plist>'
49- eho "$xml_content" > entitlements.xml
50- codesign -s - --entitlements entitlements.xml --force ${ANDROID_HOME}/emulator/qemu/darwin-aarch64/qemu-system-aarch64-headless
50+ echo "$entitlements" > entitlements.xml
51+ codesign -s - --entitlements entitlements.xml --force qemu-system-aarch64-headless
52+ cd -
5153
5254 # Start emulator in background
5355 nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics &
You can’t perform that action at this time.
0 commit comments