Methods Summary |
---|
protected void | addDefinedKeySet(long ks, java.lang.String alias)
mDefinedKeySets = ArrayUtils.appendLong(mDefinedKeySets, ks);
mKeySetAliases.put(alias, ks);
|
protected void | addSigningKeySet(long ks)
mSigningKeySets = ArrayUtils.appendLong(mSigningKeySets, ks);
|
protected void | addUpgradeKeySet(java.lang.String alias)
/* must have previously been defined */
Long ks = mKeySetAliases.get(alias);
if (ks != null) {
mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks);
} else {
throw new IllegalArgumentException("Upgrade keyset alias " + alias
+ "does not refer to a defined keyset alias!");
}
|
protected void | addUpgradeKeySetById(long ks)
mSigningKeySets = ArrayUtils.appendLong(mSigningKeySets, ks);
|
protected android.util.ArrayMap | getAliases()
return mKeySetAliases;
|
protected long[] | getDefinedKeySets()
return mDefinedKeySets;
|
protected long | getProperSigningKeySet()
return mProperSigningKeySet;
|
protected long[] | getSigningKeySets()
return mSigningKeySets;
|
protected long[] | getUpgradeKeySets()
return mUpgradeKeySets;
|
protected boolean | isUsingDefinedKeySets()
/* should never be the case that mDefinedKeySets.length == 0 */
return (mDefinedKeySets != null && mDefinedKeySets.length > 0);
|
protected boolean | isUsingUpgradeKeySets()
/* should never be the case that mUpgradeKeySets.length == 0 */
return (mUpgradeKeySets != null && mUpgradeKeySets.length > 0);
|
protected boolean | packageIsSignedBy(long ks)
return ArrayUtils.contains(mSigningKeySets, ks);
|
protected void | removeAllDefinedKeySets()
mDefinedKeySets = null;
mKeySetAliases.clear();
return;
|
protected void | removeAllSigningKeySets()
mProperSigningKeySet = KEYSET_UNASSIGNED;
mSigningKeySets = null;
return;
|
protected void | removeAllUpgradeKeySets()
mUpgradeKeySets = null;
return;
|
protected void | removeSigningKeySet(long ks)
mSigningKeySets = ArrayUtils.removeLong(mSigningKeySets, ks);
|
protected void | setProperSigningKeySet(long ks)
if (ks == mProperSigningKeySet) {
/* nothing to change */
return;
}
/* otherwise, our current signing keysets are likely invalid */
removeAllSigningKeySets();
mProperSigningKeySet = ks;
addSigningKeySet(ks);
return;
|