Loading services/java/com/android/server/SystemServer.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2215,12 +2215,12 @@ public final class SystemServer { private void startContentCaptureService(@NonNull Context context) { private void startContentCaptureService(@NonNull Context context) { // First check if it was explicitly enabled by DeviceConfig // First check if it was explicitly enabled by DeviceConfig boolean explicitlySupported = false; boolean explicitlyEnabled = false; String settings = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, String settings = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, ContentCaptureManager.DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED); ContentCaptureManager.DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED); if (settings != null && !settings.equalsIgnoreCase("default")) { if (settings != null && !settings.equalsIgnoreCase("default")) { explicitlySupported = Boolean.parseBoolean(settings); explicitlyEnabled = Boolean.parseBoolean(settings); if (explicitlySupported) { if (explicitlyEnabled) { Slog.d(TAG, "ContentCaptureService explicitly enabled by DeviceConfig"); Slog.d(TAG, "ContentCaptureService explicitly enabled by DeviceConfig"); } else { } else { Slog.d(TAG, "ContentCaptureService explicitly disabled by DeviceConfig"); Slog.d(TAG, "ContentCaptureService explicitly disabled by DeviceConfig"); Loading @@ -2229,7 +2229,7 @@ public final class SystemServer { } } // Then check if OEM overlaid the resource that defines the service. // Then check if OEM overlaid the resource that defines the service. if (!explicitlySupported) { if (!explicitlyEnabled) { final String serviceName = context final String serviceName = context .getString(com.android.internal.R.string.config_defaultContentCaptureService); .getString(com.android.internal.R.string.config_defaultContentCaptureService); if (TextUtils.isEmpty(serviceName)) { if (TextUtils.isEmpty(serviceName)) { Loading Loading
services/java/com/android/server/SystemServer.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2215,12 +2215,12 @@ public final class SystemServer { private void startContentCaptureService(@NonNull Context context) { private void startContentCaptureService(@NonNull Context context) { // First check if it was explicitly enabled by DeviceConfig // First check if it was explicitly enabled by DeviceConfig boolean explicitlySupported = false; boolean explicitlyEnabled = false; String settings = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, String settings = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, ContentCaptureManager.DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED); ContentCaptureManager.DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED); if (settings != null && !settings.equalsIgnoreCase("default")) { if (settings != null && !settings.equalsIgnoreCase("default")) { explicitlySupported = Boolean.parseBoolean(settings); explicitlyEnabled = Boolean.parseBoolean(settings); if (explicitlySupported) { if (explicitlyEnabled) { Slog.d(TAG, "ContentCaptureService explicitly enabled by DeviceConfig"); Slog.d(TAG, "ContentCaptureService explicitly enabled by DeviceConfig"); } else { } else { Slog.d(TAG, "ContentCaptureService explicitly disabled by DeviceConfig"); Slog.d(TAG, "ContentCaptureService explicitly disabled by DeviceConfig"); Loading @@ -2229,7 +2229,7 @@ public final class SystemServer { } } // Then check if OEM overlaid the resource that defines the service. // Then check if OEM overlaid the resource that defines the service. if (!explicitlySupported) { if (!explicitlyEnabled) { final String serviceName = context final String serviceName = context .getString(com.android.internal.R.string.config_defaultContentCaptureService); .getString(com.android.internal.R.string.config_defaultContentCaptureService); if (TextUtils.isEmpty(serviceName)) { if (TextUtils.isEmpty(serviceName)) { Loading