APK file compression method and system based on Android system
An Android system and file compression technology, applied in the direction of program control devices, etc., can solve problems such as low efficiency, and achieve the effect of improving security and efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0019] see figure 1 Shown is the specific embodiment of the method for APK file compression based on the Android system described in this application, and the method described in this embodiment includes the following steps:
[0020] Step 101: Obtain the files to be packaged into APK;
[0021] Step 102: Judging whether each file in the APK file to be packaged meets the screening conditions, if it meets, go to step 103, if not, go to step 104; if it meets, go to step 104;
[0022] Step 103: Using the first algorithm to perform first compression on the conforming files;
[0023] Step 104: storing the first compressed file in the res directory as a resource file, and keeping the non-compliant files in the original directory;
[0024] Step 105: Using a second algorithm to perform a second compression on the files stored as resource files and files that do not meet the filtering conditions to generate an APK installation package;
[0025] Step 106: When the APK installation pack...
Embodiment 2
[0031] see figure 2 Shown is another specific embodiment of the method for APK file compression based on the Android system described in the present application, and the method described in this embodiment includes the following steps:
[0032] Step 201: Obtain the files to be packaged into APK;
[0033] Step 202: Judging whether each file in the APK file to be packaged meets the screening conditions, if yes, proceed to step 203, if not, proceed to step 204; if yes, proceed to step 204;
[0034] Step 203: Using the LZMA2 algorithm to first compress the conforming files;
[0035] Step 204: store the first compressed file in the res directory as a resource file, and keep the non-compliant files in the original directory, such as META-INFO, lib, asserts directory, etc.;
[0036] Step 205: Using the Zip algorithm to perform second compression on the files stored as resource files and files that do not meet the filtering conditions, to generate an APK installation package;
[0...
Embodiment 3
[0042] combined with image 3 As shown, a system for compressing APK files based on the Android system in the present invention includes: an installation file storage module 301, a judgment module 302, a first compression module 303, a resource file storage module 304, and a second compression module 305 ;in,
[0043] The installation file storage module 301 is coupled with the judging module 302, and is used to store files to be packaged into APK;
[0044] The judging module 302 is coupled with the installation file storage module 301 and the first compression module 303, and is used to judge whether each file in the file to be packaged into APK meets the screening condition, if not, then Retain the non-conforming files in the installation file storage module 301, and if they are in conformity, send the conforming files to the first compression module 303;
[0045] The first compression module 303 is coupled to the judging module 302 and the resource file storage module 304...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com