Add has-feature shell command to PackageManagerService

This PackageManagerService's has-feature shell command may be useful
to write host-side CTS test.

Bug: 35336548
Test: Run "adb shell cmd package has-feature android.hardware.nfc 0" and
      verify that it prints true on Nexus 5X.
Test: Run "adb shell cmd package has-feature android.hardware.gamepad" and
      verify that it prints false on Nexus 5X.

Change-Id: Icacfd0ad2b83a3c276e711a1f22d4d66112ba932
1 file changed