mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-16 03:31:02 -04:00
Apparently, some packages from Play Store are unsigned? Doubtful.
This commit is contained in:
@@ -53,6 +53,9 @@ class ApkSignatureVerifier {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user