From 00d5548355ed5a15219ad848ab7a947ea54f82de Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Fri, 7 Sep 2018 14:33:14 -0700 Subject: [PATCH] AAPT2: Add the rest of supported manifest elements Adds elemnts that are parsed in PackageParser to the manifest parsing of AAPT2. found in found in Bug: 79755007 Test: manual building of broken targets listed in the bug Change-Id: Ic7d17e62d04aa46757d2ed7482ec0aff93ce9ee5 Merged-In: Ic7d17e62d04aa46757d2ed7482ec0aff93ce9ee5 (cherry picked from commit 28afe682cd84c894c4da880ace41db77268400c4) --- tools/aapt2/link/ManifestFixer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/aapt2/link/ManifestFixer.cpp b/tools/aapt2/link/ManifestFixer.cpp index 08e6ed3ab08e2..7180a9918abe0 100644 --- a/tools/aapt2/link/ManifestFixer.cpp +++ b/tools/aapt2/link/ManifestFixer.cpp @@ -252,6 +252,7 @@ bool ManifestFixer::BuildRules(xml::XmlActionExecutor* executor, xml::XmlNodeAction component_action; component_action.Action(RequiredNameIsJavaClassName); component_action["intent-filter"] = intent_filter_action; + component_action["preferred"] = intent_filter_action; component_action["meta-data"] = meta_data_action; // Manifest actions. @@ -403,6 +404,8 @@ bool ManifestFixer::BuildRules(xml::XmlActionExecutor* executor, application_action["provider"]["grant-uri-permission"]; application_action["provider"]["path-permission"]; + manifest_action["package"] = manifest_action; + return true; }