mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user