You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val isPackageInAllowList = certificateAllowList[callingPackage]?.signatures?.first {
- this is deprecated in API 28. The newer APIs involve using PackageInfo#signingInfo. The associated APIs on that class - apkContentsSigners, signingCertificateHistory, hasMultipleSigners - need careful attention to ensure they are used correctly. We could adjust UAMP to show proper usage of these APIs.
For reference, this StackOverflow answer - https://stackoverflow.com/a/53407183 - has a reasonable-looking implementation. My understanding is that in the apkContentsSigners path, we should check that all certificates matches, while in the signingCertificateHistory path, we need to only check that one certificate matches.
The text was updated successfully, but these errors were encountered:
UAMP uses
PackageInfo#signatures
, seeuamp/common/src/main/java/com/example/android/uamp/media/PackageValidator.kt
Line 107 in 2136c37
PackageInfo#signingInfo
. The associated APIs on that class -apkContentsSigners
,signingCertificateHistory
,hasMultipleSigners
- need careful attention to ensure they are used correctly. We could adjust UAMP to show proper usage of these APIs.For reference, this StackOverflow answer - https://stackoverflow.com/a/53407183 - has a reasonable-looking implementation. My understanding is that in the
apkContentsSigners
path, we should check that all certificates matches, while in thesigningCertificateHistory
path, we need to only check that one certificate matches.The text was updated successfully, but these errors were encountered: