This commit is contained in:
@@ -68,11 +68,18 @@ start_emulator() {
|
|||||||
-gpu swiftshader_indirect \
|
-gpu swiftshader_indirect \
|
||||||
-no-snapshot \
|
-no-snapshot \
|
||||||
&
|
&
|
||||||
|
EMU_PID=$!
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
if ! kill -0 "$EMU_PID" 2>/dev/null; then
|
||||||
|
echo "ERROR: Emulator process died during startup"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_emulator() {
|
wait_for_emulator() {
|
||||||
echo "--- Waiting for emulator boot ---"
|
echo "--- Waiting for emulator boot ---"
|
||||||
adb wait-for-device
|
timeout 60 adb wait-for-device
|
||||||
timeout 240 bash -c '
|
timeout 240 bash -c '
|
||||||
while [ "$(adb shell getprop sys.boot_completed 2>/dev/null | tr -d "\r")" != "1" ]; do
|
while [ "$(adb shell getprop sys.boot_completed 2>/dev/null | tr -d "\r")" != "1" ]; do
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|||||||
Reference in New Issue
Block a user