Application package processing method and device, electronic equipment and storage medium

By downloading dock application packages from cloud servers and obtaining binary byte streams of business functions on demand, the problem of large space occupancy of Android application packages is solved, and the available space utilization of the device is improved.

CN119002978APending Publication Date: 2024-11-22CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411093459.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing Android application packages take up a lot of space, resulting in a decrease in the available space on the device.

Method used

Download the target application package from the cloud server, including the dock application package and obtain binary byte streams of business function classes to be used on demand, avoiding downloading all business function classes at once.

Benefits of technology

Save the local storage space of the device, load the required functions when meeting user needs, and improve the available space utilization of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002978A_ABST
    Figure CN119002978A_ABST
Patent Text Reader

Abstract

The invention relates to an application package processing method and device, electronic equipment and a storage medium, and the method comprises the steps: downloading a target application package from a cloud server; wherein the target application program package comprises a base application program package; obtaining a binary byte stream corresponding to the business function class to be used; and loading the binary byte stream based on a base application package to display a service function corresponding to the service function class. Through the application, the problem that the available space of the equipment is small due to the fact that the available space of the equipment is compressed because the application package occupies a large space in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing an application package, an electronic device and a storage medium. Background Art

[0002] With the development of the Internet, the smart cockpit based on the Android system has been widely popularized in actual driving vehicles, greatly enhancing the entertainment during driving. However, in the long-term use of the car, there will be a large number of cache files, resulting in the compression of available memory space, and not every business function of the application installed in the smart cockpit will be used by the vehicle user, so it is not a very desirable solution to prefabricate as many functions as possible into the smart cockpit. Moreover, in today's Android application development, a full-featured APK (Android application package) package itself occupies a relatively large space, ranging from tens of megabytes to hundreds of megabytes. If you want to carry more and richer functions, you naturally need more memory space, which leads to less available memory on the device.

[0003] There is currently no effective solution to the above-mentioned problems in the related art. Summary of the invention

[0004] The present application provides a method and device for processing an application package, an electronic device and a storage medium to solve the problem in the prior art that the application package itself occupies a large space, thereby compressing the available space of the device, resulting in less available space on the device.

[0005] In the first aspect, the present application provides a method for processing an application package, which is applied to the device side, and the method includes: downloading a target application package from a cloud server; wherein the target application package includes a base application package; obtaining a binary byte stream corresponding to a business function class to be used; and loading the binary byte stream based on the base application package to display the business function corresponding to the business function class.

[0006] Optionally, obtaining the binary byte stream corresponding to the business function class to be used includes: using the fully qualified class name corresponding to the business function class to determine whether a corresponding binary byte stream exists in the local memory of the device; if a corresponding binary byte stream exists in the local memory of the device, determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the business function class; if a corresponding binary byte stream does not exist in the local memory of the device, obtaining the corresponding binary byte stream from the cloud server.

[0007] Optionally, determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the business function class includes: comparing the binary byte stream in the device memory corresponding to the business function class with the binary byte stream in the cloud server; when the binary byte stream in the device memory corresponding to the business function class is consistent with the binary byte stream in the cloud server, determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the business function class.

[0008] Optionally, when the binary byte stream corresponding to the business function class in the device memory is inconsistent with the binary byte stream in the cloud server, the corresponding binary byte stream is obtained from the cloud server.

[0009] Optionally, the target application package also includes a configuration file of a network mapping access address, wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to a business function class, the network mapping access address includes a fully qualified class name, and obtaining a corresponding binary byte stream from the cloud server includes: determining a corresponding fully qualified class name based on the business function class; determining a corresponding network mapping access address based on the fully qualified class name; and obtaining a corresponding binary byte stream from the cloud server based on the network mapping access address.

[0010] In the second aspect, the present application provides a method for processing an application package, which is applied to a cloud server side, and the method includes: splitting the target application package to obtain a base application package and a business function class; forming a configuration file including a network mapping access address based on the binary byte stream corresponding to the business function class; wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name; the configuration file and the base application package form a target application package.

[0011] In the third aspect, the present application provides an application package processing device, which is applied to a device, and the device includes: a download module, which is used to download a target application package from a cloud server; wherein the target application package includes a base application package; an acquisition module, which is used to obtain a binary byte stream corresponding to a business function class to be used; and a first processing module, which is used to load the binary byte stream based on the base application package to display the business function corresponding to the business function class.

[0012] In a fourth aspect, the present application provides a device for processing an application package, which is applied to a cloud server, and the device includes: a splitting module, which is used to split the target application package to obtain a base application package and a business function class; a first processing module, which is used to form a configuration file including a network mapping access address based on a binary byte stream corresponding to the business function class; wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name; a second processing module, which is used to form a target application package with the configuration file and the base application package.

[0013] In a fifth aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to execute the method for processing an application package as described in any one of the embodiments of the first or second aspect above.

[0014] In a sixth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the method for processing an application package as described in any one of the embodiments of the first aspect or the second aspect above.

[0015] In the embodiment of the present application, the device downloads the target application package from the cloud server, and the target application package includes the base application package, which can meet the basic needs of the user for the application. If the user needs other functions of the application, it is necessary to obtain the binary byte stream corresponding to the business function class to be used again, so as to meet the other needs of the user for the application. It can be seen that in the embodiment of the present application, the target application downloaded by the device includes the base application package that can meet the basic needs. If other functions are required, it is necessary to obtain the corresponding binary byte stream again, and display its business functions based on the base application package to meet the needs of the user. It can be seen that in the embodiment of the present application, it is not as in the prior art that the binary byte streams corresponding to all the business function classes in the application are downloaded to the device at one time, and after the user downloads the base application package, the user obtains the binary byte stream of the corresponding business function class according to the needs, so as to save the local use space of the device, thereby solving the problem that the application package itself occupies a large space in the prior art, thereby compressing the available space of the device, resulting in less available space of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 One of the flowcharts of a method for processing an application package provided in an embodiment of the present application;

[0017] Figure 2 A second flowchart of a method for processing an application package provided in an embodiment of the present application;

[0018] Figure 3 A flowchart of a method for deploying a light application using a cloud server side provided in an embodiment of the present application;

[0019] Figure 4 A flowchart of a method for deploying a light application using a device side provided in an embodiment of the present application;

[0020] Figure 5 One of the structural schematic diagrams of a device for processing an application package provided in an embodiment of the present application;

[0021] Figure 6 A second structural diagram of a device for processing an application package provided in an embodiment of the present application;

[0022] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0025] For ease of description, spatial relative terms may be used in the text to describe the relative position or movement of an element or feature as shown in the figure relative to another element or feature, such as "inside", "outside", "inner side", "outer side", "below", "below", "above", "above", "front", "back", etc. Such spatial relative terms are intended to include different orientations of the device in use or operation in addition to the orientation depicted in the figure. For example, if the device in the figure undergoes a position flip or a change in posture or a change in motion state, then these directional indications will also change accordingly, for example: an element described as "below other elements or features" or "below other elements or features" will subsequently be oriented as "above other elements or features" or "above other elements or features". Therefore, the example term "below..." can include both upper and lower orientations. The device can be oriented otherwise (rotated 90 degrees or in other directions) and the spatial relative descriptors used in the text are interpreted accordingly.

[0026] In order to solve the problem in the prior art that the application package itself occupies a large space, thereby compressing the available space of the device, resulting in less available space on the device, the present application provides a method for processing an application package, which is applied to the device side, such as Figure 1 As shown, the steps of the method include:

[0027] Step 101, downloading a target application package from a cloud server; wherein the target application package includes a base application package;

[0028] In this regard, the cloud server splits the application into a base application package, which includes: APP application entry, first-level interface and related classes used by the first-order interface. That is, after downloading the base application package, the user can realize the basic functions of the application. If the user needs to use other functions of the application, it is necessary to obtain the binary byte stream corresponding to the business function class of other functions to meet the current user's needs.

[0029] In addition, the device in the embodiments of the present application may be a smart terminal or other terminal device, such as a mobile phone, a tablet, a smart TV, a laptop, etc.

[0030] Step 102, obtaining a binary byte stream corresponding to the service function class to be used;

[0031] The base application package in the embodiment of the present application includes the APP application entrance, the first-level interface and the related classes used in the first-order interface. In addition, the business function class to be used in the embodiment of the present application includes a secondary interface. Among them, the first-level page is the first page that the user sees after entering the website. The homepage of the APP or website is used, usually as the function navigation entrance and main content display window of the entire website. The secondary page is an in-depth page with more detailed and specific content after entering the first-level page. However, for a certain user, not all business function classes need to be used. Therefore, after the user downloads the base application package, the binary byte stream corresponding to the corresponding business function class to be used can be obtained according to demand, that is, the binary byte stream corresponding to the corresponding business function class can be loaded on demand, instead of downloading the binary byte streams corresponding to all business function classes to the local device at the beginning, thereby avoiding the binary byte streams corresponding to unnecessary business function classes from occupying the local space of the device.

[0032] It should be noted that binary byte stream is the basic unit of data transmission and processing in computers. Whether it is text, image, audio or video data, it is ultimately stored and transmitted in binary form.

[0033] Step 103: Load the binary byte stream based on the base application package to display the business function corresponding to the business function class.

[0034] Through steps 101 to 103 of the embodiment of the present application, the device downloads the target application package from the cloud server, and the target application package includes the base application package, which can meet the basic needs of the user for the application. If the user needs other functions of the application, it is necessary to obtain the binary byte stream corresponding to the business function class to be used again, so as to meet the other needs of the user for the application. It can be seen that in the embodiment of the present application, the target application downloaded by the device includes the base application package that can meet the basic needs. If other functions are required, it is necessary to obtain the corresponding binary byte stream again, and display its business functions based on the base application package to meet the needs of the user. It can be seen that in the embodiment of the present application, it is not as in the prior art that the binary byte streams corresponding to all the business function classes in the application are downloaded to the device at one time, and after the user downloads the base application package, the user obtains the binary byte stream of the corresponding business function class according to the needs, so as to save the local use space of the device, thereby solving the problem that the application package itself occupies a large space in the prior art, thereby compressing the available space of the device, resulting in less available space of the device.

[0035] In the embodiment of the present application, for the device to obtain the binary byte stream corresponding to the business function class to be used, the corresponding binary byte stream is first searched locally on the device. If the device does not have the binary byte stream corresponding to the currently required business function class locally, the corresponding binary byte stream needs to be obtained from the cloud server. Therefore, the method of obtaining the binary byte stream corresponding to the business function class to be used involved in the above step 102 in the embodiment of the present application may further include:

[0036] Step 11, using the fully qualified class name corresponding to the business function class, determine whether a corresponding binary byte stream exists in the local memory of the device;

[0037] In specific examples, a fully qualified class name is a complete class name that includes the package name and the class name, separated by a dot. For example, in Java, java.lang.String is an example of a fully qualified class name, where java.lang is the package name and String is the class name. Another example is com.csdn.test.HelloWorld, where com.csdn.test is the package name and HelloWorld is the class name. Fully qualified class names are used to clearly specify the location of a class in the code, especially when there are classes with the same name in different packages.

[0038] Step 12: if there is a corresponding binary byte stream in the local memory of the device, determine the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the service function class;

[0039] Step 13: If the corresponding binary byte stream does not exist in the local memory of the device, obtain the corresponding binary byte stream from the cloud server.

[0040] It can be seen from the above steps 11 to 13 that when obtaining the binary byte stream corresponding to the business function class to be used, it is first obtained from the local device. If it is available locally, the corresponding binary byte stream is loaded from the local device. If it is not available locally, it needs to be obtained from the cloud server. This can avoid repeatedly obtaining the binary byte stream corresponding to the same business function class from the cloud server and occupying local storage space.

[0041] In the embodiment of the present application, before using the locally stored binary byte stream as the binary byte stream corresponding to the business function class currently required by the user, it is necessary to first determine whether the locally stored binary byte stream is consistent with the binary byte stream of the cloud server to ensure that the business function display can be accurate. Therefore, the method of determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the business function class involved in the above step 12 in the embodiment of the present application can further include:

[0042] Step 21, comparing the binary byte stream corresponding to the business function class in the device memory with the binary byte stream in the cloud server;

[0043] Step 22, when the binary byte stream corresponding to the business function class in the device memory is consistent with the binary byte stream in the cloud server, the corresponding binary byte stream in the device local memory is determined as the binary byte stream corresponding to the business function class.

[0044] It can be seen that for the accuracy of the local memory of the device, it is necessary to compare it with the binary byte stream of the cloud server before loading and displaying it. It will be loaded and displayed only when they are consistent, so as to avoid loading failure or inability to use during user use. Therefore, when the binary byte stream corresponding to the business function class in the device memory is inconsistent with the binary byte stream in the cloud server, the corresponding binary byte stream is obtained from the cloud server. It can be seen that in the embodiment of the present application, it is necessary to ensure that the binary byte stream corresponding to the business function class currently required by the user is accurate. In addition, if the binary byte stream corresponding to the business function class in the device memory is inconsistent with the binary byte stream in the cloud server, and the corresponding binary byte stream needs to be obtained from the cloud server, the binary byte stream stored locally on the device can be deleted, which can further increase the local storage space.

[0045] Furthermore, in the embodiment of the present application, the target application package also includes a configuration file of a network mapping access address, and the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name. Based on this, the method of obtaining the corresponding binary byte stream from the cloud server involved in the above step 13 may further include:

[0046] Step 31, determining the corresponding fully qualified class name based on the business function class;

[0047] Step 32, determining the corresponding network mapping access address based on the fully qualified class name;

[0048] Step 33, obtaining a corresponding binary byte stream from the cloud server based on the network mapping access address.

[0049] It can be seen that in the embodiment of the present application, after the cloud server splits the application package, it will form a new application package with the split base application package and the configuration file including the network mapping access address. That is, when the device downloads the target application package, it will download the base application package and the configuration file to the local computer. If the user needs other business functions, the corresponding network mapping access address can be determined based on the fully qualified class name corresponding to the business function class, and then the corresponding binary byte stream can be obtained from the cloud server based on the network mapping access address. In the specific example, the network mapping access address can be: https: / / 10.10.10.1:80 / com.example.test / com.example.test.TestActivity.class. Among them, https: / / 10.10.10.1:80 / is the server address, com.example.test is the application package name, and com.example.test.TestActivity.class is the fully qualified class name.

[0050] The above is an explanation of the present application from the device side. The following is an explanation of the present application from the cloud server side. The present application embodiment provides a method for processing an application package, which is applied to the cloud server side. Figure 2 As shown, the steps of the method include:

[0051] Step 201, split the target application package to obtain a base application package and a business function class;

[0052] Step 202, forming a configuration file including a network mapping access address based on the binary byte stream corresponding to the business function class; wherein the configuration file of the network mapping access address includes the network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name;

[0053] Step 203: The configuration file and the base application package are combined to form a target application package.

[0054] It can be seen that in the embodiment of the present application, the application package is split on the cloud server side to obtain the base application package, and then a one-to-one corresponding network mapping access address configuration file is formed for the binary byte stream files of the remaining business classes that are split out, and the configuration file and the base application package are combined to form a new target application package. The user downloads the target application package based on the device, and then the base application package and the configuration file can be obtained. For the device, there is no need to download the entire application package to the local device as in the prior art, but first download the base application package and then load the binary byte streams corresponding to other business function classes according to demand, so that after downloading the target application package, less storage space can be occupied compared to the prior art.

[0055] The present application is explained below in conjunction with the specific implementation of the embodiment of the present application. The specific implementation takes an Android application as an example. The specific implementation provides a method for deploying and using a light application, such as Figure 3 As shown, for the cloud server side, the method includes:

[0056] Step 301: After receiving the application APK release, the cloud server analyzes and splits the APK file;

[0057] Step 302: The cloud server splits out a base APK file, wherein the base APK file mainly includes the APP application entry, the first-level interface, and related classes used by the first-level interface;

[0058] Step 302, the cloud server generates a one-to-one corresponding network mapping access address configuration file for the binary byte stream files of the remaining service classes;

[0059] Step 303: The mapped service class network address configuration file and the base APK are combined to form a new APK file, which is published to the application store for download.

[0060] In a specific example, the network address of the business class may be: [server address] / [application package name] / [fully qualified class name], for example: https: / / 10.10.10.1:80 / com.example.test / com.example.test.TestActivity.class.

[0061] For the device side, such as Figure 4 As shown, the steps of the method include:

[0062] Step 401, the device downloads the base APK;

[0063] Step 402, according to the class loading mechanism, use the fully qualified class name of a class to obtain the binary byte stream of the relevant business class in the local memory;

[0064] Step 403: If the relevant business binary stream is found locally, a verification request is made to the cloud server;

[0065] It should be noted that the request is verified to the cloud server to ensure the correctness of the class and facilitate the rapid update and upgrade of the service so that the device can use the latest functional services in a timely manner;

[0066] Step 404, obtaining a binary byte stream of a related service class from a cloud server;

[0067] Step 405: Use the class loader to load and obtain the business class binary byte stream to display the corresponding business function.

[0068] It can be seen that in the embodiment of the present application, the problem of APK installation memory usage is mainly solved from two aspects:

[0069] 1) From the application market to the user's device, an Android application has unified functions under the same version. There will be certain differences as the user logs in with a personal account and uses it daily, but most of the business functions provided by the APK are not customized. Therefore, consider installing only a basic APK base in the cockpit or mobile device to reserve an application location in the Android system and provide a user entrance, which fundamentally reduces the memory size occupied by the APK installation itself and improves the loading and startup speed of the application.

[0070] 2) In the daily use of the application, various business function interfaces will be used. From the perspective of the program, they are all composed of business classes. According to the loading of the Java class, the JVM will first obtain the fully qualified name of a class to obtain the binary byte stream of the class, and then perform the subsequent connection and initialization process. Here, because we only pre-installed a base APK, the binary byte stream required by the JVM is not deployed locally, and it is necessary to obtain the relevant business binary byte stream from the cloud, that is, only load the binary byte stream of the business required or associated class, without pre-setting all the business function class binary stream data that the user does not use in the memory, so as to achieve on-demand loading.

[0071] Corresponding to the above-mentioned method embodiments of the present application, the following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application.

[0072] Corresponding to the above Figure 1 The present application embodiment also provides a device for processing an application package, which is applied to a device such as Figure 5 As shown, the device comprises:

[0073] A download module 502, used to download a target application package from a cloud server; wherein the target application package includes a base application package;

[0074] An acquisition module 504 is used to acquire a binary byte stream corresponding to the service function class to be used;

[0075] The first processing module 506 is used to load the binary byte stream based on the base application package to display the business function corresponding to the business function class.

[0076] It can be seen that the device downloads the target application package from the cloud server, and the target application package includes the base application package, which can meet the basic needs of the user for the application. If the user needs other functions of the application, it is necessary to obtain the binary byte stream corresponding to the business function class to be used again, so as to meet the user's other needs for the application. It can be seen that in the embodiment of the present application, the target application downloaded by the device includes a base application package that can meet the basic needs. If other functions are required, it is necessary to obtain the corresponding binary byte stream again, and display its business functions based on the base application package to meet the needs of the user. It can be seen that in the embodiment of the present application, it is not as in the prior art that the binary byte streams corresponding to all business function classes in the application are downloaded to the device at one time, and after the user downloads the base application package, the user obtains the binary byte stream of the corresponding business function class according to the needs, so as to save the local use space of the device, thereby solving the problem that the application package itself occupies a large space in the prior art, thereby compressing the available space of the device, resulting in less available space of the device.

[0077] In an optional implementation manner of the embodiment of the present application, the acquisition module in the embodiment of the present application may further include: a first determination unit, used to use the fully qualified class name corresponding to the business function class to determine whether there is a corresponding binary byte stream in the local memory of the device; a second determination unit, used to determine the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the business function class when the corresponding binary byte stream exists in the local memory of the device; an acquisition unit, used to obtain the corresponding binary byte stream from the cloud server when the corresponding binary byte stream does not exist in the local memory of the device.

[0078] In an optional implementation manner of an embodiment of the present application, the second determination unit in the embodiment of the present application may include: a comparison subunit, used to compare the binary byte stream corresponding to the business function class in the device memory with the binary byte stream in the cloud server; a first determination subunit, used to determine the corresponding binary byte stream in the device local memory as the binary byte stream corresponding to the business function class when the binary byte stream corresponding to the business function class in the device memory is consistent with the binary byte stream in the cloud server.

[0079] In an optional implementation manner of the embodiment of the present application, the acquisition unit in the embodiment of the present application is also used to obtain the corresponding binary byte stream from the cloud server when the binary byte stream corresponding to the business function class in the device memory is inconsistent with the binary byte stream in the cloud server.

[0080] In an optional implementation manner of an embodiment of the present application, the target application package in the embodiment of the present application also includes a configuration file of a network mapping access address, wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name. Based on this, the acquisition unit in the embodiment of the present application may further include: a second determination subunit, used to determine the corresponding fully qualified class name based on the business function class; a third determination subunit, used to determine the corresponding network mapping access address based on the fully qualified class name; and an acquisition subunit, used to obtain a corresponding binary byte stream from a cloud server based on the network mapping access address.

[0081] Corresponding to the above Figure 2 In an embodiment of the present application, a device for processing an application package is provided, and the device is applied to a cloud server, such as Figure 6 The device shown may include:

[0082] A splitting module 602 is used to split the target application package to obtain a base application package and a business function class;

[0083] The first processing module 604 is used to form a configuration file including a network mapping access address based on the binary byte stream corresponding to the business function class; wherein the configuration file of the network mapping access address includes the network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name;

[0084] The second processing module 606 is used to form a target application package by combining the configuration file and the base application package.

[0085] It can be seen that in the embodiment of the present application, the application package is split on the cloud server side to obtain the base application package, and then a one-to-one corresponding network mapping access address configuration file is formed for the binary byte stream files of the remaining business classes that are split out, and the configuration file and the base application package are combined to form a new target application package. The user downloads the target application package based on the device, and then the base application package and the configuration file can be obtained. For the device, there is no need to download the entire application package to the local device as in the prior art, but first download the base application package and then load the binary byte streams corresponding to other business function classes according to demand, so that after downloading the target application package, less storage space can be occupied compared to the prior art.

[0086] like Figure 7 As shown, an embodiment of the present application provides an electronic device, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0087] Memory 703, used for storing computer programs;

[0088] In one embodiment of the present application, the processor 701, when used to execute the program stored in the memory 703, implements the steps of a method for processing an application package provided by any of the aforementioned method embodiments, and its role is similar and will not be repeated here.

[0089] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for processing an application package provided in any of the aforementioned method embodiments are implemented.

[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0092] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0093] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for processing an application package, characterized in that: Applied to the device side, the method includes: Downloading a target application package from a cloud server; wherein the target application package includes a base application package; Get the binary byte stream corresponding to the business function class to be used; The binary byte stream is loaded based on the base application package to display the business function corresponding to the business function class.

2. The method according to claim 1, characterized in that Obtaining the binary byte stream corresponding to the business function class to be used includes: Using the fully qualified class name corresponding to the business function class, determining whether a corresponding binary byte stream exists in the local memory of the device; In the case where a corresponding binary byte stream exists in the local memory of the device, determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the service function class; When the corresponding binary byte stream does not exist in the local memory of the device, the corresponding binary byte stream is obtained from the cloud server.

3. The method according to claim 2, characterized in that Determining the corresponding binary byte stream in the local memory of the device as the binary byte stream corresponding to the service function class includes: Compare the binary byte stream corresponding to the business function class in the device memory with the binary byte stream in the cloud server; When the binary byte stream corresponding to the business function class in the device memory is consistent with the binary byte stream in the cloud server, the corresponding binary byte stream in the device local memory is determined as the binary byte stream corresponding to the business function class.

4. The method according to claim 3, characterized in that The method further comprises: When the binary byte stream corresponding to the business function class in the device memory is inconsistent with the binary byte stream in the cloud server, the corresponding binary byte stream is obtained from the cloud server.

5. The method according to claim 2 or 4, characterized in that: The target application package also includes a configuration file of a network mapping access address, wherein the configuration file of the network mapping access address includes a network mapping access address claim corresponding to the business function class. The network mapping access address includes a fully qualified class name, and obtaining a corresponding binary byte stream from the cloud server includes: Determine the fully qualified class name corresponding to the business function class; Determine a corresponding network mapping access address based on the fully qualified class name; Obtain a corresponding binary byte stream from the cloud server based on the network mapping access address.

6. A method for processing an application package, characterized in that: Applied to the cloud server side, the method includes: Split the target application package to obtain a base application package and a business function class; Based on the binary byte stream corresponding to the business function class, a configuration file including a network mapping access address is formed; wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name; The configuration file and the base application package form a target application package.

7. A device for processing an application package, characterized in that: Applied to equipment, the device comprises: A download module, used to download a target application package from a cloud server; wherein the target application package includes a base application package; An acquisition module, used to acquire a binary byte stream corresponding to the business function class to be used; The first processing module is used to load the binary byte stream based on the base application package to display the business function corresponding to the business function class.

8. A device for processing an application package, characterized in that: Applied to a cloud server, the device includes: A splitting module is used to split the target application package to obtain a base application package and a business function class; A first processing module, configured to form a configuration file including a network mapping access address based on a binary byte stream corresponding to the business function class; wherein the configuration file of the network mapping access address includes a network mapping access address corresponding to the business function class, and the network mapping access address includes a fully qualified class name; The second processing module is used to form a target application package by combining the configuration file and the base application package.

9. An electronic device, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to execute the application package processing method described in any one of claims 1 to 5, or the application package processing method described in claim 6.

10. A computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the method for processing an application package according to any one of claims 1 to 5, or the method for processing an application package according to claim 6.