removeOfflineLicense() respects plugin security level.
[ Merge of http://go/wvgerrit/208116 ] The MediaDrm plugin API removeOfflineLicense() would check both L1 and L3 for the offline license. While this is generally acceptable, apps might force set L3 via the setStringProperty(), which should cause the DRM plugin to behave as if it is L3 only. This change will cause the WVDrmPlugin only remove L3 key set IDs while in L3 mode. L1 key set IDs in this case will be treated as non-existing. Bug: 357863269 Bug: 372105842 Test: DRM Compliance ATP via ABTD Test: libwvdrmdrmplugin_hal_test on Oriole Change-Id: I81dddbacaee28da6c0a94527b0e390e86f55f81f
This commit is contained in:
@@ -134,7 +134,8 @@ class WVDrmPlugin : public ::aidl::android::hardware::drm::BnDrmPlugin,
|
||||
::ndk::ScopedAStatus removeKeys(
|
||||
const std::vector<uint8_t>& in_sessionId) override;
|
||||
::ndk::ScopedAStatus removeOfflineLicense(
|
||||
const ::aidl::android::hardware::drm::KeySetId& in_keySetId) override;
|
||||
const ::aidl::android::hardware::drm::KeySetId& in_keySetIdPackage)
|
||||
override;
|
||||
::ndk::ScopedAStatus removeSecureStop(
|
||||
const ::aidl::android::hardware::drm::SecureStopId& in_secureStopId)
|
||||
override;
|
||||
|
||||
Reference in New Issue
Block a user