Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libs/androidfw/AssetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ FileType AssetManager::getFileType(const char* fileName)
}

bool AssetManager::appendPathToResTable(const asset_path& ap, size_t* entryIdx) const {
if (ap.isSystemOverlay) {
return true;
}
Asset* ass = NULL;
ResTable* sharedRes = NULL;
bool shared = true;
Expand Down Expand Up @@ -791,6 +794,7 @@ void AssetManager::addSystemOverlays(const char* pathOverlaysList,
oap.path = String8(buf, space - buf);
oap.type = kFileTypeRegular;
oap.idmap = String8(space + 1, newline - space - 1);
oap.isSystemOverlay = true;

Asset* oass = const_cast<AssetManager*>(this)->
openNonAssetInPathLocked("resources.arsc",
Expand Down