wv hidl: setRequestingSid to true
HALs need to getCallingSid to verify clients. [ Merge of http://go/wvgerrit/89123 ] Bug: 134787536 Test: log calling sid Change-Id: I9cfbddfc274457a6802d9c8f37470d656771acc6
This commit is contained in:
@@ -63,7 +63,7 @@ Return<void> WVDrmFactory::createPlugin(
|
||||
const hidl_string& appPackageName,
|
||||
createPlugin_cb _hidl_cb) {
|
||||
|
||||
WVDrmPlugin *plugin = NULL;
|
||||
sp<IDrmPlugin> plugin;
|
||||
if (!isCryptoSchemeSupported(uuid.data())) {
|
||||
ALOGE("Widevine Drm HAL: failed to create drm plugin, " \
|
||||
"invalid crypto scheme");
|
||||
@@ -80,6 +80,7 @@ Return<void> WVDrmFactory::createPlugin(
|
||||
|
||||
plugin = new WVDrmPlugin(getCDM(), appPackageName.c_str(),
|
||||
&sOemCryptoInterface, areSpoidsEnabled());
|
||||
android::hardware::setRequestingSid(plugin, true);
|
||||
_hidl_cb(Status::OK, plugin);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user