Enable the keymaster logger in the default Keymint

This solution was adopted from Cuttlefish's host side Keymint
implementation: I22bde00aed311c6774f83acc08a2c21e6e75141f.

Bug: 296983430
Test: Tested with Cuttlefish that the logs are present in logcat.
Change-Id: I942b0200bb164a2a865b255c6f26d628cbd345a4
This commit is contained in:
Istvan Nador
2023-09-04 12:05:58 +00:00
parent f9e524c5b1
commit 8f28f8b8ea

View File

@@ -44,6 +44,8 @@ std::shared_ptr<T> addService(Args&&... args) {
} }
int main() { int main() {
// The global logger object required by keymaster's logging macros in keymaster/logger.h.
keymaster::SoftKeymasterLogger km_logger;
// Zero threads seems like a useless pool, but below we'll join this thread to it, increasing // Zero threads seems like a useless pool, but below we'll join this thread to it, increasing
// the pool size to 1. // the pool size to 1.
ABinderProcess_setThreadPoolMaxThreadCount(0); ABinderProcess_setThreadPoolMaxThreadCount(0);