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

Commit 5f246e3c authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13599671 from 05c0a3ac to 25Q3-release

Change-Id: Ife758f2614dd7b41f379bf4b9e5141eba5a5da65
parents 6f1eb7cb 05c0a3ac
Loading
Loading
Loading
Loading

OWNERS

0 → 100644
+4 −0
Original line number Diff line number Diff line
# See frameworks/base/OWNERS.md
jiyong@google.com #{LAST_RESORT_SUGGESTION}
michaelwr@google.com #{LAST_RESORT_SUGGESTION}
smoreland@google.com #{LAST_RESORT_SUGGESTION}

libs/adbd_auth/OWNERS

0 → 100644
+1 −0
Original line number Diff line number Diff line
include platform/packages/modules/adb:/OWNERS
+458 −542

File changed.

Preview size limit exceeded, changes collapsed.

+151 −0

File added.

Preview size limit exceeded, changes collapsed.

+10 −3
Original line number Diff line number Diff line
@@ -593,8 +593,9 @@ int BBinder::getMinSchedulerPriority() {

bool BBinder::isInheritRt() {
    Extras* e = mExtras.load(std::memory_order_acquire);

    return e && e->mInheritRt;
    // Return configured default value if it has not been overridden
    if (e == nullptr) return sGlobalInheritRt.load(std::memory_order_acquire);
    return e->mInheritRt;
}

void BBinder::setInheritRt(bool inheritRt) {
@@ -616,6 +617,12 @@ void BBinder::setInheritRt(bool inheritRt) {
    e->mInheritRt = inheritRt;
}

std::atomic<bool> BBinder::sGlobalInheritRt(false);

void BBinder::setGlobalInheritRt(bool enabled) {
    sGlobalInheritRt.store(enabled, std::memory_order_release);
}

pid_t BBinder::getDebugPid() {
#ifdef __linux__
    return getpid();
@@ -744,7 +751,7 @@ BBinder::~BBinder()
        if (isRequestingSid()) {
            ALOGW("Binder %p destroyed when requesting SID before being parceled.", this);
        }
        if (isInheritRt()) {
        if (sGlobalInheritRt.load(std::memory_order_acquire) != isInheritRt()) {
            ALOGW("Binder %p destroyed after setInheritRt before being parceled.", this);
        }
#ifdef __linux__
Loading