Test on 50,000+ Real Android and iOS Devices

Live and Automated Real Device Testing on 50,000+ iOS and Android Devices. No Need to Buy or Maintain Device Lab

Android Developer Options: How to Enable Them and Which Ones Testers Need

Android developer options: how to enable them, turn them off, and which toggles testers need, with adb commands for animations and process death.

Summarise with AI

Android developer options are a hidden Settings screen which controls the behavior of the phone for the purposes of debugging. You enable them by going to Settings > About phone, tapping the Build number seven times and then Developer options will appear under System. For app testing, the key options are USB debugging, Stay awake, the three animation scales, Don't keep activities and the mock location app.

TL;DR

Android developer options is a hidden Settings screen that changes system behavior for debugging. You unlock it by opening Settings > About phone and tapping Build number seven times. Developer options then appears under Settings > System, where testers switch on the toggles that keep tests stable or make bugs surface early.

Which Developer Options Should Testers Turn On?

  • USB debugging: To enable USB debugging, open Developer options, switch it on and accept the prompt on the phone. It lets adb and Android Studio reach the device over a USB cable for test installs, adb logcat and local Appium runs.
  • Animation scales: Setting window animation scale, transition animation scale and animator duration scale to 0 on automation devices removes the timing gaps that make UI tests flaky. Android's Espresso setup guide recommends turning all three off. Turned off on manual UX devices: No.
  • Don't keep activities: The Don't keep activities setting destroys every activity as soon as the user leaves it, so a short pass finds screens that lose typed text, selections or scroll position after an app switch. Switch it off when the pass ends.
  • Mock location app: Selecting a mock location app on Android feeds a fake GPS position to every app on the device, for store finders, delivery areas and regional prices. Clear it when the location pass ends. Requires an installed mock location app: Yes.
  • Profile GPU rendering: Profile GPU rendering shows the rendering cost of each frame on screen, while Debug GPU overdraw shows the cost per pixel, so testers can trace jank and slow screens to their source.

How Do You Turn Off Developer Options?

  • Master toggle: To turn off developer options, switch off the master toggle at the top of Settings > System > Developer options. Android.com notes that this also resets the changes you made inside developer options.

Can You Change Developer Options on Cloud Real Devices?

  • TestMu AI Real Device Cloud: TestMu AI public cloud devices run an allowlisted ADB Shell without the settings command, so set GPS location, network throttling and Dark Mode from the session instead. Animation scales changeable on public cloud devices: No.

What Are Android Developer Options?

Android Developer Options is a Settings screen which alters the way the system behaves so that you can debug and profile your apps. Android's own documentation describes it as a screen "where you can configure system behaviors" for profiling and debugging (Android Developers). On Android 4.2 and above, the screen is hidden until you unlock it.

Developer options groups its toggles into nine categories on the current Android builds (General, Debugging, Networking, Input, Drawing, Hardware accelerated rendering, Media, Monitoring and Apps). Most people only ever need one of them, usually USB debugging. Testers will need a few more as a number of the options will alter the behavior of an app in such a way as to expose real bugs.

Android developer mode and Android developer options are the same thing. 'Developer mode' is what people are searching for; 'Developer options' is the name of the setting.

For QA teams, the developer options are of most relevance when doing real device testing (a physical phone rather than an emulator which will behave very differently in terms of memory and GPS). The rest of this guide covers how to turn the screen on and off and then which toggles to use and when.

For a quick visual walkthrough of this concept, watch the video below from TestMu AI.

Youtube thumbnail

Subscribe to the TestMu AI YouTube channel for more tutorials on testing and automation.

How Do You Enable Developer Options on Android?

You enable Developer Options by tapping the build number 7 times. The exact path will depend on the phone manufacturer.

  • Open Settings.
  • Find Build number:
    • Google Pixel: Settings > About phone > Build number
    • Samsung Galaxy S8 and later: Settings > About phone > Software information > Build number
    • Xiaomi, Redmi and POCO: Settings > About phone > Detailed info and specs. Tap the OS/MIUI version several times rather than the Build number, and Developer options will appear under Settings > Additional settings.
    • Other phones: look under About phone, Android version or Software information.
  • Tap Build number seven times. Enter your PIN if prompted. You'll then see "You are now a developer!"
  • Go back. Developer options now appear at the bottom of Settings or under Settings > System.

Keep the master toggle at the top of the Developer options screen switched on. The Android documentation points out that when the master toggle is off, then most of the options are disabled.

How Do You Turn On USB Debugging?

USB debugging allows adb and Android Studio to communicate with the device over a USB cable. You need it in order to install test builds from the command line, read the logs via adb logcat or run Appium against a phone on your desk.

  • Enable developer options (above).
  • Open Developer options and switch on USB debugging. On Android 9 and above, the path is Settings > System > Advanced > Developer options > USB debugging; on many of the newer phones it's Settings > System > Developer options.
  • Connect the phone and then accept the prompt on the phone that comes up asking you to allow USB debugging from this computer.
  • Run adb devices on the computer and check the phone is listed.

If you have not installed adb yet, follow our ADB setup guide first.

Wireless debugging does the same job over Wi-Fi. It's available on Android 11 and above. On Android 16 and above, it's found under Settings > System > Developer options and you do have to pair the phone with your computer when you switch it on.

Note

Note: Testing on phones you don't own? TestMu AI provides you with real Android devices straight in the browser, complete with device logs and an in-session ADB Shell so you don't need a cable or a local adb connection. Kick off a real device app testing session.

How Do You Turn Off Developer Options?

You turn Developer options off with the master toggle at the top of the Developer options screen.

  • Open Settings > System > Developer options (on some phones it's Settings > System > Advanced > Developer options).
  • Switch off the toggle at the top of the screen.

Android.com notes that switching the main toggle off also resets the changes you made.

If you just want to turn off USB debugging, or remove authorization from any computers you'd previously authorized, see how to turn off USB debugging on Android.

Is It Safe to Leave Developer Options On?

Leaving developer options on is fine if you're only changing the settings that you understand. Android.com cautions that unanticipated changes can impact stability and that some apps may work differently or simply fail to work at all whilst developer options are enabled. OEM unlocking is by far the most dangerous option (it's the one that can void the warranty and presents a security risk), so leave it off on your test devices unless you actually have a need for an unlocked bootloader.

On a shared test phone, keep a written baseline (see the checklist below) so the next tester knows which toggles are on and why.

Which Developer Options Should Testers Turn On?

Testers should turn on the developer options that either make the tests stable or force the bugs to surface early. The table below maps each useful toggle to what it does, why QA use it, the adb equivalent (where one exists) and what TestMu AI's real devices currently document.

Developer optionWhat it doesWhy QA use itadb equivalentTestMu AI real devices (per docs, Dec 2026)
USB debuggingAllows adb over USBInstall builds, read logs, run Appium locally-Device logs and an in-session ADB Shell
Wireless debuggingAllows adb over Wi-Fi after pairingCable-free debugging--
Stay awakeKeeps the screen on while chargingLong manual sessions without re-unlockingstay_on_while_plugged_in global setting-
Select mock location appUses an app's fake GPS positionLocation-based features-GPS geolocation across 170+ countries is built in
Window / Transition / Animator scaleSpeeds up or turns off animationsStops animation-related flakiness in UI testssettings put global ..._scale 0settings is not on the ADB Shell allowlist
Don't keep activitiesDestroys each activity when the user leaves itFinds state-restore bugsalways_finish_activities global setting-
Background process limitCaps processes running in the backgroundLow-memory behavior--
Show taps / Pointer locationDraws touches and coordinates on screenClear screen recordings and bug repros--
Show layout bounds / Force RTL layout directionShows view bounds; forces right-to-left layoutLayout and localization bugs--
Profile GPU rendering / Debug GPU overdrawShows rendering cost per frame and per pixelJank and slow screens--
Simulate a display with a cutoutAdds a simulated notch or cutout (Android 9+)Content hidden behind cutouts--
Take bug reportCollects a copy of device log filesAttach evidence to tickets-Device logs in session

The Developer options documentation lists no network speed toggle. On TestMu AI real devices, network throttling (3G, 4G, 5G, offline) is available from the session.

Test your website on the TestMu AI real device cloud

Why Turn Off Animations for Automated Tests?

Turning off the animations removes the timing gaps that cause UI tests to be flaky. The Espresso setup guide recommends turning off three settings on any test device "to avoid flakiness," i.e. Window animation scale, Transition animation scale and Animator duration scale (Espresso setup). The same is true of Appium and UI Automator as well, as the tap can land whilst a view is still sliding in.

The three animation scales map to global settings documented in Android's Settings.Global reference: window_animation_scale, transition_animation_scale and animator_duration_scale. Setting a value to 0 turns that animation off, and the default for animator_duration_scale is 1.0 (Settings.Global).

This script turns the three scales off on a device you control, reads the new values, and then puts the old values back. The device serial is taken from an environment variable, and the check will fail in a very obvious way if a value hasn't changed.

#!/usr/bin/env bash
# Usage: DEVICE_SERIAL=<serial from `adb devices`> ./animation-scales.sh apply|restore
# Optional: STATE_FILE=<path> (default .animation-scales.bak), FORCE=1 to overwrite an old backup.
set -euo pipefail

: "${DEVICE_SERIAL:?Set DEVICE_SERIAL to a serial from 'adb devices'}"
MODE="${1:?Usage: $0 apply|restore}"
STATE_FILE="${STATE_FILE:-.animation-scales.bak}"
KEYS=(window_animation_scale transition_animation_scale animator_duration_scale)

# Stop early if the device is offline, unauthorized or not connected.
state="$(adb -s "$DEVICE_SERIAL" get-state 2>/dev/null || true)"
if [[ "$state" != "device" ]]; then
  echo "FAIL: $DEVICE_SERIAL is not ready (state: '${state:-not found}')" >&2
  exit 1
fi

# </dev/null stops adb shell from reading the backup file inside the restore loop.
dev() { adb -s "$DEVICE_SERIAL" shell "$@" </dev/null | tr -d '\r'; }

case "$MODE" in
  apply)
    # A second apply would save 0 as the "original" value, so refuse it.
    if [[ -s "$STATE_FILE" && "${FORCE:-0}" != "1" ]]; then
      echo "FAIL: $STATE_FILE already holds saved values. Run restore first, or set FORCE=1." >&2
      exit 1
    fi
    : > "$STATE_FILE"
    for key in "${KEYS[@]}"; do
      echo "$key=$(dev settings get global "$key")" >> "$STATE_FILE"
      dev settings put global "$key" 0
      value="$(dev settings get global "$key")"
      if [[ "$value" != "0" && "$value" != "0.0" ]]; then
        echo "FAIL: $key is '$value', expected 0" >&2
        exit 1
      fi
      echo "OK: $key=0"
    done
    ;;
  restore)
    [[ -s "$STATE_FILE" ]] || { echo "FAIL: no saved values in $STATE_FILE" >&2; exit 1; }
    while IFS='=' read -r key value; do
      if [[ "$value" == "null" ]]; then
        # 'null' means the setting was never written: remove it instead of guessing a value.
        dev settings delete global "$key"
        echo "Restored: $key (unset)"
      else
        dev settings put global "$key" "$value"
        echo "Restored: $key=$value"
      fi
    done < "$STATE_FILE"
    # Check every key before deleting the backup, so a partial restore can be retried.
    failed=0
    while IFS='=' read -r key value; do
      now="$(dev settings get global "$key")"
      if [[ "$now" != "$value" ]]; then
        echo "FAIL: $key is '$now', expected '$value'" >&2
        failed=1
      fi
    done < "$STATE_FILE"
    [[ "$failed" == "0" ]] || { echo "Backup kept in $STATE_FILE" >&2; exit 1; }
    rm -f "$STATE_FILE"
    echo "OK: all animation scales restored"
    ;;
  *)
    echo "Usage: $0 apply|restore" >&2
    exit 1
    ;;
esac

Keep animations at their normal speed when doing manual UX checks. If you're a tester assessing how a screen feels, then you need to view the actual transitions.

What Does "Don't Keep Activities" Do, and How Do You Test With It?

Don't keep activities destroys every activity as soon as the user leaves it. That's what Android's documentation describes as "destroying every activity as soon as the user leaves the activity's main view". The corresponding global setting (always_finish_activities) causes the activity manager to "aggressively finish activities and processes as soon as they are no longer needed".

The toggle exposes a bug class: a screen that has lost all its typed text, its scroll position or indeed half of a form when the user switches apps and comes back. Android's guide to saving UI state explains why. A ViewModel won't survive a system-initiated process death, whereas saved state (SavedStateHandle, rememberSaveable) and persistent storage will (Save UI states).

Run it as a separate pass, not as your everyday setting:

  • Switch on Developer options > Don't keep activities.
  • Open each screen which has user input on it. Type something, open another app, then come back.
  • Check the text exists there, the selections are there, and the scroll position is correct.
  • Switch the toggle off when the pass ends so that the subsequent tests run through their normal activity lifecycles.

Don't keep activities destroys activities, not the entire process. To test full process death, you kill the backgrounded app with am kill (as per the Android adb reference which states it kills "only processes that are safe to kill"). Run this on a device you have control of.

pidof and am kill are not on the public device ADB shell allowlist as described below. The package and launcher activity are the parameters. The script will exit if adb can't get to the device, will fail if the process is still running and will then re-launch the app with the launcher intent.

You can also re-launch the app from Recents, which is how a real user would return:

#!/usr/bin/env bash
# Usage: DEVICE_SERIAL=<serial> ./process-death.sh <package> <launcher-activity>
set -euo pipefail

: "${DEVICE_SERIAL:?Set DEVICE_SERIAL to a serial from 'adb devices'}"
PKG="${1:?Usage: $0 <package> <launcher-activity>}"
ACTIVITY="${2:?Usage: $0 <package> <launcher-activity>}"

# Stop early if the device is offline, unauthorized or not connected,
# so an ADB failure can never be interpreted as "process killed".
state="$(adb -s "$DEVICE_SERIAL" get-state 2>/dev/null || true)"
if [[ "$state" != "device" ]]; then
  echo "FAIL: $DEVICE_SERIAL is not ready (state: '${state:-not found}')" >&2
  exit 1
fi

dev() { adb -s "$DEVICE_SERIAL" shell "$@"; }

dev input keyevent KEYCODE_HOME   # send the app to the background
sleep 2
dev am kill "$PKG"
sleep 1

# pidof exits 0 when the process runs and 1 when it does not; anything else is an error.
set +e
dev pidof "$PKG" > /dev/null
rc=$?
set -e
case "$rc" in
  0) echo "FAIL: $PKG is still running; am kill only stops background processes" >&2; exit 1 ;;
  1) echo "OK: $PKG process killed" ;;
  *) echo "FAIL: could not check $PKG (exit code $rc)" >&2; exit 1 ;;
esac

# Reopen the existing task the way the launcher does, so Android restores
# the saved state rather than stacking a fresh screen on top.
dev am start -W -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n "$PKG/$ACTIVITY"
echo "Now check the screen shows the same state the user left."

How Do You Use a Mock Location App for Location Testing?

A mock location app will feed a fake GPS location to every app on the device. To do this, you go to Developer options > Select mock location app and pick one of the apps already installed that provides mock locations. The Android docs make it very clear that you need a mock location app for this to work.

Use it for features that vary by region (e.g. store finders, delivery areas, prices, content, etc.). Clear the mock app when the location pass expires, as otherwise the later tests will all run from the wrong location.

On cloud devices you don't need a mock location app at all. TestMu AI's Real Device Cloud has GPS-based geolocation testing across 170+ countries as a built-in capability so you can set the device location from within the session rather than having to install a spoofing app.

Can You Change the Developer Options on a Cloud Real Android Device?

TestMu AI's documentation makes no reference at all to how you open the Developer options screen on cloud devices. For actual Android devices, the documentation does cover the following as of December 2026:

  • ADB Shell. In an App Testing session you can click on the ADB Shell icon in the top bar to run allowlisted commands within that session (ADB Shell docs, updated Dec 2, 2026). Public devices have am start, am force-stop, am compat enable, dumpsys, getprop, input, pm clear and wm fixed-to-user-rotation. Private devices have am subcommands, logcat, pm, setprop and cmd connectivity airplane-mode added to that list. settings is not on the allowlist, so the animation-scale script referred to above won't work on public devices. The docs say you can request any command that's not on the list via 24x7 chat support or support@testmuai.com.
  • Device controls rather than toggles. Real Device Cloud includes GPS geolocation, network throttling (3G, 4G, 5G, offline), device and crash logs, network logs (HAR), camera image injection, biometrics, multiple locales and Passcode, Assistive Touch and Dark Mode testing. The Dark Mode toggle is in the session's Device Control tab and is supported on Android 11 and above.
  • App performance profiling. The hub has "App performance profiling metrics" listed under the Real Device Plus Automation Cloud plan. These are app performance metrics, not the same as the Profile GPU rendering or Debug GPU overdraw views.
  • No local ADB. Cloud devices don't connect to your local adb, so Wireless debugging and any of the tools that require a local ADB are not applicable to cloud devices.
lambda-adb on a public TestMu AI Galaxy S26 running Android 16: getprop returns SM-S942B and 16, while settings get and put for window_animation_scale and always_finish_activities return HTTP 400 adb shell command is not supported

In practice, use your own phone for the toggles that require the Developer options screen (e.g. Don't keep activities) and use the cloud for device coverage, location, network and logs.

Note

Note: Need more Android devices than your desk holds? Run your app on real Android phones from the browser with device logs, GPS geolocation and an in-session ADB Shell. Start free and run a real device app testing session.

The Test Device Baseline Checklist

Use this checklist when you're preparing a shared Android test phone. Record the result on a label or in your team wiki.

  • Developer options on; master toggle on.
  • USB debugging on; only your team's machines are authorized.
  • Stay awake on for manual test benches.
  • Animation scales: 0 on automation devices; 1x on devices used for manual UX checks.
  • Don't keep activities off by default. They should only be on during a lifecycle pass.
  • Mock location app cleared (unless a location pass is running).
  • Background process limit at default unless a low memory pass is running.
  • OEM unlocking is off unless a test requires an unlocked bootloader.
Checklist of Android developer options settings for a shared QA test phone

Watch: Real Device App Testing Walkthrough

Real Time App Testing on Real Devices includes app upload, ADB shell, GPS and IP geolocation, network simulation and device logs.

Youtube thumbnail

How to access device logs on real devices.

Youtube thumbnail

Conclusion

Start with the Test Device Baseline checklist for Android developer options on every shared phone: USB debugging on, animation scales at 0 on automation devices and Don't keep activities off outside a lifecycle pass. Run animation-scales.sh apply before an automation run and restore after it, and keep process-death.sh for the state-restore pass on a phone you control.

Testing Android apps on phones you don't own? TestMu AI's Real Device Cloud runs live and automated sessions on 50,000+ real iOS and Android devices, with device logs, network logs and video for every session.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Sai Krishna

Sai Krishna

Author · 39 posts

Sai Krishna is Director of Engineering at TestMu AI, where he leads agentic AI for quality engineering, building AI agents that autonomously drive mobile and conversational test automation. His current focus is Agent Testing and Model Context Protocol (MCP) support for mobile. He is a core contributor and member of the Appium open-source project and the creator of AppiumTestDistribution and appium-device-farm. With over 14 years of experience including more than 9 years at Thoughtworks as a Principal Consultant, he holds a BSc in Electronics and speaks regularly at TestMu and Appium Conf on Appium, mobile automation, and agentic AI in testing.

Srinivasan Sekar

Srinivasan Sekar

Reviewer

Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.

Android Developer Options FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests