blob: 132b234ab1e47d600f5633429b2ee0903690f124 [file] [log] [blame]
Adam Lesinskia1ad4a82015-06-08 11:41:09 -07001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Adam Lesinskica5638f2015-10-21 14:42:43 -070017#include "java/ProguardRules.h"
Adam Lesinski1ab598f2015-08-14 14:26:04 -070018
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070019#include <memory>
20#include <string>
21
Adam Lesinskice5e56e2016-10-21 17:56:45 -070022#include "android-base/macros.h"
Adam Lesinskia693c4a2017-11-09 11:29:39 -080023#include "androidfw/StringPiece.h"
Adam Lesinskice5e56e2016-10-21 17:56:45 -070024
Adam Koskidc21dea2017-07-21 10:55:27 -070025#include "JavaClassGenerator.h"
26#include "ResourceUtils.h"
27#include "ValueVisitor.h"
Adam Lesinskia693c4a2017-11-09 11:29:39 -080028#include "text/Printer.h"
Adam Lesinskice5e56e2016-10-21 17:56:45 -070029#include "util/Util.h"
30#include "xml/XmlDom.h"
31
Adam Lesinskia693c4a2017-11-09 11:29:39 -080032using ::aapt::io::OutputStream;
33using ::aapt::text::Printer;
34
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070035namespace aapt {
36namespace proguard {
37
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070038class BaseVisitor : public xml::Visitor {
Adam Lesinskice5e56e2016-10-21 17:56:45 -070039 public:
Adam Lesinski6b372992017-08-09 10:54:23 -070040 using xml::Visitor::Visit;
Adam Lesinskice5e56e2016-10-21 17:56:45 -070041
Adam Koskidc21dea2017-07-21 10:55:27 -070042 BaseVisitor(const ResourceFile& file, KeepSet* keep_set) : file_(file), keep_set_(keep_set) {
Adam Lesinskice5e56e2016-10-21 17:56:45 -070043 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070044
Adam Lesinski6b372992017-08-09 10:54:23 -070045 void Visit(xml::Element* node) override {
Adam Lesinskice5e56e2016-10-21 17:56:45 -070046 if (!node->namespace_uri.empty()) {
47 Maybe<xml::ExtractedPackage> maybe_package =
48 xml::ExtractPackageFromNamespace(node->namespace_uri);
49 if (maybe_package) {
50 // This is a custom view, let's figure out the class name from this.
51 std::string package = maybe_package.value().package + "." + node->name;
52 if (util::IsJavaClassName(package)) {
53 AddClass(node->line_number, package);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070054 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -070055 }
56 } else if (util::IsJavaClassName(node->name)) {
57 AddClass(node->line_number, node->name);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070058 }
59
Adam Lesinskice5e56e2016-10-21 17:56:45 -070060 for (const auto& child : node->children) {
61 child->Accept(this);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070062 }
Adam Koskidc21dea2017-07-21 10:55:27 -070063
64 for (const auto& attr : node->attributes) {
65 if (attr.compiled_value) {
66 auto ref = ValueCast<Reference>(attr.compiled_value.get());
67 if (ref) {
68 AddReference(node->line_number, ref);
69 }
70 }
71 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -070072 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070073
Adam Lesinskice5e56e2016-10-21 17:56:45 -070074 protected:
Adam Koskidc21dea2017-07-21 10:55:27 -070075 ResourceFile file_;
76 KeepSet* keep_set_;
77
78 virtual void AddClass(size_t line_number, const std::string& class_name) {
79 keep_set_->AddConditionalClass({file_.name, file_.source.WithLine(line_number)}, class_name);
Adam Lesinskice5e56e2016-10-21 17:56:45 -070080 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070081
Adam Lesinskice5e56e2016-10-21 17:56:45 -070082 void AddMethod(size_t line_number, const std::string& method_name) {
Adam Koskidc21dea2017-07-21 10:55:27 -070083 keep_set_->AddMethod({file_.name, file_.source.WithLine(line_number)}, method_name);
84 }
85
86 void AddReference(size_t line_number, Reference* ref) {
87 if (ref && ref->name) {
88 ResourceName ref_name = ref->name.value();
89 if (ref_name.package.empty()) {
90 ref_name = ResourceName(file_.name.package, ref_name.type, ref_name.entry);
91 }
92 keep_set_->AddReference({file_.name, file_.source.WithLine(line_number)}, ref_name);
93 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -070094 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070095
Adam Lesinskice5e56e2016-10-21 17:56:45 -070096 private:
97 DISALLOW_COPY_AND_ASSIGN(BaseVisitor);
98
Adam Lesinskia1ad4a82015-06-08 11:41:09 -070099};
100
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700101class LayoutVisitor : public BaseVisitor {
102 public:
Adam Koskidc21dea2017-07-21 10:55:27 -0700103 LayoutVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700104 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700105
Adam Lesinski6b372992017-08-09 10:54:23 -0700106 void Visit(xml::Element* node) override {
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700107 bool check_class = false;
108 bool check_name = false;
109 if (node->namespace_uri.empty()) {
Adam Lesinskif762df22017-06-26 16:39:03 -0700110 if (node->name == "view") {
111 check_class = true;
112 } else if (node->name == "fragment") {
113 check_class = check_name = true;
114 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700115 } else if (node->namespace_uri == xml::kSchemaAndroid) {
116 check_name = node->name == "fragment";
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700117 }
118
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700119 for (const auto& attr : node->attributes) {
120 if (check_class && attr.namespace_uri.empty() && attr.name == "class" &&
121 util::IsJavaClassName(attr.value)) {
122 AddClass(node->line_number, attr.value);
123 } else if (check_name && attr.namespace_uri == xml::kSchemaAndroid &&
124 attr.name == "name" && util::IsJavaClassName(attr.value)) {
125 AddClass(node->line_number, attr.value);
126 } else if (attr.namespace_uri == xml::kSchemaAndroid &&
127 attr.name == "onClick") {
128 AddMethod(node->line_number, attr.value);
129 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700130 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700131
132 BaseVisitor::Visit(node);
133 }
134
135 private:
136 DISALLOW_COPY_AND_ASSIGN(LayoutVisitor);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700137};
138
Adam Lesinskif762df22017-06-26 16:39:03 -0700139class MenuVisitor : public BaseVisitor {
140 public:
Adam Koskidc21dea2017-07-21 10:55:27 -0700141 MenuVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) {
Adam Lesinskif762df22017-06-26 16:39:03 -0700142 }
143
Adam Lesinski6b372992017-08-09 10:54:23 -0700144 void Visit(xml::Element* node) override {
Adam Lesinskif762df22017-06-26 16:39:03 -0700145 if (node->namespace_uri.empty() && node->name == "item") {
146 for (const auto& attr : node->attributes) {
147 if (attr.namespace_uri == xml::kSchemaAndroid) {
148 if ((attr.name == "actionViewClass" || attr.name == "actionProviderClass") &&
149 util::IsJavaClassName(attr.value)) {
150 AddClass(node->line_number, attr.value);
151 } else if (attr.name == "onClick") {
152 AddMethod(node->line_number, attr.value);
153 }
154 }
155 }
156 }
157
158 BaseVisitor::Visit(node);
159 }
160
161 private:
162 DISALLOW_COPY_AND_ASSIGN(MenuVisitor);
163};
164
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700165class XmlResourceVisitor : public BaseVisitor {
166 public:
Adam Koskidc21dea2017-07-21 10:55:27 -0700167 XmlResourceVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700168 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700169
Adam Lesinski6b372992017-08-09 10:54:23 -0700170 void Visit(xml::Element* node) override {
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700171 bool check_fragment = false;
172 if (node->namespace_uri.empty()) {
173 check_fragment =
174 node->name == "PreferenceScreen" || node->name == "header";
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700175 }
176
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700177 if (check_fragment) {
178 xml::Attribute* attr =
179 node->FindAttribute(xml::kSchemaAndroid, "fragment");
180 if (attr && util::IsJavaClassName(attr->value)) {
181 AddClass(node->line_number, attr->value);
182 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700183 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700184
185 BaseVisitor::Visit(node);
186 }
187
188 private:
189 DISALLOW_COPY_AND_ASSIGN(XmlResourceVisitor);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700190};
191
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700192class TransitionVisitor : public BaseVisitor {
193 public:
Adam Koskidc21dea2017-07-21 10:55:27 -0700194 TransitionVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700195 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700196
Adam Lesinski6b372992017-08-09 10:54:23 -0700197 void Visit(xml::Element* node) override {
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700198 bool check_class =
Adam Lesinski6b372992017-08-09 10:54:23 -0700199 node->namespace_uri.empty() && (node->name == "transition" || node->name == "pathMotion");
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700200 if (check_class) {
201 xml::Attribute* attr = node->FindAttribute({}, "class");
202 if (attr && util::IsJavaClassName(attr->value)) {
203 AddClass(node->line_number, attr->value);
204 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700205 }
206
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700207 BaseVisitor::Visit(node);
208 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700209
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700210 private:
211 DISALLOW_COPY_AND_ASSIGN(TransitionVisitor);
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700212};
213
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700214class ManifestVisitor : public BaseVisitor {
215 public:
Adam Koskidc21dea2017-07-21 10:55:27 -0700216 ManifestVisitor(const ResourceFile& file, KeepSet* keep_set, bool main_dex_only)
217 : BaseVisitor(file, keep_set), main_dex_only_(main_dex_only) {
218 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700219
Adam Lesinski6b372992017-08-09 10:54:23 -0700220 void Visit(xml::Element* node) override {
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700221 if (node->namespace_uri.empty()) {
222 bool get_name = false;
223 if (node->name == "manifest") {
224 xml::Attribute* attr = node->FindAttribute({}, "package");
225 if (attr) {
226 package_ = attr->value;
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700227 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700228 } else if (node->name == "application") {
229 get_name = true;
Adam Lesinski6b372992017-08-09 10:54:23 -0700230 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "backupAgent");
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700231 if (attr) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700232 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700233 if (result) {
234 AddClass(node->line_number, result.value());
235 }
236 }
237 if (main_dex_only_) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700238 xml::Attribute* default_process = node->FindAttribute(xml::kSchemaAndroid, "process");
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700239 if (default_process) {
240 default_process_ = default_process->value;
241 }
242 }
243 } else if (node->name == "activity" || node->name == "service" ||
244 node->name == "receiver" || node->name == "provider") {
245 get_name = true;
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700246
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700247 if (main_dex_only_) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700248 xml::Attribute* component_process = node->FindAttribute(xml::kSchemaAndroid, "process");
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700249
250 const std::string& process =
251 component_process ? component_process->value : default_process_;
252 get_name = !process.empty() && process[0] != ':';
253 }
254 } else if (node->name == "instrumentation") {
255 get_name = true;
256 }
257
258 if (get_name) {
259 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "name");
260 get_name = attr != nullptr;
261
262 if (get_name) {
Adam Lesinski6b372992017-08-09 10:54:23 -0700263 Maybe<std::string> result = util::GetFullyQualifiedClassName(package_, attr->value);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700264 if (result) {
265 AddClass(node->line_number, result.value());
266 }
267 }
268 }
269 }
270 BaseVisitor::Visit(node);
271 }
272
Adam Koskidc21dea2017-07-21 10:55:27 -0700273 virtual void AddClass(size_t line_number, const std::string& class_name) override {
274 keep_set_->AddManifestClass({file_.name, file_.source.WithLine(line_number)}, class_name);
275 }
276
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700277 private:
278 DISALLOW_COPY_AND_ASSIGN(ManifestVisitor);
279
280 std::string package_;
281 const bool main_dex_only_;
282 std::string default_process_;
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700283};
284
Adam Koskidc21dea2017-07-21 10:55:27 -0700285bool CollectProguardRulesForManifest(xml::XmlResource* res, KeepSet* keep_set, bool main_dex_only) {
286 ManifestVisitor visitor(res->file, keep_set, main_dex_only);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700287 if (res->root) {
288 res->root->Accept(&visitor);
289 return true;
290 }
291 return false;
292}
293
Adam Koskidc21dea2017-07-21 10:55:27 -0700294bool CollectProguardRules(xml::XmlResource* res, KeepSet* keep_set) {
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700295 if (!res->root) {
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700296 return false;
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700297 }
298
299 switch (res->file.name.type) {
300 case ResourceType::kLayout: {
Adam Koskidc21dea2017-07-21 10:55:27 -0700301 LayoutVisitor visitor(res->file, keep_set);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700302 res->root->Accept(&visitor);
303 break;
304 }
305
306 case ResourceType::kXml: {
Adam Koskidc21dea2017-07-21 10:55:27 -0700307 XmlResourceVisitor visitor(res->file, keep_set);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700308 res->root->Accept(&visitor);
309 break;
310 }
311
312 case ResourceType::kTransition: {
Adam Koskidc21dea2017-07-21 10:55:27 -0700313 TransitionVisitor visitor(res->file, keep_set);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700314 res->root->Accept(&visitor);
315 break;
316 }
317
Adam Lesinskif762df22017-06-26 16:39:03 -0700318 case ResourceType::kMenu: {
Adam Koskidc21dea2017-07-21 10:55:27 -0700319 MenuVisitor visitor(res->file, keep_set);
Adam Lesinskif762df22017-06-26 16:39:03 -0700320 res->root->Accept(&visitor);
321 break;
322 }
323
Adam Koskidc21dea2017-07-21 10:55:27 -0700324 default: {
325 BaseVisitor visitor(res->file, keep_set);
326 res->root->Accept(&visitor);
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700327 break;
Adam Koskidc21dea2017-07-21 10:55:27 -0700328 }
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700329 }
330 return true;
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700331}
332
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800333void WriteKeepSet(const KeepSet& keep_set, OutputStream* out) {
334 Printer printer(out);
Adam Koskidc21dea2017-07-21 10:55:27 -0700335 for (const auto& entry : keep_set.manifest_class_set_) {
336 for (const UsageLocation& location : entry.second) {
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800337 printer.Print("# Referenced at ").Println(location.source.to_string());
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700338 }
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800339 printer.Print("-keep class ").Print(entry.first).Println(" { <init>(...); }");
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700340 }
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700341
Adam Koskidc21dea2017-07-21 10:55:27 -0700342 for (const auto& entry : keep_set.conditional_class_set_) {
343 std::set<UsageLocation> locations;
344 bool can_be_conditional = true;
345 for (const UsageLocation& location : entry.second) {
346 can_be_conditional &= CollectLocations(location, keep_set, &locations);
347 }
348
349 for (const UsageLocation& location : entry.second) {
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800350 printer.Print("# Referenced at ").Println(location.source.to_string());
Adam Koskidc21dea2017-07-21 10:55:27 -0700351 }
352 if (keep_set.conditional_keep_rules_ && can_be_conditional) {
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800353 printer.Println("-if class **.R$layout {");
354 printer.Indent();
Adam Koskidc21dea2017-07-21 10:55:27 -0700355 for (const UsageLocation& location : locations) {
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800356 printer.Print("int ")
357 .Print(JavaClassGenerator::TransformToFieldName(location.name.entry))
358 .Println(";");
Adam Koskidc21dea2017-07-21 10:55:27 -0700359 }
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800360 printer.Undent();
361 printer.Println("}");
362 printer.Println();
Adam Koskidc21dea2017-07-21 10:55:27 -0700363 }
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800364 printer.Print("-keep class ").Print(entry.first).Println(" { <init>(...); }");
365 printer.Println();
Adam Koskidc21dea2017-07-21 10:55:27 -0700366 }
367
368 for (const auto& entry : keep_set.method_set_) {
369 for (const UsageLocation& location : entry.second) {
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800370 printer.Print("# Referenced at ").Println(location.source.to_string());
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700371 }
Adam Lesinskia693c4a2017-11-09 11:29:39 -0800372 printer.Print("-keepclassmembers class * { *** ").Print(entry.first).Println("(...); }");
373 printer.Println();
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700374 }
Adam Lesinskia1ad4a82015-06-08 11:41:09 -0700375}
376
Adam Koskidc21dea2017-07-21 10:55:27 -0700377bool CollectLocations(const UsageLocation& location, const KeepSet& keep_set,
378 std::set<UsageLocation>* locations) {
379 locations->insert(location);
380
381 // TODO: allow for more reference types if we can determine its safe.
382 if (location.name.type != ResourceType::kLayout) {
383 return false;
384 }
385
386 for (const auto& entry : keep_set.reference_set_) {
387 if (entry.first == location.name) {
388 for (auto& refLocation : entry.second) {
389 // Don't get stuck in loops
390 if (locations->find(refLocation) != locations->end()) {
391 return false;
392 }
393 if (!CollectLocations(refLocation, keep_set, locations)) {
394 return false;
395 }
396 }
397 }
398 }
399
400 return true;
401}
402
403class ReferenceVisitor : public ValueVisitor {
404 public:
405 using ValueVisitor::Visit;
406
407 ReferenceVisitor(aapt::IAaptContext* context, ResourceName from, KeepSet* keep_set)
408 : context_(context), from_(from), keep_set_(keep_set) {
409 }
410
411 void Visit(Reference* reference) override {
412 if (reference->name) {
413 ResourceName reference_name = reference->name.value();
414 if (reference_name.package.empty()) {
415 reference_name = ResourceName(context_->GetCompilationPackage(), reference_name.type,
416 reference_name.entry);
417 }
418 keep_set_->AddReference({from_, reference->GetSource()}, reference_name);
419 }
420 }
421
422 private:
423 aapt::IAaptContext* context_;
424 ResourceName from_;
425 KeepSet* keep_set_;
426};
427
428bool CollectResourceReferences(aapt::IAaptContext* context, ResourceTable* table,
429 KeepSet* keep_set) {
430 for (auto& pkg : table->packages) {
431 for (auto& type : pkg->types) {
432 for (auto& entry : type->entries) {
433 for (auto& config_value : entry->values) {
434 ResourceName from(pkg->name, type->type, entry->name);
435 ReferenceVisitor visitor(context, from, keep_set);
436 config_value->value->Accept(&visitor);
437 }
438 }
439 }
440 }
441 return true;
442}
443
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700444} // namespace proguard
445} // namespace aapt