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

Commit ab7ef300 authored by Andy Hung's avatar Andy Hung
Browse files

Move ServiceUtilities from audioflinger to libmediautils

Test: Play Music, Play Movies, Camera, Photos
Bug: 79485140
Change-Id: Ib8382547828e386024145c416321d24e4af182db
parent 1f2bfd3a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ cc_library {
        "MemoryLeakTrackUtil.cpp",
        "ProcessInfo.cpp",
        "SchedulingPolicyService.cpp",
        "ServiceUtilities.cpp",
    ],
    shared_libs: [
        "libbinder",
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#include <binder/IServiceManager.h>
#include <binder/PermissionCache.h>
#include <private/android_filesystem_config.h>
#include "ServiceUtilities.h"
#include "mediautils/ServiceUtilities.h"

/* When performing permission checks we do not use permission cache for
 * runtime permissions (protection level dangerous) as they may change at
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@

namespace android {

// Audio permission utilities

extern pid_t getpid_cached;
bool isTrustedCallingUid(uid_t uid);
bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid);
+0 −20
Original line number Diff line number Diff line
@@ -2,25 +2,6 @@ LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    ServiceUtilities.cpp

# FIXME Move this library to frameworks/native
LOCAL_MODULE := libserviceutility

LOCAL_SHARED_LIBRARIES := \
    libcutils \
    libutils \
    liblog \
    libbinder

LOCAL_CFLAGS := -Wall -Werror
LOCAL_SANITIZE := integer_overflow

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:=               \
    AudioFlinger.cpp            \
    Threads.cpp                 \
@@ -54,7 +35,6 @@ LOCAL_SHARED_LIBRARIES := \
    libnbaio \
    libnblog \
    libpowermanager \
    libserviceutility \
    libmediautils \
    libmemunreachable \
    libmedia_helper
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@
#include <system/audio.h>

#include "AudioFlinger.h"
#include "ServiceUtilities.h"

#include <media/AudioResamplerPublic.h>

@@ -66,6 +65,7 @@
#include <media/nbaio/PipeReader.h>
#include <media/AudioParameter.h>
#include <mediautils/BatteryNotifier.h>
#include <mediautils/ServiceUtilities.h>
#include <private/android_filesystem_config.h>

//#define BUFLOG_NDEBUG 0
Loading