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

Commit 3b9aa69e authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Merge "Remove UID requirement for set sched_fifo for sensor thread" into oc-dev

am: 62dd04b4

Change-Id: Iff60e27ad92631e130795b3fe1fb820af9e41046
parents d85855bb 62dd04b4
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -17,8 +17,6 @@


#include "SchedulingPolicyService.h"
#include "SchedulingPolicyService.h"


#include <private/android_filesystem_config.h> // for AID_CAMERASERVER

#include <log/log.h>
#include <log/log.h>
#include <hwbinder/IPCThreadState.h>
#include <hwbinder/IPCThreadState.h>
#include <mediautils/SchedulingPolicyService.h>
#include <mediautils/SchedulingPolicyService.h>
@@ -30,9 +28,8 @@ namespace V1_0 {
namespace implementation {
namespace implementation {


bool SchedulingPolicyService::isAllowed() {
bool SchedulingPolicyService::isAllowed() {
    using ::android::hardware::IPCThreadState;
    // TODO(b/37291237)

    return true;
    return IPCThreadState::self()->getCallingUid() == AID_CAMERASERVER;
}
}


Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) {
Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) {