Skip to content

Commit

Permalink
Apparently, some packages from Play Store are unsigned? Doubtful.
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Feb 28, 2017
1 parent 53f843c commit 47452db
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public boolean match(String packageName, File apkFile) {
private byte[] getApkSignature(File apkFile) {
final String pkgPath = apkFile.getAbsolutePath();
PackageInfo pkgInfo = pm.getPackageArchiveInfo(pkgPath, PackageManager.GET_SIGNATURES);
if (null == pkgInfo || null == pkgInfo.signatures) {
return new byte[] {};
}
return signatureToBytes(pkgInfo.signatures);
}

Expand Down

0 comments on commit 47452db

Please sign in to comment.