ADB Command Generator

Pick what you're trying to do, fill in a couple of fields, and get the exact adb command ready to paste into your terminal.

Common ones: android.permission.CAMERA, RECORD_AUDIO, ACCESS_FINE_LOCATION, READ_CONTACTS, WRITE_EXTERNAL_STORAGE - only works for "dangerous"-level runtime permissions the app has actually declared in its manifest.

Coordinates are in pixels from the top-left corner. Use the Screenshot task first if you need to work out where something is on screen.

Step 1 - run this in your terminal first (with the screen you want to fill already open on the device):

adb shell uiautomator dump && adb pull /sdcard/window_dump.xml .

(if multiple devices/emulators are connected, add -s your-device-serial right after "adb" in both places above)

Step 2 - the "." at the end saves window_dump.xml into whatever folder your terminal was open in when you ran the command (e.g. if your prompt showed C:\Users\Admin>, that's exactly where the file landed - check there first if you can't find it). Open that file, select all, copy, and paste it below:

0 is dimmest (usually not fully black), 255 is maximum brightness.

This only fakes the reported level for testing (e.g. low-battery UI) - it doesn't affect the real battery. Run Reset Battery Simulation afterward to go back to normal.

Generated Command

// Command will appear here
Pick a task and click "Generate Command" to see what it does.