From e7d2ec07358ac9cb18f3491bb257b7bf93734877 Mon Sep 17 00:00:00 2001 From: saahir <33964080+s4t7@users.noreply.github.com> Date: Tue, 16 Dec 2025 18:27:36 -0600 Subject: [PATCH] Remove .lock files before starting the emulator Added a command to remove .lock files to prevent emulator crashes. --- start-emulator.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start-emulator.sh b/start-emulator.sh index 42ab048..420c88a 100755 --- a/start-emulator.sh +++ b/start-emulator.sh @@ -3,6 +3,9 @@ # Kill any running emulator instances before starting a new one pkill -f "/opt/android-sdk/emulator/emulator" +# Removes .lock files before emulator starts to prevent crashes +rm -rf /data/android.avd/*.lock + # Use custom ramdisk if present if [ -f /data/android.avd/ramdisk.img ]; then RAMDISK="-ramdisk /data/android.avd/ramdisk.img"