Member-only story

Exploring Emulator Command-Line Options

Narendra Harny
3 min readJan 13, 2025

Command-line options for Android Emulators are a treasure trove of functionalities that can enhance your testing, debugging, and development workflows. Below, we’ll uncover these options with clear explanations and practical use cases to help you make the most of the emulator.

Photo by Lukas Hron on Unsplash

Emulator Command-Line Options

Basic Startup Options

no-window

  • Runs the emulator in headless mode without opening the GUI.
  • Use Case: Useful for CI/CD pipelines where GUI is unneces sary.

Example:

emulator -no-window

-port

  • Specifies the port for communication with the emulator.
  • Use Case: When running multiple emulators simultaneously, each needs a unique port.

Example:

emulator -port 5556

-scale

  • Sets the display scaling for the emulator.
  • Use Case: Useful when the emulator doesn’t fit well on your screen.

Example:

emulator -scale 0.75

Performance Optimization Options

-gpu

--

--

Narendra Harny
Narendra Harny

Written by Narendra Harny

Connect on https://medium.com/make-android | Write On, Android AOSP & Applications | Python | DevOps | Java | C++ | Kotlin | Shell | Linux | Android Auto | IVI

No responses yet