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

Commit 1f103fc2 authored by Jeff Tinker's avatar Jeff Tinker Committed by Android (Google) Code Review
Browse files

Merge "Fix Externally reported security issue"

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


static bool isProtectedCallAllowed() {
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 true;
        }
        }
    }
    return false;
}


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