You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
53 lines
1.6 KiB
#!/bin/bash
|
|
|
|
# Android Emulator Launch Script - Mesa Fallback Mode
|
|
# Uses Mesa software rendering as last resort for stability
|
|
# Use when hardware acceleration causes issues
|
|
# Author: Matthew Raymer
|
|
|
|
echo "🚀 Launching Android Emulator - Mesa Fallback Mode..."
|
|
|
|
# Check if emulator command exists
|
|
if ! command -v emulator &> /dev/null; then
|
|
echo "❌ Error: Android emulator not found!"
|
|
echo "Please install Android Studio and add emulator to PATH"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if AVD exists
|
|
if ! emulator -list-avds | grep -q "TimeSafari_Emulator"; then
|
|
echo "❌ Error: TimeSafari_Emulator AVD not found!"
|
|
echo "Available AVDs:"
|
|
emulator -list-avds
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Environment checks passed"
|
|
echo "🎮 Starting emulator with Mesa software rendering..."
|
|
|
|
# Launch emulator with Mesa software rendering
|
|
emulator -avd TimeSafari_Emulator \
|
|
-gpu mesa \
|
|
-no-boot-anim \
|
|
-no-snapshot-load \
|
|
-feature -Bluetooth
|
|
|
|
echo "🎯 Emulator launched with Mesa software rendering!"
|
|
echo ""
|
|
echo "📋 Configuration:"
|
|
echo " - Mesa software rendering"
|
|
echo " - No hardware acceleration"
|
|
echo " - Fast startup (no boot animation)"
|
|
echo " - Clean state (no snapshot loading)"
|
|
echo " - Bluetooth disabled (prevents hangs)"
|
|
echo ""
|
|
echo "⚠️ Performance Notes:"
|
|
echo " - Slower than hardware acceleration"
|
|
echo " - More CPU intensive"
|
|
echo " - Use only for stability testing"
|
|
echo " - Good for debugging GPU issues"
|
|
echo ""
|
|
echo "🔄 To return to hardware acceleration:"
|
|
echo " - Use ./launch-emulator-gpu.sh for NVIDIA GPU"
|
|
echo " - Use ./launch-emulator-opengl.sh for Pure OpenGL"
|
|
echo " - Use ./launch-emulator-angle.sh for ANGLE mode"
|
|
|