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

Commit ceffd8cc authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Pass all DRM errors through ICrypto

Previously only the detailed messages for vendor-defined DRM
errors were being passed.  This change allows detailed messages
to be passed for any DRM error, including the ones defined in
the framework.

bug: 20857014
Change-Id: I72aa85b31ac852fb1fb6ad0a93f3309100b52c9d
parent b408fa26
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ struct BpCrypto : public BpInterface<ICrypto> {

        ssize_t result = reply.readInt32();

        if (result >= ERROR_DRM_VENDOR_MIN && result <= ERROR_DRM_VENDOR_MAX) {
        if (isCryptoError(result)) {
            errorDetailMsg->setTo(reply.readCString());
        }

@@ -319,8 +319,7 @@ status_t BnCrypto::onTransact(

            reply->writeInt32(result);

            if (result >= ERROR_DRM_VENDOR_MIN
                && result <= ERROR_DRM_VENDOR_MAX) {
            if (isCryptoError(result)) {
                reply->writeCString(errorDetailMsg.c_str());
            }