summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/RouteInfoTest.java
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-04-19 10:59:24 +0800
committerChiachang Wang <chiachangwang@google.com>2021-04-19 11:09:15 +0800
commita101f85b13c95142adda79c52ac6e16c4a52bdc3 (patch)
tree21ee994e3ac492339f49fe44c6c72872539d4281 /tests/common/java/android/net/RouteInfoTest.java
parent873cb0ef24be9bd5140c48ade6a12b0491060d38 (diff)
Update the permission check for dump
ServicePermissionsTest#testDumpProtected expects to see nothing from dump() if the caller does not have the required permission. After the refactor the ConnectivityService#dump(). It does not leak real information for those callers without permission but show the title of dumpsys, i.e. it shows "DUMP OF SERVICE HIGH connectivity". This breaks the test since the test expects to see nothing. Move the permission check to the front of dump call stack since there is no way to call other private dump related methods. Bug: 185425662 Test: atest android.security.cts.ServicePermissionsTest Test: adb shell dumpsys connectivity Change-Id: I173c968a4f1c4d6f618ed87725a6ccda8d309988
Diffstat (limited to 'tests/common/java/android/net/RouteInfoTest.java')
0 files changed, 0 insertions, 0 deletions