summaryrefslogtreecommitdiff
path: root/libs/androidfw/include
diff options
context:
space:
mode:
author Mårten Kongstad <marten.kongstad@sony.com> 2017-03-28 15:30:21 +0200
committer Mårten Kongstad <marten.kongstad@sony.com> 2017-09-04 13:16:16 +0200
commit42ebcb80b50834a1ce4755cd4ca86918c96ca3c6 (patch)
treedff489d46fca4223ab022fbe5fb2a08d17290150 /libs/androidfw/include
parentea2a1b9b2761bff09921c9c9a5eb04c17cc314b4 (diff)
idmap: include idmap version in check for stale file
Teach is_idmap_stale_fd to include the idmap version in the list of criteria used to determine if an idmap file is already up to date. Change-Id: I3e4e2aa502fe76a034c3977bdb055a1df7e665be
Diffstat (limited to 'libs/androidfw/include')
-rw-r--r--libs/androidfw/include/androidfw/ResourceTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/androidfw/include/androidfw/ResourceTypes.h b/libs/androidfw/include/androidfw/ResourceTypes.h
index 7a6e37d41b7c..66c66c251d9b 100644
--- a/libs/androidfw/include/androidfw/ResourceTypes.h
+++ b/libs/androidfw/include/androidfw/ResourceTypes.h
@@ -1933,6 +1933,7 @@ public:
void** outData, size_t* outSize) const;
static const size_t IDMAP_HEADER_SIZE_BYTES = 4 * sizeof(uint32_t) + 2 * 256;
+ static const uint32_t IDMAP_CURRENT_VERSION = 0x00000001;
// Retrieve idmap meta-data.
//