get Update
Returns a PackageVersion for the given packageInfo that is the suggested update or null if there is no suitable update in versions.
Parameters
a sorted list of PackageVersion with highest version code first.
needs to be retrieved with GET_SIGNING_CERTIFICATES
optional list of release channels to consider on top of stable. If this is null or empty, only versions without channel (stable) will be considered.
an optional way to consider additional per app preferences
if true, versions with the PackageInfo.getLongVersionCode will be returned if PackageVersion.hasKnownVulnerability is true, even without real update.
Returns the PackageVersion that is the suggested update for the given installedVersionCode or suggested for new installed if the given code is 0, or null if there is no suitable candidate in versions.
Parameters
a sorted list of PackageVersion with highest version code first.
should return set of SHA-256 hashes of the signing certificates in lower-case hex. Only versions from these signers will be considered for installation. This is is null or returns null, all signers will be allowed. If the set of signers is empty, no signers will be allowed, i.e. only apps without signer.
optional list of release channels to consider on top of stable. If this is null or empty, only versions without channel (stable) will be considered.
an optional way to consider additional per app preferences.
if true, versions with the installedVersionCode will be returned if PackageVersion.hasKnownVulnerability is true, even without real update.