Add OS Version to Properties
(This is a merge of http://go/wvgerrit/11613 from the Widevine CDM repo.) Adds a property for the OS version, implements it on Android, and adds it to the license request property bag so that Netflix may use it to discern the supported capabilities of the CDM. Bug: 18230738 Change-Id: If5174a108093855314f3e0102b83691e20bb247b
This commit is contained in:
@@ -87,6 +87,14 @@ bool Properties::GetBuildInfo(std::string* build_info) {
|
||||
return GetAndroidProperty("ro.build.fingerprint", build_info);
|
||||
}
|
||||
|
||||
bool Properties::GetOsVersion(std::string* os_version) {
|
||||
if (!os_version) {
|
||||
LOGW("Properties::GetOsVersion: Invalid parameter");
|
||||
return false;
|
||||
}
|
||||
return GetAndroidProperty("ro.build.version.release", os_version);
|
||||
}
|
||||
|
||||
bool Properties::GetDeviceFilesBasePath(CdmSecurityLevel security_level,
|
||||
std::string* base_path) {
|
||||
if (!base_path) {
|
||||
|
||||
Reference in New Issue
Block a user