Skip to content

Android Pie(安卓9.0)开始签名获取新API问题 #18

Description

@joyway66

从Android Pie即9.0,Target API>=28开始谷歌采用了新的获取签名信息的API,从packageManager.getPackageInfo(args1,args2).signingInfo里面获取签名信息,当signingInfo.hasMultipleSigners()返回true时,调用packageManager.getPackageInfo(args1,args2).signingInfo.getApkContentsSigners()获取签名;返回false时通过packageManager.getPackageInfo(args1,args2).signingInfo.getSigningCertificateHistory()获取签名。一旦开发者采用了新API那么在9.0以及上版本手机上签名验证依然是通不过的

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions