Summary & Context
During an active session on Google AI Studio Build, the browser-based streaming Android device instance froze when attempting to inspect system settings (specifically, navigating into Bluetooth settings/connected devices).
Although code updates compile successfully via the background build system (compile_applet), the streaming preview pane remains locked on the frozen system screen. Because there is currently no option to restart or power-cycle the virtual device, the developer session is stuck and cannot preview or test any further application changes as seen in the attached screenshot.
2. Issue Description & Current Limitations
- Trigger: Accessing OS-level system menus (such as Bluetooth device discovery) inside the streaming Android container can lock or freeze the system rendering pipeline or UI thread.
- Build vs. Runtime Disconnect: The AI Agent tool
compile_appletcontinues to report build success (Build succeeded - the applet is compiled), but the streaming container is unable to re-install or launch the newly compiled APK over the frozen OS state. - Missing UI Controls: The preview window header currently provides standard controls (Navigation, Rotate, View Options), but lacks a “Restart Device” / “Power Cycle” button to soft/hard reset the virtual device container.
- Agent Capabilities: The AI Coding Agent lacks a tool call to restart the remote streaming emulator or trigger an ADB/container restart when recovery is required.
3. Proposed Solutions & Feature Suggestions
A. Web UI Enhancement (User Control)
Add a “Restart Virtual Device” button in the preview pane toolbar alongside the existing navigation and rotate controls.
- Behavior: Clicking “Restart Device” would perform a clean restart of the underlying Android virtual container or restart the streaming web session, forcing a fresh installation of the latest compiled APK without destroying project workspace files.
B. Agent Tooling Enhancement (AI Autonomy)
Introduce a new system tool call or parameter for the AI Agent:
- Dedicated Tool Call: e.g.,
restart_virtual_device()orreset_emulator_container(). - Extended
compile_appletparameter: e.g.,compile_applet(force_device_reboot = true).
- Value: When a user reports “the app or device is frozen”, the AI agent can proactively invoke the tool to reboot the virtual device, re-deploy the APK, and recover the session seamlessly.
C. Container Watchdog & Auto-Recovery
- Implement an automated health check or watchdog on the streaming container socket.
- If ADB or the surface renderer stops responding to key/touch input for an extended threshold, automatically reboot the virtual instance and reload the app container.
4. Environment & Session Details
- Platform: Google AI Studio Build (https://ai.studio/build)
- Environment: Android Streaming Virtual Container
- Browser: Google chrome latest version
- Model: Gemini 3.6 Flash
- Impact: Blocks session testing and forces manual browser reloads or workspace abandonment when OS-level deadlocks occur.
