summaryrefslogtreecommitdiff
path: root/library
AgeCommit message (Collapse)Author
2014-07-30Use a simulated code-cache for storing extracted files.android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-releaselollipop-devlollipop-cts-releaseYohann Roussel
This should allow an automatic cleaning when updating to L without having to check at each launch. Bug: 10447095 (cherry picked from commit 590a07e63868f0a1da311ff22b4a9f35eb48a865) Change-Id: I90b80c0c196b5da2b63bced30b2ba5e93ecb594a
2014-07-09Clear old secondary dex dir when multidex becomes supported.Yohann Roussel
There may be a need for clearing those unused extracted files after an OTA bringing Art L on the device. Bug: 10447095 Change-Id: I80b9c0afa2bd8dfa0cf04e96fb04ba2527da0fe5
2014-06-24Merge "Deactivate the library if vm version is 2.1 or newer."Yohann Roussel
2014-06-26Deactivate the library if vm version is 2.1 or newer.Yohann Roussel
It was decided that it would be the revision of multidex native support and that it is the criterion that should be used to discriminate between VMs capable of multidex and others. Bug 14238145. See bug 10447095 for discussions about the deactivation criterion. Change-Id: I50922972d1d5b3019a111d5a1b4f2f18af9713ed
2014-06-18Remove unnecessary versions from multidex's build.gradle.Jeff Davidson
frameworks/multidex/library does not stand alone as a gradle project and should always be inheriting these values from the parent build. Change-Id: I10eb64f2ad38d0bf278d5300e26a637c481b9b00
2014-05-16Update sdk and build tools versionJeff Hamilton
Change-Id: I602f362ef9fb7a7eb88fea05052152b0b45a4c6e
2014-04-24Merge "Fix some javadoc in MultiDex."Yohann Roussel
2014-04-22Allow MultiDex support library to work in API 20 (KKWT)Justin Morey
The class loader is the same in KK (API 19) & KKWT (API 20), so only a version bump was needed. Change-Id: Ib5112e60c9a54ed042e9c71b075ecb5302c1b717 (cherry picked from commit b420940060dbce01a861760d5830416d0e9bb802)
2014-04-22Fix some javadoc in MultiDex.Yohann Roussel
Change-Id: I0600b6f75005881c549150ea2e0b18800747bf73
2014-04-09Change update detection to reduce load time.Yohann Roussel
Reduces load time if extraction was already made. It appeared that new ZipFile was really slow because it's preparing much things as soon as it's instanciated. The new criteria consist of the last modified time of the apk plus the crc of the apk's central directory, last modified time should be enough for nearly all modifications and the crc is here to try to handle an OTA mixing with dates. The transition from old criteria to new should be good: since there will be no stored values they would be detected as a new installation. Change-Id: Id390b77b03d794b8b7feb91eb0daae1126c6d691
2014-02-27Merge "Provide a default multidex capable Application."Yohann Roussel
2014-02-26Provide a default multidex capable Application.Yohann Roussel
Multidex installation in Application.attachBaseContext() requires only one call point to MultiDex.install() per Application so let's provide a default multidex capable Application. Change-Id: Icfa1993c4b3d7c5a7d1783d4ca6d5b9ea31adb8b
2014-01-30Disable gradle lint checks, so build will succeedJustin Morey
Change-Id: I5bd149acf7ad8efeadfd6ede018503a4dfba6e31
2014-01-28Fix crc comparison in multidex installation.Yohann Roussel
The bug was caused by a comparison of Long instances instead of long values and was leading to the library always detecting that the secondary dex files needed a fresh exctraction. bug 12776578 Change-Id: Ia7056a130cf6e99094e4f456b086e141c1255725
2014-01-18Fix gradle buildJeff Hamilton
Change-Id: Idb9442556122d83f2277aceb79101f4f53e4c632
2014-01-17Remove the check for source apk file sizeMaurice Chu
The file deletion when finding that the source apk file size was different than what was stored in SharedPreferences causes a race condition when multiple processes are executing this code, where one process could erase the secondary zip file while a different process had already started to create the zip file. This check is unnecessary and has been removed. Also, changed the parameter for getting the SharedPreferences to Context.MODE_MULTI_PROCESS, which forces a re-read of the key/value pairs from the file. This should also fix the original bug b/12550057. Bug: 12594955 Bug: 12550057 Change-Id: I53f4bca0d03a5737d802509274520a78effcf228
2014-01-15Check whether to extract secondary dex files based on apk size and CRCMaurice Chu
This addresses an edge case where the secondary dex is not reloaded when it should because of an OTA due to the modification time of the PrebuiltGmsCore.apk in the system image is never different even though PrebuiltGmsCore.apk may have changed in the OTA. This performs two checks, the first is that the overall size of the apk is the same. The second is to check that the number of dex files are the same, and the CRC values of the dex file zip entries are the same. Bug: 12550057 Change-Id: I526f6b88cfc7957840b0c35aaad0eab0cd776f7e
2014-01-08Get multidex library building under GradleJustin Morey
Change-Id: Ic6f8689c68c7bc79bf831441008ae6d08d58e91d
2013-12-02Add additional check for valid Zip file before multidex installMaurice Chu
Bug: 11895788 Change-Id: Id4f6e5b09be809eeb29367bebe78c03e49864cbf
2013-11-28Add log to identify the source of the zip corruption.Yohann Roussel
This CL is to be reverted when debug is done. Change-Id: I47f2464a4b32affe2d63f874a1df3f8f24e569d5
2013-11-28Buffer the file output streamMaurice Chu
Also, removed the file locking which had no effect. Bug: 11895788 Change-Id: I8b520fff9496f289eba88690b3b583f9c43b932c
2013-11-27Make file lock before renaming zip fileMaurice Chu
Change-Id: I548dd046f89d937f974cb5a925de70c7ecfad7a4
2013-11-27Remove computation of sha1 of zip fileMaurice Chu
This would spin up a lot of code to compute this and is not something we want to do in every process that GMS Core runs in. Return zip file length to have some data about the file. Change-Id: Ibb22c54a6d8ef33c690fd35f2b69c427449ef5d1
2013-11-27Verify secondary dex zip file is a zip file and retryMaurice Chu
Also, print out the SHA1 digest of the zip file for all attempts at extracting the zip file. Bug: 11895788 Change-Id: I4170c2362aa8370fd13bc7bed62f2e6eb3223768
2013-11-21Minor cleaning in the code and comment.Yohann Roussel
- Remove 2 unused method arguments. - Fix a bad copy paste of a comment. - Remove a useless if. Change-Id: I1b88b91e38cbe3c024207113f1c4a7bdc052e514
2013-11-20Fix creation of zip file for multi-dexMaurice Chu
Bug: 11791202 Change-Id: Ib8f97f11287a59db0ec119a1d55913aa8df3ce33
2013-11-15Update mZips field in classloader for GBMaurice Chu
This enables mockito tests to also run. Bug: 11709435 Change-Id: I9ebc5f5441a396c12eb8cde554d69a003fa6e7ad
2013-11-13Merge "Control modTime of extracted files."Yohann Roussel
2013-11-13Control modTime of extracted files.Yohann Roussel
And use it to clean more accuratly old extracted files. Fix bug 11232823 Change-Id: I23678ae07a8df955276ece7b8c0cdddef907992b
2013-11-12Keep time extracted entry to avoid multiple dexopt.Yohann Roussel
Fix bug 11415819 Change-Id: I1a1300f430f0db7b587e2f29c273884ef80f7fbe
2013-11-08Restore SDK eclipse projects.Yohann Roussel
Change-Id: I0571445e464ab74ffcb4e972159a2a7cf805f613
2013-10-16Initial move of code from frameworks/support/multidex to hereMaurice Chu
Also, - Removed extraneous Eclipse-specific configuration files that are unnecessary in the Android build tree - Includes the patch to support API level 19 from https://googleplex-android-review.git.corp.google.com/#/c/348129 - Checks for null and returns without patching the classloader when getting the package manager or package name from the passed in Context to MultiDex.install(...) since the Context object is probably a mock context for testing. - Moved the test runners to package com.android.test.runner, which seems to be the standard place for all test runners. Bug: 10674263 Change-Id: Idc894b360bd17db4acb50dd7daa2839ea8ea37e0