summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Willden2018-05-24 15:42:52 -0500
committerShawn Willden2018-05-24 15:52:11 -0500
commit8d815f659df25efd81856d1ea8f7d1826a9c51bc (patch)
tree03428b813786349264abbe7759c688301fd50a4b
parent1f74538cdb297a0a2ecd4ac1cc40214e83edb11f (diff)
downloadplatform-hardware-interfaces-8d815f659df25efd81856d1ea8f7d1826a9c51bc.tar.gz
platform-hardware-interfaces-8d815f659df25efd81856d1ea8f7d1826a9c51bc.tar.xz
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/keymaster/4.0/default/service.cpp b/keymaster/4.0/default/service.cpp
index cfb960a5..fdcc6ba9 100644
--- a/keymaster/4.0/default/service.cpp
+++ b/keymaster/4.0/default/service.cpp
@@ -24,6 +24,7 @@
24using android::hardware::keymaster::V4_0::SecurityLevel; 24using android::hardware::keymaster::V4_0::SecurityLevel;
25 25
26int main() { 26int main() {
27 ::android::hardware::configureRpcThreadpool(1, true /* willJoinThreadpool */);
27 auto keymaster = ::keymaster::V4_0::ng::CreateKeymasterDevice(SecurityLevel::SOFTWARE); 28 auto keymaster = ::keymaster::V4_0::ng::CreateKeymasterDevice(SecurityLevel::SOFTWARE);
28 auto status = keymaster->registerAsService(); 29 auto status = keymaster->registerAsService();
29 if (status != android::OK) { 30 if (status != android::OK) {