(This is a merge of http://go/wvgerrit/81628. Although it is primarily to support a CE CDM feature, this patch touched shared code and so must be merged.) The problem that has long stopped the OEMCrypto Testbed from working with the CE CDM build is that the OEMCrypto Testbed sometimes accesses the storage via the normal filesystem APIs rather than the FileSystem abstraction. Furthermore, when doing this, it assumes that FileSystem abstraction is just a wrapper around direct filesystem access and thus it should use the same paths in both kinds of filesystem access. However, this is not true on the CE CDM where FileSystem wraps an opaque key/value store. This patch adds a property that allows a platform to indicate if its FileSystem base path represents a real file system path and sets it appropriately. ("true" for all platforms except CE CDM) It also adds code to the OEMCrypto Testbed that makes use of this property to modify its behavior. When running on a device where the FileSystem base path is not a real file system path, it will instead use the directory of the current executable as its base path when accessing the filesystem directly. Bug: 129311942 Test: CE CDM Build with Fake L1 Test: Android Build Change-Id: Iadb3cc57d3bbc8ce0d49224b7df31c46bd5ea56c
This is the source code for the Widevine Content Decryption Module (CDM) for the Android OS. It provides the libwvdrmengine plugin for DRM. Partners who are integrating a device should be familiar with the documents in the docs directory. This source code is NOT open source, and is not part of AOSP. However, it is released to partners external to Google after official Android releases. For this reason, partners should look for bug fixes and software updates on the widevine branches: +------------------------------+------------------------------+ |Android Version |Branch | +------------------------------+------------------------------+ |Android L |lmp-mr1-widevine-release | +------------------------------+------------------------------+ |Android M MR1 |mnc-mr1-widevine-release | +------------------------------+------------------------------+ |Android N MR2 |nyc-mr2-widevine-release | +------------------------------+------------------------------+ |Android OC |oc-widevine-release | +------------------------------+------------------------------+ |Android OC MR1 |oc-mr1-widevine-release | +------------------------------+------------------------------+ |Android Pi |pi-widevine-release | +------------------------------+------------------------------+