From 42ebcb80b50834a1ce4755cd4ca86918c96ca3c6 Mon Sep 17 00:00:00 2001 From: MÃ¥rten Kongstad Date: Tue, 28 Mar 2017 15:30:21 +0200 Subject: 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 --- libs/androidfw/include/androidfw/ResourceTypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/androidfw/include') 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. // -- cgit v1.2.3-59-g8ed1b