Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82a750d2 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Adapt to google::protobuf::uint64 type change" am: 05a08644 am: 19f6a6ce

am: 1c0df226

Change-Id: Ib30bca0b830259fd18edc3a4679102db89aaa99f
parents a649df43 1c0df226
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ status_t ClearKeyFetcher::ObtainKey(const sp<ABuffer>& buffer,
    // asset_id change. If it sends an EcmContainer with 2 Ecms with different
    // asset_ids (old and new) then it might be best to prefetch the Emm.
    if ((asset_.id() != 0) && (*asset_id != asset_.id())) {
        ALOGW("Asset_id change from %llu to %" PRIu64, asset_.id(), *asset_id);
        ALOGW("Asset_id change from %" PRIu64 " to %" PRIu64, asset_.id(), *asset_id);
        asset_.Clear();
    }

+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "ecm"

#include <inttypes.h>

#include "ecm.h"
#include "ecm_generator.h"
#include "protos/license_protos.pb.h"
@@ -76,7 +78,7 @@ status_t Ecm::Decrypt(
        return status;
    }
    if (asset.id() != asset_from_emm.id()) {
        ALOGE("Asset_id from Emm (%llu) does not match asset_id from Ecm (%llu).",
        ALOGE("Asset_id from Emm (%" PRIu64 ") does not match asset_id from Ecm (%" PRIu64 ").",
                asset_from_emm.id(), asset.id());
        return CLEARKEY_STATUS_INVALID_PARAMETER;
    }