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

Commit 787bdb33 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "Fix Externally reported security issue"

parents b7a88e31 6868e986
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -34,8 +34,19 @@ using namespace android;
static Vector<uid_t> trustedUids;

static bool isProtectedCallAllowed() {
    // TODO
    // Following implementation is just for reference.
    // Each OEM manufacturer should implement/replace with their own solutions.
    IPCThreadState* ipcState = IPCThreadState::self();
    uid_t uid = ipcState->getCallingUid();

    for (unsigned int i = 0; i < trustedUids.size(); ++i) {
        if (trustedUids[i] == uid) {
            return true;
        }
    }
    return false;
}

void DrmManagerService::instantiate() {
    ALOGV("instantiate");