@if (isDeviceReady()) {
phone_android
{{ activeDevice()?.model || activeDevice()?.serial }}
@if (activeDevice()?.is_emulator) {
Virtual Device
·
}
{{ activeDevice()?.serial }}
@if (activeDevice()?.screen_resolution) {
·
{{ activeDevice()?.screen_resolution }}
}
@if (activeDevice()?.android_version) {
·
Android {{ activeDevice()?.android_version }}
}
Connected
@if (connectedDevices().length > 1) {
Select Active Device:
@for (dev of connectedDevices(); track dev.serial) {
phone_android
{{ dev.model || dev.serial }}
@if (dev.serial === activeDevice()?.serial) {
✓ Active
}
}
}
}
@if (isEmulatorLaunching() || (!isDeviceReady() && adbProbe()?.summary === 'Device Booting')) {
= 35" [class.active]="emulatorLaunchState()?.status === 'starting'">
@if (emulatorLaunchState()?.progress_percent! >= 35) {
check
} @else {
}
1. Process Start
= 35">
= 65" [class.active]="emulatorLaunchState()?.status === 'waiting_for_adb'">
@if (emulatorLaunchState()?.progress_percent! >= 65) {
check
} @else if (emulatorLaunchState()?.status === 'waiting_for_adb') {
} @else {
2
}
2. ADB Handshake
= 65">
@if (emulatorLaunchState()?.status === 'ready') {
check
} @else if (emulatorLaunchState()?.status === 'booting' || adbProbe()?.summary === 'Device Booting') {
} @else {
3
}
3. Android OS Boot
{{ emulatorLaunchState()?.progress_percent || 25 }}% Complete
timer
Elapsed: {{ emulatorLaunchState()?.elapsed_seconds || 0 }}s
info
Android virtualization cold boot usually takes 20-45 seconds. Live progress is actively tracked above—please do not click launch repeatedly.
@if (showLaunchLogs()) {
@if (emulatorLaunchState()?.logs?.length) {@for (log of emulatorLaunchState()?.logs; track log) {{{ log }}
}} @else {Waiting for process output...
}
}
}
@if (!isDeviceReady() && !isEmulatorLaunching() && emulatorLaunchState()?.status === 'failed') {
@if (emulatorLaunchState()?.logs?.length) {
@for (log of emulatorLaunchState()?.logs; track log) {{{ log }}
}
}
@if (emulatorLaunchState()?.avd_name) {
refresh
Retry Launch ({{ emulatorLaunchState()?.avd_name }})
}
sync
Restart ADB Server
Dismiss
}
@if (!isDeviceReady() && !isEmulatorLaunching() && adbProbe()?.summary !== 'Device Booting' && adbProbe()?.summary !== 'Device Unauthorized' && adbProbe()?.summary !== 'Device Locked' && adbProbe()?.summary !== 'Lock State Unknown' && adbProbe()?.status !== 'fail' && emulatorLaunchState()?.status !== 'failed') {
smartphone
Android Emulator
@if (installedAvds().length > 0) {
{{ installedAvds().length }} DETECTED
} @else {
RECOMMENDED
}
Launch local Android Virtual Device
usb
USB Cable
4 STEPS
Connect physical phone via USB
wifi
Wireless ADB
WI-FI
Connect over local Wi-Fi
@if (activeAdbGuideTab() === 'emulator') {
@if (installedAvds().length > 0) {
@for (avd of installedAvds(); track avd) {
@if (launchingAvd() === avd || (isEmulatorLaunching() && emulatorLaunchState()?.avd_name === avd)) {
{{ emulatorLaunchState()?.status === 'booting' ? 'Booting OS' : 'Starting' }} ({{ emulatorLaunchState()?.elapsed_seconds || 0 }}s)
} @else {
play_arrow
Launch
}
}
} @else {
devices_off
No Android Virtual Devices (AVD) Detected
Linux
macOS
Windows
Follow the step-by-step instructions below to install and start an emulator:
desktop_windows
Android Studio (GUI)
terminal
Command Line (CLI)
@if (emulatorSetupMode() === 'studio') {
Install Android Studio
Download for {{ effectiveOs() === 'darwin' ? 'macOS' : (effectiveOs() === 'windows' ? 'Windows' : 'Linux') }} from
developer.android.com/studio and install.
Open Device Manager
On Studio welcome screen, open More Actions > Virtual Device Manager (or Tools > Device Manager ).
Create Virtual Device
Click Create Device , choose Pixel 8 , select Android 14 (API 34) , and click Finish .
Launch Emulator
Click ▶ Play in Device Manager. Artemis will detect and connect to it automatically!
}
@if (emulatorSetupMode() === 'cli') {
1
{{ emuHypervisorTitle() }}
{{ emuHypervisorDesc() }}
{{ effectiveOs() === 'windows' ? 'PS>' : '$' }}
{{ emuHypervisorCmd() }}
{{ copiedId() === 'emu_kvm' ? 'check' : 'content_copy' }}
{{ copiedId() === 'emu_kvm' ? 'Copied!' : 'Copy' }}
2
Download Emulator & System Image (API 34)
Install Android 14 Google APIs system image using SDK Manager:
{{ effectiveOs() === 'windows' ? 'PS>' : '$' }}
{{ emuSdkInstallCmd() }}
{{ copiedId() === 'emu_sdk' ? 'check' : 'content_copy' }}
{{ copiedId() === 'emu_sdk' ? 'Copied!' : 'Copy' }}
3
Create Virtual Device (Pixel 8 AVD)
Initialize a new Android Virtual Device named Pixel_8_API_34:
{{ effectiveOs() === 'windows' ? 'PS>' : '$' }}
{{ emuCreateAvdCmd() }}
{{ copiedId() === 'emu_create' ? 'check' : 'content_copy' }}
{{ copiedId() === 'emu_create' ? 'Copied!' : 'Copy' }}
4
Start the Emulator
Launch the virtual device (or add -no-window for headless execution):
{{ effectiveOs() === 'windows' ? 'PS>' : '$' }}
emulator -avd Pixel_8_API_34 -no-boot-anim
{{ copiedId() === 'emu_run' ? 'check' : 'content_copy' }}
{{ copiedId() === 'emu_run' ? 'Copied!' : 'Copy' }}
}
}
}
@if (activeAdbGuideTab() === 'usb') {
cable
Connect your Android phone via USB cable and enable USB Debugging:
Connect USB Cable
Plug your Android phone into this computer with a data cable.
Enable Developer Options
In phone Settings > About Phone , tap Build Number 7
times.
Enable USB Debugging
In Settings > Developer Options , turn USB Debugging ON.
Authorize Computer
Check "Always allow" and tap Allow on the phone prompt.
}
@if (activeAdbGuideTab() === 'wifi') {
wifi
Connect your phone and computer on the same Wi-Fi network:
@if (wifiConnectMessage()) {
check_circle
{{ wifiConnectMessage() }}
}
@if (wifiConnectError()) {
error
{{ wifiConnectError() }}
}
help_outline
Find IP & port in phone Settings > Developer Options > Wireless Debugging .
}
}
@if (adbProbe()?.status === 'warn' && (adbProbe()?.summary === 'Device Locked' || adbProbe()?.summary === 'Lock State Unknown')) {
lock
{{ adbProbe()?.summary === 'Device Locked' ? 'Device Is Locked' : 'Unable to Verify Lock State' }}
{{ adbProbe()?.description }}
refresh
{{ isRefreshingDiagnostics() ? 'Checking...' : 'Check Again' }}
}
@if (adbProbe()?.status === 'warn' && adbProbe()?.summary === 'Device Unauthorized') {
screen_lock_portrait
USB Debugging Authorization Pending
Your Android device was detected, but it requires authorization. Please unlock your phone screen and tap "Allow USB Debugging" .
refresh
Restart ADB & Check
}
@if (adbProbe()?.status === 'fail') {
error
Android Platform Tools (adb) not found. Please install ADB on your operating system:
Linux (Ubuntu / Debian)
@if (effectiveOs() === 'linux') {
Detected
}
$
sudo apt-get install -y adb
{{ copiedId() === 'linux_adb' ? 'check' : 'content_copy' }}
{{ copiedId() === 'linux_adb' ? 'Copied!' : 'Copy' }}
macOS (Homebrew)
@if (effectiveOs() === 'darwin') {
Detected
}
$
brew install android-platform-tools
{{ copiedId() === 'mac_adb' ? 'check' : 'content_copy' }}
{{ copiedId() === 'mac_adb' ? 'Copied!' : 'Copy' }}
Windows (WinGet)
@if (effectiveOs() === 'windows') {
Detected
}
>
winget install Google.PlatformTools
{{ copiedId() === 'win_adb' ? 'check' : 'content_copy' }}
{{ copiedId() === 'win_adb' ? 'Copied!' : 'Copy' }}
}