Application reorganization method and apparatus, computer device, and storage medium
By splitting the installation package and using the reorganization judgment interface and loading path to dynamically load application resource information, the problem of implementing a full-function application under limited memory conditions is solved, improving the accuracy and efficiency of the application and reducing costs.
Patent Information
- Application Number
- CN202211555460.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2042-12-06
AI Technical Summary
Existing technologies require a large memory footprint to ensure full functionality during application installation, leading to increased download time and data costs. How can we achieve full functionality in applications with a smaller memory footprint?
By splitting the installation package and utilizing the reorganization judgment interface, download address, and loading path, application resource information is dynamically loaded to achieve application package reorganization, ensuring the target application has complete functionality.
It improves the accuracy and efficiency of target applications and reduces installation, operation, and maintenance costs.
Smart Images

Figure CN116166417B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an application reconfiguration method, apparatus, computer device, and storage medium. Background Technology
[0002] In recent years, mobile applications have become increasingly rich in content and visually appealing, resulting in larger installation packages and higher download times and data costs for users. Therefore, reducing the size of the installation package can decrease the cost of user experience.
[0003] Currently, the common practice is to separate the header installation package from the application. During the installation and execution of this header package, the remaining files are downloaded simultaneously, ensuring the application has full functionality. However, existing methods require the application to be running before this separation can be completed, and to ensure full functionality, the header installation package must still retain sufficient application resource information. Therefore, how to accurately obtain a fully functional application using only a smaller installation package is the problem this disclosure aims to solve. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the accuracy of obtaining a fully functional application by addressing the aforementioned technical problems.
[0005] Firstly, this application provides an application reorganization method. Performed by the client, it includes:
[0006] Obtain a split installation package and install the initial application using the split installation package; the split installation package includes a reorganization judgment interface, a download address, a download startup interface, and a loading path;
[0007] The initial application is launched, and the initial application is subjected to package body reorganization detection through the reorganization judgment interface to obtain a first detection result;
[0008] When the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download launch interface;
[0009] The application resource information is loaded according to the loading path to obtain the loading result. The loading result and the initial application are combined to obtain the reorganized target application. The target application is a program that implements full functionality.
[0010] In one embodiment, before obtaining the split installation package, the method further includes: obtaining the application to be installed and the application configuration file through a server; the application configuration file includes multiple functional interfaces; the multiple functional interfaces include a reorganization judgment interface; performing package reorganization detection on the application to be installed through the server and based on the reorganization judgment interface to obtain a second detection result; determining the target application to be installed corresponding to the application to be installed through the server and based on the second detection result; splitting the target application to be installed into application resource information and a split installation package through the server, storing the application resource information in the cloud, and sending the split installation package to the client.
[0011] In one embodiment, the functional interface further includes an initialization interface and a download launch interface; determining the target application to be installed corresponding to the application to be installed based on the second detection result includes: when the second detection result is "not reassembled", determining the application resource information to be generated corresponding to the application to be installed; the application resource information to be generated includes at least application parameters, application resources, and application dynamic libraries; setting a download address associated with the application resource information to be generated through the initialization interface; the download address corresponds to an address in the cloud; obtaining the application resource information through the download address and the download launch interface; and obtaining the target application to be installed based on the application resource information, the application to be installed, and the application configuration file.
[0012] In one embodiment, the functional interface further includes a path setting interface; obtaining the target application to be installed based on the application resource information, the application to be installed, and the application configuration file includes: setting the loading path of the application resource information through the path setting interface; taking the location pointed to by the loading path as the target location, and placing the application resource information at the target location to obtain a placement result; and combining the placement result, the application to be installed, and the application configuration file to obtain the target application to be installed.
[0013] In one embodiment, splitting the target application to be installed into application resource information and a split installation package includes: removing application resource information from the target application to be installed to obtain a remaining file containing the application to be installed and the application configuration file; obtaining installation package resource information; the installation package resource information includes at least installation package resources and installation package dynamic libraries; and packaging the remaining file and the installation package resource information to obtain a split installation package.
[0014] In one embodiment, determining the target application to be installed corresponding to the application to be installed based on the second detection result includes: when the second detection result indicates that the application to be installed has been reassembled, using the application to be installed as the target application to be installed.
[0015] In one embodiment, loading the application resource information according to the loading path to obtain a loading result includes: determining the application type corresponding to the application resource information and the field information in the application type; calling the field information and loading the application resource information corresponding to the loading path to obtain a loading result.
[0016] In one embodiment, the initial application is an initial game application; the method further includes: determining the operating mode of the initial game application based on the first detection result; the operating mode includes a local game mode and a cloud game mode.
[0017] Secondly, this application also provides an application reorganization apparatus. The apparatus includes:
[0018] The installation package acquisition module is used to acquire split installation packages and install the initial application through the split installation packages; the split installation packages include a reorganization judgment interface, a download address, a download startup interface, and a loading path;
[0019] An application startup module is used to launch the initial application and perform package reorganization detection on the initial application through the reorganization judgment interface to obtain a first detection result; when the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download startup interface.
[0020] The information loading module is used to load the application resource information according to the loading path, obtain the loading result, and combine the loading result with the initial application to obtain the reorganized target application; the target application is a program that implements full functionality.
[0021] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0022] Obtain a split installation package and install the initial application using the split installation package; the split installation package includes a reorganization judgment interface, a download address, a download startup interface, and a loading path;
[0023] The initial application is launched, and the initial application is subjected to package body reorganization detection through the reorganization judgment interface to obtain a first detection result;
[0024] When the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download launch interface;
[0025] The application resource information is loaded according to the loading path to obtain the loading result. The loading result and the initial application are combined to obtain the reorganized target application. The target application is a program that implements full functionality.
[0026] Fourthly, this application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program performs the following steps:
[0027] Obtain a split installation package and install the initial application using the split installation package; the split installation package includes a reorganization judgment interface, a download address, a download startup interface, and a loading path;
[0028] The initial application is launched, and the initial application is subjected to package body reorganization detection through the reorganization judgment interface to obtain a first detection result;
[0029] When the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download launch interface;
[0030] The application resource information is loaded according to the loading path to obtain the loading result. The loading result and the initial application are combined to obtain the reorganized target application. The target application is a program that implements full functionality.
[0031] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0032] Obtain a split installation package and install the initial application using the split installation package; the split installation package includes a reorganization judgment interface, a download address, a download startup interface, and a loading path;
[0033] The initial application is launched, and the initial application is subjected to package body reorganization detection through the reorganization judgment interface to obtain a first detection result;
[0034] When the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download launch interface;
[0035] The application resource information is loaded according to the loading path to obtain the loading result. The loading result and the initial application are combined to obtain the reorganized target application. The target application is a program that implements full functionality.
[0036] The aforementioned application reassembly method, apparatus, computer device, storage medium, and computer program product obtain a split installation package and then install the initial application using the split installation package. The split installation package includes a reassembly judgment interface, a download address, a download startup interface, and a loading path. When the initial application is started, the reassembly judgment interface performs package body reassembly detection on the initial application to obtain a first detection result. When the first detection result indicates that the initial application is a program that implements only partial functions, the download startup interface obtains the application resource information corresponding to the download address, allowing the application resource information to be loaded according to the loading path, thereby obtaining a loading result. Thus, by combining the loading result and the initial application, a reassembled target application can be obtained. Since the split installation package of this application does not contain application resource information that occupies a large amount of memory, compared to traditional methods that still require sufficient application resource information to be retained in the header installation package, this application only uses a split installation package with a small memory footprint. This allows for the dynamic loading of application resource information to obtain a target application with complete functions, improving the accuracy and efficiency of determining the target application and reducing the cost of installing, running, and maintaining the application. Attached Figure Description
[0037] Figure 1 This is an application environment diagram of the application reorganization method in one embodiment;
[0038] Figure 2 This is a flowchart illustrating an application reorganization method in one embodiment;
[0039] Figure 3 This is a flowchart illustrating the process of splitting a target application to be installed in one embodiment;
[0040] Figure 4 This is a structural block diagram of an application reassembly device in one embodiment;
[0041] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0043] The application reorganization method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, client 102 communicates with cloud 106 via a network, and server 104 communicates with cloud 106 via a network. A data storage system can store data that cloud 106 needs to process. The data storage system can be integrated on cloud 106 or placed on other network servers. Client 102 is used to obtain the split installation package provided by server 104 and install the initial application through the split installation package; it starts the initial application and performs package body reorganization detection on the initial application through a reorganization judgment interface to obtain a first detection result. Client 102 is also used to obtain the application resource information corresponding to the download address through a download startup interface when the first detection result indicates that the initial application is a program that implements partial functions; it loads the application resource information according to the loading path to obtain the loading result, and combines the loading result and the initial application to obtain the reorganized target application, enabling client 102 to run the target application with full functionality. Client 102 and server 104 can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. Cloud-based 106 can be implemented using a dedicated server or a server cluster consisting of multiple servers.
[0044] In one embodiment, such as Figure 2 As shown, an application reorganization method is provided, which is applied to... Figure 1 Taking the client in [the context of the Chinese client] as an example, the steps include:
[0045] Step 202: Obtain the split installation package and install the initial application using the split installation package.
[0046] The split installation package includes a reorganization judgment interface, download address, download launch interface, and loading path. The split installation package can be an Android-based installation package file format, such as APK format. It integrates functional interfaces provided by a software development kit (SDK), as well as corresponding installation package resource information. An SDK can be considered a software delivery method; it packages the complete software code and resources of the initial application and integrates them when delivering the packaged file to another party.
[0047] Specifically, the initial application, also known as the initial APP, includes associated installation package information within the split installation package. When the client responds to the user's installation request, it can use this installation package information to complete the initial installation of the initial application. After the initial application is installed, the client can launch it and, during the initial run, invoke some of its functions.
[0048] In one embodiment, the APK format split installation package occupies only tens of megabytes of memory.
[0049] Step 204: Start the initial application and perform package reorganization detection on the initial application through the reorganization judgment interface to obtain the first detection result.
[0050] Specifically, the reassembly judgment interface can be determined by the functional interfaces provided by the software development kit (SDK). When the client starts the initial application, it can call the reassembly judgment interface provided by the SSD to perform package reassembly detection on the initial application, that is, to determine whether the initial application has completed package assembly and obtain the first detection result. If the initial application has completed package assembly, meaning the first detection result indicates that the initial application is a program that implements all functions, the client can continue to respond to user operations until all functions within the initial application are executed.
[0051] In one embodiment, the initial application, which implements some of the functionality, corresponds to the target application, which implements the full functionality, in the client. Before running the target application, the target application is pre-splitted to extract most of its content, ensuring that the resulting split installation package is as small as possible. After the initial application is installed using the split installation package, it needs to be reassembled so that the initial application can dynamically load the content split from the target application when running on the client, thus achieving the same running effect as the target application without splitting its package. Dynamic loading in the Android system means that the loaded objects are not pre-packaged in the same installation package file, but are obtained from external sources during application runtime.
[0052] Step 206: When the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download startup interface.
[0053] Specifically, the download launch interface and download address can be determined by the functional interfaces provided by the software development kit (SDK). The download address is pre-set through the initialization interface within the functional interfaces. When the first detection result indicates that the initial application is only partially functional, meaning the initial application is not fully packaged, the client needs to call the download launch interface and retrieve the application resource information stored in the cloud based on the download address.
[0054] In one embodiment, when the initial application is an initial game application, the application resource information is game resource information. This game resource information includes at least cloud gaming parameters, game resources, and game dynamic libraries; game resources may include materials used in game operation, such as 3D models, 3D textures, audio and video files, etc.
[0055] In one embodiment, when the initial application is an initial game application, and the initial game application is launched and running, the client can determine the running mode of the initial game application based on the first detection result. When the first detection result indicates that the initial game application is a program that implements all functions, the client determines the running mode to be the local game mode, that is, directly loading the game resource information pre-stored in the client's local database.
[0056] In one embodiment, when the first detection result indicates that the initial game application is a program that performs some functions, the user can enter cloud gaming mode and play some functions of the game. Here, cloud gaming means that the game runs in the cloud, and the cloud renders the game scene as a video and audio stream, which is then transmitted to the player's client via the network. Therefore, the initial game application installed on the client does not need to have powerful graphics computing and data processing capabilities; it only needs to have basic streaming media playback capabilities and the ability to send instructions to the cloud in response to user input.
[0057] Step 208: Load the application resource information according to the loading path, obtain the loading result, and combine the loading result with the initial application to obtain the reorganized target application.
[0058] The target application is the program that implements the full functionality. The loading path can be implemented using Java reflection.
[0059] In one embodiment, the application resource information is loaded according to the loading path to obtain the loading result, including: determining the application type corresponding to the application resource information and the field information in the application type; calling the field information and loading the application resource information corresponding to the loading path to obtain the loading result.
[0060] Specifically, the client uses Java reflection to determine the field information in the application type corresponding to the application resource information. For example, if the application type is an Android system resource management class, the field information is a hidden method field in the resource management class. By calling this field information, the client can load the application resource information according to the loading path, thus allowing the client to use the downloaded application resource information. Once the loading result indicates that the client has used the application resource information, it can be packaged with the initial application to obtain the reassembled target application.
[0061] In the aforementioned application reorganization method, a split installation package is obtained, and then the initial application is installed using the split installation package. The split installation package includes a reorganization judgment interface, a download address, a download startup interface, and a loading path. When the initial application is launched, the reorganization judgment interface can be used to perform package body reorganization detection on the initial application, obtaining a first detection result. When the first detection result indicates that the initial application is a program that implements only partial functions, the application resource information corresponding to the download address can be obtained through the download startup interface. This allows the application resource information to be loaded according to the loading path, thus obtaining a loading result. By combining the loading result and the initial application, the reorganized target application can be obtained. Since the split installation package of this application does not contain application resource information that occupies a large amount of memory, compared to the traditional method where the header installation package still needs to retain sufficient application resource information, this application only uses a split installation package with a small memory footprint. This allows for the dynamic loading of application resource information to obtain a target application with complete functions, improving the accuracy and efficiency of determining the target application and reducing the cost of installing, running, and maintaining the application.
[0062] In one embodiment, such as Figure 3 As shown, Figure 3 This is a flowchart illustrating the process of splitting the target application to be installed; before obtaining the split installation package, the following steps are also included:
[0063] Step S302: Obtain the application to be installed and its configuration file from the server.
[0064] The application configuration file includes multiple functional interfaces, including a reorganization judgment interface. The application configuration file is also the file corresponding to a software development kit, such as an SDK file.
[0065] Specifically, on the server side, the application to be installed that implements some functions corresponds to the target application to be installed that implements the full functions. When the server obtains the application to be installed and the application configuration file, it can integrate the application configuration file and call multiple functional interfaces in the application configuration file during the startup of the application to be installed.
[0066] In one embodiment, the server responds to the user's settings operation on the application configuration file, that is, sets the functions corresponding to each of the multiple function interfaces.
[0067] Step S304: The application to be installed is reassembled by the server based on the reassembly judgment interface to obtain the second detection result.
[0068] The specific implementation process of performing package reorganization detection on the application to be installed based on the reorganization judgment interface can be found in step 204, which describes the specific implementation process of performing package reorganization detection on the initial application through the reorganization judgment interface. This application will not repeat the details here.
[0069] Step S306: Through the server and based on the second detection result, determine the target application to be installed corresponding to the application to be installed.
[0070] In one embodiment, determining the target application to be installed based on the second detection result includes: when the second detection result is "not reassembled", determining the application resource information to be generated corresponding to the application to be installed; setting the download address associated with the application resource information to be generated through an initialization interface; obtaining the application resource information through the download address and the download launch interface; and obtaining the target application to be installed based on the application resource information, the application to be installed, and the application configuration file.
[0071] The functional interfaces include an initialization interface and a download and startup interface; the application resource information to be generated includes at least application parameters, application resources, and application dynamic libraries; the download address corresponds to the address in the cloud.
[0072] Specifically, when the server determines that the second detection result is "not reassembled," meaning the application to be installed is a program that only partially implements its functions, it needs to configure the application to obtain the application resource information to be generated corresponding to the application to be installed. This application resource information can be pre-stored in the cloud. The server can set the download address associated with the application resource information to be generated by calling the initialization interface, and then download the relevant resources from the cloud by calling the download start interface.
[0073] The application resource information corresponding to the download address is obtained. Therefore, by combining the application resource information, the application to be installed, and the application configuration file, server 0 can obtain a target application with complete functionality.
[0074] In one embodiment, determining the target application to be installed based on the second detection result includes: when the second detection result indicates that the application to be installed has been reassembled, using the application to be installed as the target application to be installed.
[0075] 5. When the server determines that the second detection result is that the application to be installed has been reassembled, that is, the application to be installed is a program that implements all functions, the application to be installed can be directly split.
[0076] Step S308: The target application to be installed is split into application resource information and split installation packages by the server, the application resource information is stored in the cloud, and the split installation packages are sent to the client.
[0077] Among them, application resource information is a relatively important piece of information that occupies a large amount of memory, usually several hundred megabytes, to ensure the full functionality of the target application to be installed during runtime.
[0078] In one embodiment, splitting the target application to be installed into application resource information and a split installation package includes: removing application resource information from the target application to be installed to obtain a remaining file containing the application to be installed and the application configuration file; obtaining installation package resource information; and packaging the remaining file and the installation package resource information to obtain a split installation package.
[0079] 5. Among these, the installation package resource information includes at least the installation package resources and the installation package dynamic libraries. The installation package resource information represents the information associated with the application configuration file, that is, the resources and dynamic libraries associated with the SDK.
[0080] Specifically, the server removes application resource information from the target application to be installed, obtaining a remaining file containing the application to be installed and its configuration files. This removed application resource information is then packaged and sent to the cloud for storage, allowing the client to dynamically load the removed application resource information from the cloud when running the relevant application. The server also obtains installation package resource information, which is used to ensure the invocation of multiple functional interfaces. The remaining files and the installation package resource information are then packaged together to obtain a split installation package that can be distributed to the client.
[0081] In this embodiment, during the integration of application configuration files, the server can dynamically load application resource information to accurately obtain a target application to be installed with complete functionality. At the same time, by splitting the application resource information that occupies the majority of storage space from the target application to be installed, a split installation package that occupies less storage space is obtained, reducing the cost for the client to install the split installation package.
[0082] In one embodiment, the target application to be installed is obtained based on application resource information, the application to be installed, and the application configuration file, including: setting the loading path of the application resource information through a path setting interface; taking the location pointed to by the loading path as the target location, and placing the application resource information at the target location to obtain the placement result; and combining the placement result, the application to be installed, and the application configuration file to obtain the target application to be installed.
[0083] The functional interfaces also include path setting interfaces.
[0084] Specifically, when the server obtains the application resource information corresponding to the application to be installed, it can set the loading path of the application resource information by calling the path setting interface, that is, the location pointed to by the loading path in the application to be installed is taken as the target location. During the execution of the application to be installed, the server dynamically loads the application resource information and places the application resource information at the target location, thus obtaining the placement result. Therefore, the server combines the application to be installed, which includes the placement result, and the application configuration file to obtain the target application to be installed.
[0085] In one embodiment, the server uses Java reflection to save the loading path of application resource information to a local database and adds each loading path in the local database to the search path list in the Android system.
[0086] In this embodiment, the application resource information can be dynamically loaded through the path setting interface in the application configuration file, enabling the server to quickly and accurately obtain the reorganized target application to be installed, thereby ensuring the smooth progress of the subsequent splitting process.
[0087] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0088] Based on the same inventive concept, this application also provides an application reorganization apparatus for implementing the application reorganization method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more application reorganization apparatus embodiments provided below can be found in the limitations of the application reorganization method described above, and will not be repeated here.
[0089] In one embodiment, such as Figure 4 As shown, an application reassembly apparatus 400 is provided, including: an installation package acquisition module 402, an application startup module 404, and an information loading module 406, wherein:
[0090] The installation package acquisition module 402 is used to acquire the split installation package and install the initial application through the split installation package; the split installation package includes a reorganization judgment interface, download address, download startup interface and loading path.
[0091] The application startup module 404 is used to start the initial application and perform package reorganization detection on the initial application through the reorganization judgment interface to obtain the first detection result; when the first detection result indicates that the initial application is a program that implements some functions, the application resource information corresponding to the download address is obtained through the download startup interface.
[0092] The information loading module 406 is used to load application resource information according to the loading path, obtain the loading result, and combine the loading result with the initial application to obtain the reorganized target application; the target application is a program that implements full functionality.
[0093] In one embodiment, the application reorganization apparatus 400 further includes an application splitting module 408, used to obtain the application to be installed and the application configuration file through a server; the application configuration file includes multiple functional interfaces; the multiple functional interfaces include a reorganization judgment interface; through the server and based on the reorganization judgment interface, the application to be installed is subjected to package reorganization detection to obtain a second detection result; through the server and based on the second detection result, the target application to be installed corresponding to the application to be installed is determined; through the server, the target application to be installed is split into application resource information and a split installation package, and the application resource information is stored in the cloud, and the split installation package is sent to the client.
[0094] In one embodiment, the application splitting module 408 further includes a resource information determination module 4081, used to determine the application resource information to be generated corresponding to the application to be installed when the second detection result is not reorganized; the application resource information to be generated includes at least application parameters, application resources and application dynamic libraries; the download address associated with the application resource information to be generated is set through an initialization interface; the application resource information is obtained through the download address and the download start interface; and the target application to be installed is obtained based on the application resource information, the application to be installed and the application configuration file.
[0095] In one embodiment, the application splitting module 408 includes a resource information placement module 4082, which is used to set the loading path of application resource information through a path setting interface; take the location pointed to by the loading path as the target location, and place the application resource information at the target location to obtain the placement result; and combine the placement result, the application to be installed and the application configuration file to obtain the target application to be installed.
[0096] In one embodiment, the application splitting module 408 further includes an installation package determination module 4083, which is used to remove application resource information from the target application to be installed to obtain the remaining files containing the application to be installed and the application configuration file; obtain installation package resource information; and package the remaining files and installation package resource information to obtain a split installation package.
[0097] In one embodiment, the resource information determination module 4081 is further configured to select the application to be installed as the target application to be installed when the second detection result is that it has been reassembled.
[0098] In one embodiment, the information loading module 406 is further configured to determine the application type corresponding to the application resource information and the field information in the application type; call the field information and load the application resource information corresponding to the loading path to obtain the loading result.
[0099] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows. Figure 5 As shown, the computer device includes a processor, memory, input / output interfaces (I / O), a communication interface, a display unit, and input devices. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface, display unit, and input devices are also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an application reconfiguration method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0100] Those skilled in the art will understand that Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0101] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0102] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0103] In one embodiment, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps described in the method embodiments above.
[0104] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any application to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0105] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0106] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An application reorganization method, characterized by, The method comprises: obtaining, by a server, an application to be installed and an application configuration file, the application configuration file comprising a plurality of function interfaces, the plurality of function interfaces comprising a reorganization judgment interface and a download start interface; based on the reorganization judgment interface, determining whether the application to be installed is a program that implements all functions; when it is determined that the application to be installed is a program that implements all functions, directly splitting the application to be installed into application resource information and a split installation package, storing the application resource information to the cloud, and distributing the split installation package to a client; when it is determined that the application to be installed is a program that only implements part of the functions, downloading, by calling the download start interface, application resource information to be generated corresponding to a download address in the cloud, synthesizing the downloaded application resource information, the application to be installed, and the application configuration file to obtain an application to be installed with complete functions, splitting the application to be installed with complete functions into application resource information and a split installation package, storing the application resource information to the cloud, and distributing the split installation package to the client; obtaining, by a client, the split installation package and installing an initial application program through the split installation package; the split installation package integrates function interfaces provided by a software development kit, the function interfaces comprising a reorganization judgment interface, a download address, a download start interface, and a loading path; starting the initial application program and performing package reorganization detection on the initial application program through the reorganization judgment interface to obtain a first detection result; when the first detection result indicates that the initial application program is a program that implements all functions, continuously responding to related operations of a user until all functions possessed by the initial application program are executed; when the first detection result indicates that the initial application program is a program that implements part of the functions, obtaining, by calling the download start interface, application resource information stored in the cloud according to the download address to obtain application resource information corresponding to the download address; loading the application resource information according to the loading path to obtain a loading result, and synthesizing the loading result and the initial application program to obtain a target application program that has completed reorganization; the target application program is a program that implements complete functions.
2. The method of claim 1, wherein, The function interfaces further comprise an initialization interface; the downloading, by calling the download start interface, of application resource information to be generated corresponding to the download address in the cloud comprises: determining application resource information to be generated corresponding to the application to be installed; the application resource information to be generated at least comprises application parameters, application resources, and application dynamic libraries; setting, by the initialization interface, a download address associated with the application resource information to be generated; the download address corresponds to an address in the cloud; downloading, by calling the download start interface, the application resource information to be generated corresponding to the download address in the cloud.
3. The method of claim 2, wherein, The function interface further comprises a path setting interface; the integrated application resource information, the to-be-installed application program and the application configuration file are used to obtain a to-be-installed application program with complete functions, comprising: The loading path of the application resource information is set through the path setting interface; A position pointed to by the loading path is taken as a target position, and the application resource information is placed at the target position to obtain a placement result; The placement result, the to-be-installed application program and the application configuration file are integrated to obtain a to-be-installed application program with complete functions.
4. The method of claim 1, wherein, The to-be-installed application program with complete functions is split into application resource information and split installation package, comprising: Application resource information is removed from the to-be-installed application program with complete functions to obtain remaining files containing the to-be-installed application program and the application configuration file; Installation package resource information is obtained; the installation package resource information at least comprises installation package resources and installation package dynamic libraries; The remaining files and the installation package resource information are packaged to obtain a split installation package.
5. The method of claim 1, wherein, The application resource information is loaded according to the loading path to obtain a loading result, comprising: The application type corresponding to the application resource information and field information in the application type are determined; The field information is called, and the application resource information corresponding to the loading path is loaded to obtain a loading result.
6. An application reorganization apparatus characterized by comprising: The device comprises: An application program splitting module is configured to obtain a to-be-installed application program and an application configuration file through a server, the application configuration file comprises a plurality of function interfaces, the plurality of function interfaces comprise a recombination judgment interface and a download start interface; based on the recombination judgment interface, it is determined whether the to-be-installed application program is a program realizing all functions; when it is determined that the to-be-installed application program is a program realizing all functions, the to-be-installed application program is directly split into application resource information and split installation package, the application resource information is stored to the cloud, and the split installation package is downloaded to the client; when it is determined that the to-be-installed application program is a program realizing only part of functions, the to-be-generated application resource information corresponding to a download address in the cloud is downloaded through calling the download start interface, the downloaded application resource information, the to-be-installed application program and the application configuration file are integrated to obtain a to-be-installed application program with complete functions, the to-be-installed application program with complete functions is split into application resource information and split installation package, the application resource information is stored to the cloud, and the split installation package is downloaded to the client; An installation package obtaining module is configured to obtain a split installation package through a client and install an initial application program through the split installation package; the split installation package integrates function interfaces provided by a software development kit, the function interfaces comprise a recombination judgment interface, a download address, a download start interface and a loading path. An application program starting module is configured to start the initial application program and perform package body reorganization detection on the initial application program through the reorganization judgment interface to obtain a first detection result; when the first detection result indicates that the initial application program is a program for realizing all functions, the application program starting module continues to respond to relevant operations of a user until all functions possessed by the initial application program are executed; when the first detection result indicates that the initial application program is a program for realizing part of functions, the application program starting module acquires application resource information stored in the cloud according to the download address by calling the download starting interface to obtain application resource information corresponding to the download address. An information loading module is configured to load the application resource information according to the loading path to obtain a loading result, and to obtain a target application program with reorganization completed by comprehensively considering the loading result and the initial application program; the target application program is a program for realizing complete functions.
7. The apparatus of claim 6, wherein, The function interface further includes an initialization interface, and the application program splitting module further includes a resource information determining module configured to determine application resource information to be generated corresponding to the application program to be installed; the application resource information to be generated at least includes application parameters, application resources and application dynamic libraries; the initialization interface is configured to set a download address associated with the application resource information to be generated; the download address corresponds to an address in the cloud; the download starting interface is configured to download the application resource information to be generated corresponding to the download address in the cloud.
8. The apparatus of claim 6, wherein, The function interface further includes a path setting interface; the application program splitting module further includes a resource information placing module configured to set a loading path of the application resource information through the path setting interface; a position pointed to by the loading path is taken as a target position, and the application resource information is placed at the target position to obtain a placing result; The placing result, the application program to be installed and the application configuration file are comprehensively considered to obtain the application program to be installed with complete functions. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 1 to 5.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 5.
Citation Information
Patent Citations
Game application subpackage resource loading method, device and equipment and medium
CN110333947A