blob: 93a7a314d6bab95ae2a5a79cf4feff7874b64a3e [file] [log] [blame]
Adam Lesinski6f6ceb72014-11-14 14:48:12 -08001/*
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
17#ifndef AAPT_RESOURCE_TABLE_H
18#define AAPT_RESOURCE_TABLE_H
19
Adam Lesinski1ab598f2015-08-14 14:26:04 -070020#include "Diagnostics.h"
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080021#include "Resource.h"
22#include "ResourceValues.h"
23#include "Source.h"
24#include "StringPool.h"
Adam Lesinski355f2852016-02-13 20:26:45 -080025#include "io/File.h"
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080026
Adam Lesinskid5083f62017-01-16 15:07:21 -080027#include "android-base/macros.h"
Mårten Kongstad24c9aa62018-06-20 08:46:41 +020028#include "androidfw/ConfigDescription.h"
Adam Lesinskid5083f62017-01-16 15:07:21 -080029#include "androidfw/StringPiece.h"
30
Adam Lesinski458b8772016-04-25 14:20:21 -070031#include <functional>
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080032#include <map>
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080033#include <memory>
34#include <string>
35#include <tuple>
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080036#include <unordered_map>
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080037#include <vector>
38
Winson62ac8b52019-12-04 08:36:48 -080039using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags;
40
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080041namespace aapt {
42
Adam Lesinski71be7052017-12-12 16:48:07 -080043// The Public status of a resource.
44struct Visibility {
45 enum class Level {
46 kUndefined,
47 kPrivate,
48 kPublic,
49 };
50
51 Level level = Level::kUndefined;
52 Source source;
53 std::string comment;
Adam Lesinski9e10ac72015-10-16 14:37:48 -070054};
55
Adam Lesinski71be7052017-12-12 16:48:07 -080056// Represents <add-resource> in an overlay.
57struct AllowNew {
Adam Lesinskicacb28f2016-10-19 12:18:14 -070058 Source source;
Adam Lesinski71be7052017-12-12 16:48:07 -080059 std::string comment;
60};
Adam Lesinski4488f1c2017-05-26 17:33:38 -070061
Adam Lesinski71be7052017-12-12 16:48:07 -080062struct Overlayable {
Ryan Mitchell54237ff2018-12-13 15:44:29 -080063 Overlayable() = default;
64 Overlayable(const android::StringPiece& name, const android::StringPiece& actor)
65 : name(name.to_string()), actor(actor.to_string()) {}
66 Overlayable(const android::StringPiece& name, const android::StringPiece& actor,
67 const Source& source)
68 : name(name.to_string()), actor(actor.to_string()), source(source ){}
69
70 static const char* kActorScheme;
71 std::string name;
72 std::string actor;
73 Source source;
74};
75
76// Represents a declaration that a resource is overlayable at runtime.
77struct OverlayableItem {
78 explicit OverlayableItem(const std::shared_ptr<Overlayable>& overlayable)
79 : overlayable(overlayable) {}
Ryan Mitchell54237ff2018-12-13 15:44:29 -080080 std::shared_ptr<Overlayable> overlayable;
Winson62ac8b52019-12-04 08:36:48 -080081 PolicyFlags policies = PolicyFlags::NONE;
Adam Lesinskicacb28f2016-10-19 12:18:14 -070082 std::string comment;
Ryan Mitchell54237ff2018-12-13 15:44:29 -080083 Source source;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080084};
85
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080086class ResourceConfigValue {
Adam Lesinskicacb28f2016-10-19 12:18:14 -070087 public:
Adam Lesinski71be7052017-12-12 16:48:07 -080088 // The configuration for which this value is defined.
Mårten Kongstad24c9aa62018-06-20 08:46:41 +020089 const android::ConfigDescription config;
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080090
Adam Lesinski71be7052017-12-12 16:48:07 -080091 // The product for which this value is defined.
Adam Lesinskicacb28f2016-10-19 12:18:14 -070092 const std::string product;
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080093
Adam Lesinski71be7052017-12-12 16:48:07 -080094 // The actual Value.
Adam Lesinskicacb28f2016-10-19 12:18:14 -070095 std::unique_ptr<Value> value;
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080096
Mårten Kongstad24c9aa62018-06-20 08:46:41 +020097 ResourceConfigValue(const android::ConfigDescription& config, const android::StringPiece& product)
Adam Lesinskid5083f62017-01-16 15:07:21 -080098 : config(config), product(product.to_string()) {}
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -080099
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700100 private:
101 DISALLOW_COPY_AND_ASSIGN(ResourceConfigValue);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800102};
103
Adam Lesinski73bff1e2017-12-08 16:06:10 -0800104// Represents a resource entry, which may have varying values for each defined configuration.
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800105class ResourceEntry {
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700106 public:
Adam Lesinski71be7052017-12-12 16:48:07 -0800107 // The name of the resource. Immutable, as this determines the order of this resource
108 // when doing lookups.
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700109 const std::string name;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800110
Adam Lesinski71be7052017-12-12 16:48:07 -0800111 // The entry ID for this resource (the EEEE in 0xPPTTEEEE).
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700112 Maybe<uint16_t> id;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800113
Adam Lesinski71be7052017-12-12 16:48:07 -0800114 // Whether this resource is public (and must maintain the same entry ID across builds).
115 Visibility visibility;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800116
Adam Lesinski71be7052017-12-12 16:48:07 -0800117 Maybe<AllowNew> allow_new;
118
Ryan Mitchelle4e989c2018-10-29 02:21:50 -0700119 // The declarations of this resource as overlayable for RROs
Ryan Mitchell54237ff2018-12-13 15:44:29 -0800120 Maybe<OverlayableItem> overlayable_item;
Adam Lesinski71be7052017-12-12 16:48:07 -0800121
122 // The resource's values for each configuration.
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700123 std::vector<std::unique_ptr<ResourceConfigValue>> values;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800124
Adam Lesinskid5083f62017-01-16 15:07:21 -0800125 explicit ResourceEntry(const android::StringPiece& name) : name(name.to_string()) {}
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800126
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200127 ResourceConfigValue* FindValue(const android::ConfigDescription& config);
Adam Lesinski34a16872018-02-23 16:18:10 -0800128
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200129 ResourceConfigValue* FindValue(const android::ConfigDescription& config,
Adam Lesinskid5083f62017-01-16 15:07:21 -0800130 const android::StringPiece& product);
Adam Lesinski34a16872018-02-23 16:18:10 -0800131
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200132 ResourceConfigValue* FindOrCreateValue(const android::ConfigDescription& config,
Adam Lesinskid5083f62017-01-16 15:07:21 -0800133 const android::StringPiece& product);
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200134 std::vector<ResourceConfigValue*> FindAllValues(const android::ConfigDescription& config);
Adam Lesinski34a16872018-02-23 16:18:10 -0800135
136 template <typename Func>
137 std::vector<ResourceConfigValue*> FindValuesIf(Func f) {
138 std::vector<ResourceConfigValue*> results;
139 for (auto& config_value : values) {
140 if (f(config_value.get())) {
141 results.push_back(config_value.get());
142 }
143 }
144 return results;
145 }
146
147 bool HasDefaultValue() const;
Adam Lesinski458b8772016-04-25 14:20:21 -0700148
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700149 private:
150 DISALLOW_COPY_AND_ASSIGN(ResourceEntry);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800151};
152
Adam Lesinski71be7052017-12-12 16:48:07 -0800153// Represents a resource type (eg. string, drawable, layout, etc.) containing resource entries.
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800154class ResourceTableType {
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700155 public:
Adam Lesinski71be7052017-12-12 16:48:07 -0800156 // The logical type of resource (string, drawable, layout, etc.).
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700157 const ResourceType type;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800158
Adam Lesinski71be7052017-12-12 16:48:07 -0800159 // The type ID for this resource (the TT in 0xPPTTEEEE).
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700160 Maybe<uint8_t> id;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800161
Adam Lesinski71be7052017-12-12 16:48:07 -0800162 // Whether this type is public (and must maintain the same type ID across builds).
163 Visibility::Level visibility_level = Visibility::Level::kUndefined;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800164
Adam Lesinski71be7052017-12-12 16:48:07 -0800165 // List of resources for this type.
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700166 std::vector<std::unique_ptr<ResourceEntry>> entries;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800167
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700168 explicit ResourceTableType(const ResourceType type) : type(type) {}
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700169
Ryan Mitchell8d4ee972018-08-27 11:24:04 -0700170 ResourceEntry* FindEntry(const android::StringPiece& name,
171 Maybe<uint16_t> id = Maybe<uint16_t>());
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700172 ResourceEntry* FindOrCreateEntry(const android::StringPiece& name,
Ryan Mitchell8d4ee972018-08-27 11:24:04 -0700173 Maybe<uint16_t> id = Maybe<uint16_t>());
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800174
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700175 private:
176 DISALLOW_COPY_AND_ASSIGN(ResourceTableType);
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700177};
178
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800179class ResourceTablePackage {
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700180 public:
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700181 std::string name;
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700182
Adam Lesinski71be7052017-12-12 16:48:07 -0800183 // The package ID (the PP in 0xPPTTEEEE).
184 Maybe<uint8_t> id;
185
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700186 std::vector<std::unique_ptr<ResourceTableType>> types;
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700187
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700188 ResourceTablePackage() = default;
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700189 ResourceTableType* FindType(ResourceType type, Maybe<uint8_t> id = Maybe<uint8_t>());
190 ResourceTableType* FindOrCreateType(const ResourceType type,
191 Maybe<uint8_t> id = Maybe<uint8_t>());
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800192
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700193 private:
194 DISALLOW_COPY_AND_ASSIGN(ResourceTablePackage);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800195};
196
Adam Lesinski71be7052017-12-12 16:48:07 -0800197// The container and index for all resources defined for an app.
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800198class ResourceTable {
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700199 public:
200 ResourceTable() = default;
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700201 explicit ResourceTable(bool validate_resources) : validate_resources_(validate_resources) {}
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800202
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700203 enum class CollisionResult { kKeepBoth, kKeepOriginal, kConflict, kTakeNew };
Adam Lesinski5c3464c2016-08-24 16:03:48 -0700204
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700205 using CollisionResolverFunc = std::function<CollisionResult(Value*, Value*)>;
Adam Lesinski5c3464c2016-08-24 16:03:48 -0700206
Adam Lesinski71be7052017-12-12 16:48:07 -0800207 // When a collision of resources occurs, this method decides which value to keep.
Adam Lesinskib1afa072017-03-29 13:52:38 -0700208 static CollisionResult ResolveValueCollision(Value* existing, Value* incoming);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800209
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700210 // When a collision of resources occurs, this method keeps both values
211 static CollisionResult IgnoreCollision(Value* existing, Value* incoming);
212
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200213 bool AddResource(const ResourceNameRef& name, const android::ConfigDescription& config,
Adam Lesinskid5083f62017-01-16 15:07:21 -0800214 const android::StringPiece& product, std::unique_ptr<Value> value,
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700215 IDiagnostics* diag);
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700216
Adam Lesinski71be7052017-12-12 16:48:07 -0800217 bool AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id,
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200218 const android::ConfigDescription& config,
219 const android::StringPiece& product, std::unique_ptr<Value> value,
220 IDiagnostics* diag);
Adam Lesinskie4bb9eb2016-02-12 22:18:51 -0800221
Adam Lesinski71be7052017-12-12 16:48:07 -0800222 // Same as AddResource, but doesn't verify the validity of the name. This is used
223 // when loading resources from an existing binary resource table that may have mangled names.
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200224 bool AddResourceMangled(const ResourceNameRef& name, const android::ConfigDescription& config,
Adam Lesinski71be7052017-12-12 16:48:07 -0800225 const android::StringPiece& product, std::unique_ptr<Value> value,
226 IDiagnostics* diag);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800227
Adam Lesinski71be7052017-12-12 16:48:07 -0800228 bool AddResourceWithIdMangled(const ResourceNameRef& name, const ResourceId& id,
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200229 const android::ConfigDescription& config,
Adam Lesinski71be7052017-12-12 16:48:07 -0800230 const android::StringPiece& product, std::unique_ptr<Value> value,
231 IDiagnostics* diag);
Adam Lesinski769de982015-04-10 19:43:55 -0700232
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700233 bool GetValidateResources();
234
Adam Lesinski71be7052017-12-12 16:48:07 -0800235 bool SetVisibility(const ResourceNameRef& name, const Visibility& visibility, IDiagnostics* diag);
Adam Lesinski71be7052017-12-12 16:48:07 -0800236 bool SetVisibilityWithId(const ResourceNameRef& name, const Visibility& visibility,
237 const ResourceId& res_id, IDiagnostics* diag);
238 bool SetVisibilityWithIdMangled(const ResourceNameRef& name, const Visibility& visibility,
239 const ResourceId& res_id, IDiagnostics* diag);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800240
Ryan Mitchell54237ff2018-12-13 15:44:29 -0800241 bool SetOverlayable(const ResourceNameRef& name, const OverlayableItem& overlayable,
Ryan Mitchell1bb1fe02018-11-16 11:21:41 -0800242 IDiagnostics *diag);
Adam Lesinski71be7052017-12-12 16:48:07 -0800243
244 bool SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, IDiagnostics* diag);
245 bool SetAllowNewMangled(const ResourceNameRef& name, const AllowNew& allow_new,
246 IDiagnostics* diag);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800247
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700248 struct SearchResult {
249 ResourceTablePackage* package;
250 ResourceTableType* type;
251 ResourceEntry* entry;
252 };
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700253
Adam Lesinski71be7052017-12-12 16:48:07 -0800254 Maybe<SearchResult> FindResource(const ResourceNameRef& name) const;
Adam Lesinski1ab598f2015-08-14 14:26:04 -0700255
Adam Lesinski71be7052017-12-12 16:48:07 -0800256 // Returns the package struct with the given name, or nullptr if such a package does not
257 // exist. The empty string is a valid package and typically is used to represent the
258 // 'current' package before it is known to the ResourceTable.
259 ResourceTablePackage* FindPackage(const android::StringPiece& name) const;
Adam Lesinskiceb9b2f2017-02-16 12:05:42 -0800260
Adam Lesinski71be7052017-12-12 16:48:07 -0800261 ResourceTablePackage* FindPackageById(uint8_t id) const;
Adam Lesinskiceb9b2f2017-02-16 12:05:42 -0800262
263 ResourceTablePackage* CreatePackage(const android::StringPiece& name, Maybe<uint8_t> id = {});
264
David Chaloupkae3c1a4a2018-01-18 13:44:36 +0000265 // Attempts to find a package having the specified name and ID. If not found, a new package
266 // of the specified parameters is created and returned.
267 ResourceTablePackage* CreatePackageAllowingDuplicateNames(const android::StringPiece& name,
268 const Maybe<uint8_t> id);
269
Shane Farmer0a5b2012017-06-22 12:24:12 -0700270 std::unique_ptr<ResourceTable> Clone() const;
271
Adam Lesinski71be7052017-12-12 16:48:07 -0800272 // The string pool used by this resource table. Values that reference strings must use
273 // this pool to create their strings.
274 // NOTE: `string_pool` must come before `packages` so that it is destroyed after.
275 // When `string_pool` references are destroyed (as they will be when `packages` is destroyed),
276 // they decrement a refCount, which would cause invalid memory access if the pool was already
277 // destroyed.
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700278 StringPool string_pool;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800279
David Chaloupkae3c1a4a2018-01-18 13:44:36 +0000280 // The list of packages in this table, sorted alphabetically by package name and increasing
281 // package ID (missing ID being the lowest).
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700282 std::vector<std::unique_ptr<ResourceTablePackage>> packages;
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800283
Adam Lesinskiceb9b2f2017-02-16 12:05:42 -0800284 // Set of dynamic packages that this table may reference. Their package names get encoded
285 // into the resources.arsc along with their compile-time assigned IDs.
286 std::map<size_t, std::string> included_packages_;
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700287
288 private:
Adam Lesinskib1afa072017-03-29 13:52:38 -0700289 // The function type that validates a symbol name. Returns a non-empty StringPiece representing
290 // the offending character (which may be more than one byte in UTF-8). Returns an empty string
291 // if the name was valid.
292 using NameValidator = android::StringPiece(const android::StringPiece&);
293
Adam Lesinskid5083f62017-01-16 15:07:21 -0800294 ResourceTablePackage* FindOrCreatePackage(const android::StringPiece& name);
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700295
Adam Lesinski71be7052017-12-12 16:48:07 -0800296 bool ValidateName(NameValidator validator, const ResourceNameRef& name, const Source& source,
297 IDiagnostics* diag);
298
Adam Lesinskice5e56e2016-10-21 17:56:45 -0700299 bool AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id,
Mårten Kongstad24c9aa62018-06-20 08:46:41 +0200300 const android::ConfigDescription& config,
301 const android::StringPiece& product, std::unique_ptr<Value> value,
302 NameValidator name_validator, const CollisionResolverFunc& conflict_resolver,
303 IDiagnostics* diag);
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700304
Adam Lesinski71be7052017-12-12 16:48:07 -0800305 bool SetVisibilityImpl(const ResourceNameRef& name, const Visibility& visibility,
306 const ResourceId& res_id, NameValidator name_validator,
307 IDiagnostics* diag);
308
309 bool SetAllowNewImpl(const ResourceNameRef& name, const AllowNew& allow_new,
310 NameValidator name_validator, IDiagnostics* diag);
311
Ryan Mitchell54237ff2018-12-13 15:44:29 -0800312 bool SetOverlayableImpl(const ResourceNameRef &name, const OverlayableItem& overlayable,
Ryan Mitchell1bb1fe02018-11-16 11:21:41 -0800313 NameValidator name_validator, IDiagnostics *diag);
Adam Lesinski71be7052017-12-12 16:48:07 -0800314
Ryan Mitchell83a37ad2018-08-06 16:32:24 -0700315 // Controls whether the table validates resource names and prevents duplicate resource names
316 bool validate_resources_ = true;
317
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700318 DISALLOW_COPY_AND_ASSIGN(ResourceTable);
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800319};
320
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700321} // namespace aapt
Adam Lesinski6f6ceb72014-11-14 14:48:12 -0800322
Adam Lesinskicacb28f2016-10-19 12:18:14 -0700323#endif // AAPT_RESOURCE_TABLE_H