summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceValues.h
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2018-04-25 16:45:59 -0700
committerTodd Kennedy <toddke@google.com>2018-04-26 10:27:30 -0700
commit325129964e5b0a9794cf5bb63a2d2d8774ea6a1b (patch)
tree6916dd14dd937ad9650558c8afca42929acd26f2 /tools/aapt2/ResourceValues.h
parenta93ab56ed802f320cbf1ac9452cae75acbef47c3 (diff)
Allow using reserved package IDs
Pre-O, the platform treats negative resource IDs [those with a package ID of 0x80 or higher] as invalid. In order to work around this limitation, we allow the use of traditionally reserved resource IDs [those between 0x02 and 0x7E]. Bug: 78041707 Test: ./out/host/linux-x86/nativetest64/aapt2_tests/aapt2_tests Test: ./out/host/linux-x86/nativetest/libandroidfw_tests/libandroidfw_tests Test: Manual. Create a feature split with a package ID of 0x7E and see it runs and can reference base resources. Change-Id: I3d9782cc05d3a55e1a2467bf39566788847e1160
Diffstat (limited to 'tools/aapt2/ResourceValues.h')
-rw-r--r--tools/aapt2/ResourceValues.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceValues.h b/tools/aapt2/ResourceValues.h
index 6371c4cbb7b5..168ad61784e7 100644
--- a/tools/aapt2/ResourceValues.h
+++ b/tools/aapt2/ResourceValues.h
@@ -157,6 +157,7 @@ struct Reference : public BaseItem<Reference> {
Maybe<ResourceId> id;
Reference::Type reference_type;
bool private_reference = false;
+ bool is_dynamic = false;
Reference();
explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);