commit | ff55aeb9166f89a3ad22bc10287d4e5c0378b606 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Wed Jun 16 11:37:53 2021 +0000 |
committer | Chiachang Wang <chiachangwang@google.com> | Wed Jun 23 08:39:38 2021 +0000 |
tree | 1ad9c05ebfa65f7792dcd7ef5fddfd8e0b748b41 | |
parent | e7d085e87de167f73e848db403f96d7234de6a11 [diff] |
Remove ConnectivityServiceTest signature perms use To allow unit tests to run without platform certificates, remove signature permission usage in ConnectivityServiceTest. This mocks permission checks done in ConnectivityService for which the test assumed that the permission was held, and mocks calls to BatteryStatsManager. Calls to ActivityManagerService (through PendingIntent) are done with shell permissions as the test uses real PendingIntent mechanics. Bug: 187935317 Test: atest FrameworksNetTests Merged-In: If309d653ac2e9bbcf1b94bcee6336367289df359 Change-Id: If309d653ac2e9bbcf1b94bcee6336367289df359 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1736615 (cherry picked from commit 595dda36040c1a7a778ce97d2484324a1162fe83) Change-Id: Idb19b0f7cb87bb4d9de7a0b1a0e4128c2d6b9c6d