- Add emulator management scripts (start/stop/status) with logging to /tmp - Fix AVD config: enable GPU acceleration, increase RAM to 4096M - Update babel-preset-expo 9.3.2 -> 55.0.8 to fix RN 0.83 private methods support without breaking polyfills - Add Android package name to expo app.json - Fix Flutter startup crash: call WidgetsFlutterBinding.ensureInitialized before accessing platform channels in db init Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
1001 B
Bash
Executable File
30 lines
1001 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check Android emulator status
|
|
export ANDROID_HOME="$HOME/Android/Sdk"
|
|
export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$PATH"
|
|
|
|
echo "=== ADB Devices ==="
|
|
adb devices 2>/dev/null || echo "adb not running"
|
|
|
|
echo ""
|
|
echo "=== Emulator Processes ==="
|
|
ps aux | grep -E "(qemu-system|emulator)" | grep -v grep || echo "No emulator running"
|
|
|
|
echo ""
|
|
echo "=== Boot Status ==="
|
|
if adb devices 2>/dev/null | grep -q "emulator"; then
|
|
echo "boot_completed: $(adb shell getprop sys.boot_completed 2>/dev/null | tr -d '\r')"
|
|
echo "boot_anim: $(adb shell getprop init.svc.bootanim 2>/dev/null | tr -d '\r')"
|
|
echo "API level: $(adb shell getprop ro.build.version.sdk 2>/dev/null | tr -d '\r')"
|
|
else
|
|
echo "No emulator connected"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Recent Boot Log ==="
|
|
tail -10 /tmp/emulator-boot.log 2>/dev/null || echo "No boot log"
|
|
|
|
echo ""
|
|
echo "=== Recent Emulator Log (last 10 lines) ==="
|
|
tail -10 /tmp/emulator.log 2>/dev/null || echo "No emulator log"
|