From 30113131fb958850ef92c6a8f7f2aa2ed92a8ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Fri, 7 Nov 2014 10:52:17 +0100 Subject: RRO: reintroduce lost ResTable insert of assets With the recent introduction of AssetManager::appendPathToResTable, overlay packages were not properly added to the AssetManager, and once added, were not properly inserted into the ResTable. Bug: 17765434 Change-Id: Ie21f227c654c98730f74a687d0e16ee2b80e747e --- libs/androidfw/AssetManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/androidfw') diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp index de6a33c..a1f7858 100644 --- a/libs/androidfw/AssetManager.cpp +++ b/libs/androidfw/AssetManager.cpp @@ -296,6 +296,10 @@ bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie) mAssetPaths.add(oap); *cookie = static_cast(mAssetPaths.size()); + if (mResources != NULL) { + appendPathToResTable(oap); + } + return true; } -- cgit v1.1