# US 2022/0292141 A1 · Quick Application Startup Method and Related Apparatus

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

- Number: US 2022/0292141 A1
- Document ID: US20220292141A1
- Status: Published application
- Kind: A1
- Application number: 17/763,842
- Filed: 2020-08-29
- Published: 2022-09-15
- Earliest claimed: 2019-09-26
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Litao Yu; Yonghui Wu; Fei Sun; Guoqiang Li
- Web page: https://patentgrep.com/patent/US20220292141A1

## CPC

- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G06F 8/427: {Parsing}
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/9566: {URL specific, e.g. using aliases, detecting broken or misspelled links}
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- H04L 51/04: Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L 51/046: Interoperability with other network applications or services
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A quick application startup method and a related apparatus are provided. The method includes: An electronic device requests an acceleration script of one or more quick applications from an application server. A first operation for a target quick application is detected. In response to the first operation, the electronic device requests an application package of the target quick application from the application server. An acceleration script of the target quick application is included in the acceleration script of the one or more quick applications. In response to the first operation, the electronic device runs the acceleration script of the target quick application to obtain a first URL, and obtains first data based on the first URL. The electronic device may generate and display a first screen of the target quick application based on the first data.

## Claims

### Claim at position 1

-26. (canceled)

### Claim 27

A method, comprising:
sending, by an electronic device, a first request to an application server, wherein the first request indicates to the application server to send an acceleration script of one or more quick applications to the electronic device;
receiving, by the electronic device, the acceleration script of the one or more quick applications that is sent by the application server;
detecting, by the electronic device, a first operation corresponding to a target quick application;
in response to detecting the first operation, performing the following:
sending, by the electronic device, a second request to the application server, wherein the second request requests an application package of the target quick application; and
running, by the electronic device, an acceleration script of the target quick application to obtain a first uniform resource locator (URL), and obtaining first data from a third-party server based on the first URL, wherein the acceleration script of the target quick application is comprised in the acceleration script of the one or more quick applications;
receiving, by the electronic device, the application package that is of the target quick application and that is sent by the application server;
running, by the electronic device, the application package of the target quick application to obtain a second URL; and
when the first URL is the same as the second URL, generating and displaying, by the electronic device, a first screen of the target quick application based on the first data.

### Claim 28 (depends on 27)

The method according to claim 27, further comprising:
before sending, by the electronic device, the first request to the application server, receiving, by the electronic device, instant messaging information that comprises identifiers of the one or more quick applications.

### Claim 29 (depends on 27)

The method according to claim 27, further comprising:
before sending, by the electronic device, the first request to the application server, detecting, by the electronic device, a user operation performed on an icon of the one or more quick applications.

### Claim 30 (depends on 27)

The method according to claim 27, further comprising:
before sending, by the electronic device, the first request to the application server, receiving, by the electronic device, entered quick application name information, wherein the entered quick application name information corresponds to the one or more quick applications.

### Claim 31 (depends on 27)

The method according to claim 27, further comprising:
when the first URL is different from the second URL, obtaining, by the electronic device, second data from the third-party server based on the second URL; and
generating and displaying, by the electronic device, the first screen of the target quick application based on the second data.

### Claim 32 (depends on 31)

The method according to claim 31, further comprising:
when the first URL is the same as the second URL, sending, by the electronic device to the application server, information indicating that the acceleration script of the target quick application is successfully hit; or
when the first URL is different from the second URL, sending, by the electronic device to the application server, information indicating that the acceleration script of the target quick application fails to be hit.

### Claim 33 (depends on 27)

The method according to claim 27, wherein running, by the electronic device, the acceleration script of the target quick application to obtain the first URL comprises:
obtaining, by the electronic device, device data based on the acceleration script of the target quick application, wherein the device data comprises one or more of a media access control (MAC) address of the electronic device, an engine version number of the electronic device, an Internet protocol (IP) address of the electronic device, an operating system version of the electronic device, address information of the electronic device, a network type of the electronic device, or a manufacturer brand of the electronic device; and
obtaining, by the electronic device, the first URL based on the acceleration script of the target quick application and the device data.

### Claim 34 (depends on 27)

A computer program product comprising instructions, wherein when the computer program product runs on an electronic device, the electronic device is enabled to perform the method according to claim 27.

### Claim 35 (depends on 27)

A non-transitory computer-readable storage medium, comprising instructions, wherein when the instructions are run on an electronic device, the electronic device is enabled to perform the method according to claim 27.

### Claim 36

A method, comprising:
receiving, by an application server, an application package of a quick application;
generating, by the application server, an acceleration script of the quick application based on the application package, wherein the acceleration script of the quick application is configured to be run by a first electronic device to cause the first electronic device to obtain a first uniform resource locator (URL) of data required for a first screen display of the quick application;
receiving, by the application server, a first request sent by the first electronic device, wherein the first request indicates to the application server to send the acceleration script of the quick application to the first electronic device; and
sending, by the application server, the acceleration script of the quick application to the first electronic device based on the first request.

### Claim 37 (depends on 36)

The method according to claim 36, further comprising:
receiving, by the application server, a hit result that is of the acceleration script of the quick application and that is sent by one or more second electronic devices; and
calculating, by the application server, a hit rate of the acceleration script of the quick application based on the hit result; and
wherein the method further comprises:
before sending, by the application server, the acceleration script of the quick application to the first electronic device based on the first request, determining, by the application server, that the hit rate of the acceleration script of the quick application is not less than a preset value.

### Claim 38 (depends on 36)

The method according to claim 36, wherein generating, by the application server, the acceleration script of the quick application based on the application package comprises:
parsing the application package to obtain first source code corresponding to a first screen display of the quick application;
parsing the first source code to obtain an abstract syntax tree;
injecting statistics upload code into one or more nodes of the abstract syntax tree to obtain second source code;
obtaining a processed application package based on the second source code;
running the processed application package to obtain a critical path indicated by the statistics upload code;
selecting third source code from the first source code based on the critical path; and
obtaining the acceleration script of the quick application based on the third source code.

### Claim 39

An electronic device, comprising:
one or more processors; and
a non-transitory memory; and
wherein the non-transitory memory is coupled to the one or more processors, the non-transitory memory is configured to store program code, and when the one or more processors invoke the program code, the electronic device is caused to perform the following operations:
sending a first request to an application server, wherein the first request indicates to the application server to send an acceleration script of one or more quick applications to the electronic device;
receiving the acceleration script that is of the one or more quick applications and that is sent by the application server;
detecting a first operation for a target quick application, and in response to the first operation, performing the following:
sending a second request to the application server, wherein the second request requests an application package of the target quick application; and
running an acceleration script of the target quick application to obtain a first uniform resource locator (URL), and obtaining first data from a third-party server based on the first URL, wherein the acceleration script of the target quick application is comprised in the acceleration script of the one or more quick applications;
receiving the application package that is of the target quick application and that is sent by the application server;
running the application package of the target quick application to obtain a second URL; and
when the first URL is the same as the second URL, generating and displaying a first screen of the target quick application based on the first data.

### Claim 40 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operation:
receiving instant messaging information that comprises identifiers of the one or more quick applications.

### Claim 41 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operation:
detecting a user operation performed on an icon of the one or more quick applications.

### Claim 42 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operation:
receiving entered quick application name information, wherein the entered quick application name information corresponds to the one or more quick applications.

### Claim 43 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operations:
when the first URL is different from the second URL, obtaining second data from the third-party server based on the second URL; and
generating and displaying the first screen of the target quick application based on the second data.

### Claim 44 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operation:
when the first URL is the same as the second URL, sending, to the application server, information indicating that the acceleration script of the target quick application is successfully hit; or
when the first URL is different from the second URL, sending, to the application server, information indicating that the acceleration script of the target quick application fails to be hit.

### Claim 45 (depends on 39)

The electronic device according to claim 39, wherein when the one or more processors invoke the program code, the electronic device is caused to further perform the following operations:
obtaining device data based on the acceleration script of the target quick application, wherein the device data comprises one or more of a media access control (MAC) address of the electronic device, an engine version number of the electronic device, an Internet protocol (IP) address of the electronic device, an operating system version of the electronic device, address information of the electronic device, a network type of the electronic device, or a manufacturer brand of the electronic device; and
obtaining the first URL based on the acceleration script of the target quick application and the device data.

### Claim 46

An application server, comprising:
one or more processors; and
a non-transitory memory; and
wherein the memory is coupled to the one or more processors, the memory is configured to store program code, and when the one or more processors invoke the program code, the application server is caused to perform the following operations:
receiving an application package of a quick application;
generating an acceleration script of the quick application based on the application package, wherein the acceleration script of the quick application is configured to be run by a first electronic device to cause the first electronic device to obtain a first uniform resource locator (URL) of data required for first screen display of the quick application;
receiving a first request sent by the first electronic device, wherein the first request indicates to the application server to send the acceleration script of the quick application to the first electronic device; and
sending the acceleration script of the quick application to the first electronic device based on the first request.

### Claim 47 (depends on 46)

The application server according to claim 46, wherein when the one or more processors invoke the program code, the application server is caused to further perform the following operations:
receiving a hit result that is of the acceleration script of the quick application and that is sent by one or more second electronic devices;
calculating a hit rate of the acceleration script of the quick application based on the hit result; and
determining that the hit rate of the acceleration script of the quick application is not less than a preset value.

### Claim 48 (depends on 46)

The application server according to claim 46, wherein when the one or more processors invoke the program code, the application server is caused to perform the following operations:
parsing the application package to obtain first source code corresponding to a first screen display of the quick application;
parsing the first source code to obtain an abstract syntax tree;
injecting statistics upload code into one or more nodes of the abstract syntax tree to obtain second source code;
obtaining a processed application package based on the second source code;
running the processed application package to obtain a critical path indicated by the statistics upload code;
selecting third source code from the first source code based on the critical path; and
obtaining the acceleration script of the quick application based on the third source code.
