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

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

Fix abort in CryptoHal: missing hidl status check

A method in CryptoHal was not checking the
hidl transaction status which causes an abort
if the transaction fails.

bug:79170524
test:gts media tests, netflix playback

Change-Id: Ia58500f0f2c64f987809360d3d7ead810ee01180
parent 9ce18f72
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -223,10 +223,14 @@ bool CryptoHal::requiresSecureDecoderComponent(const char *mime) const {
    Mutex::Autolock autoLock(mLock);

    if (mInitCheck != OK) {
        return mInitCheck;
        return false;
    }

    return mPlugin->requiresSecureDecoderComponent(hidl_string(mime));
    Return<bool> hResult = mPlugin->requiresSecureDecoderComponent(hidl_string(mime));
    if (!hResult.isOk()) {
        return false;
    }
    return hResult;
}