adb start-server emulator -avd virtual_dev -writable-system -no-window -no-audio & bash /preconf/install_culebra.sh # Save the ad id while the emulator is still up su root cat /data/data/com.google.android.gms/shared_prefs/adid_settings.xml | xmllint --xpath 'string(//map/string[@name="adid_key"])' - > /adid adb emu avd snapshot save configured adb emu kill #to let the host know it finished installing install -m 777 /dev/null /preconf/finished tail -f /dev/null