11

Howto get device's features with adb i.e. whether it has e.g. accelerometer, screen is capable landscape mode, etc.

These values are set in XML during build:

<feature name="android.hardware.sensor.accelerometer" />
<feature name="android.hardware.screen.landscape" />

1 Answer 1

16

Sdk:

adb shell getprop ro.build.version.sdk

Complete list:

adb shell getprop

Through the package manager:

adb shell pm list features
2
  • @pevik it added a space in there I didn't catch, but fixed now. Thanks for the proofread. Glad that this helped.
    – HasH_BrowN
    Commented Sep 9, 2014 at 8:54
  • Thanks, adb shell pm list features was the one I didn't know. BTW: Complete list is: adb shell getprop (Sep 9 '14 at 8:52, edited)
    – pevik
    Commented May 18, 2015 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .