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

Commit b86faa91 authored by narinder Rana's avatar narinder Rana
Browse files

handle exception

parent 8aaf1052
Loading
Loading
Loading
Loading
Loading
+32 −27
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ class IntegrityVerificationTask(
            apkInputStream: BufferedInputStream,
            apkSignatureInputStream: InputStream,
            publicKeyInputStream: InputStream): Boolean {
        try {

            var jcaPGPObjectFactory =
                    JcaPGPObjectFactory(PGPUtil.getDecoderStream(apkSignatureInputStream))
@@ -126,6 +127,10 @@ class IntegrityVerificationTask(
            publicKeyInputStream.close()

            return signature.verify()
        } catch (e: Exception) {
            e.printStackTrace()
        }
        return false;

    }
}