mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			687 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			687 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
if [[ -z "${ANDROID_HOME}" ]]; then
 | 
						|
    SDKDIR=$PWD/.android-sdk
 | 
						|
    export ANDROID_HOME=${SDKDIR}
 | 
						|
    export ANDROID_SDK_ROOT=${SDKDIR}
 | 
						|
fi
 | 
						|
 | 
						|
echo "Killing previous emulators"
 | 
						|
${ANDROID_HOME}/platform-tools/adb devices | grep emulator | cut -f1 | while read line; do ${ANDROID_HOME}/platform-tools/adb -s $line emu kill; done
 | 
						|
 | 
						|
echo "Starting emulator"
 | 
						|
nohup ${ANDROID_HOME}/emulator/emulator -avd android31 -no-audio -no-window -gpu swiftshader &
 | 
						|
${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
 | 
						|
${ANDROID_HOME}/platform-tools/adb devices
 | 
						|
echo "Emulator started" |