commit | 277d3a7aede4d8ef6ab83aadf3dfc6cc3cfd4f5e | [log] [tgz] |
---|---|---|
author | Robin Lee <rgl@google.com> | Sat Aug 01 00:54:40 2020 +0200 |
committer | Robin Lee <rgl@google.com> | Sat Aug 01 00:59:17 2020 +0200 |
tree | 0632cbb25cbca2e5cd5049764f5e9667371e3c12 | |
parent | 9ab7f3b7b2141a1bc1188c29e0d5b20fe25d3e9e [diff] |
Fix test: "pm has-feature" returns 1 if not present This function was broken and causing failures on devices that either don't have a camera or don't have wifi. Example: usr@machine:~$ adb shell pm has-feature android.hardware.wifi true usr@machine:~$ echo $? 0 usr@machine:~$ adb shell pm has-feature android.hardware.camera.any false usr@machine:~$ echo $? 1 Test: atest AdbManagerHostDeviceTest Bug: 162619753 Change-Id: I0bf37a361344111456b268e3d2b50d9dcc1d0ff1