Add a feature flag to remove hack code for without cross user permission.

Feature flag to remove hack code of using PackageManager.MATCH_ANY_USER
flag without cross user permission.

Flag: android.content.pm.remove_cross_user_permission_hack

Bug: 332664521
Test: presubmit
Change-Id: I6b76081fa694102b3a2cd6b9c51dcdb7e3c8701b
diff --git a/core/java/android/content/pm/flags.aconfig b/core/java/android/content/pm/flags.aconfig
index 139ff65..60b409a 100644
--- a/core/java/android/content/pm/flags.aconfig
+++ b/core/java/android/content/pm/flags.aconfig
@@ -293,4 +293,12 @@
     description: "Feature flag to provide the new methods within launcher apps class to get packages."
     bug: "363324203"
     is_fixed_read_only: true
+}
+
+flag {
+    name: "remove_cross_user_permission_hack"
+    namespace: "package_manager_service"
+    description: "Feature flag to remove hack code of using PackageManager.MATCH_ANY_USER flag without cross user permission."
+    bug: "332664521"
+    is_fixed_read_only: true
 }
\ No newline at end of file