Retrieving Android Device Properties via ADB Commands

Retrieving Android Device Properties via ADB Commands

22 April 2024 Stephan Petzl Leave a comment Tech-Help

Understanding the specifics of your Android device can be crucial for development, testing, and general device management. While you can access this information through an Android application, using Android Debug Bridge (ADB) commands can be a faster and more efficient method, especially for those who prefer working directly from a terminal or command prompt.

Accessing Device Properties

To retrieve device properties without the need for a rooted device, you can use the following ADB commands:

Device Manufacturer

adb shell getprop ro.product.manufacturer

Device Hardware

adb shell getprop ro.hardware

Device Model

adb shell getprop ro.product.model

OS Version (Integer Value)

adb shell getprop

Kernel Version

adb shell cat /proc/version

These commands will return the specific information you’re seeking in a format that’s easy to read and utilize for your needs.

Listing All Device Properties

If you’re interested in viewing a comprehensive list of all available properties on your Android device, you can execute the following command:

adb shell getprop

This command will display a list of system properties and their corresponding values, allowing you to browse through all device details.

Filtering Properties for Relevant Information

To streamline the process and filter out only the properties you need, the following command can be used:

adb shell getprop | grep "model\|version.sdk\|manufacturer\|hardware\|platform\|revision\|serialno\|\|brand"

This command is particularly useful for quickly accessing key details without sifting through the entire list of properties.

Integrating ADB Commands with Repeato

While ADB commands provide valuable device information, testing your Android applications can be further enhanced with Repeato, a no-code test automation tool. Repeato allows you to create and maintain automated tests for your apps using computer vision and AI, making it compatible with various app frameworks such as React Native, Flutter, and Unity.

With ADB onboard, Repeato simplifies the execution of ADB commands through script steps, providing a seamless integration with your device management tasks. This feature can be particularly beneficial when gathering device properties is part of your testing setup or teardown process.

Repeato’s fast test editing and execution capabilities ensure that your automated tests are not only reliable but also efficient, saving you time and effort in your development cycle.


Using ADB commands to retrieve device properties is a straightforward process that can significantly simplify development and testing workflows. When combined with the power of Repeato’s automated testing capabilities, you can achieve a more robust and efficient testing environment, leading to higher quality applications.

Like this article? there’s more where that came from!