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

Commit 1f9a85e4 authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Merge "Revert "Remove UID requirement for set sched_fifo for sensor thread"" am: c599e05b

am: ad8c5787

Change-Id: I8acaa6eaccdbce6482f6a49ef6666e6d2dc82fbd
parents 9f9cdcf2 ad8c5787
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -17,6 +17,8 @@


#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>
@@ -28,8 +30,9 @@ namespace V1_0 {
namespace implementation {
namespace implementation {


bool SchedulingPolicyService::isAllowed() {
bool SchedulingPolicyService::isAllowed() {
    // TODO(b/37291237)
    using ::android::hardware::IPCThreadState;
    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) {