Add property to check if user forces L3
[ Merge of go/wvgerrit/186611 ] Android user can set the property using the developer option. Bug: 301669353 Change-Id: I730b635f6cc28dfb0471c1d679627c94b9e16af1
This commit is contained in:
@@ -10,11 +10,13 @@
|
||||
#include <string>
|
||||
|
||||
#include <android-base/properties.h>
|
||||
#include <android/sysprop/WidevineProperties.sysprop.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "wv_android_constants.h"
|
||||
#include "widevine_apex_info.h"
|
||||
|
||||
using namespace android::sysprop;
|
||||
namespace {
|
||||
|
||||
const char kBasePathPrefix[] = "/data/vendor/mediadrm/IDM";
|
||||
@@ -211,4 +213,8 @@ bool Properties::AlwaysUseKeySetIds() { return false; }
|
||||
|
||||
bool Properties::UseProviderIdInProvisioningRequest() { return false; }
|
||||
|
||||
bool Properties::ForceL3() {
|
||||
return WidevineProperties::forcel3_enabled().value_or(false);
|
||||
}
|
||||
|
||||
} // namespace wvcdm
|
||||
|
||||
Reference in New Issue
Block a user