Robert Shih
0d3f31559a
PolicyTimersV16: override base class HasRenewalDelayExpired am: d9112ff7e1 am: 951877a8ec
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184963
Change-Id: I3f291f5f0c200d7678999e0ed3552cb6d0a37706
2020-07-24 00:04:01 +00:00
Robert Shih
6c6cbc95df
PolicyTimersV16: override base class HasRenewalDelayExpired am: d9112ff7e1 am: 035254e828
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184963
Change-Id: I01a10b72bb3a803197a814c74bcc04e5eaac3948
2020-07-24 00:03:01 +00:00
Robert Shih
951877a8ec
PolicyTimersV16: override base class HasRenewalDelayExpired am: d9112ff7e1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184963
Change-Id: Ic030fa19260c55a47686507abc7bec3b41253d77
2020-07-23 23:46:28 +00:00
Robert Shih
035254e828
PolicyTimersV16: override base class HasRenewalDelayExpired am: d9112ff7e1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184963
Change-Id: I416235b868332a0a93ce9d2a8310350d9ffef733
2020-07-23 23:46:10 +00:00
Robert Shih
d9112ff7e1
PolicyTimersV16: override base class HasRenewalDelayExpired
...
Base class uses license_start_time_ which is not updated on renewals.
Merge of http://go/wvgerrit/103123
Bug: 161023174
Bug: 161621246
Test: WidevineDashPolicyTests#testL1RenewalDelay5S
Test: WidevineDashPolicyTests#testL1RenewalDelay13S
Change-Id: I16056d492bea4dd721984998b5cf38409fe3b055
2020-07-23 21:06:29 +00:00
Automerger Merge Worker
d56089551e
Merge "Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev am: d24b3d4bd2 am: 7f873c03fd" into rvc-qpr-dev-plus-aosp
2020-07-21 10:50:49 +00:00
TreeHugger Robot
8d9109c46b
Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev am: d24b3d4bd2 am: 7f873c03fd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184965
Change-Id: I93bc83f2458f6fd36fa562def376a29056f870c2
2020-07-21 10:50:46 +00:00
TreeHugger Robot
e8cf28340a
Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev am: d24b3d4bd2 am: 84c1ff91ae
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184965
Change-Id: I87351f7ef5ba59b076ab331f45732c5e462f6db1
2020-07-21 10:50:45 +00:00
TreeHugger Robot
7f873c03fd
Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev am: d24b3d4bd2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184965
Change-Id: Ie7c3dd1ea96c1ef12aafc3fb19d2acbc4b0909cf
2020-07-21 10:39:25 +00:00
TreeHugger Robot
84c1ff91ae
Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev am: d24b3d4bd2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12184965
Change-Id: Idb4570f166748606d74618bce155aaba81c5f9d3
2020-07-21 10:39:10 +00:00
TreeHugger Robot
d24b3d4bd2
Merge "Start rental clock when nonce-free offline license loaded" into rvc-d1-dev
2020-07-21 10:24:53 +00:00
Fred Gylys-Colwell
6dbbc42d40
Adjust nonce for v15 servers am: 7f347cd59f am: 9cf2a475e2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12173751
Change-Id: I9b99e0231fb4c0b0e652e84929a2e8393bcfa186
2020-07-21 08:41:27 +00:00
Fred Gylys-Colwell
08fe6b1690
Adjust nonce for v15 servers am: 7f347cd59f am: 940a771969
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12173751
Change-Id: I67ed1d76737d81d039b603d85b18977845f20007
2020-07-21 08:41:22 +00:00
Fred Gylys-Colwell
940a771969
Adjust nonce for v15 servers am: 7f347cd59f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12173751
Change-Id: Ifb92abb057be10bbe43d1cb184969302b7ff5b05
2020-07-21 08:28:12 +00:00
Fred Gylys-Colwell
9cf2a475e2
Adjust nonce for v15 servers am: 7f347cd59f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12173751
Change-Id: If52b4180e02638e93028d0dda38b79e6d0dbd1d0
2020-07-21 08:28:08 +00:00
Fred Gylys-Colwell
b90f88072f
Start rental clock when nonce-free offline license loaded
...
Merge from Widevine repo of http://go/wvgerrit/103107
When an offline license is reloaded, if it does not have a usage entry
to indicate when the rental clock was started, the start time defaults
to 0 in the ODK library (in OEMCrypto). This CL changes the code to
start the rental clock in this case. It does this by signing a dummy
message, which triggers the ODK library to start the rental clock.
Bug: 161585265
Bug: 161023174
Test: GTS tests. http://go/forrest-run/L55100000642199761
Change-Id: I4cf555b2fb43009ffb62e7b2c1a37265c3f70bfe
2020-07-20 23:11:48 +00:00
Fred Gylys-Colwell
7f347cd59f
Adjust nonce for v15 servers
...
Merge from Widevine repo of http://go/wvgerrit/102783
When OEMCrypto is v16, but the license server is v15, we should not
create a new nonce for a license renewal. However, the request does
need a nonce or the license server will not generate a valid key
control block. So we should use the nonce that came from the original
license.
Bug: 160676790
Test: tested playback using netflix
Test: GTS tests. http://go/forrest-run/L55100000642199761
Change-Id: Ie1644b5abe0662387edf01f6110d82f70a64df6c
2020-07-20 23:11:41 +00:00
Robert Shih
ba2e3e41f8
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: f240709ef2 am: 918dba59f1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: Ibb4706058e19d68706ba0fa011554ba2330e8c0e
2020-07-07 00:20:41 +00:00
Robert Shih
c171cefa91
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: 0db8b90cdb am: 231770e40c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: I72e461c36bf48714648e04b256885d5948a724dc
2020-07-07 00:20:18 +00:00
Robert Shih
deb11efb5f
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: 0db8b90cdb am: 2009155f7e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: I841154f06f33f926d56dde9e25bb3bf45efad7b6
2020-07-07 00:19:54 +00:00
Robert Shih
231770e40c
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: 0db8b90cdb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: I94c1340571cffbe834c8ea2576008665d61c08c0
2020-07-06 23:58:19 +00:00
Robert Shih
918dba59f1
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: f240709ef2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: Ic83b03effbc60ba595e83b6348d4abd451b269eb
2020-07-06 23:57:56 +00:00
Robert Shih
2009155f7e
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca am: 0db8b90cdb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: I10bc5ae45c8f20f0a9b2349c6fa01b8aae0664ae
2020-07-06 23:57:44 +00:00
Robert Shih
f240709ef2
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: Ifb1122df9b6098e0d7ce51a7522249693fe40fee
2020-07-06 23:40:18 +00:00
Robert Shih
0db8b90cdb
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED am: da09f4abca
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12036417
Change-Id: Icc0b7bb24c4058de5786fc7e28a50bbc2aee5f4b
2020-07-06 23:39:43 +00:00
Robert Shih
da09f4abca
GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED
...
[ Merge of http://go/wvgerrit/102383 ]
Bug: 153297118
Bug: 160182693
Test: MediaDrmTest#testDecryptHashError
Change-Id: I107668cdd1ab0acda717f184496e569a4f9a8653
2020-06-29 22:19:26 +00:00
Alex Dale
65211cab08
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 3adda0dfe1 am: b535120ccd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I5b906c594c1c3292bdc5aaa20c2071ae56d912a6
2020-06-25 20:03:15 +00:00
Alex Dale
a5e30b73a3
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 62462f4ec5 am: 8453477daa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: Ic6505cf29342b745a3dfed0047d1e8503b6c6f38
2020-06-25 20:03:02 +00:00
Alex Dale
33c3fd9085
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 3adda0dfe1 am: 52901002a1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I4091326a55cc8cb514971b2ea595b10e12f38294
2020-06-25 20:02:55 +00:00
Alex Dale
8453477daa
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 62462f4ec5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I46c0b2e57cedfdac19b622c9191e604c05301eeb
2020-06-25 19:50:16 +00:00
Alex Dale
b535120ccd
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 3adda0dfe1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I2bf4c438575cb22bd350bb9c364a2543f04423d3
2020-06-25 19:50:04 +00:00
Alex Dale
52901002a1
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2 am: 3adda0dfe1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I2c3237138f100970ab62dddb377122a980a211f1
2020-06-25 19:50:03 +00:00
Alex Dale
3adda0dfe1
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: Ia63d263ae89bc14836704f1dc2d95f5b06590754
2020-06-25 19:39:21 +00:00
Alex Dale
62462f4ec5
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev am: c628c5aca2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11925460
Change-Id: I9d6813c4a20dbc679c1526f73dc1be5593d2fee5
2020-06-25 19:38:17 +00:00
Alex Dale
c628c5aca2
Merge "Test CDM sessions prevent multiple usage entries." into rvc-dev
2020-06-25 19:25:18 +00:00
Rahul Frias
cd7be52932
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: 652258d70e am: 999dabbc6e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: Ibb778d3fe1da64df8bfb048081104ed85f8b4a2c
2020-06-22 18:35:36 +00:00
Rahul Frias
a93347ea6d
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: 652258d70e am: abad87b79f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: I0bc4b561b9edab32a89fe59d71f9b97bc7a9dbf8
2020-06-22 18:35:20 +00:00
Rahul Frias
1b6f50a467
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: dffadd204c am: 61f64a00c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: I1830edae406e16b0c2c47290e660ae5cb3537f04
2020-06-22 18:34:59 +00:00
Rahul Frias
999dabbc6e
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: 652258d70e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: I6d182f166720bf8a925f6182d03f8ca1150f7ec2
2020-06-22 18:21:54 +00:00
Rahul Frias
abad87b79f
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: 652258d70e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: I11dff2a7fc64d467cc7e31206b2b3c521c397006
2020-06-22 18:21:38 +00:00
Rahul Frias
61f64a00c6
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138 am: dffadd204c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: I86a70f3bd0c351932270bfd985fcce6461a1bdbe
2020-06-22 18:21:18 +00:00
Rahul Frias
dffadd204c
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: Ia4c431617789fbbb5f973f076b29408df2b2a2bc
2020-06-22 18:14:28 +00:00
Rahul Frias
652258d70e
Merge "Handle SPOID calculation for L3" into rvc-dev am: 25d1646138
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11736137
Change-Id: Ifb2d04b609a00905c5c42ee629e83674822b64cb
2020-06-22 18:14:27 +00:00
Rahul Frias
25d1646138
Merge "Handle SPOID calculation for L3" into rvc-dev
2020-06-22 18:04:18 +00:00
Alex Dale
0aaf1df125
Test CDM sessions prevent multiple usage entries.
...
[ Merge of http://go/wvgerrit/102068 ]
CDM sessions should not be able to load multiple usage entries.
OEMCrypto already prevents multiple entries from being loaded by the
same OEMCrypto session; however, restoring a key typically creates a
new OEMCrypto session, which should not be allowed twice within the
same CDM session.
This test verifies that CDM returns an error if restore key is called
multiple times within the same session.
Bug: 136143733
Test: Android integration test
Change-Id: I594c91250217fd958837328162f909bc931d373f
2020-06-19 20:40:54 -07:00
Rahul Frias
7e689a1828
Handle SPOID calculation for L3
...
[ Merge of http://go/wvgerrit/101443 ]
The WVDrmPlugin has a single CdmIdentifier. The CdmIdentifier contains
a SPOID that is calculated from the device ID (keybox or OEM cert),
an application reverse domain name and possibly an origin.
The CdmIdentifier is set and SPOID calculated on certain calls into
WVDrmPlugin. Once it is set, it will not be recalculated. We prevent
certain operations such as modifying the origin once the CdmIdentifier
has been set as this will require recalculating the SPOID.
Recalculating the SPOID may affect open sessions or calls in progress.
In a similar way, modifying the security level, will affect the
Device ID value and in turn the SPOID. The security level cannot be modified
if any sessions are open. This does leave open the possibility that the
SPOID may be calculated at one security level, sessions are then closed,
and the security level is then changed without an error being flagged.
The provisioning certificate file name is based on the SPOID. When
the SPOID does not match the security level, either the provisioning
information may not be found even though that security level has
been provisionined or the provisioning information may be stored
in an incorrect location if provisioning occurs.
The correct solution is to prevent modifications to the security level
once the CdmIdentifier is set. This is a behavior change and might
impact apps. We will reevaluate this for the next release.
For now, we will work around this. When the CdmIdentifier is set for L3,
we will calculate SPOIDs with both L1 and L3 device IDs and check if
provisioning previously occurred with SPOIDs calculated for that level.
If so, use that level, otherwise use L3.
Bug: 147703382
Test: Android unit/integration tests, GtsMediaDrmTests
Change-Id: Ia64adfc5848e431ee3876af03eebdb4b6eb83116
2020-06-17 00:50:14 -07:00
Edwin Wong
716c07aa46
Merge "Add v16 Widevine Integration Guide Android Supplement" into rvc-dev am: 6b8d0e034d am: 656db1857b am: 456caca048
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11838915
Change-Id: I9bc6265d05b0485b3e3f368abd898d06cd134b32
2020-06-17 01:28:25 +00:00
Edwin Wong
fd385e67dc
Merge "Add v16 Widevine Integration Guide Android Supplement" into rvc-dev am: 6b8d0e034d am: f596c0929e am: 8ac53ecf87
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11838915
Change-Id: Ica09d118bf5cf4efb2a18fb05e09ee9df22b5294
2020-06-17 01:28:16 +00:00
Edwin Wong
6e3c8f51b6
Merge "Add v16 Widevine Integration Guide Android Supplement" into rvc-dev am: 6b8d0e034d am: 656db1857b am: 2efe1ab43a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11838915
Change-Id: Idc8016ab0f8800491f643026b3335969b008b641
2020-06-17 01:28:07 +00:00
Edwin Wong
8ac53ecf87
Merge "Add v16 Widevine Integration Guide Android Supplement" into rvc-dev am: 6b8d0e034d am: f596c0929e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11838915
Change-Id: Iecc5344c3f153fa085faeda6e526c7432d960038
2020-06-17 01:14:25 +00:00