IP Library Granted Patent US 12,001,824
Granted Patent B2
US 12,001,824 · App. 17/418,115 · Granted Jun 4, 2024

Application package splitting and reassembly method and apparatus, and application package running method and apparatus

Inventors: Xianjun Zou (Shenzhen, CN); Xingnan Wang (Shenzhen, CN)
Assignee: PETAL CLOUD TECHNOLOGY CO., LTD.
G06F8/61G06F9/44505H04L9/3236
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 12,001,824
App. No.
17/418,115
Granted
Jun 4, 2024
Kind
B2
Abstract

An application package splitting and reassembly method includes splitting a first application package into a main package and at least one sub-package; storing the main package and the at least one sub-package in a first file; and generating a second application package corresponding to the application, where the second application package includes a header and the first file. After receiving an original application package, a server automatically performs splitting and reassembly on the original application package to generate a complete new application package.

Claims (36)

1. A computer-implemented method, comprising:

receiving a first application package corresponding to an application;

splitting the first application package into a main package and a sub-package, wherein the main package comprises a first page of the main package, and wherein the sub-package comprises a second page of the sub-package;

storing the main package and the sub-package in a first file;

generating a second application package corresponding to the application, wherein the second application package comprises a header and the first file, and wherein the header comprises a first mapping relationship between the main package and the first page of the main package, a second mapping relationship between the sub-package and the second page of the sub-package, a first offset of the main package within the first file, a first size of the main package within the first file, a second offset of the sub-package within the first file, and a second size of the sub-package within the first file;

performing a hash operation on the main package and the sub-package, to generate a first abstract list of the main package for the main package and a second abstract list of the sub-package for the sub-package, wherein the first abstract list verifies the main package, wherein the second abstract list verifies the sub-package, and wherein generating the second application package comprises writing the first abstract list and the second abstract list into the header and signing the header; and

synchronizing, to a send port, a download address of the second application package and package information, wherein the package information comprises the first mapping relationship, the second mapping relationship, the first offset, the first size, the second offset, and the second size.

2. The computer-implemented method of claim 1 , wherein the main package comprises a meta-information file, and wherein the meta-information file runs the main package and the sub-package.

3. The computer-implemented method of claim 1 , wherein the sub-package comprises a first sub-package, wherein the first sub-package comprises a configuration attribute, and wherein the configuration attribute declares whether the first sub-package depends on the main package for running.

4. The computer-implemented method of claim 3 , wherein the main package comprises a capability open-up set, and wherein the capability open-up set obtains a meta-information file by the sub-package that depends on the main package.

5. The computer-implemented method of claim 1 , wherein the first application package corresponds to a chat application.

6. The computer-implemented method of claim 1 , wherein the first application package corresponds to an ANDROID operating system.

7. The computer-implemented method of claim 1 , wherein the computer-implemented method is implemented by a server, and wherein the server comprises a content management system.

8. The computer-implemented method of claim 1 , wherein the computer-implemented method is implemented by a server, and wherein the server comprises a package process server.

9. The computer-implemented method of claim 1 , wherein the computer-implemented method is implemented by a server, and wherein the server comprises a content delivery network.

10. The computer-implemented method of claim 1 , wherein the main package comprises a first file size that is greater than a second file size of the sub-package.

11. An apparatus, comprising:

a memory configured to store instructions; and

one or more processors coupled to the memory and configured to execute the instructions to:

receive a first application package corresponding to an application;

split the first application package into a main package and a sub-package, wherein the main package comprises a first page of the main package, and wherein the sub-package comprises a second page of the sub-package;

store the main package and the sub-package in a first file;

generate a second application package corresponding to the application, wherein the second application package comprises a header and the first file, and wherein the header comprises a first mapping relationship between the main package and the first page of the main package, a second mapping relationship between the sub-package and the second page of the sub-package, a first offset of the main package within the first file, a first size of the main package within the first file, a second offset of the sub-package within the first file, and a second size of the sub-package within the first file;

perform a hash operation on the main package and the sub-package, to generate a first abstract list of the main package for the main package and a second abstract list of the sub-package for the sub-package, wherein the first abstract list verifies the main package, wherein the second abstract list verifies the sub-package, and wherein generating the second application package comprises writing the first abstract list and the second abstract list into the header and signing the header; and

synchronize, to a send port, a download address of the second application package and package information, wherein the package information comprises the first mapping relationship, the second mapping relationship, the first offset, the first size, the second offset, and the second size.

12. The apparatus of claim 11 , wherein the main package comprises a meta-information file, and wherein the meta-information file runs the main package and the sub-package.

13. The apparatus of claim 11 , wherein the sub-package comprises a first sub-package, wherein the first sub-package comprises a configuration attribute, and wherein the configuration attribute declares whether the first sub-package depends on the main package for running.

14. The apparatus of claim 13 , wherein the main package comprises a capability open-up set, and wherein the capability open-up set obtains a meta-information file by the sub-package that depends on the main package.

15. The apparatus of claim 11 , wherein the first application package corresponds to a chat application.

16. A computer program product comprising instructions stored on a non-transitory computer-readable medium that, when execute by one or more processors, cause an apparatus to:

receive a first application package corresponding to an application;

split the first application package into a main package and a sub-package, wherein the main package comprises a first page of the main package, and wherein the sub-package comprises a second page of the sub-package;

store the main package and the sub-package in a first file;

generate a second application package corresponding to the application, wherein the second application package comprises a header and the first file, and wherein the header comprises a first mapping relationship between the main package and the first page of the main package, a second mapping relationship between the sub-package and the second page of the sub-package, a first offset of the main package within the first file, a first size of the main package within the first file, a second offset of the sub-package within the first file, and a second size of the sub-package within the first file;

perform a hash operation on the main package and the sub-package, to generate a first abstract list of the main package for the main package and a second abstract list of the sub-package for the sub-package, wherein the first abstract list verifies the main package, wherein the second abstract list verifies the sub-package, and wherein generating the second application package comprises writing the first abstract list and the second abstract list into the header and signing the header; and

synchronize, to a send port, a download address of the second application package and package information, wherein the package information comprises the first mapping relationship, the second mapping relationship, the first offset, the first size, the second offset, and the second size.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 28, 2022
From: HUAWEI DEVICE CO., LTD.
To: PETAL CLOUD TECHNOLOGY CO., LTD.
Reel/Frame 059766/0478 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 14, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 059591/0778 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 1, 2021
From: ZOU, XIANJUN; WANG, XINGNAN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 057980/0852 →
Priority Claims (1)
CN 201811595300.3 · Dec 25, 2018 · national
Continuity (1)
Related Publication 20220107796A1 · Apr 7, 2022