57d231db1b2218131932613ba65395b8e47bc541
[ Partial cherry-pick of http://go/wvgerrit/186230 ] The removeOfflineLicense() API in the Media DRM plug would attempt to remove the specified license from L1, then retry L3 if L1 failed for any reason. This causes error emitted by L1 to be masked by errors emitted from L3. In particular, if an internal error occurs on L1 when removing the license, because the plugin would then try L3 which does not contain the license, the app will receive either a "does not exist" or "needs provisioning" error from L3. This CL changes the plugin to first determines which security level the license exists for. Then only attempts removal on that security level. Bug: 301910628 Bug: 291181955 Bug: 296300842 Bug: 302612540 Test: MediaDrmParameterizedTests GTS on bluejay Merged from https://widevine-internal-review.googlesource.com/187611 Merged from https://widevine-internal-review.googlesource.com/187832 Change-Id: I3d3975f945d2e97cfa9d866baf6ca5cf901f8af5
Description
No description provided