# US 10,871,973 B2 · Application activation method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,871,973 B2
- Document ID: US10871973B2
- Status: Granted
- Kind: B2
- Application number: 16/046,540
- Filed: 2018-07-26
- Published: 2018-12-27
- Granted: 2020-12-22
- Earliest claimed: 2016-05-09
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Linyuan Deng
- Web page: https://patentgrep.com/patent/US10871973B2

## CPC

- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 8/41: Compilation
- G06F 8/61: Installation
- G06F 16/16: File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M 7/50: Conversion to or from non-linear codes, e.g. companding
- H03M 7/702: {Software}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

An application activation method is provided. The method includes obtaining a first compressed file, where the first compressed file contains activation information of an application and compressed content of a code package of the application. The method also includes extracting the compressed content from the first compressed file; generating a second compressed file by using the compressed content without decompressing the compressed content; and loading the second compressed file, and activating the application according to the activation information in the first compressed file.

## Claims

### Claim 1

An application activation method, comprising:
obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main- package comprising at least one activation entry program in a decompressed state;
extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
generating a second compressed file by using the compressed content without decompressing the compressed content;
activating the main-package and displaying an activation interface that changes a current screen;
loading the second compressed file asynchronously after displaying the activation interface; and
activating the application according to the activation information in the first compressed file, including: executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
wherein the sub-package comprises a non-activation entry program; and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first compressed file is an Android package (APK) file, and the second compressed file is a zip compressed file.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the generating a second compressed file by using the compressed content comprises:
copying the compressed content; and
writing zip header information into the copied compressed content.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the generating a second compressed file by using the compressed content comprises:
generating header information of the second compressed file according to file header information of the compressed content in the first compressed file; and
generating core directory information of the second compressed file according to core directory information of the compressed content in the first compressed file.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the obtaining a first compressed file comprises:
obtaining the first compressed file when a broadcast package broadcasted by a system and used to notify that the application is completely installed is detected.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the activating the application according to the activation information in the first compressed file comprises:
activating the application according to the activation information in the first compressed file when an activation instruction for activating the application is detected.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the activation interface is invoked upon detecting that the application is installed and activated for the first time.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the main-package includes an outer shell component, and the method further comprises:
when a normal entry of the application is detected, determining whether the normal entry is a first time activation; and
invoking the activation interface by using the outer shell component.

### Claim 9

A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main- package comprising at least one activation entry program in a decompressed state;
extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
generating a second compressed file by using the compressed content without decompressing the compressed content;
activating the main-package and displaying an activation interface that changes a current screen;
loading the second compressed file asynchronously after displaying the activation interface; and activating the application according to the activation information in the first compressed file, including: executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
wherein the sub-package comprises a non-activation entry program; and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the first compressed file is an Android package (APK) file, and the second compressed file is a zip compressed file.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the generating a second compressed file by using the compressed content comprises:
copying the compressed content; and
writing zip header information into the copied compressed content.

### Claim 12 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the generating a second compressed file by using the compressed content comprises:
generating header information of the second compressed file according to file header information of the compressed content in the first compressed file; and
generating core directory information of the second compressed file according to core directory information of the compressed content in the first compressed file.

### Claim 13 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the obtaining a first compressed file comprises:
obtaining the first compressed file when a broadcast package broadcasted by a system and used to notify that the application is completely installed is detected.

### Claim 14 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the activating the application according to the activation information in the first compressed file comprises:
activating the application according to the activation information in the first compressed file when an activation instruction for activating the application is detected.

### Claim 15

An application activation apparatus, comprising:
a memory; and
a processor coupled to the memory and configured to perform:
obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main-package comprising at least one activation entry program in a decompressed state;
extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
generating a second compressed file by using the compressed content without decompressing the compressed content;
activating the main-package and displaying an activation interface that changes a current screen;
loading the second compressed file asynchronously after displaying the activation interface; and
activating the application according to the activation information in the first compressed file, including: executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
wherein the sub-package comprises a non-activation entry program; and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the first compressed file is an Android package (APK) file, and the second compressed file is a zip compressed file.
