summaryrefslogtreecommitdiff
path: root/tools/aapt2
diff options
context:
space:
mode:
authorPatrick Baumann <patb@google.com>2020-01-28 10:55:25 -0800
committerPatrick Baumann <patb@google.com>2020-02-07 17:08:30 -0800
commit9918123bac48bd77b61aef98e73a8d927dfbe338 (patch)
treef05b54483ce510fa11e86743d0ed0bb28de843d2 /tools/aapt2
parentb82819fc4d5851663f2d58bf18d48d5c59bcd854 (diff)
Adds queries->provider tag
This change adds support for the <provider> tag inside of the <queries> tag to support more succinct declaration that an app would like to see the provider of a given authority. Test: atest AppEnumerationTests AppsFilterTest Bug: 136675067 Change-Id: Ie0f73213fae7a3a0619238e44063d4e5be157201
Diffstat (limited to 'tools/aapt2')
-rw-r--r--tools/aapt2/link/ManifestFixer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt2/link/ManifestFixer.cpp b/tools/aapt2/link/ManifestFixer.cpp
index 2af118c40138..5aa32f868104 100644
--- a/tools/aapt2/link/ManifestFixer.cpp
+++ b/tools/aapt2/link/ManifestFixer.cpp
@@ -391,6 +391,7 @@ bool ManifestFixer::BuildRules(xml::XmlActionExecutor* executor,
manifest_action["uses-split"].Action(RequiredNameIsJavaPackage);
manifest_action["queries"]["package"].Action(RequiredNameIsJavaPackage);
manifest_action["queries"]["intent"] = intent_filter_action;
+ manifest_action["queries"]["provider"].Action(RequiredAndroidAttribute("authorities"));
// TODO: more complicated component name tag
manifest_action["key-sets"]["key-set"]["public-key"];