File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments