Loading core/java/android/permission/flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -130,3 +130,11 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "ignore_process_text" namespace: "permissions" description: "Ignore activities that handle PROCESS_TEXT in TextView" bug: "325356776" } services/core/java/com/android/server/IntentResolver.java +16 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.server; import static android.permission.flags.Flags.ignoreProcessText; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; Loading Loading @@ -353,6 +355,13 @@ public abstract class IntentResolver<F, R extends Object> { public List<R> queryIntentFromList(@NonNull Computer computer, Intent intent, String resolvedType, boolean defaultOnly, ArrayList<F[]> listCut, int userId, long customFlags) { if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && ignoreProcessText()) { // This is for an experiment about deprecating PROCESS_TEXT // Note: SettingsProvider isn't ready early in boot and ACTION_PROCESS_TEXT isn't // queried during boot so we are checking the action before the flag. return Collections.emptyList(); } ArrayList<R> resultList = new ArrayList<R>(); final boolean debug = localLOGV || Loading @@ -377,6 +386,13 @@ public abstract class IntentResolver<F, R extends Object> { protected final List<R> queryIntent(@NonNull PackageDataSnapshot snapshot, Intent intent, String resolvedType, boolean defaultOnly, @UserIdInt int userId, long customFlags) { if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && ignoreProcessText()) { // This is for an experiment about deprecating PROCESS_TEXT // Note: SettingsProvider isn't ready early in boot and ACTION_PROCESS_TEXT isn't // queried during boot so we are checking the action before the flag. return Collections.emptyList(); } String scheme = intent.getScheme(); ArrayList<R> finalList = new ArrayList<R>(); Loading Loading
core/java/android/permission/flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -130,3 +130,11 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "ignore_process_text" namespace: "permissions" description: "Ignore activities that handle PROCESS_TEXT in TextView" bug: "325356776" }
services/core/java/com/android/server/IntentResolver.java +16 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.server; import static android.permission.flags.Flags.ignoreProcessText; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; Loading Loading @@ -353,6 +355,13 @@ public abstract class IntentResolver<F, R extends Object> { public List<R> queryIntentFromList(@NonNull Computer computer, Intent intent, String resolvedType, boolean defaultOnly, ArrayList<F[]> listCut, int userId, long customFlags) { if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && ignoreProcessText()) { // This is for an experiment about deprecating PROCESS_TEXT // Note: SettingsProvider isn't ready early in boot and ACTION_PROCESS_TEXT isn't // queried during boot so we are checking the action before the flag. return Collections.emptyList(); } ArrayList<R> resultList = new ArrayList<R>(); final boolean debug = localLOGV || Loading @@ -377,6 +386,13 @@ public abstract class IntentResolver<F, R extends Object> { protected final List<R> queryIntent(@NonNull PackageDataSnapshot snapshot, Intent intent, String resolvedType, boolean defaultOnly, @UserIdInt int userId, long customFlags) { if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && ignoreProcessText()) { // This is for an experiment about deprecating PROCESS_TEXT // Note: SettingsProvider isn't ready early in boot and ACTION_PROCESS_TEXT isn't // queried during boot so we are checking the action before the flag. return Collections.emptyList(); } String scheme = intent.getScheme(); ArrayList<R> finalList = new ArrayList<R>(); Loading