Loading core/res/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -4429,6 +4429,14 @@ --> <string name="config_defaultContentCaptureService" translatable="false"></string> <!-- The package name for the system's content protection service. This service must be trusted, as it can be activated without explicit consent of the user. If no service with the specified name exists on the device, content protection will be disabled. Example: "com.android.contentprotection/.ContentProtectionService" --> <string name="config_defaultContentProtectionService" translatable="false"></string> <!-- The package name for the system's augmented autofill service. This service must be trusted, as it can be activated without explicit consent of the user. If no service with the specified name exists on the device, augmented autofill wil be Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -3761,6 +3761,7 @@ <java-symbol type="string" name="config_defaultTextClassifierPackage" /> <java-symbol type="string" name="config_defaultWellbeingPackage" /> <java-symbol type="string" name="config_defaultContentCaptureService" /> <java-symbol type="string" name="config_defaultContentProtectionService" /> <java-symbol type="string" name="config_defaultAugmentedAutofillService" /> <java-symbol type="string" name="config_defaultTranslationService" /> <java-symbol type="string" name="config_defaultAppPredictionService" /> Loading services/java/com/android/server/SystemServer.java +6 −0 Original line number Diff line number Diff line Loading @@ -3255,6 +3255,12 @@ public final class SystemServer implements Dumpable { Slog.d(TAG, "ContentCaptureService disabled because resource is not overlaid"); return; } if (!deviceHasConfigString(context, R.string.config_defaultContentProtectionService)) { Slog.d( TAG, "ContentProtectionService disabled because resource is not overlaid," + " ContentCaptureService still enabled"); } } t.traceBegin("StartContentCaptureService"); Loading Loading
core/res/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -4429,6 +4429,14 @@ --> <string name="config_defaultContentCaptureService" translatable="false"></string> <!-- The package name for the system's content protection service. This service must be trusted, as it can be activated without explicit consent of the user. If no service with the specified name exists on the device, content protection will be disabled. Example: "com.android.contentprotection/.ContentProtectionService" --> <string name="config_defaultContentProtectionService" translatable="false"></string> <!-- The package name for the system's augmented autofill service. This service must be trusted, as it can be activated without explicit consent of the user. If no service with the specified name exists on the device, augmented autofill wil be Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -3761,6 +3761,7 @@ <java-symbol type="string" name="config_defaultTextClassifierPackage" /> <java-symbol type="string" name="config_defaultWellbeingPackage" /> <java-symbol type="string" name="config_defaultContentCaptureService" /> <java-symbol type="string" name="config_defaultContentProtectionService" /> <java-symbol type="string" name="config_defaultAugmentedAutofillService" /> <java-symbol type="string" name="config_defaultTranslationService" /> <java-symbol type="string" name="config_defaultAppPredictionService" /> Loading
services/java/com/android/server/SystemServer.java +6 −0 Original line number Diff line number Diff line Loading @@ -3255,6 +3255,12 @@ public final class SystemServer implements Dumpable { Slog.d(TAG, "ContentCaptureService disabled because resource is not overlaid"); return; } if (!deviceHasConfigString(context, R.string.config_defaultContentProtectionService)) { Slog.d( TAG, "ContentProtectionService disabled because resource is not overlaid," + " ContentCaptureService still enabled"); } } t.traceBegin("StartContentCaptureService"); Loading