Search code examples
androidkernelhardware

Android: How can I get device hardware information with adb command?


I would like to know how to retrieve specific hardware information, for example, from the camera, using an adb command. I would like to know if its possible to retrieve hardware ID or Physical device object name for example, to store these values.


Solution

  • Sdk:

    adb shell getprop ro.build.version.sdk
    

    Complete list:

    adb shell getprop
    

    Through the package manager:

    adb shell pm list features
    

    To retrieve detailed information about the camera

    adb shell dumpsys media.camera