summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-11-19 17:49:26 -0800
committerAdam Lesinski <adamlesinski@google.com>2014-12-03 15:59:20 -0800
commit9b624c186cb6059dfb3ec24bfb6386a0fc17b88c (patch)
treee57516e076eddb75d4c657704522f43067153c2a /include
parent92ad4dd017a13364b4001bdb04911202932f81c2 (diff)
downloadframeworks_base-9b624c186cb6059dfb3ec24bfb6386a0fc17b88c.zip
frameworks_base-9b624c186cb6059dfb3ec24bfb6386a0fc17b88c.tar.gz
frameworks_base-9b624c186cb6059dfb3ec24bfb6386a0fc17b88c.tar.bz2
AAPT: Move private attrs to new type for framework
Private attributes are typically placed after public attributes in the resource table. Each time a new version of the Android framework is released, new public attributes take the place of the private attributes, and the private attributes are shifted after the new public ones. This means that any apps built against the newer SDK may inadvertently be using private attributes on older devices. This change moves all private attributes to a completely different type ID, so there will never be collisions across versions. These private attributes are automatically moved to a synthesized type only for the system resources. Bug:18263655 Change-Id: I7a850512953fadcc9f3524d509cea30249782db8
Diffstat (limited to 'include')
-rw-r--r--include/androidfw/ResourceTypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/androidfw/ResourceTypes.h b/include/androidfw/ResourceTypes.h
index 6b84494..5a28be5 100644
--- a/include/androidfw/ResourceTypes.h
+++ b/include/androidfw/ResourceTypes.h
@@ -1828,6 +1828,9 @@ private:
const ResTable_config* config,
Entry* outEntry) const;
+ uint32_t findEntry(const PackageGroup* group, ssize_t typeIndex, const char16_t* name,
+ size_t nameLen, uint32_t* outTypeSpecFlags) const;
+
status_t parsePackage(
const ResTable_package* const pkg, const Header* const header);