Fred Gylys-Colwell
14a034209c
Turn on ODK tests in CE CDM test and fix test helper
...
Merge from Widevine repo of http://go/wvgerrit/122223
This adds the ODK unit tests to the CE CDM tests so that they run as
part of the presubmit tests.
The test helper had some pointer problems converting a bool to a
uint32, so it has been updated to handle this correctly.
Some other tests failed comparing signed to unsigned, to these have
also been fixed.
test: ran odk_test
bug: 118657876
Change-Id: I744a1e89f4e4729c31d3f53e729984ffac1d96fd
2021-04-23 10:11:48 -07:00
Fred Gylys-Colwell
bcc1db9b69
Address review comments
...
Merge from Widevine repo of http://go/wvgerrit/122383
Fix a few grammar errors found in http://go/ag/14154405 and
http://go/ag/14150103 .
Bug: 185536454
Test: comments changed only
Change-Id: Ied2af940d705fbfc4af60c1d76a051c8c163097f
2021-04-15 22:07:18 -07:00
TreeHugger Robot
c1d423487f
Merge changes Ic7459870,I655babf1,I463642fb,Iccdbcc0b,I2ebbd8f7, ... into sc-dev
...
* changes:
Fix another typo
Update license comment
Update Version Compatibility Document
Modify OEMCrypto unit tests to allow 16.3 or 16.4
Update OEMCrypto test comments and logs
Update OEMCryptoCENC.h header to obfuscate missing functions
Clean up duration tests
Use either spelling of AllocateSecureBuffer in dynamic adapter
Update ODK library for OPK compatibility
2021-04-16 03:10:10 +00:00
Alex Dale
93cfe22910
Merge "Extended Android file store error logs." into sc-dev
2021-04-14 23:05:55 +00:00
Fred Gylys-Colwell
79b2a933e4
Fix another typo
...
Merge from Widevine repo of http://go/wvgerrit/122123
Bug: 171912044
Change-Id: Ic7459870ac532f04f254913e685a306dbdfe1f7a
2021-04-14 09:53:02 -07:00
Fred Gylys-Colwell
e51c9fbbb8
Update license comment
...
Merge from Widevine repo of http://go/wvgerrit/121950
Remove term "Master" from "Widevine Master License Agreement".
Bug: 168562298
Change-Id: I655babf1bc447f4872f6a0f849107262be42df7a
2021-04-12 14:10:08 -07:00
Fred Gylys-Colwell
64e2176047
Update Version Compatibility Document
...
Merge from Widevine repo of http://go/wvgerrit/110024
The document now has a date for the R release, and talks about 16.4.
It also more clearly describes how the CDM matches the HIDL interface
version, not the Android OS version.
Test: Doc change only
Bug: 169155700
Change-Id: I463642fbb779388a2ff7758db1a03d998e89510c
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
ef65e86ee2
Modify OEMCrypto unit tests to allow 16.3 or 16.4
...
Merge from Widevine repo of http://go/wvgerrit/121790
Some unit tests expected OEMCrypto to be the latest ODK version,
but we do not require this for v16.
Bug: 184905579
Change-Id: Iccdbcc0b28587aad79a2a63d8c39a564a47fb585
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
6628c7f693
Update OEMCrypto test comments and logs
...
Merge from Widevine repo of http://go/wvgerrit/121886
This CL merges some changes from branch rvc-dev to sc-dev
that prepared it for merge.
One change is that the unit tests now say they are part of
Android S instead of R.
Bug: 180546871
Change-Id: I2ebbd8f7b8586389ebb75f3743a2dc2ad8caa214
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
d265a5fe73
Update OEMCryptoCENC.h header to obfuscate missing functions
...
This CL adds AllocateSecureBuffer and FreeSecureBuffer to the list of
function names that are obfuscated. It also corrects some spelling and
formatting in OEMCrypto headers. This is still version 16.4.
Merge from Widevine repo of
http://go/wvgerrit/115803
http://go/wvgerrit/111104
http://go/wvgerrit/108703
http://go/wvgerrit/108703
Bug: 139814713
Bug: 141202789
bug: 168634557
bug: 168635928
bug: 168637230
bug: 168639188
Change-Id: I6f06549b2cf104c6751b2947964569e974fcdcd2
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
e998b08de7
Clean up duration tests
...
Merge from Widevine repo of http://go/wvgerrit/120903
Some comments in the duration tests had stale numbers in them. This
was fixed.
Also, the tests CdmUseCase_LicenseDuration were failing with a v16 CDM
and a v15 OEMCrypto because the exact cutoff time is different in
those two cases. That is exactly why specifying the license duration
is not recommended. The tests have been modified to handle both
acceptable behaviors.
Bug: 182237739
Change-Id: I05765beacfe69d02e7366bb3f651f0d5888ab3e5
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
504b05492b
Use either spelling of AllocateSecureBuffer in dynamic adapter
...
Merge from Widevine repo of http://go/wvgerrit/121883
There was a problem in the v16.3 header that did not rename
OEMCrypto_AllocateSecureBuffer to _oecc109 or
OEMCrypto_FreeSecureBuffer to _oecc110. These functions are only used
in testing.
This changes the dynamic adapter to accept either name for those
functions.
Bug: 171121061
Change-Id: I30121c7524e8db580ba85f3e686a7a7c429d80a9
2021-04-12 14:00:53 -07:00
Fred Gylys-Colwell
6a59fee30a
Update ODK library for OPK compatibility
...
This is a merge from http://go/wvgerrit of several changes to the ODK
library that allow it to be used in the same compilation unit as the
OPK serialization/deserialization code.
Merge of:
http://go/wvgerrit/104403
http://go/wvgerrit/105663
http://go/wvgerrit/106004
http://go/wvgerrit/107903
http://go/wvgerrit/107985
http://go/wvgerrit/110167
http://go/wvgerrit/110403
http://go/wvgerrit/110423
http://go/wvgerrit/110663
http://go/wvgerrit/110703
http://go/wvgerrit/110985
http://go/wvgerrit/111703
http://go/wvgerrit/112563
http://go/wvgerrit/113243
http://go/wvgerrit/115204
http://go/wvgerrit/117803
http://go/wvgerrit/121949
bug: 174518179
bug: 175920940
bug: 175126254
Change-Id: I433459182043ca43a040cdbc16d04f2b8215067a
2021-04-12 13:59:59 -07:00
Alex Dale
36dc9bb97b
Extended Android file store error logs.
...
[ Merge of http://go/wvgerrit/120763 ]
This change introduces additional logging information for files and
file system operations on Android.
File reading and writing will attempt to make sense of |errno| and
log useful information. In the event that the file must be closed,
the file stat will be printed.
Failures in determining the file size will print potential reasons for
the encountered error.
This partly restructures the File interface implementation to use file
descriptors instead of the C standard libraries FILE handle. This is
done to ensure that |errno| is set to an expected value.
This change also introduces the utility functions SafeWrite() and
SafeRead() to handle common, retriable errors.
Bug: 178232354
Test: Android MediaDrm GTS and Android file-based unittests
Change-Id: I15a3c47a271098c9edb4bd9f619ed1a12dca6143
2021-04-09 14:23:24 -07:00
Alex Dale
985d0b5129
Merge "Cleaned up OEMCrypto security level getter." into sc-dev
2021-04-09 20:59:39 +00:00
Alex Dale
9903798373
Merge "Restructed reference root of trust (3/3 OEM Cert)" into sc-dev
2021-04-09 20:48:47 +00:00
Alex Dale
cae8f6a04e
Merge "Restructed reference root of trust (2/3 DRM Cert)" into sc-dev
2021-04-09 20:48:27 +00:00
Alex Dale
ccda4faf7b
Cleaned up OEMCrypto security level getter.
...
[ Merge of http://go/wvgerrit/121566 ]
This clean up is part of a larger usage table initialization fix.
Bug: 169195093
Change-Id: I3ee818d1e5621f1f2fa64b189da4e66503d5e680
2021-04-09 01:34:56 -07:00
Rahul Frias
574dc28df5
Merge "Reword "blacklisted" to "forbidden"" into sc-dev
2021-04-09 07:38:26 +00:00
Rahul Frias
6af4d181d1
Merge "Correction to addition of LOCAL_LICENSE_KINDS to vendor/widevine" into sc-dev
2021-04-09 02:14:01 +00:00
Robert Shih
1f8f0f1ccc
Merge "libvtswidevine: replace appspot with uat" into sc-dev
2021-04-08 21:36:07 +00:00
Rahul Frias
a40af9d1ef
Reword "blacklisted" to "forbidden"
...
[ Merge of http://go/wvgerrit/113563 ]
Bug: 159847851
Test: WV unit/integration tests
Change-Id: I138b3e3291cb9e75841d092ca1bfa9a652ad9f9a
2021-04-08 11:54:06 -07:00
Rahul Frias
7c8d3e287e
Correction to addition of LOCAL_LICENSE_KINDS to vendor/widevine
...
Remove incorrectly identified license files in http://go/ag/13998816
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: mm
Change-Id: I676a63598c8a7df11a1cef6d8bebcc9940c961dc
2021-04-08 07:56:48 +00:00
Edwin Wong
c287730627
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours am: e2f3b13c78 am: 28d30a0af9 am: c3c05be7b6 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: Ia65ed5196c9da55432844476a86caa6a1702fe78
2021-04-07 01:19:25 +00:00
Edwin Wong
4786786b6b
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours am: a423695ea0 am: 94cf4a7137 am: 6216c6e024 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I6ccf8ac5b3b596669b003c2034bd75342765f5d2
2021-04-07 01:19:23 +00:00
Edwin Wong
6f1b7fab1e
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours am: e2f3b13c78 am: f21b00847b -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I011a4171cce3e92bd0d0f38438c894c44a348abd
2021-04-07 00:36:49 +00:00
Edwin Wong
4a55a10d16
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours am: a423695ea0 am: c82acab577 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: Ibdf9f8c5c666c19075350805ea1fa44472e0c5eb
2021-04-07 00:36:48 +00:00
Edwin Wong
c3c05be7b6
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours am: e2f3b13c78 am: 28d30a0af9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I0cb9769784651c4a1b8c6267ccfea3b591a5eef1
2021-04-07 00:32:24 +00:00
Edwin Wong
6216c6e024
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours am: a423695ea0 am: 94cf4a7137
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: Ia241a9673a9cf281763f268fe8ea9b5f1a4f2a9c
2021-04-07 00:32:23 +00:00
Edwin Wong
f21b00847b
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours am: e2f3b13c78
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: Ic51d0acefb24d6265cb42adc5b7447e43c6bc681
2021-04-06 23:52:20 +00:00
Edwin Wong
c82acab577
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours am: a423695ea0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I9ffa3d2b096e62f92848ea103be82ecad48e6c08
2021-04-06 23:52:20 +00:00
Edwin Wong
28d30a0af9
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours am: e2f3b13c78
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I893384792c4cf7677fff871433cf6228df7f0e7a
2021-04-06 23:47:33 +00:00
Edwin Wong
94cf4a7137
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours am: a423695ea0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I14c7cdded7ca2e41298594ac7df706ecb75989f1
2021-04-06 23:47:32 +00:00
Edwin Wong
e2f3b13c78
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a am: 389837df8c -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I57e1cda75c201ab7c722d077be6aa94b22ebb617
2021-04-06 23:27:20 +00:00
Edwin Wong
a423695ea0
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8 am: 605ae2e217 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: Id2b6c02ef85c826ce7b74b0a95797082b0845f5a
2021-04-06 23:27:19 +00:00
Edwin Wong
389837df8c
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev am: aabd91204a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I842a3b15c82a20085825bfda63ee023feed4a653
2021-04-06 23:06:29 +00:00
Edwin Wong
605ae2e217
[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 9c278174c8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499846
Change-Id: I1cb45d35088d149f02b0bb6c408e5fee3d79c1db
2021-04-06 23:06:28 +00:00
Edwin Wong
fb4b95ecc3
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev am: a6cc3b79d2 am: 7b380179e8 am: 5a3544e7d2 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Ibb0484bb0f7cf71b24ceb2adf74bd363e1fce376
2021-04-06 22:49:37 +00:00
Edwin Wong
0ad236bd04
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 76f39ddb08 am: 2c59c30f1b am: 79b4677c6e -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Id3a5850cbb3b2e40d3034933f1a88b047839563d
2021-04-06 22:49:36 +00:00
Edwin Wong
aabd91204a
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into qt-dev
2021-04-06 22:27:14 +00:00
Edwin Wong
dfb89bddcd
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev am: a6cc3b79d2 am: 565bf1412a -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Id3190acf1d2fe9063aa963e8ad5a25f196281168
2021-04-06 22:27:01 +00:00
Edwin Wong
73eb4c2e8c
[automerger skipped] [RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 76f39ddb08 am: a74c0ec1f0 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Ibd7e76d76dc65b836eeeeec4b9c13d483bc7f251
2021-04-06 22:27:00 +00:00
Edwin Wong
5a3544e7d2
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev am: a6cc3b79d2 am: 7b380179e8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Ia58ef580baab3ef4a5a2f07e9c51f13fce7ffc4c
2021-04-06 22:23:04 +00:00
Edwin Wong
79b4677c6e
[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 76f39ddb08 am: 2c59c30f1b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: I9d84f4bc553f9c665d418734a9cf032bb4460a0c
2021-04-06 22:23:03 +00:00
Edwin Wong
565bf1412a
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev am: a6cc3b79d2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: I8395e9fe48ec01c35b2e0ad60a29d101f34af3ee
2021-04-06 21:53:49 +00:00
Edwin Wong
a74c0ec1f0
[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 76f39ddb08
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Ic310a2a04e47aea548ab74a6449c3f5835ee8049
2021-04-06 21:53:48 +00:00
Edwin Wong
7b380179e8
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev am: a6cc3b79d2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Ifccf528b9a903082878f1492f03e3e232c797b96
2021-04-06 21:49:15 +00:00
Edwin Wong
2c59c30f1b
[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability. am: 76f39ddb08
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13499847
Change-Id: Id08136edb62c110de282e66106ca096b19a757bb
2021-04-06 21:49:14 +00:00
Edwin Wong
a6cc3b79d2
Merge "[RESTRICT AUTOMERGE] Fix WVCryptoPlugin use after free vulnerability." into rvc-dev
2021-04-06 21:06:40 +00:00
Edwin Wong
ea863fecd5
[automerger skipped] Merge "Fix potential decrypt destPtr overflow." into rvc-dev am: 92865466af -s ours am: eceedee2ea -s ours am: 34effc90d6 -s ours
...
am skip reason: skip tag Change-Id Id3aece61d46d548c304782d4e1dc3a4747795c01 with SHA-1 0b18148b09 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13617980
Change-Id: I6595ec63f860070bba704943b274797d8b103a18
2021-04-06 16:54:36 +00:00