From 9a8b3f8236693dacf3d02ad6d8a26636b2911484 Mon Sep 17 00:00:00 2001 From: MonoIith Date: Fri, 27 Nov 2015 22:42:55 -0500 Subject: [PATCH] Overlay: Load during Zygote only [1/2] Ensure overlays are only loaded once, which will be during Zygote init Ia5064045c77f713c58fb78adc3942f6af1abdc93 --- include/androidfw/AssetManager.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/androidfw/AssetManager.h b/include/androidfw/AssetManager.h index cfe8a99490a..0cfc2700aab 100644 --- a/include/androidfw/AssetManager.h +++ b/include/androidfw/AssetManager.h @@ -236,9 +236,11 @@ class AssetManager : public AAssetManager { private: struct asset_path { + asset_path() : path(""), type(kFileTypeRegular), idmap(""), isSystemOverlay(false) {} String8 path; FileType type; String8 idmap; + bool isSystemOverlay; }; Asset* openInPathLocked(const char* fileName, AccessMode mode,