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

Commit d80c34a3 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "Binder count in audioserver will increase more and more when recording."

parents 8f2ebce1 c8fbfd49
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -101,7 +101,11 @@ std::optional<AttributionSourceState> resolveAttributionSource(
    AttributionSourceState myAttributionSource;
    myAttributionSource.uid = VALUE_OR_FATAL(android::legacy2aidl_uid_t_int32_t(getuid()));
    myAttributionSource.pid = VALUE_OR_FATAL(android::legacy2aidl_pid_t_int32_t(getpid()));
    if (callerAttributionSource.token != nullptr) {
        myAttributionSource.token = callerAttributionSource.token;
    } else {
        myAttributionSource.token = sp<BBinder>::make();
    }
    myAttributionSource.next.push_back(nextAttributionSource);

    return std::optional<AttributionSourceState>{myAttributionSource};