Skip to content

Commit

Permalink
[AppDetails] Fix an issue that prevented the signature tab from loading
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Feb 6, 2024
1 parent 0e4b796 commit 263f0a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public SignerInfo(@NonNull ApkVerifier.Result apkVerifierResult) {
}
}
// Collect source stamp certificate
mSourceStampCert = apkVerifierResult.getSourceStampInfo().getCertificate();
ApkVerifier.Result.SourceStampInfo sourceStampInfo = apkVerifierResult.getSourceStampInfo();
mSourceStampCert = sourceStampInfo != null ? sourceStampInfo.getCertificate() : null;
if (mCurrentSignerCerts == null || mCurrentSignerCerts.length > 1) {
// Skip checking rotation because the app has multiple signers or no signer at all
mAllSignerCerts = mCurrentSignerCerts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ private void loadSignatures() {
appDetailsItems.add(item);
}
}
} catch (IOException | ApkFormatException | NoSuchAlgorithmException e) {
} catch (Exception e) {
e.printStackTrace();
}
mSignatures.postValue(appDetailsItems);
Expand Down

0 comments on commit 263f0a9

Please sign in to comment.