summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-03-29 17:19:47 +0800
committerChiachang Wang <chiachangwang@google.com>2021-03-29 17:19:47 +0800
commitd841868f39ec245cc43928f3023421e397f1d41b (patch)
tree376c12145f3dbb0b7c765becfb3f78b367955ff5 /tests/common/java/android/net/NetworkCapabilitiesTest.java
parenta7542972b1c28fc7e61095d57be99c1d30c92da4 (diff)
Ensure SSID is not exposed to apps without correct permission
The class NetworkCapabilities has an extra field for SSID that can be used by apps to obtain the router SSID (a surrogate for location) without holding permission. This is a circumvention of the permission system. Thus, add a test to ensure that visibility of SSID for apps are controlled by NETWORK_SETTING permission. Bug: 183911251 Test: atest CtsNetTestCasesLatestSdk:ConnectivityManagerTest Change-Id: I18d17093e2da37cde88b730c091c6a1deda08a8a
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions