Commit Graph

3655 Commits

Author SHA1 Message Date
Alex Dale
ca7be366df Refactored ProvisioningHolder to separate operations.
[ Merge of http://go/wvgerrit/219451 ]

An upcoming provisioning test requires the ability to perform
generate, fetch and load operations separately (similar to the
current behavior of LicenseHolder).

This CL separates the 3 operations into different methods and
documents the pre/post conditions of each.  The original API
is maintained for backwards compatibility.

VIC-specific: Excludes Golden-data refactoring and merges main
change (216510) and typo fix (216570).

Bug: 391469176
Test: run_x86_64_tests
Change-Id: Iec83dfce9d235eedf04ed32d98f7700de4bade12
2025-04-18 12:43:28 -07:00
Alex Dale
3d5bdaeb77 Retry provisioning and license requests on 502 errors
[ Merge of http://go/wvgerrit/219370 ]

Work around the server problem.

Bug: 345333545
Change-Id: Ie1b0021f545c77d61bb2363494239f4fe000f3d5
2025-04-18 12:39:24 -07:00
Alex Dale
25380c8832 Updated OEMCrypto JSON build information validation test.
[ Merge of http://go/wvgerrit/219213 ]

Updates CheckJsonBuildInformationAPI18 to better check the contents
of the JSON build information introduced in V18.

Bug: 348498112
Bug: 348497732
Change-Id: I567700eb2ba451a9b10c52159d5fd30d5ae94841
2025-04-18 12:38:18 -07:00
Alex Dale
53b1b0ebc0 Added OEMCrypto build information validation test.
[ Merge of http://go/wvgerrit/219212 ]

This CL adds a new OEMCrypto test CheckBuildInformation*API17 which
ensures that OEMCrypto_BuildInformation() is generating valid build
information.

Bug: 348498112
Bug: 348497732
Change-Id: I22f9878d8ffa05b2b1b1b6ec28718e231438d4a7
Merged-In: I22f9878d8ffa05b2b1b1b6ec28718e231438d4a7
2025-04-18 12:37:53 -07:00
Alex Dale
21b6b18cd4 Merge "Ignore certain errors on RemoveOfflineLicense()." into vic-widevine-dev 2025-02-05 13:12:15 -08:00
Rahul Frias
1344dbb254 Merge "Workaround for single IPC connection" into vic-widevine-dev 2025-01-27 15:22:34 -08:00
Cong Lin
d8b51a0405 Allow key_session to be equal to oec_session when removing entitled key session
In some rare cases when |oec_session| was already closed, |key_session|
with the same session id will not exist any longer. This is a fix to
allow such case to not return an error.

Test: run opk tests
Bug: 343093320
Change-Id: I3218145ee8c1047a5cc756560e448b178c2c7a93
2025-01-24 19:27:50 +00:00
Rahul Frias
ead47285c6 Workaround for single IPC connection
The widevine service is restarted before tests are run as
unit tests are unable to connect to trusty. It then falls back
and runs the tests in L3 mode. Fix will be addressed in b/380710738

Bug: 339917270
Test: wv unit/integration tests
Change-Id: Idd4de73a9667cd360101f50a474a26ba8e73973b
2025-01-24 01:21:40 -08:00
Alex Dale
d5dae99c48 Merge "Trim trailing zeros from build information." into vic-widevine-dev 2025-01-14 14:25:49 -08:00
Jooyung Han
419171a8a6 Remove file_contexts workaround
Bug: 268439003
Merged-In: I9f621f9f6b9f2c67acb556829b7e0894cfadd1c3
Change-Id: I9f621f9f6b9f2c67acb556829b7e0894cfadd1c3
Test: m
(cherry picked from commit c0979a4c872148ccb04142d1741e160600ee1b6b)
2025-01-10 16:36:20 -08:00
Alex Dale
04a70543ea Trim trailing zeros from build information.
[ Cherry-pick of http://go/wvgerrit/212250 ]

Certain OEMCrypto implementations are returning build info with
trailing C-string null bytes; others are returning all null bytes.

This change attempts to trim any trailing zeros.  For build info
with a single trailing zero, this should fix the format; for those
containing all zeros, this will indicate a failure on OEMCrypto's part
for returning all zeros.  The CDM will not prevent request generation,
but will omit the result in the ClientIdentification.  The server
will decide whether to provide a response or not.

Bug: 348497732
Bug: 348498112
Bug: 366819137
Change-Id: I281ab14e0e46116825321a7965d971b9d68c49fc
(cherry picked from commit 7c81f7bed4fec8199f7fbdb5e95452eacdf3b3c7)
2025-01-08 11:19:42 -08:00
Alex Dale
5194959c8c Ignore certain errors on RemoveOfflineLicense().
[ Merge of http://go/wvgerrit/210652 ]

The CDM API RemoveOfflineLicense() is used to remove an offline
license by key set ID.  From the app's perspective, removing the
offline license should not depend on an app to be provisioned, or
the license being loadable.  However, internally, the CDM attempts
to restore the license to lock out its usage entry.

An issue arises when the license is not able to be restored, which
will cause errors related to the restoration to be returned to the
app.  The license is still deleted in case of errors, but certain
partners have experienced GTS failures when using the MediaDRM API
removeOfflineLicense().

This change attempts to catch some of the common errors, but not all.
If certain errors are encountered during the restoration process, the
are not returned to the app.

Additional error cases may be added later, depending on vendor
feedback.

Bug: 319055420
Bug: 357863269
Bug: 370195605
Bug: 288118860
Bug: 302049654
Bug: 346845333
Bug: 312595506
Bug: 345232142
Bug: 303261245
Bug: 287735498
Bug: 372105842
Test: WVTS on Oriole
Change-Id: I020bbea30e5f6e0ae2777d8a1d4858c4f2af107b
2024-11-21 14:41:46 -08:00
Alex Dale
39c12039cb Patch Android FileSystem::List for non-existing directory.
[ Merge of http://go/wvgerrit/210651 ]

The Android FileSystem implementation for List() would return an error
if the directory does not exist.  This creates an issue for the case
where the CDM attempts to list offline licenses after clearing all
data.  This typically won't effect a regular user, it causes
integration tests which re-provision to fail.

Bug: 372105842
Test: file_store_unittest on Oriole
Change-Id: I121b52ab95e36249ae5b196e987bc950a278131f
2024-11-21 14:41:20 -08:00
Kyle Zhang
ae80e87d0e Add missing OEMCrypto metrics to WVDRM metrics adapter.
1. oemcrypto_prep_and_sign_provisioning_request_time_us
2. oemcrypto_prep_and_sign_license_request_time_us
3. oemcrypto_prep_and_sign_renewal_request_time_us
4. oemcrypto_load_license_time_us

Bug: 379352348
Change-Id: Ieb299b82f5dfa4b9b84e9261c05decd073736528
2024-11-19 22:41:41 +00:00
Treehugger Robot
e63b07e850 Merge "Fix key type used in InstallOemPrivateKeyCanBeUsed test" into vic-widevine-dev 2024-11-19 19:05:06 +00:00
Rahul Frias
b03dfadfc4 Merge "Correct SecureStop_RecoveryTest" into vic-widevine-dev 2024-11-13 00:57:27 +00:00
Alex Dale
b092b0e2f1 Cleaned up file_store_unittest.cpp
[ Merge of http://go/wvgerrit/209871 ]

The filestore unit tests have not been updated in a while, and
contained several test statements which could crash the test
when failed (accessing elements in a vector or characters in a
string without proper size checks).  Other parts of the tests
had non-obvious purposes without detailed knowledge of how the
file system works on the different platforms.

Significant parts of the tests have been refactored to include
better checking and to add error messages to explain the
expectations.  Several of the tests have been documented, and the
FileSystem header has been updated to explain what the API does.

Bug: 376533901
Test: file_store_unittest on Oriole
Change-Id: I5af9fd2a2ed01aa6186026761c9e0814604ec610
(cherry picked from commit bc4382b075)
2024-11-09 01:34:51 +00:00
Rahul Frias
1af36f421f Merge "Correct VersionNumberTest expectation" into vic-widevine-dev 2024-11-07 16:02:32 +00:00
Rahul Frias
b06655fc59 Merge changes I34aab2b5,I0874b965 into vic-widevine-dev
* changes:
  Skip ProvisioningStableSpoidTest if L3
  Correct CertificateProvisioningTests failures
2024-11-05 18:05:14 +00:00
Rahul Frias
f25dc4d0f3 Correct SecureStop_RecoveryTest
[ Merge of http://go/wvgerrit/209611 ]

[Reset crypto session pointers on RemoveKeys](http://go/wvgerrit/189590)
changed the plugin behavior. When RemoveKeys are called the
Provider Session Token present in the license is cleared when
CdmLicense object is reset. This causes a test expectation to
fail. Since SecureStop are slated for removal,  we will introduce
a workaround to avoid this expectation check. The work around is to
not expect usage information.

Bug: 339917270
Test: request_license_test (WvCdmRequestLicenseTest.SecureStop_RecoveryTest)
Flag: Test only code
Change-Id: Ib6922372faf0a38b7bf131f699c4626cb2b533d0
2024-11-05 09:59:16 -08:00
Rahul Frias
2c0bfc8b44 Correct VersionNumberTest expectation
[ Merge of http://go/wvgerrit/209610 ]

Bug: 339917270
Test:  request_license_test (VersionNumberTest.VersionNumberChangeCanary)
Flag: Test only code
Change-Id: I58e36f8684d87e7894a15e1903637781c9f7df9c
2024-11-05 08:10:28 -08:00
Treehugger Robot
45739aeaa2 Merge "Drop Widevine apex prebuilt files for release 12498615 AV1A.241014.001" into vic-widevine-dev 2024-10-15 20:38:50 +00:00
Kyle Zhang
a8ae159f22 Drop Widevine apex prebuilt files for release 12498615 AV1A.241014.001
The following files have been updated as part of this change:

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12498615.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12498615.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12498615.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12498615.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12498615.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12498615.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12498615.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12498615.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241014
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

The change is generated with prebuilt drop tool.

Change-Id: If4471afb2156958a148e48157e5a36592f2be55c
2024-10-15 18:39:14 +00:00
Kyle Zhang
c48d2d8ea6 Add new release apex set 12498615
Bug: 324294223
Change-Id: I97d29ff5d38edb1d7b8c603428cf224d7cd9e7d9
2024-10-15 18:34:59 +00:00
Kyle Zhang
d73997bc0b Revert "Limit output buffer size during decrypt fallback"
Revert submission 28914157

Reason for revert: b/372348308

Reverted changes: /q/submissionid:28914157

Change-Id: Ib77156ffe6abed0f8feee5d9f60f24a90e749ff8
2024-10-14 22:28:42 +00:00
Alex Dale
f1da7b637d removeOfflineLicense() respects plugin security level.
[ Merge of http://go/wvgerrit/208470 ]

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
(cherry picked from commit 0aa6aad1af)
2024-10-12 00:02:46 +00:00
Alex Dale
71fce8f352 getOfflineLicenseKeySetIds() respects plugin security level.
[ Merge of http://go/wvgerrit/208430 ]

The MediaDrm plugin API getOfflineLicenseKeySetIds() was listing
both L1 and L3 offline licenses.  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 list L3 only if the app had
set the security level to L3.

Bug: 357863269
Bug: 372105842
Test: DRM Compliance ATP via ABTD
Test: libwvdrmdrmplugin_hal_test on Oriole
Change-Id: I1a6e10b7eb880eef4ba36ed31b12ebfe8617f002
(cherry picked from commit 26b888b094)
2024-10-12 00:02:06 +00:00
Cong Lin
8dc895664a Fix key type used in InstallOemPrivateKeyCanBeUsed test
Merge of https://widevine-internal-review.git.corp.google.com/c/cdm/+/208111

Signature is generated from public_key1, so we should use key_type1 for
signature verification.

Test: opk_ta_p40
Bug: 355011375
Change-Id: If532f3814c7a4b7899d574fc09d3d09b9bb18976
2024-10-08 18:09:22 +00:00
Alex Dale
894beae755 Merge "Fixed HLS parsing of bad content IDs." into vic-widevine-dev 2024-10-03 20:29:46 +00:00
Cong Lin
2ad9f624b8 Merge "Add "bootCertificateChainSignature" to Drm plugin getPropertyByteArray()" into vic-widevine-dev 2024-10-03 18:19:37 +00:00
Kyle Zhang
7cecdb163c Merge "Drop Widevine apex prebuilt files for release 12439404" into vic-widevine-dev 2024-10-02 19:29:19 +00:00
Alex Dale
380148e3e6 Fixed HLS parsing of bad content IDs.
[ Merge of http://go/wvgerrit/207457 ]

When parsing Widevine's HLS key data, the key details are contained
in a data URI in the HLS X-KEY URI field.  The data of the URI is a
base64 encoded JSON object, containing the information required to
generate the license request.  The "content_id" field of the JSON
object is expected to be a base64 encoded; however, the HLS parser
did not verify that the decoding was successful.  In the event that
was not successful, the decoder would return an empty string, which
the parser would attempt to access the first element by reference
which may be a null reference.

In C++, creating a reference from a null point (without actually
accessing the value) is undefined; however most C++ implemenations
will not cause a segment fault; but it is not guarenteed by the
standard.

This change checks if the decoding was successful before attempting
to store the decoded "content_id" value.

A unit test is added to ensure that a parser fails gracefully.

Bug: 356210640
Test: HlsParseTest.BadHlsData_InvalidContentId
Change-Id: Ie2ad42d69953258659178dd1464d830b2723c6c7
2024-10-01 21:14:19 -07:00
Cong Lin
d92d3a884d Add "bootCertificateChainSignature" to Drm plugin getPropertyByteArray()
This allows Widevine RKP HAL to query BCC signature via DRM interface
during BCC extraction for remote provisioning phase 3. The query returns
the "additional_signature" field from
OEMCrypto_GetBootCertificateChain().

Test: Manual BCC extraction on Pixel 9
Bug: 355160637
Change-Id: I1a310a80c0cfef82ee3697f06c1293d5c1c3896a
2024-10-02 00:43:54 +00:00
Kyle Zhang
02c4b721f5 Add new release apex set 12439404
Bug: 324294223
Change-Id: I6026a57a55c2d6f7965d4b2c0befded3cfa9accd
2024-10-01 23:42:25 +00:00
Kyle Zhang
034919b6a0 Drop Widevine apex prebuilt files for release 12439404
The following files have been updated as part of this change:

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.lazy.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12439404.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12439404.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12439404.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.lazy-12439404.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.lazy
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12439404.apks[standalones/standalone-arm64_v8a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12439404.apks[standalones/standalone-armeabi_v7a.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12439404.apks[standalones/standalone-x86.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

libwvdrmengine/apex/prebuilt/release/com.google.android.widevine.nonupdatable-12439404.apks[standalones/standalone-x86_64.apex]
package: name=com.google.android.widevine.nonupdatable
versionCode=190241001
versionName=
platformBuildVersionName=15
compileSdkVersion=35
compileSdkVersionCodename=15
sdkVersion:34
targetSdkVersion:35

The change is generated with prebuilt drop tool.

Change-Id: I7c6fc37d98b0febdc4934b70390f16497e5bc4d4
2024-10-01 23:36:08 +00:00
Rahul Frias
a5a02ac1fb Skip ProvisioningStableSpoidTest if L3
[ Merge of http://go/wvgerrit/207790 ]

SPOID is only expected to be stable for L1

Bug: 339917270
Test: CoreIntegrationTest.ProvisioningStableSpoidTest
Change-Id: I34aab2b5f873b643e2cfb3c7ad8c996f2134a48b
2024-09-30 12:54:41 -07:00
Robert Shih
4ef3e2cee8 Remove level1_failed_ cache
Bug: 313497311
Test: Samsung QA
Change-Id: Ic3bddf5340f37a19bd44800681fec6f0c0520d19
2024-09-30 17:27:56 +00:00
Rahul Frias
92d0e81143 Correct CertificateProvisioningTests failures
[ Merge of http://go/wvgerrit/207720 ]

CertificateProvisioningTests were failing because the expected
filename "cert.bin" was not met. The file path being passed in
on android was "/data/vendor/mediadrm/IDM0/L[1|3]/cert.bin"

Bug: 339917270
Test: CertificateProvisioningTests/CertificateProvisioningTests.ProvisioningResponseSuccess/Keybox
Test: CertificateProvisioningTests/CertificateProvisioningTests.ProvisioningResponseSuccess/OemCert
Test: CertificateProvisioningTests/CertificateProvisioningTests.ProvisioningResponseSuccess/DrmCertificateReprovisioning
Change-Id: I0874b9652d54848d58c202fe197af0da0616e8cd
2024-09-30 09:41:56 -07:00
Cong Lin
22256e145c Merge "Fix test message format for cast receiver" into vic-widevine-dev 2024-09-25 17:10:24 +00:00
Kyle Zhang
6c9eb3f981 Merge "Respect TARGET_BUILD_PACKAGE_WIDEVINE to build widevine apex" into vic-widevine-dev 2024-09-20 21:00:23 +00:00
Cong Lin
0ea1b8f8fd Fix test message format for cast receiver
Merge of https://widevine-internal-review.git.corp.google.com/c/cdm/+/206431

Message to be signed by CAST funciton is supposed to be in a certain
format: "constant prefix + SHA1(message)".

Some of our current CAST tests uses random message which break this
specification. This fixes the input message.

Test: Cast tests with run_fake_l1_tests
Bug: 359893908
Change-Id: I6b318d749971d837f13daa7b147313e8e0b1d3d0
2024-09-12 18:07:37 +00:00
Vicky Min
51944dc331 Allow key_session to be set to oec_session when creating entitled key
session

Bug: 358042250
Change-Id: If636f252aec6c95e23a91ee410f9cadf0ebad5d9
(cherry picked from commit 232d01b83abb6fe9ff9f4148bf79dc5dab8ee946)
2024-09-09 18:02:32 +00:00
Rahul Frias
d27b58202e Merge changes I58806276,Ic112b459 into vic-widevine-dev
* changes:
  Clang format long line
  Update test data for entitled license test
2024-09-09 17:12:40 +00:00
Vicky Min
e642847b81 Update license holder to handle Android license releases
Since the CDM engine handles license releases for CE CDM and Android
differently, this changes the license release test to accomodate for
that.

Bug: 348712053
Change-Id: Ibc768e5d5c31ef8c2226b63dc622ffabfc0591fe
2024-09-04 19:33:16 +00:00
Kyle Zhang
4ec936167d Respect TARGET_BUILD_PACKAGE_WIDEVINE to build widevine apex
Bug: 358666871
Bug: 347658720
Change-Id: I49bdc4f20b8b423947f14f81d5f83b4e0bfd6280
2024-09-03 18:34:01 +00:00
Fred Gylys-Colwell
b0bf7187f0 Clang format long line
Error not found in go/wvgerrit/199931

Change-Id: I58806276ab0a710444f6632d4c824607b8ebd17c
2024-08-23 23:26:37 -07:00
Fred Gylys-Colwell
135d6c608d Update test data for entitled license test
A new set of license data was created on UAT so that we
could have keys that match those in the license returned by
a License SDK and by those generated by UAT.

It should be more clear now which data is just made up, and
which data has to match some golden values based on the made
up data.

Bug: 338323091
Test: WVTS
Change-Id: Ic112b4594afb99c6f43e011f59ee7592d4809189
2024-08-23 23:26:28 -07:00
Kyle Zhang
1a036457ee Merge "Respect RELEASE_PACKAGE_WIDEVINE in device.mk" into vic-widevine-dev 2024-08-23 06:52:48 +00:00
Kyle Zhang
077c1133da Respect RELEASE_PACKAGE_WIDEVINE in device.mk
Bug: 338239204
Change-Id: Ib1f6a6438c70155ae4cb05afb0f132055697372d
(cherry picked from commit 6964a3aad6b30476b904592be046cbaa371a61c9)
2024-08-21 18:25:42 +00:00
John W. Bruce
0b47bd6a50 Increase size of BCC buffer in OEC tests
We are receiving reports from partners in the field that they are
failing the OEMCrypto tests only because the tests assume the BCC will
fit into 5k of memory but their BCC is nearly 8k in size.

This patch increases the buffer to 10k.

Bug: 354834629
Test: x86-64
Merged from https://widevine-internal-review.googlesource.com/204773

Change-Id: I360196518b7651139c003505253d1aed6a0c3907
2024-08-21 05:12:51 +00:00