Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 10f625b9 authored by Mike Yu's avatar Mike Yu
Browse files

Change OemNetdListener::getListener to create a sp<OemNetdListener>

The test is broken because libbinder use stronger refbase semantics.
OemNetdListener::getListener() used to pass the raw pointer of the
instance to get sp<IBinder>, which breaks the stronger refbase semantics
(see aosp/1660499).

OemNetdListener::getListener() is now changed to create a
sp<OemNetdListener> to own the instance so that the code won't abort
in RefBase::incStrongRequireStrong().

Bug: 185191546
Test: atest netd_integration_test
Change-Id: I76920098142e86b0c035181d11d07c9cc639f065
parent 6e76dda2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment