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

Commit 3003807f authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Remove MediaDrm stack from mediaserver

Part of media security hardening

MediaDrm was temporarily allowed to
run in either mediaserver or mediadrmserver
while all nexus devices were implementing
support for the native_handle representation
of secure buffers.  Now that all nexus
devices support native_handle, the MediaDrm
stack can be removed from mediaserver.

b/22990512

Change-Id: Ie5d83bfeb4c4a824e1d0edb4c9452c782d6fd386
parent c3c06c4f
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)

#
# libmediadrm
#

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
	Crypto.cpp \
	Drm.cpp \
	DrmSessionManager.cpp \
	SharedLibrary.cpp

LOCAL_SHARED_LIBRARIES := \
	libbinder \
	libcrypto \
	libcutils \
	libdl \
	liblog \
	libmedia \
	libstagefright \
	libstagefright_foundation \
	libutils

LOCAL_C_INCLUDES := \
    libcore/include

LOCAL_CFLAGS += -Werror -Wno-error=deprecated-declarations -Wall
LOCAL_CLANG := true

LOCAL_MODULE:= libmediadrm

include $(BUILD_SHARED_LIBRARY)

include $(call all-makefiles-under,$(LOCAL_PATH))
+1 −2
Original line number Diff line number Diff line
@@ -20,9 +20,8 @@
#include <dirent.h>
#include <dlfcn.h>

#include "Crypto.h"

#include <binder/IMemory.h>
#include <media/Crypto.h>
#include <media/hardware/CryptoAPI.h>
#include <media/stagefright/foundation/ADebug.h>
#include <media/stagefright/foundation/AString.h>
+3 −4
Original line number Diff line number Diff line
@@ -21,10 +21,9 @@
#include <dirent.h>
#include <dlfcn.h>

#include "Drm.h"

#include "DrmSessionClientInterface.h"
#include "DrmSessionManager.h"
#include <media/DrmSessionClientInterface.h>
#include <media/DrmSessionManager.h>
#include <media/Drm.h>
#include <media/drm/DrmAPI.h>
#include <media/stagefright/foundation/ADebug.h>
#include <media/stagefright/foundation/AString.h>
+2 −3
Original line number Diff line number Diff line
@@ -18,12 +18,11 @@
#define LOG_TAG "DrmSessionManager"
#include <utils/Log.h>

#include "DrmSessionManager.h"

#include "DrmSessionClientInterface.h"
#include <binder/IPCThreadState.h>
#include <binder/IProcessInfoService.h>
#include <binder/IServiceManager.h>
#include <media/DrmSessionManager.h>
#include <media/DrmSessionClientInterface.h>
#include <media/stagefright/ProcessInfo.h>
#include <unistd.h>
#include <utils/String8.h>
+3 −4
Original line number Diff line number Diff line
@@ -16,12 +16,11 @@

//#define LOG_NDEBUG 0
#define LOG_TAG "Drm"
#include <utils/Log.h>
#include <media/stagefright/foundation/ADebug.h>

#include <dlfcn.h>

#include "SharedLibrary.h"
#include <media/stagefright/foundation/ADebug.h>
#include <media/SharedLibrary.h>
#include <utils/Log.h>

namespace android {

Loading