Add flag to guard the Credential Manager system service.
Bug: 262460667 Test: locally tested. Change-Id: I929b78b4e5d3bf6fefc2517b6cbf33b56a6b5cf3
This commit is contained in:
@@ -46,6 +46,7 @@ import android.content.pm.PackageManager;
|
||||
import android.content.pm.PackageManagerInternal;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources.Theme;
|
||||
import android.credentials.CredentialManager;
|
||||
import android.database.sqlite.SQLiteCompatibilityWalFlags;
|
||||
import android.database.sqlite.SQLiteGlobal;
|
||||
import android.graphics.GraphicsStatsService;
|
||||
@@ -2609,9 +2610,16 @@ public final class SystemServer implements Dumpable {
|
||||
}
|
||||
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_CREDENTIALS)) {
|
||||
t.traceBegin("StartCredentialManagerService");
|
||||
mSystemServiceManager.startService(CREDENTIAL_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
boolean credentialManagerEnabled =
|
||||
DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_CREDENTIAL,
|
||||
CredentialManager.DEVICE_CONFIG_ENABLE_CREDENTIAL_MANAGER, true);
|
||||
if (credentialManagerEnabled) {
|
||||
t.traceBegin("StartCredentialManagerService");
|
||||
mSystemServiceManager.startService(CREDENTIAL_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
} else {
|
||||
Slog.d(TAG, "CredentialManager disabled.");
|
||||
}
|
||||
}
|
||||
|
||||
// Translation manager service
|
||||
|
||||
Reference in New Issue
Block a user