commit | a53e89d23480db1bcc166afd0179ee4856cd38b5 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Nov 02 16:19:19 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Nov 03 17:14:59 2017 +0000 |
tree | 45e55f78497d36b83cd365dea6a70f73388618fd | |
parent | 532a55248b3805954f5c52c9b34e5db100bbfd41 [diff] |
SensorDeviceUtils: do not create sp(this) in constructor. This may cause refcount problems as stated in RefBase document. Do this in HidlServiceRegistrationWaiter::onFirstRef instead. Test: boots multiple times Bug: 68765551 Change-Id: Iae2589f7e003cb8d44fe6ca43f1342b89125f763