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

Commit fcd193c9 authored by James Dong's avatar James Dong
Browse files

Remove the lock/unlock workaround from CameraService

bug - 2677772

Change-Id: I7c996daad8b3bfc89e9fa2d655dc18c9a5c68f2f
parent b4f689e6
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -371,10 +371,7 @@ CameraService::Client::~Client() {
status_t CameraService::Client::checkPid() const {
status_t CameraService::Client::checkPid() const {
    int callingPid = getCallingPid();
    int callingPid = getCallingPid();
    if (callingPid == mClientPid) return NO_ERROR;
    if (callingPid == mClientPid) return NO_ERROR;
    if (callingPid == getpid()) {

        LOGW("FIXME: use camera from mediaserver without permission.");
        return NO_ERROR;
    }
    LOGW("attempt to use a locked camera from a different process"
    LOGW("attempt to use a locked camera from a different process"
         " (old pid %d, new pid %d)", mClientPid, callingPid);
         " (old pid %d, new pid %d)", mClientPid, callingPid);
    return EBUSY;
    return EBUSY;