IP Library Granted Patent US 9,917,697
Granted Patent B2
US 9,917,697 · App. 15/318,896 · Granted Mar 13, 2018

Performing incremental upgrade on APK base file corresponding to APK eigenvalue value

Inventor: Xiaozhi Sun (Beijing, CN)
Assignee: UC Mobile Co., Ltd.
H04L9/3239G06F17/30076G06F17/30097G06F21/6218
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,917,697
App. No.
15/318,896
Granted
Mar 13, 2018
Kind
B2
Abstract

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.

Claims (32)

1. An incremental upgrade method for a file, comprising:

reading ZIP data information of an APK file, wherein the ZIP data information is a ZIP data header and/or a ZIP directory table;

acquiring an APK eigenvalue of the APK file according to the ZIP data information, wherein acquiring the APK eigenvalue of the APK file according to the ZIP data information comprises:

filtering APK sub-files of the APK file, according to the ZIP data information, to obtain APK sub-files that do not meet one or more filtering conditions according to name, size or creation time of the APK sub-files contained in the ZIP data information; and

performing a calculation on the ZIP data information of the obtained APK sub-files that do not meet the filtering condition to obtain the APK eigenvalue of the APK file; and

performing an incremental upgrade on an APK base file corresponding to the APK eigenvalue according to the APK eigenvalue.

2. The incremental upgrade method for a file as set forth in claim 1 , wherein acquiring the APK eigenvalue of the APK file according to the ZIP data information comprises:

according to the ZIP data information, filtering N APK sub-files of the APK file to obtain the APK sub-files that do not meet the filtering condition, wherein N is a natural number; and

according to the ZIP data information of the APK sub-files that do not meet the filtering condition, acquiring APK eigenvalues of the APK sub-files that do not meet the filtering condition.

3. The incremental upgrade method for a file as set forth in claim 2 , wherein filtering the N APK sub-files of the APK file to obtain the APK sub-files that do not meet the filtering condition comprises:

when no APK sub-file does not meet the filtering condition, calculating the APK file through a MD5 or SHA-1 algorithm to obtain the APK eigenvalue of the APK file.

4. The incremental upgrade method for a file as set forth in claim 1 , wherein acquiring an APK eigenvalue of the APK file according to the ZIP data information comprises:

calculating based on the ZIP data information through a MD5 or SHA-1 algorithm to obtain the APK eigenvalue of the APK file.

5. An apparatus comprising a processor and a non-transitory memory including computer program code, the non-transitory memory and computer program code configured to, with the processor, cause the apparatus to:

read ZIP data information of an APK file, wherein the ZIP data information is a ZIP data header and/or a ZIP directory table;

acquire an APK eigenvalue of the APK file according to the ZIP data information, wherein acquiring the APK eigenvalue of the APK file according to the ZIP data information further causes the apparatus to:

filter APK sub-files of the APK file, according to the ZIP data information, to obtain APK sub-files that do not meet one or more filtering conditions according to name, size or creation time of the APK sub-files contained in the ZIP data information; and

perform a calculation on the ZIP data information of the obtained APK sub-files that do not meet the filtering condition to obtain the APK eigenvalue of the APK file; and

perform an incremental upgrade on an APK base file corresponding to the APK eigenvalue according to the APK eigenvalue.

6. The apparatus according to claim 5 , wherein the non-transitory memory and computer program code are further configured to, with the processor, cause the apparatus to:

according to the ZIP data information, filter N APK sub-files of the APK file to obtain the APK sub-files that do not meet filtering condition, wherein N is a natural number; and

according to the ZIP data information of the APK sub-files that do not meet the filtering condition, acquire APK eigenvalues of the APK sub-files that do not meet the filtering condition.

7. The apparatus according to claim 6 , wherein filtering the N APK sub-files of the APK file to obtain the APK sub-files that do not meet filtering condition further causes the apparatus to:

when no APK sub-file does not meet the filtering condition by the filtering subunit, calculate the APK file through a MD5 or SHA-1 algorithm to obtain the APK eigenvalue of the APK file.

8. The apparatus according to claim 5 , wherein the non-transitory memory and computer program code are further configured to, with the processor, cause the apparatus to:

calculate through a MD5 or SHA-1 algorithm based on the ZIP data information read by the information reading unit to obtain the APK eigenvalue of the APK file.

9. A system, comprising a server in communication with a network, the server comprising at least one processor and at least one non-transitory memory including computer program code, the at least one non-transitory memory and the computer program code configured to, with the at least one processor, cause the server to:

read ZIP data information of an APK file, wherein the ZIP data information is a ZIP data header and/or a ZIP directory table;

acquire an APK eigenvalue of the APK file according to the ZIP data information wherein acquiring the APK eigenvalue of the APK file according to the ZIP data information further causes the server to:

filter APK sub-files of the APK file, according to the ZIP data information, to obtain APK sub-files that do not meet one or more filtering conditions according to name, size or creation time of the APK sub-files contained in the ZIP data information; and

perform a calculation on the ZIP data information of the obtained APK sub-files that do not meet the filtering condition to obtain the APK eigenvalue of the APK file; and

perform an incremental upgrade on an APK base file corresponding to the APK eigenvalue according to the APK eigenvalue.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 15, 2020
From: UC MOBILE CO., LTD.
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052672/0610 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 14, 2016
From: SUN, XIAOZHI
To: UC MOBILE CO., LTD.
Reel/Frame 040736/0052 →
Priority Claims (1)
CN 2014 1 0291429 · Jun 25, 2014 · national
Continuity (1)
Related Publication 20170141922A1 · May 18, 2017