APK Eigenvalue Calculation via ZIP Data Extraction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional methods for obtaining APK eigenvalues are inefficient due to the addition of special identifiers in APK files, leading to excessive calculations and a huge background maintenance workload during incremental upgrades, especially when dealing with numerous distribution channels.
Innovation Solution
The method involves reading ZIP data information from APK files, filtering APK sub-files based on conditions such as names, sizes, and creation times, and using MD5 or SHA-1 algorithms to calculate the eigenvalue, thereby reducing the number of calculations needed for incremental upgrades.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If traditional algorithms (MD5 or SHA-1) are used to calculate APK eigenvalue from entire APK file data, then the eigenvalue can be obtained, but the calculation amount is very large and calculation efficiency is very low
Solution Approach 1:
The patent extracts only the essential ZIP data information (headers and directory tables) from the complete APK file to calculate the eigenvalue. This extraction principle reduces the calculation scope from the entire APK file to just the critical metadata portions, thereby maintaining eigenvalue accuracy while dramatically improving calculation efficiency.
2Reliability
If traditional algorithms calculate APK eigenvalue for every APK file with special identifiers, then each file gets a unique eigenvalue, but the background maintenance workload becomes very huge when dealing with thousands of distribution channels
Solution Approach 1:
The patent merges APK files that share the same base file content into a single eigenvalue category by calculating eigenvalues only on the common ZIP data information. This merging approach allows thousands of distribution channel variants to be grouped under a unified eigenvalue, significantly reducing the maintenance workload while preserving the ability to differentiate when necessary.
3Reliability
If APK files from thousands of distribution channels are treated as different files in incremental upgrading, then each file is handled separately, but the calculation amount and maintenance workload become excessively large
Solution Approach 1:
The patent creates a universal eigenvalue calculation method that works across all APK files by focusing on common ZIP data structures. This universal approach allows the system to handle thousands of distribution channel files through a single eigenvalue framework, reducing the quantity of files that need to be maintained while preserving unique identification capabilities.
Data Source
AI summary
The present invention provides an incremental upgrade method and system for a file. The method comprises: reading ZIP data information of an APK file, the ZIP data information being a ZIP data header and/or a ZIP directory table; acquiring an APK eigenvalue of the APK file according to the read ZIP data information; and performing incremental upgrade on an APK base file corresponding to the APK eigenvalue according to the APK eigenvalue. By means of the present invention, the efficiency of incremental upgrade can be improved while the calculation amount for acquiring an APK eigenvalue is reduced.


