Application package splitting and reassembly method and apparatus, and application package running method and apparatus
AssigneePetal Cloud Technology Co., Ltd.
InventorsXianjun Zou, Xingnan Wang
Life of this patent
Estimating the term…
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.
Claims16
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.
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.
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.
Dependencies are inferred from the claim text.