Skip to content

Commit 3fa2327

Browse files
authored
fix: remove .lock files to resolve emulator restart crashes (#35)
Added a command to remove .lock files before starting emulator to prevent crashes.
1 parent 3357ec0 commit 3fa2327

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

start-emulator.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Kill any running emulator instances before starting a new one
44
pkill -f "/opt/android-sdk/emulator/emulator"
55

6+
# Removes .lock files before emulator starts to prevent crashes
7+
rm -rf /data/android.avd/*.lock
8+
69
# Use custom ramdisk if present
710
if [ -f /data/android.avd/ramdisk.img ]; then
811
RAMDISK="-ramdisk /data/android.avd/ramdisk.img"

0 commit comments

Comments
 (0)