Allow certificates to be stored in the carrier app whitelist

Use CARRIER_APP_WHITELIST to store app certificate mapped to package
name (instead of just package name as we had before).

Bug: 70042722
Test: SettingsBackupTest
Test: UiccProfileTest#testParseWhitelistMapFromString() for parsing map
Change-Id: Ia0c7c364cd8154272ef62cbbf412036b4eae1b21
This commit is contained in:
goneil
2018-01-10 16:23:11 -08:00
parent cfd17093cd
commit 6db18a9bad
4 changed files with 25 additions and 11 deletions

View File

@@ -156,6 +156,13 @@ public final class UiccAccessRule implements Parcelable {
return mPackageName;
}
/**
* Returns the hex string of the certificate hash.
*/
public String getCertificateHexString() {
return IccUtils.bytesToHexString(mCertificateHash);
}
/**
* Returns the carrier privilege status associated with the given package.
*