diff options
author | Lee Shombert <shombert@google.com> | 2020-04-16 11:14:57 -0700 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2020-04-17 16:37:50 -0700 |
commit | 6747eaa8e5a55ebd83793fa36ab59dc5ccf2f668 (patch) | |
tree | 837915f547e5055a9c388ade24556eb8bea79663 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | dd08939ba8fd1fdd404cac381255818a1b305e11 (diff) |
Disable binder caches in unit tests
Bug: 152451909
Unit tests often execute server code in the context if a test process.
Such a process does not have the same permissions as formal system
processes. In particular, such a process does not have permission to
invalidate binder caches.
This change disables all binder cache code in the current process.
This means caching is disabled and invalidation never occurs. There
are no permission violations and the test process is also unable to
affect (through cache invalidation) the actual system processes.
Test: Ran a list of atests. Two had security violations before the
change but were okay after the change:
* FrameworksServicesTests
* UserSystemPackageInstallerTest
Ran additional tests to verify no regressions:
* PlatformScenarioTests
* PtsChreTestCases
* BluetoothInstrumentationTests
* UserLifecycleTests
Change-Id: I011ee1eb39b2d52c69b6d5164b64f7418d2bbdd4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions