From 957c23775f46c26142bc6d4f9a592ac4586a9ef8 Mon Sep 17 00:00:00 2001 From: Yusuke Sato Date: Mon, 3 Aug 2015 16:17:16 -0700 Subject: Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files for better performance. Without the optimization, these two functions may check more than 100k file names in the pre-installed APK files, which can take a few seconds to finish even on a recent device. (cherry-pick of 34fe3df8519523dbb4bc27010fa57f259d5e868d) Bug: 21957428 Change-Id: I5ebe0438019958d883a7fda6bd92ea4484211d23 --- include/androidfw/ZipFileRO.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/androidfw/ZipFileRO.h') diff --git a/include/androidfw/ZipFileRO.h b/include/androidfw/ZipFileRO.h index 1410d87f3e86..768034287afa 100644 --- a/include/androidfw/ZipFileRO.h +++ b/include/androidfw/ZipFileRO.h @@ -91,6 +91,7 @@ public: * a matching call to endIteration with the same cookie. */ bool startIteration(void** cookie); + bool startIteration(void** cookie, const char* prefix, const char* suffix); /** * Return the next entry in iteration order, or NULL if there are no more -- cgit v1.2.3-59-g8ed1b