Enable and Use Android Developer Options for Advanced Debugging (No Root)

13 min read Learn how to activate Android Developer Options, enable USB debugging, capture logs and diagnose issues without rooting your device. October 13, 2026 13:30 Enable and Use Android Developer Options for Advanced Debugging (No Root)

Before you start

Preparing your device and PC makes the whole process smoother and prevents accidental data loss. You will need:

  • A USB‑C or micro‑USB cable that can transfer data (charging‑only cables won’t work).
  • A computer running Windows, macOS, or Linux with administrator rights.
  • Wi‑Fi or a stable power source for the phone – debugging can be power‑hungry.
  • Optional but recommended: a recent backup of your important data (Settings > System > Backup).
Enabling Developer Options does not modify any system files, so it is safe on stock Android. However, leaving USB debugging on all the time can expose your device to unauthorized ADB commands if the phone is connected to an untrusted computer.

Step 1 – Activate Developer Options

Developer Options are hidden by default. The activation method is stable across most Android versions, though the exact wording may vary slightly between manufacturers.

  1. Open Settings on your phone.
  2. Scroll to About phone (sometimes under System > About phone).
  3. Find the entry named Build number. Tap it seven times. You may be prompted to enter your lock screen PIN or pattern.
  4. After the seventh tap you should see a toast message: "You are now a developer!"
  5. Return to the main Settings screen. A new menu entry called Developer options will appear, usually under System.
If your device runs a heavily skinned Android (e.g., Samsung One UI, Xiaomi MIUI), the Build number may be located under Software information or More inside the About section.

Step 2 – Turn on USB Debugging

USB debugging is the bridge that lets your computer issue ADB commands to the phone.

  1. Open Settings > System > Developer options. (On some devices it may be directly under Settings.)
  2. Scroll to the Debugging section.
  3. Toggle USB debugging to ON.
  4. When you connect the phone to a PC for the first time, a dialog appears: "Allow USB debugging?" Check Always allow from this computer and tap OK.
Never approve USB debugging prompts on a computer you do not trust. An attacker with physical access could execute arbitrary commands.

Step 3 – Install the Android Debug Bridge (ADB) on your computer

ADB is part of the Android SDK Platform‑Tools package. You only need the platform‑tools, not the full SDK.

Windows

  1. Download the latest platform-tools.zip from the official Android developer site (search “Android SDK Platform‑Tools”).
  2. Extract the zip to a folder, e.g., C:\adb.
  3. Open Command Prompt as Administrator, then run cd C:\adb.
  4. Test the installation by typing adb version. You should see the version number.

macOS

  1. Open Terminal.
  2. Use Homebrew (if installed) – run brew install --cask android-platform-tools. Otherwise, download the zip as for Windows and extract to /usr/local/adb.
  3. Add the folder to your PATH by editing ~/.zshrc or ~/.bash_profile:
    export PATH=$PATH:/usr/local/adb
  4. Run adb version to confirm.

Linux

  1. On Debian/Ubuntu, install via apt: sudo apt update && sudo apt install android-tools-adb.
  2. On Fedora: sudo dnf install android-tools.
  3. Verify with adb version.
If you prefer a portable setup, keep the platform-tools folder on a USB stick and run ADB directly from there.

Step 4 – Verify the ADB connection

  1. Connect the phone to the computer with the data cable.
  2. On the computer, run adb devices.
  3. You should see a line similar to xxxxxxxxxxxx device. If the status reads unauthorized, check the phone for the USB‑debugging permission dialog and grant access.
If no devices appear, try switching the USB mode on the phone to File Transfer (MTP) or USB tethering. Some manufacturers default to "Charge only" which blocks ADB.

Step 5 – Capture a live log with Logcat

Logcat streams the system and app logs in real time. It is the primary tool for diagnosing crashes, ANR (Application Not Responding) events, and permission issues.

  1. Open a terminal/command prompt where ADB is available.
  2. Run adb logcat to start streaming all logs to the console.
  3. To filter for a specific app, first find its package name (e.g., com.example.app) and then run:
    adb logcat | grep com.example.app
  4. To save the output to a file for later analysis, use:
    adb logcat -d > mylog.txt
    The -d flag dumps the current buffer and exits.
For a more readable view, you can use the -v threadtime option, which adds timestamps and thread IDs:
adb logcat -v threadtime > detailed_log.txt

Step 6 – Generate a full bug report

Android can produce a comprehensive bug report that includes logs, system properties, and UI hierarchy snapshots.

  1. In Developer options, scroll to Bug report and tap Take bug report.
  2. Select Full report (or Interactive report** if you need UI state). The device will collect data for a few seconds.
  3. When the notification appears, tap it and choose Share > USB (or email yourself). The report is saved as a .zip file.
  4. On your computer, unzip the file. Inside you’ll find logcat.txt, system.log, and a bugreport.txt that aggregates everything.
Bug reports can be large (several MB). Use them when you need a full snapshot, such as when reproducing a rare crash.

Step 7 – Use on‑device visual debugging tools

Developer options also expose UI‑related overlays that help you spot layout problems without leaving the phone.

  • Show layout bounds: Highlights each view’s rectangle in different colors. Turn it on in Developer options > Debugging > Show layout bounds. Useful for detecting overlapping UI elements.
  • Show GPU overdraw: Displays red, yellow, and green areas indicating how many times a pixel is drawn. Enable via Developer options > Debugging > Show GPU overdraw.
  • Profile GPU rendering: Shows a bar graph of the time each frame takes to render. Activate Developer options > Debugging > Profile GPU rendering and select “On screen as bars”.

These visual cues help you understand performance bottlenecks or UI bugs that may not appear in logcat.

Step 8 – Advanced ADB commands for deeper inspection

Once you’re comfortable with basic logcat, the following commands are handy for specific diagnostics.

  • Dump system services – adb shell dumpsys prints the state of many system services. For example, adb shell dumpsys battery shows battery health, charge level, and whether the device is in power‑save mode.
  • Activity manager – adb shell am lets you start, stop, or force‑stop apps. To force‑stop a misbehaving app: adb shell am force-stop com.example.app.
  • Screen capture – adb exec-out screencap -p > screen.png captures the current screen to a PNG file.
  • Screen recording – adb shell screenrecord /sdcard/record.mp4 starts a video capture. Stop with Ctrl+C, then pull the file: adb pull /sdcard/record.mp4.
Combine dumpsys with grep to isolate relevant data, e.g., adb shell dumpsys activity | grep ResumedActivity.

Troubleshooting common issues

Device not listed or shows “unauthorized”

  • Reconnect the USB cable and ensure it is a data‑capable cable.
  • On the phone, toggle USB debugging off and on again.
  • Revoke USB debugging authorizations (Settings > Developer options > Revoke USB debugging authorizations) and accept the prompt anew.
  • On Windows, install the appropriate OEM USB driver (e.g., Samsung USB driver for Galaxy devices).

Logcat output is empty

  • Make sure the phone is not in “Do not disturb” mode that can suppress certain logs.
  • Some manufacturers hide logs for privacy; enable Verbose logging in Developer options if available.
  • Try adding the -b all flag to capture all buffers: adb logcat -b all.

Bug report generation hangs

  • Ensure the device has at least 200 MB of free storage.
  • Disable battery‑optimizations for the “Bug report” process via Settings > Battery > Battery optimization.
Never enable USB debugging on a public charging station. A compromised charger could act as a USB‑OTG host and issue ADB commands.

When to turn off Developer Options

Leaving Developer Options enabled does not harm the device, but keeping USB debugging on continuously increases attack surface. After you finish debugging:

  1. Return to Settings > System > Developer options.
  2. Toggle USB debugging to OFF.
  3. If you no longer need any developer features, you can disable the entire Developer options switch (available on some OEM skins).

This practice aligns with good security hygiene, especially on devices that travel or are used by multiple people.

Wrap‑up

By following the steps above you have unlocked the full suite of Android debugging tools without rooting your phone. You can now capture live logs, generate detailed bug reports, inspect UI rendering, and run powerful ADB commands from your computer. These capabilities are essential for troubleshooting crashes, performance hiccups, or unexpected behavior in any app.

Remember to keep USB debugging turned off when not in use, and always grant permissions only to trusted computers. With this workflow in place, you’ll be able to diagnose and resolve Android issues confidently, whether you’re a casual user or an app developer testing on real hardware.

User Comments (0)

Add Comment
We'll never share your email with anyone else.