mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 12:38:24 +00:00
Fix APK signature detection
This commit is contained in:
@@ -1436,11 +1436,7 @@ class AndroidPackageManagerPlugin :
|
||||
|
||||
val signatures =
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
pkgInfo.signingInfo?.let { si ->
|
||||
if (si.hasMultipleSigners()) si.apkContentsSigners
|
||||
else si.signingCertificateHistory
|
||||
}
|
||||
?: emptyArray()
|
||||
pkgInfo.signingInfo?.apkContentsSigners ?: emptyArray()
|
||||
} else {
|
||||
@Suppress("DEPRECATION") pkgInfo.signatures ?: emptyArray()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user