diff options
author | Pavel Maltsev <pavelm@google.com> | 2017-10-10 16:54:57 -0700 |
---|---|---|
committer | Pavel Maltsev <pavelm@google.com> | 2017-10-12 10:49:14 -0700 |
commit | abd4723ef632cf4cb62146f1ef83af6110baae18 (patch) | |
tree | 00d7737a24133c9554a3a40e44c57772e477bdb2 /service/src/com/android/car/CarTestService.java | |
parent | 34ff6b696e5fc162b7155da6c935e31e792779e3 (diff) | |
download | Car-abd4723ef632cf4cb62146f1ef83af6110baae18.tar.gz |
Always call ICarImpl::init in the main thread
Right now it can be called from CarTestService from binder thread which
results in crashes as TimingsTraceLog must be called in the same thread
it was created.
Test: runtest -x packages/services/Car/tests/carservice_test
Change-Id: I1b282637d8c3a900f354f285e26b991d113ec140
Fix: b/67499283
Diffstat (limited to 'service/src/com/android/car/CarTestService.java')
-rw-r--r-- | service/src/com/android/car/CarTestService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/src/com/android/car/CarTestService.java b/service/src/com/android/car/CarTestService.java index ec1606c2bf..8c3f64df9d 100644 --- a/service/src/com/android/car/CarTestService.java +++ b/service/src/com/android/car/CarTestService.java @@ -100,7 +100,7 @@ class CarTestService extends ICarTest.Stub implements CarServiceBase { } if (mTokens.size() == 0) { - mICarImpl.init(); + CarServiceUtils.runOnMain(mICarImpl::init); } } |