summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/LinkPropertiesTest.java
diff options
context:
space:
mode:
authorEric Lin <ericth@google.com>2022-04-15 07:03:18 +0000
committerEric Lin <ericth@google.com>2022-05-04 03:50:45 +0000
commitbbbdc6b82fa0c7622a6a05c0dad11377ea70c270 (patch)
tree92613329b3d6618f2457f96da7c604f9f137c467 /tests/common/java/android/net/LinkPropertiesTest.java
parentb2db0b5119cb656ee7f4206e054e4b1c3272589f (diff)
Add test cases to verify methods in NearbyManager not work for untrusted app.
Eng team now decided to expose NearbyManager to any app and methods in NearbyManager need system permission to call so not misused by untrusted app. This change add test cases to verify untrusted app will FAIL to call methods in NearbyManager, also check privileged app with sufficient permissions can call methods in NearbyManager without exception. Mark the following test as @Ignore due to the permission check for stopXXX not yet implement (b/229338477#comment24): testNearbyManagerStopScan_fromUnTrustedApp_throwsException testNearbyManagerStopBroadcast_fromUnTrustedApp_throwsException Ignore-AOSP-First: nearby_not_in_aosp_yet Test: atest NearbyIntegrationUntrustedTests Bug: 229310677 Bug: 229338477 Change-Id: Iadd8890f5351140c110a817b5b5e2efeeb52a114
Diffstat (limited to 'tests/common/java/android/net/LinkPropertiesTest.java')
0 files changed, 0 insertions, 0 deletions