Snap for 6297453 from 3280164113 to sc-release
Change-Id: I0cf0e8781e08855a17bc52f5120d1cbcfc1bbe6f
This commit is contained in:
@@ -227,6 +227,12 @@ CdmResponseType WvContentDecryptionModule::HandleProvisioningResponse(
|
|||||||
CdmResponseType WvContentDecryptionModule::Unprovision(
|
CdmResponseType WvContentDecryptionModule::Unprovision(
|
||||||
CdmSecurityLevel level, const CdmIdentifier& identifier) {
|
CdmSecurityLevel level, const CdmIdentifier& identifier) {
|
||||||
CdmEngine* cdm_engine = EnsureCdmForIdentifier(identifier);
|
CdmEngine* cdm_engine = EnsureCdmForIdentifier(identifier);
|
||||||
|
// Persistent state is deleted on unprovisioning. The L3 OEMCrypto device
|
||||||
|
// key may however remain in memory until |OEMCrypto_Terminate| is called.
|
||||||
|
// It is not regenerated until |OEMCrypto_Initialize| is called.
|
||||||
|
// Enable immediate OEMCrypto termination and re-initalization on
|
||||||
|
// unprovisioning.
|
||||||
|
CryptoSession::DisableDelayedTermination();
|
||||||
return cdm_engine->Unprovision(level);
|
return cdm_engine->Unprovision(level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,7 @@ namespace wvoec3 {
|
|||||||
|
|
||||||
const char *getUniqueID(size_t *len) {
|
const char *getUniqueID(size_t *len) {
|
||||||
static std::string unique_id;
|
static std::string unique_id;
|
||||||
unique_id = android::base::GetProperty("ro.serialno", "");
|
unique_id = android::base::GetProperty("ro.serialno", "0123456789abc");
|
||||||
if (unique_id.empty()) {
|
|
||||||
unique_id = android::base::GetProperty("net.hostname", "0123456789abc");
|
|
||||||
}
|
|
||||||
#if defined(IN_APP_FASTBALL) || defined(IN_APP_MOVIES)
|
#if defined(IN_APP_FASTBALL) || defined(IN_APP_MOVIES)
|
||||||
unique_id += android::base::GetProperty("package.name", "com.google.inapp");
|
unique_id += android::base::GetProperty("package.name", "com.google.inapp");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -334,11 +334,13 @@ Return<void> WVDrmPlugin::openSession_1_1(
|
|||||||
hidl_vec<uint8_t> hSessionId = toHidlVec(sessionId);
|
hidl_vec<uint8_t> hSessionId = toHidlVec(sessionId);
|
||||||
if (Status::OK == status) {
|
if (Status::OK == status) {
|
||||||
SecurityLevel currentSecurityLevel = SecurityLevel::UNKNOWN;
|
SecurityLevel currentSecurityLevel = SecurityLevel::UNKNOWN;
|
||||||
Return<void> hResult = getSecurityLevel(hSessionId, [&](Status status, SecurityLevel hSecurityLevel) {
|
Return<void> hResult = getSecurityLevel(
|
||||||
|
hSessionId, [&](Status gslStatus, SecurityLevel hSecurityLevel) {
|
||||||
currentSecurityLevel = hSecurityLevel;
|
currentSecurityLevel = hSecurityLevel;
|
||||||
if (Status::OK != status || requestedLevel != hSecurityLevel) {
|
if (Status::OK != gslStatus || requestedLevel != hSecurityLevel) {
|
||||||
ALOGE("Failed to open session with the requested security level=%d", requestedLevel);
|
ALOGE("Failed to open session with the requested security level=%d", requestedLevel);
|
||||||
if (Status::OK != closeSession(hSessionId)) sessionId.clear();
|
closeSession(hSessionId);
|
||||||
|
sessionId.clear();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!hResult.isOk() || (requestedLevel != currentSecurityLevel)) {
|
if (!hResult.isOk() || (requestedLevel != currentSecurityLevel)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user