CruxDevCruxDev Tools Studio Prompts
dev Utility • Zero-Server Privacy • 100% Client-Side

ADB Command & Dev Options Studio

Toggle Android developer options visually: Layout Bounds, GPU Overdraw, Stay Awake, StrictMode, and Pointer Location with one-click ADB shell scripts.

Overview

Generate a re-runnable bash script that enables or disables eleven Android developer options over standard adb, plus density and locale commands, with a live phone preview of what each toggle does.

How It Works

Flip visual toggles for options like Layout Bounds and GPU Overdraw, adjust the DPI slider, pick a locale, then use 'Copy Full Script' or 'Download .SH Script' and run the file with adb on a connected device.

Step-by-Step Usage Guide

  1. Toggle the developer options you want; the preview phone renders bounds, overdraw, pointer, and demo-mode visuals.
  2. Drag the DPI slider to a value between 240 and 640 and choose a locale from the six options.
  3. Press 'Copy Full Script' for the clipboard or 'Download .SH Script' to save apply-android-dev-options.sh.
  4. Connect the device over USB, enable USB debugging, and run the script; re-run it with toggles flipped to reverse any option.

Technical Specifications & Standards

Each toggle emits a commented enable line and a disable line, mixing setprop, settings put global/system, service call, and an am broadcast for demo mode, so the script works in both directions. The DPI slider spans 240 to 640 in steps of 20 from a default of 420 and emits 'adb shell wm density N' only when changed. The locale select emits setprop persist.sys.locale. All commands use standard non-root adb.

Targeted Use Cases

  • Debugging layouts: enable Layout Bounds, GPU Overdraw, and Pointer Location to expose view boundaries, wasted overdraw, and touch coordinates, then run the disable lines.
  • Clean recordings: enable System UI Demo Mode, applied through an am broadcast, to pin the status bar content for screenshots and screen captures.
  • Low-memory testing: Don't Keep Activities destroys each activity as soon as you leave it, surfacing state-restoration bugs.
  • Recording tutorials: enable Show Taps/Touches so touches are visible, and Stay Awake on USB to keep the screen on during the take.

Notes & Gotchas

  • There is no reset-all button. Undo by running the script's disable lines, one commented pair per option.
  • No per-option copy exists; only the whole script can be copied or downloaded. Comment out lines you do not want before running.
  • Surface Updates' enable and disable commands are currently identical, making that toggle cosmetic in the generated script.
  • There is no battery simulation. The level shown in the fake status bar is display-only; no dumpsys battery command is emitted.

Frequently Asked Questions

Does this need root?

No. Every command uses standard non-root adb: settings put, setprop, service call, and am broadcast.

How do I undo changes?

Run the disable line for each option. Every toggle ships a commented enable and disable pair, so the same script reverses itself.

Why is the density command sometimes missing?

The slider defaults to 420 and emits 'adb shell wm density N' only when you change it from that value.

Can it simulate battery level?

No. The battery figure in the simulated status bar is display only; there is no input and no dumpsys battery command.

Related tools

  • Git Command Studio & Cheatsheet - Interactive command builder and troubleshooter for undoing commits, interactive rebasing, stashing, and branch workflows.
  • JSON to TypeScript & Zod Studio - Paste arbitrary JSON and generate strongly typed TypeScript interfaces, types, and Zod validator schemas.
  • String Escape & Unescape Studio - Escape or unescape strings for JavaScript, JSON, HTML, XML, URLs, CSV, SQL, and regular expressions in one place - RFC-compliant quoting with round-trip checking.
  • CSS Bento Grid & Layout Studio - Visual 12-column Bento Grid designer with responsive breakpoints, column spans, and Apple-style tile layouts.
  • UI Mockup & Wireframe Studio - Design app and web screens in your browser: device frames, auto layout, components with overrides, a UI kit, clickable prototypes and dev-mode export to HTML, CSS, Tailwind, SVG, PNG and PDF.
  • Git Commands Reference - Searchable cheatsheet for Git — every command with flags, examples, and workflow notes.