Documentation Index
Fetch the complete documentation index at: https://quashbugs.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Mahoraga setup & calibration
Mahoraga is the execution agent that runs on your Android device or emulator. It detects UI elements, executes test actions, captures screenshots, and reports results back to Quash. This page covers how to set it up and calibrate it for accurate test execution.Installation
Mahoraga installs automatically when you connect a device to Quash:- Physical devices — installed on first connection. You will be prompted to allow the installation on your phone.
- Emulators — pre-installed with permissions granted. No setup needed.
- Cloud devices — pre-configured. No setup needed.
Accessibility setup (physical devices only)
Emulators and cloud devices come pre-configured — skip this section if you are not using a physical device. Mahoraga needs Android’s accessibility APIs to read UI elements, detect interactive components, perform actions, and capture screen hierarchy. Without accessibility enabled, Quash cannot identify where to tap or read text from the screen. To enable:- Open the Mahoraga app on your device.
- Tap Accessibility Service.
- You will be redirected to Settings → Accessibility.
- Find Mahoraga in the services list and toggle it ON.
- Read the permission warning and tap Allow.
- Restart the device and try again.
- Go to Settings → Apps → Mahoraga → Storage → Clear Cache, then retry.
- Disconnect the device from Quash and reconnect — Quash reinstalls Mahoraga automatically. Redo the accessibility setup.
- Some manufacturer launchers (particularly MIUI on Xiaomi) block accessibility services. Temporarily switch to the default Android launcher and retry.
Bounding box calibration (physical devices only)
Bounding boxes are yellow outlines that show where Mahoraga detects UI elements. On physical devices, screen density differences can cause these to be offset — meaning Mahoraga taps in the wrong location. Emulators and cloud devices rarely need calibration. When to calibrate:- First time connecting a physical device
- After a device software update
- If tests are tapping wrong locations
- Open the Mahoraga app on your device.
- Toggle Overlay to ON. Yellow bounding boxes appear around UI elements.
- Check whether the boxes align with the actual buttons, fields, and text on screen.
- If misaligned, use the X/Y offset sliders to adjust:
- X offset moves boxes left or right.
- Y offset moves boxes up or down.
- Start with small adjustments (±5 pixels).
- Test by running a simple task with a tap on a known button. If the tap lands correctly, calibration is done.
- Toggle Overlay to OFF.
Recommended device settings
These settings improve test reliability and reduce flakiness. All are in Settings → Developer Options on your Android device.| Setting | Value | Why |
|---|---|---|
| USB Debugging | ON | Required for device connection |
| Stay Awake | ON | Prevents screen timeout during tests |
| Animator Duration Scale | OFF or 0.5x | Faster test execution, less waiting for transitions |
| Transition Animation Scale | OFF or 0.5x | Same as above |
| Window Animation Scale | OFF or 0.5x | Same as above |
Emulator performance
If your emulator is slow, check your AVD settings in Android Studio:- RAM: 4GB recommended (minimum 2GB). Do not exceed half your computer’s total RAM.
- CPU Cores: 4 recommended (minimum 2).
- Graphics: Hardware (automatic).
- Boot: Quick Boot saves 30–60 seconds per startup.