From 6bee42559146676454b77bd4bd755a5cfeb75aed Mon Sep 17 00:00:00 2001 From: Winson Date: Wed, 13 Feb 2019 07:57:24 -0800 Subject: [PATCH] aapt2: Add signature policy to Resources.proto Adds the new enum values for none and the new signature policy. None is needed to ensure we don't accidentally deserialize public, as protobuf uses the first or 0 value enum as the default. Test: aapt2_tests pass Change-Id: Ibcb6b961abaa7e5c048e80c4a3eaf1b6d1d421b5 --- tools/aapt2/Resources.proto | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/aapt2/Resources.proto b/tools/aapt2/Resources.proto index 73b568e77689c..9a1d94288363c 100644 --- a/tools/aapt2/Resources.proto +++ b/tools/aapt2/Resources.proto @@ -151,10 +151,12 @@ message Overlayable { // Represents an overlayable declaration within an tag. message OverlayableItem { enum Policy { - PUBLIC = 0; - SYSTEM = 1; - VENDOR = 2; - PRODUCT = 3; + NONE = 0; + PUBLIC = 1; + SYSTEM = 2; + VENDOR = 3; + PRODUCT = 4; + SIGNATURE = 5; } // The location of the declaration in source.