diff options
author | Hasini Gunasinghe <hasinitg@google.com> | 2021-03-22 13:33:23 +0000 |
---|---|---|
committer | Hasini Gunasinghe <hasinitg@google.com> | 2021-03-22 21:05:39 +0000 |
commit | 4b462a511a6d060c6998e2215ac0f20a44329931 (patch) | |
tree | d20183f9471bff09c66720d8e79b2a563ba339f3 /identity | |
parent | 08de39347df3094837a09e7d408426b7cf0f6fac (diff) | |
download | security-4b462a511a6d060c6998e2215ac0f20a44329931.tar.gz |
Fix bug where credstore is immediately exiting.
This CL adds the fix for the credstore failure reported in b/183253539.
Bug: 183253539
Test: CtsVerifier's Identity Credential Authentication test
Test: atest android.security.identity.cts
Change-Id: I396f36a58d260e3e081ef8a94aaf64431d0ad484
Diffstat (limited to 'identity')
-rw-r--r-- | identity/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/identity/main.cpp b/identity/main.cpp index 08f22195..9add73ca 100644 --- a/identity/main.cpp +++ b/identity/main.cpp @@ -53,5 +53,9 @@ int main(int argc, char* argv[]) { CHECK(ret == ::android::OK) << "Couldn't register binder service"; LOG(ERROR) << "Registered binder service"; + // Credstore is a single-threaded process. So devote the main thread + // to handling binder messages. + IPCThreadState::self()->joinThreadPool(); + return 0; } |