mozdevice
Mozilla-authored device management
What it is and what it does
mozdevice is a Mozilla-authored library for managing and controlling connected mobile devices and emulators. It abstracts the complexity of device communication, allowing test automation and tooling to interact with Android devices and emulators through a unified interface. The package depends only on mozlog for structured logging, keeping its dependency footprint minimal.
The library is part of Mozilla's mozbase testing infrastructure and is primarily used within Firefox testing workflows. However, its maintenance is dormant—the last release was over 645 days ago—meaning it receives no active development, bug fixes, or feature additions. It remains functional for existing use cases but should be considered stable-but-unsupported; if you need active maintenance or modern device support, you may need to fork it or seek alternatives.
Use it for:
- Automate testing on connected Android devices or emulators in CI/CD pipelines for Firefox or other projects.
- Write test scripts that push APKs, run commands, or collect logs from multiple devices in parallel.
- Integrate device control into custom test harnesses that need to interact with mobile hardware.
- Manage device state and lifecycle (reboot, clear data, install apps) programmatically during test runs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages and controls connected mobile devices and emulators for testing and automation purposes, with a single runtime dependency on mozlog for logging.
Yes, if you are already part of Mozilla's testing ecosystem or need to maintain existing Firefox test infrastructure that depends on it. No, if you are starting a new mobile test automation project—the dormant maintenance status and lack of active development make it a poor choice for new work. Consider it only as a legacy dependency or when integrating with existing Mozilla tooling.
Install
mozdevice on PyPI
pip
pip install mozdeviceuv
uv add mozdevicepoetry
poetry add mozdeviceInstalling mozdevice
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is dormant—last release was 645 days ago—so expect no active bug fixes or feature updates, though the package remains functional for its intended use.
License in practice
Licensed under MPL (copyleft), which requires derivative works and modifications to be distributed under the same license; acceptable for internal testing tools but review required if you plan to redistribute or embed this in proprietary software.
Quickstart
pip install mozdevice
from mozdevice import DeviceManager
device = DeviceManager.from_config({})
Requires a connected device or emulator to be present; the package itself has no strict Python version requirement declared, but supports Python 3.8, 3.9, 3.10, and 3.11.
Verify before relying
- Exact API surface and supported device types (Android, iOS, etc.) not documented in the fact sheet.
- Whether the package works with current versions of Android emulators and device SDKs given its dormant status.
- Real-world compatibility with modern CI/CD pipelines and test frameworks.
Package facts
| License | MPL (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — mozlog |
| Maintenance | dormant — 645 days since the last release |
| First released | |
| Downloads | 376,912/month — #7,127 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mozdevice-4.2.0-py2.py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
mozrunnerMozrunner manages the lifecycle of Mozilla…
copyleft · top 15,000 on PyPI
mozlogProvides structured logging for Python…
copyleft · top 15,000 on PyPI
mozfileProvides file and directory utilities for…
copyleft · top 15,000 on PyPI
mozinfoProvides system information detection for…
copyleft · top 15,000 on PyPI
mozdebugProvides utilities for launching and managing…
copyleft · top 15,000 on PyPI
mozprocessProvides utilities for spawning, managing, and…
copyleft · top 15,000 on PyPI
mozshellutilProvides shell command-line parsing utilities…
copyleft · top 15,000 on PyPI
moblyMobly is a Python test framework designed to…
permissive · top 15,000 on PyPI
codemagic-cli-toolsProvides command-line and Python API tools for…
copyleft · top 5,000 on PyPI
androguardAndroguard is a Python tool for analyzing,…
permissive · top 5,000 on PyPI