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

Commit b32db4a7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "servicemanager: remove pre-4.4 pidcon path" into main

parents fdb6b24d 8a9bb84a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -34,7 +34,9 @@ constexpr bool kIsVendor = false;

#ifdef __ANDROID__
static std::string getPidcon(pid_t pid) {
    android_errorWriteLog(0x534e4554, "121035042");
    CHECK_EQ(nullptr, IPCThreadState::self()->getServingStackPointer())
            << "Did not get context from PID " << pid
            << ". We should always get contexts from other processes.";

    char* lookup = nullptr;
    if (getpidcon(pid, &lookup) < 0) {