From 9e632c3b19b6a2bcddcb0e107f675a5d6f7a9855 Mon Sep 17 00:00:00 2001 From: "John W. Bruce" Date: Fri, 2 Mar 2018 17:35:15 -0800 Subject: [PATCH] Sync Android CDM Version with OEMCrypto (This is a merge from http://go/wvgerrit/44680 in the Widevine repo.) The various Shared Source CDM groups have agreed on a more unified version numbering scheme. Henceforth, the pattern for the version number will be: .. Where "minor-version" and "patch-version" are incremented independently at the discretion of each CDM product. This patch updates the version number for the Android CDM to match the new scheme and updates the relevant tests. Bug: 73090259 Test: request_license_test --gtest_filter=VersionNumberTest.* Change-Id: Idcead5d92565dd549aa35565da632f01abb9e513 --- libwvdrmengine/cdm/src/properties_android.cpp | 2 +- libwvdrmengine/cdm/test/request_license_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libwvdrmengine/cdm/src/properties_android.cpp b/libwvdrmengine/cdm/src/properties_android.cpp index 1a84e64f..f9906dcf 100644 --- a/libwvdrmengine/cdm/src/properties_android.cpp +++ b/libwvdrmengine/cdm/src/properties_android.cpp @@ -19,7 +19,7 @@ const char kL2Dir[] = "/L2/"; const char kL3Dir[] = "/L3/"; const char kFactoryKeyboxPath[] = "/factory/wv.keys"; -const char kWVCdmVersion[] = "v6.0.0-android"; +const char kWVCdmVersion[] = "14.0.0"; bool GetAndroidProperty(const char* key, std::string* value) { char val[PROPERTY_VALUE_MAX]; diff --git a/libwvdrmengine/cdm/test/request_license_test.cpp b/libwvdrmengine/cdm/test/request_license_test.cpp index fa9f07e6..3101e497 100644 --- a/libwvdrmengine/cdm/test/request_license_test.cpp +++ b/libwvdrmengine/cdm/test/request_license_test.cpp @@ -3806,7 +3806,7 @@ TEST(VersionNumberTest, VersionNumberChangeCanary) { std::string widevine_version; ASSERT_TRUE(Properties::GetWVCdmVersion(&widevine_version)); - EXPECT_EQ("v6.0.0-android", widevine_version) + EXPECT_EQ("14.0.0", widevine_version) << "The Widevine CDM version number has changed. Did you forget to " "update this test after changing it?"; }