6

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" />
10

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
    Sep 9 '14 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
    May 18 '15 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.