diff options
author | Shawn Willden <swillden@google.com> | 2018-05-24 14:42:52 -0600 |
---|---|---|
committer | Shawn Willden <swillden@google.com> | 2018-05-24 20:52:11 +0000 |
commit | 8d815f659df25efd81856d1ea8f7d1826a9c51bc (patch) | |
tree | 03428b813786349264abbe7759c688301fd50a4b | |
parent | 1f74538cdb297a0a2ecd4ac1cc40214e83edb11f (diff) | |
download | platform_hardware_interfaces-8d815f659df25efd81856d1ea8f7d1826a9c51bc.tar.gz platform_hardware_interfaces-8d815f659df25efd81856d1ea8f7d1826a9c51bc.tar.bz2 platform_hardware_interfaces-8d815f659df25efd81856d1ea8f7d1826a9c51bc.zip |
Fix default keymaster so it doesn't start an extra thread.
Bug: 80102279
Bug: 80251973
Test: N/A; this keymaster exists only for policy compliance. It's never used.
Change-Id: I45f0eefd9abdd02f6774aa52f238040510c5d62c
-rw-r--r-- | keymaster/4.0/default/service.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keymaster/4.0/default/service.cpp b/keymaster/4.0/default/service.cpp index cfb960a5c7..fdcc6ba90d 100644 --- a/keymaster/4.0/default/service.cpp +++ b/keymaster/4.0/default/service.cpp @@ -24,6 +24,7 @@ using android::hardware::keymaster::V4_0::SecurityLevel; int main() { + ::android::hardware::configureRpcThreadpool(1, true /* willJoinThreadpool */); auto keymaster = ::keymaster::V4_0::ng::CreateKeymasterDevice(SecurityLevel::SOFTWARE); auto status = keymaster->registerAsService(); if (status != android::OK) { |