Keystore 2.0: Update to canonical service name.

Bug: 179907868
Test: N/A
Change-Id: I74adab04bd84f120bc547011151ea77769b6bda9
This commit is contained in:
Janis Danisevskis
2021-03-22 14:57:28 -07:00
parent 4cc71277cd
commit f3064ba0b3

View File

@@ -126,6 +126,8 @@ public class KeyStore2 {
}
}
private static final String KEYSTORE2_SERVICE_NAME =
"android.system.keystore2.IKeystoreService/default";
private KeyStore2() {
mBinder = null;
@@ -138,7 +140,7 @@ public class KeyStore2 {
private synchronized IKeystoreService getService(boolean retryLookup) {
if (mBinder == null || retryLookup) {
mBinder = IKeystoreService.Stub.asInterface(ServiceManager
.getService("android.system.keystore2"));
.getService(KEYSTORE2_SERVICE_NAME));
}
return mBinder;
}