ToolXON Blog

Android Device Information ADB Commands

Android device information ADB commands: Collect Android OS, kernel, screen and battery information with read-only ADB shell commands for debugging and support. This guide explains what each command does, its syntax, practical examples, useful options, and common mistakes. Commands are shown for typical installations; flags can vary across operating-system and tool versions.

Before you start

Open a terminal appropriate for the operating system shown in the examples. Check that the required tool is installed and that you are running it with the permissions needed for your task. Replace sample names, paths, hostnames and IDs with values from your own environment.

Syntax at a glance

Square brackets usually indicate optional arguments, while uppercase words such as FILE, HOST and PACKAGE are placeholders that you replace. Keep quotes around paths or text that contains spaces. Commands should be tested on a safe sample before being used in production.

Quick command reference

CommandWhat it doesExampleUseful options
getpropRead Android system propertiesadb shell getprop ro.build.version.releaseWithout a property it lists many values; output may contain device details
adb shell uname -aDisplay kernel/platform informationadb shell uname -aExact output depends on device kernel
adb shell wm sizeRead display resolution overridesadb shell wm sizeNo argument queries current configuration
adb shell wm densityRead display density settingsadb shell wm densityNo argument queries configured density
adb shell dumpsys batteryShow battery service statusadb shell dumpsys batteryOutput can include status, level, health and power source

Command syntax and examples explained

1. getprop

Purpose: Read Android system properties.

Syntax

adb shell getprop PROPERTY

Example

adb shell getprop ro.build.version.release

Options and notes: Without a property it lists many values; output may contain device details.

Do not publicly share serials or unique identifiers from full property dumps.

2. adb shell uname -a

Purpose: Display kernel/platform information.

Syntax

adb shell uname -a

Example

adb shell uname -a

Options and notes: Exact output depends on device kernel.

Useful for collecting a quick kernel report.

3. adb shell wm size

Purpose: Read display resolution overrides.

Syntax

adb shell wm size

Example

adb shell wm size

Options and notes: No argument queries current configuration.

An override may differ from the panel’s physical resolution.

4. adb shell wm density

Purpose: Read display density settings.

Syntax

adb shell wm density

Example

adb shell wm density

Options and notes: No argument queries configured density.

This can help debug layout issues across device screens.

5. adb shell dumpsys battery

Purpose: Show battery service status.

Syntax

adb shell dumpsys battery

Example

adb shell dumpsys battery

Options and notes: Output can include status, level, health and power source.

Battery reports are snapshots, not a long-term health test.

Common mistakes and troubleshooting

  • Command not found: confirm the tool is installed and available on your PATH; open a new terminal after changing PATH.
  • Permission denied: verify the current account, file permissions and target path. Use administrator/root privileges only when genuinely required.
  • Unexpected output: check the command version, quoting, current directory and exact arguments. Consult the local help or manual for options supported by your build.
  • Destructive operations: preview the target and keep a backup before deleting data, rewriting history, flashing a partition or changing system configuration.

Safety tips

Review every command before running it, especially commands that delete files, change permissions, flash firmware, alter a database or expose a network service. For network scanning and remote administration, work only on devices and systems you own or are authorized to test. Keep credentials, private keys, access tokens and log files private.

Frequently asked questions

Do these commands work on every system?

Not always. Some commands are specific to Windows, Linux, Android, a particular package manager or an installed tool version. Use the syntax shown for your platform and check local help when a flag is unavailable.

Can I copy and run every example exactly?

Use the examples as templates. Replace placeholders such as filenames, package IDs, hostnames and paths with your own values, and verify the effect before executing a command that changes data or system state.

Conclusion

Use this reference as a starting point, then confirm flags in the tool’s official help or manual for your installed version. A clear understanding of syntax, options and side effects makes command-line work more reliable.