summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2024-01-22 18:16:03 +0000
committer Eric Biggers <ebiggers@google.com> 2024-01-22 19:14:33 +0000
commit8750ab191547cb398d25fd96193fbe7a250c4c27 (patch)
treef576408324fa51fd6eccd88455732119c7a16c94 /libs/androidfw/FileStream.cpp
parent37d64fa5ed0655fa3329f1d71583f2d42745fe41 (diff)
LockPatternUtilsTest: don't call the real TrustManagerService
As LockPatternUtilsTest is a unit test that doesn't otherwise interact with the real system services, inject a mock TrustManager so that LockPatternUtilsTest#testSetEnabledTrustAgents doesn't call into the real TrustManagerService#reportEnabledTrustAgentsChanged. This was making this test require the ACCESS_KEYGUARD_SECURE_STORAGE permission. This fix makes it possible to merge the utiltests version of LockPatternUtilsTest into the coretests version. Bug: 321737173 Ignore-AOSP-First: Conflict due to security fix ag/25939141 Test: atest FrameworksUtilTests:LockPatternUtilsTest Change-Id: I81e25db9acbceefbc6e37352820dc0bd76d61b76
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions