Only use libbinder_ndk for aidl service.
[ Merged from http://go/wvgerrit/151169 ] Test: Netflix and Google TV streaming and downloaded playback Test: unit tests Test: atest VtsAidlHalDrmTargetTest Test: adb shell readelf -d /vendor/bin/hw/android.hardware.drm-service.widevine Test: adb shell readelf -d /vendor/lib64/libwvaidl.so Bug: 230791937 Change-Id: Ia60d9fc838bf228b40d99b076a837ae789fa2d03
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "WVDrmPlugin.h"
|
||||
|
||||
#include <aidl/android/hardware/drm/DrmMetric.h>
|
||||
#include <android/binder_ibinder_platform.h>
|
||||
#include <binder/IPCThreadState.h>
|
||||
#include <stdlib.h>
|
||||
#include <utils/Log.h>
|
||||
@@ -1634,8 +1635,7 @@ Status WVDrmPlugin::unprovisionDevice() {
|
||||
return toNdkScopedAStatus(Status::BAD_VALUE);
|
||||
}
|
||||
|
||||
const auto& self = android::IPCThreadState::self();
|
||||
const char* sid = self->getCallingSid();
|
||||
const char* sid = AIBinder_getCallingSid();
|
||||
if (!sid ||
|
||||
(!strstr(sid, ":mediashell_app:") && !strstr(sid, ":mediadrmserver:") &&
|
||||
!strstr(sid, ":setupwraith_app:"))) {
|
||||
|
||||
Reference in New Issue
Block a user