A method for generating an application update package, a smart terminal and a storage medium

By obtaining and analyzing the target functions of the application, determining whether it meets the preset conditions, and directly adding update data to the installation package file, solving the problem of comprehensive updates in the existing technology, and achieving a more efficient upgrade process.

CN112579137BActive Publication Date: 2024-12-31SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910936385.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-29
Publication Date
2024-12-31
Estimated Expiration
2039-09-29

AI Technical Summary

Technical Problem

In the prior art, data needs to be fully updated when upgrading applications, resulting in large workload and low upgrade efficiency.

Method used

By obtaining the target function of the application to be updated, it is determined whether it meets the preset conditions. If it is satisfied, add the update data corresponding to the target function to the installation package file to generate an update package to avoid updating all data.

Benefits of technology

It simplifies the generation process of update packages, shortens the overall upgrade cycle of the application, and improves the upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579137B_ABST
    Figure CN112579137B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for generating an application update package, a smart terminal and a storage medium, the method comprising: obtaining a target function of an application to be updated; if the target function meets the preset condition, adding the update data corresponding to the target function to the installation package file of the application to be updated, and obtaining the update package of the application to be updated. The present invention can generate a new update package by obtaining the target function of the application to be updated, and adding the update data corresponding to the target function to the installation package file of the program to be updated according to whether the target function meets the preset condition. There is no need to update all the data of the program to be updated. Only the required update data needs to be added to realize the generation of the update package, which simplifies the generation process of the update package and shortens the overall upgrade cycle of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of application online release, and in particular to a method for generating an application update package, an intelligent terminal and a storage medium. Background Art

[0002] As smart terminals develop faster and faster, there are more and more users of smart terminals. In order to seize the market, manufacturers have shorter and shorter time from terminal R&D and design to product launch. Due to time constraints, applications on smart terminals may have functional defects or imperfections. On the other hand, users have higher and higher requirements for product quality. In order to improve user experience, smart terminal manufacturers will also continuously upgrade and update their products.

[0003] In the prior art, when upgrading and updating an application, it is basically necessary to fully update the data of the application. Since the amount of data in the application is large, the workload is large when fully upgrading the data, resulting in low upgrade efficiency of the application.

[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention

[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method for generating an application update package, a smart terminal and a storage medium are provided, aiming to solve the problem in the prior art that the upgrade of the application requires a comprehensive upgrade of the data.

[0006] The technical solution adopted by the present invention to solve the problem is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a method for generating an application update package, wherein the method comprises:

[0008] Get the target function of the application to be updated;

[0009] If the target function meets the preset condition, the update data corresponding to the target function is added to the installation package file of the application to be updated to obtain the update package of the application to be updated.

[0010] In one implementation, the preset condition is: there is target data corresponding to the target function, and the target data is application data or interface data.

[0011] In one implementation, when the target data is application data, if the target function satisfies the preset condition, it includes:

[0012] Acquire function permission data in the terminal, where the function permission data is used to reflect whether there is application data corresponding to the target function in the terminal, where the application data includes an application or an application component;

[0013] If there is application data corresponding to the target function, it means that the target function meets the preset condition.

[0014] In one implementation, if the application data corresponding to the target function exists, the step includes:

[0015] Acquire corresponding function permission data according to the target function;

[0016] Determining whether the application or application component corresponding to the functional permission data can be successfully started;

[0017] If the application or application component corresponding to the functional permission data can be started successfully, it means that the application data corresponding to the target function exists.

[0018] In one implementation, the application component includes: an interaction component corresponding to the target function, a service management component, and a light application component.

[0019] In one implementation, when the target data is interface data, if the target function satisfies the preset condition, it includes:

[0020] Acquire interface authority data corresponding to all interfaces in the terminal, wherein the interface authority data is used to reflect whether the terminal supports the target function;

[0021] If the interface data corresponding to the target function exists, it means that the target function meets the preset condition.

[0022] In one implementation, if there is interface data corresponding to the target function, it includes:

[0023] According to the target function, corresponding interface authority data is obtained.

[0024] Determining whether the interface permission data supports the target function;

[0025] If the interface permission data supports the target function, the interface data corresponding to the target function exists.

[0026] In one implementation, the interface data includes: system interface data corresponding to the target function and middleware calling interface data.

[0027] In one implementation, the adding the update data corresponding to the target function to the installation package file of the application to be updated includes:

[0028] Acquiring target data corresponding to the target function;

[0029] generating update data corresponding to the target data according to the target data, wherein the update data is code data for reflecting the target function;

[0030] The update data is added to the installation package file of the application to be updated.

[0031] In one embodiment, after obtaining the update package of the application to be updated, the following steps are included:

[0032] Test the update package and upload it to the app store after the test is successful.

[0033] In a second aspect, an embodiment of the present invention further provides an intelligent terminal comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, including a method for generating an application update package as described in any one of the above.

[0034] In a third aspect, an embodiment of the present invention further provides a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an application update package generation method as described in any one of the above.

[0035] Beneficial effects of the present invention: When an application needs to be updated and upgraded, the embodiment of the present invention needs to first complete the generation of an update package for the application to be updated. When generating the update package, the target function of the application to be updated is first obtained, and the target function represents the function that needs to be updated by the application to be updated. Then the target function is analyzed to determine whether the target function meets the preset conditions. When the target function meets the preset conditions, it means that when the application to be updated is updated, the data corresponding to the target function can be updated separately without the need to comprehensively update all the data in the application. Therefore, when it is determined that the target function meets the preset conditions, the update data corresponding to the target function is directly added to the installation package file of the program to be updated to generate a new update package. It can be seen that this embodiment does not need to update all the data of the program to be updated, and only needs to add the required update data to achieve the generation of the update package, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 It is a flow chart of a preferred embodiment of a method for generating an application update package provided in an embodiment of the present invention.

[0038] Figure 2 It is a flowchart of a first embodiment of the method for generating an application update package provided by an embodiment of the present invention for determining whether a target function meets a preset condition.

[0039] Figure 3 It is a flowchart diagram of a second embodiment of the method for generating an application update package provided in an embodiment of the present invention for determining whether a target function meets a preset condition.

[0040] Figure 4 It is a flowchart of adding update data corresponding to a target function into an installation package file of an application to be updated in a method for generating an application update package provided by an embodiment of the present invention.

[0041] Figure 5 It is a principle block diagram of an application update package generation device provided by an embodiment of the present invention.

[0042] Figure 6 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0044] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0045] Researchers have found that in the prior art, when upgrading and updating an application, it is basically necessary to fully update the application data. Due to the large amount of application data, the workload is large when fully upgrading the data, resulting in low application upgrade efficiency.

[0046] In order to solve the above problems, an embodiment of the present invention provides a method for generating an application update package. In this method, when the application needs to be updated and upgraded, the embodiment of the present invention needs to first complete the generation of the update package of the application to be updated. When generating the update package, the target function of the application to be updated is first obtained, and the target function represents the function that needs to be updated by the application to be updated. Then the target function is analyzed to determine whether the target function meets the preset condition. The preset condition in this embodiment is: there is target data corresponding to the target function, and the target data is application data or interface data. In one implementation, the application data includes an application or an application component. That is to say, the preset condition in this embodiment is whether there is an application or application component corresponding to the target function in the smart terminal; or whether there is interface data corresponding to the target function in the smart terminal. If the target function meets the preset condition, it means that when the application to be updated is updated, the data corresponding to the target function can be updated separately without comprehensively updating all the data in the application. Therefore, when it is determined that the target function meets the preset condition, the update data corresponding to the target function is directly added to the installation package file of the program to be updated, and a new update package can be generated. It can be seen that in this embodiment, there is no need to update all the data of the program to be updated, and only the required update data needs to be added to realize the generation of the update package, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application program.

[0047] For example, the A application in the smart terminal needs to update and upgrade the Bluetooth function, and the upgraded Bluetooth version is Bluetooth 3.0, that is, the A application needs to upgrade the existing Bluetooth function to the function corresponding to Bluetooth 3.0. Therefore, the target function corresponding to the A application is the Bluetooth 3.0 function. When generating the update package of the A application, the target function (i.e., the Bluetooth 3.0 function) is first analyzed to determine whether the Bluetooth 3.0 function meets the preset conditions, such as determining whether the smart terminal has application data (such as an application or an application component) corresponding to the Bluetooth 3.0 function, or determining whether the smart terminal has interface data corresponding to the Bluetooth 3.0 function. If the Bluetooth 3.0 function meets the preset conditions, the A application does not need to update all the data when generating the update package, and only needs to add the update data corresponding to the Bluetooth 3.0 function to the installation package file of the A application. It can be seen that in this example, when generating the update package of the A application, it is not necessary to update all the data of the A application, and only the update data of the Bluetooth 3.0 function needs to be added to realize the generation of the update package, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application.

[0048] Exemplary Methods

[0049] like Figure 1 As shown in, an embodiment of the present invention provides an application update package method, which can be applied to a terminal. In an embodiment of the present invention, the method comprises the following steps:

[0050] Step S100: Obtain the target function of the application to be updated.

[0051] In this embodiment, when an application in the smart terminal cannot meet the user's needs during use, or the application itself has defects (such as bugs), it is necessary to update and upgrade the application so that the application can meet the user's needs or fix the defects in the application. During the update, this embodiment needs to obtain the target requirements of the application (that is, what effect the application needs to achieve), and enter the target function corresponding to the target requirement (that is, what functions the application must have to achieve the above effect), so as to obtain what functions the application really needs to update.

[0052] In specific implementation, this embodiment can determine the target requirements of the application to be updated by receiving the user's operation, and then determine the target function of the application to be updated according to the target requirements. For example, when a user needs to use a function of an application in a smart terminal, if it is found that the application does not have the function required by the user, it means that the application has defects, so it is necessary to add new functions to the application so that the application meets the user's needs (that is, the target requirement is to enable the application to meet the functions required by the user), and this new function that needs to be added is the target function. For example, the user wants to take pictures through a music player and upload the taken pictures. However, the music player does not have a camera function, so it cannot meet the user's needs, that is, the target requirement of the music player is to take pictures. Therefore, it is necessary to update the music player so that the music player has a camera function, and the camera function is the target function of the music player.

[0053] In another implementation, when a user uses a function in an application in a smart terminal, he finds that the function exists in the application, but the version of the function is too low or cannot be started normally, so it also cannot meet the needs of the user. Therefore, the function also needs to be upgraded, and the upgraded function is the target function corresponding to the application. For example, the user needs to use the camera function in WeChat, and WeChat itself has a camera function, but because the current version of the camera function in WeChat is too low, the low version of the camera function cannot meet the user's needs (such as being unable to start normally, etc.), and the camera function in WeChat needs to be upgraded to a higher version, that is, the target function is the higher version of the camera function.

[0054] It can be seen that in this embodiment, not only can the application be updated through the target function, but the application can also be updated by upgrading the defective functions.

[0055] Further, after obtaining the target function of the application to be updated, it is necessary to analyze and judge the target function to determine whether the target function meets the preset conditions, and generate an update package of the application to be updated when the preset conditions are met. That is, in step S200, if the target function meets the preset conditions, the update data corresponding to the target function is added to the installation package file of the application to be updated, and the update package of the application to be updated is obtained.

[0056] In an embodiment of the present invention, the preset condition is used to determine whether the target function of the application to be updated can directly add its corresponding update data to the installation package file of the application to be updated, and an update package can be generated without updating all data. The preset condition is: there is target data corresponding to the target function. In this embodiment, the target data is application data or interface data. Specifically, the application data includes an application or an application component. In other words, the preset condition in this embodiment is whether there is an application or application component corresponding to the target function in the smart terminal; or whether there is interface data corresponding to the target function in the smart terminal. If the target function meets the preset condition, it means that when the application to be updated is updated, the data corresponding to the target function can be updated separately without comprehensively updating all the data in the application.

[0057] In this embodiment, after obtaining the target function of the application to be updated, it is necessary to analyze the target function to determine whether the target function meets the preset condition. In one embodiment, when the target data is application data, the preset condition is that there is application data corresponding to the target function, so it is necessary to determine whether there is application data corresponding to the target function in the smart terminal. Specifically, Figure 2 As shown in , the following steps are included:

[0058] Step S211: Acquire function permission data in the terminal, where the function permission data is used to reflect whether there is application data corresponding to the target function in the terminal, and the application data includes an application or an application component;

[0059] Step S212: If there is application data corresponding to the target function, the target function satisfies the preset condition.

[0060] In specific implementation, since any application or application component installed in the smart terminal will store the functional permission data of each application or application component in the terminal. The functional permission data indicates the functions possessed by the application or application component installed in the terminal. For example, when the data with the "Bluetooth 3.0" function is obtained in the functional permission data of the terminal, it means that there must be application data with the "Bluetooth 3.0" function in the terminal, that is, there is an application or application component with the "Bluetooth 3.0" function. Therefore, according to the functional permission data, it can be judged whether the terminal has the application data corresponding to the target function. If so, it means that the target function meets the preset condition.

[0061] In a specific implementation, a function permission database may be pre-set in the terminal, and the function permission database stores the function permission data of all installed applications or application components in the terminal. Therefore, when the target function is acquired, the function permission data corresponding to the target function may be obtained from the function permission database according to the target function. Specifically, the function permission data that successfully matches the target function may be determined by comparing and matching the target function with all function permission data in the terminal, and then determining whether the application or application component corresponding to the function permission data can be successfully started. If the application or application component corresponding to the function permission data can be successfully started, it is determined that the application or application component corresponding to the target function is installed in the terminal, that is, the terminal has the application data corresponding to the target function.

[0062] The application components in this embodiment include: an interactive component, a service management component, and a light application component corresponding to the target function. That is, in a smart terminal, as long as the terminal has an application or any application component corresponding to the target function, the target function satisfies the preset condition, thereby realizing the generation of an update package for the application to be updated.

[0063] For example, when a user uses application A to make a voice call, the target requirement is to make a voice call. If application A itself does not have the voice call function, the target function of application A is the voice call function, and the voice call function needs to be analyzed and judged to determine whether the voice call function meets the preset conditions. Since it is not certain whether there is application data (i.e., application or application component) corresponding to the voice call function (i.e., target function) in the smart terminal, it is necessary to obtain the terminal's function permission data for judgment.

[0064] For example, by matching the voice call function (i.e., the target function) with all the function permission data in the terminal, if the match is successful, the function permission data matching the voice call function (i.e., the target function) is obtained, and it is further determined that the function permission data corresponds to an application, so it is necessary to start the application corresponding to the function permission data (such as application B). If application B is successfully started (at this time, the entry corresponding to the voice call function will be displayed on the smart terminal), it means that there is an application corresponding to the voice call function in the terminal, so it can be determined that the voice call function (i.e., the target function) meets the preset conditions. If the startup fails (the entry corresponding to the voice call function will not be displayed on the smart terminal), it is determined that the voice call function does not meet the preset conditions.

[0065] For another example, if after obtaining the functional permission data of the terminal, it is determined that the functional permission data matching the voice call function (i.e., the target function) in the terminal corresponds to metadata data (relay data), in this example, the etadata data is set in the AndroidManifest.xml file of a certain application (such as C application), that is, the C application has the voice call function, so in this example, the C application with the metadata data (relay data) can be started. If the C application is successfully started (the entry corresponding to the voice call function will be displayed on the smart terminal at this time), it means that there is an application corresponding to the voice call function in the terminal, so it can be determined that the voice call function (i.e., the target function) meets the preset conditions. If the startup fails (the entry corresponding to the voice call function will not be displayed on the smart terminal), it is determined that the voice call function does not meet the preset conditions. The etadata data in this example includes the application package name and the function name. Since the C application has the etadata data, the etadata data is added when the corresponding function is developed. For example, "com.tcl.metadatatest" is the application package name, "com.tcl.metadatatest.audio" represents the audio function, and "com.tcl.metadatatest.video" represents the video function. These etadata data are added to the AndroidManifest.xml file of the C application when developing the audio function and the video function respectively. Therefore, when the voice call function of the C application is started, the corresponding etadata data will be read to complete the startup.

[0066] For another example, if after obtaining the function permission data of the terminal, it is determined that the function permission data matching the voice call function (i.e., the target function) in the terminal corresponds to an Activity (interactive component, an application component), then the Activity (interactive component) is started. If the Activity (interactive component) is successfully started (the entry corresponding to the voice call function will be displayed on the smart terminal at this time), it means that there is an application component corresponding to the voice call function in the terminal, so it can be determined that the voice call function (i.e., the target function) meets the preset conditions. If the startup fails (the entry corresponding to the voice call function will not be displayed on the smart terminal), it is determined that the voice call function does not meet the preset conditions.

[0067] For another example, if after obtaining the functional permission data of the terminal, it is determined that the functional permission data matching the voice call function (i.e., the target function) in the terminal corresponds to a Service (a service management component, an application component), then the Service (service management component) is started. If the Service (service management component) is successfully started (the entry corresponding to the voice call function will be displayed on the smart terminal at this time), it means that there is an application component corresponding to the voice call function in the terminal, so it can be determined that the voice call function (i.e., the target function) meets the preset conditions. If the startup fails (the entry corresponding to the voice call function will not be displayed on the smart terminal), it is determined that the voice call function does not meet the preset conditions.

[0068] For another example, if after obtaining the functional permission data of the terminal, it is determined that the functional permission data matching the voice call function (i.e., the target function) in the terminal corresponds to a Lite App component (a light application component, a so-called light application is a full-function App that does not need to be downloaded and can be searched and used immediately), then the Lite App component is started. If the Lite App component is successfully started (the entry corresponding to the voice call function will be displayed on the smart terminal at this time), it means that there is an application component corresponding to the voice call function in the terminal, so it can be determined that the voice call function (i.e., the target function) meets the preset conditions. If the startup fails (the entry corresponding to the voice call function will not be displayed on the smart terminal), it is determined that the voice call function does not meet the preset conditions. Since the light application component in this example is not a traditional application program, but a search-and-use APP, it is necessary to ensure that the smart terminal is in an Internet-connected state in order to query the light application component. In addition, the light application in this example uses a unified interface with the cloud platform, so that when detecting whether the light application component exists based on the function permission data that matches the target function, the light application deployment information in the smart terminal (the light application deployment information includes information such as the light application package name) can be queried to more accurately determine whether there is a light application component corresponding to the voice call function.

[0069] It can be seen that in this embodiment, whether the target function meets the preset condition can be determined by judging whether there is an application or application component corresponding to the target function in the terminal. In another implementation, when the target data is interface data, the preset condition is: there is interface data corresponding to the target function, so it is necessary to judge whether there is interface data corresponding to the target function in the smart terminal. Specifically, Figure 3 As shown in , the following steps are included:

[0070] Step S21: Acquire interface authority data corresponding to all interfaces in the terminal, wherein the interface authority data is used to reflect whether the terminal supports the target function;

[0071] Step S22: If there is interface data corresponding to the target function, the target function satisfies the preset condition.

[0072] In specific implementation, since there are many interfaces in the terminal and each interface corresponds to its own interface permission data, the interface permission data indicates the functions supported by each interface. For example, when the interface permission data in the terminal contains data of the "Bluetooth 3.0" function, it means that there must be interface data with the "Bluetooth 3.0" function in the terminal, which means that the terminal supports the "Bluetooth 3.0" function. Therefore, according to the interface permission data, it can be determined whether the terminal has the interface data corresponding to the target function. If so, it means that the target function meets the preset condition.

[0073] In a specific implementation, this embodiment can pre-set an interface database, which stores interface authority data of all interfaces in the terminal (including system interfaces and middleware call interfaces). Therefore, when the target function is obtained, the interface data corresponding to the target function can be obtained from the interface database according to the target function. Specifically, the interface authority data that successfully matches the target function can be determined by comparing and matching the target function with all interface authority data in the terminal, and then determining whether the interface data corresponding to the interface authority data supports the target function. If the target function is supported, it is determined that the interface data corresponding to the target function exists in the terminal.

[0074] The interface data in this embodiment includes: system interface data corresponding to the target function and middleware call interface data. That is to say, in the smart terminal, as long as the terminal has the system interface data corresponding to the target function and the middleware call interface data, the target function satisfies the preset condition, thereby realizing the generation of the update package of the application to be updated.

[0075] For example again, when the target function of the application to be updated (A application) is the "full scene AI image quality" function in the demonstration system. Since it is not known whether the terminal supports the "full scene AI image quality" function (ie, the target function), it is necessary to obtain all interface authority data in the terminal and match it with the "full scene AI image quality" function. If the match is successful, it is determined that the interface authority data that successfully matches the "full scene AI image quality" function corresponds to the calling interface data of the middleware. Then read the property data (attribute data) corresponding to the "full scene AI image quality" function in the calling interface data of the middleware to determine whether the calling interface data of the middleware supports the "full scene AI image quality" function. If it is determined that the calling interface data of the middleware supports the "full scene AI image quality" function, it means that the "full scene AI image quality" function meets the preset conditions. If the calling interface data of the middleware does not support the "full scene AI image quality" function, it means that the "full scene AI image quality" function does not meet the preset conditions.

[0076] For another example, the present embodiment can also determine whether the target function meets the preset conditions by detecting the system interface data. As in the above example, when application A wants to make a voice call, it will detect whether there is system interface data corresponding to the voice call function (i.e., the target function) in the Android system of the smart terminal. Similarly, it is necessary to obtain all interface permission data in the terminal and match them with the voice call function (i.e., the target function). When the match is successful, the system interface data that matches the voice call function (i.e., the target function) is determined, and then the version information of the system interface data is obtained to determine whether the system interface data can successfully support the voice call function (i.e., the target function). If it is determined that the system interface data supports the voice call function, it means that the voice call function meets the preset conditions. If the system interface data does not support the voice call function, it means that the voice call function does not meet the preset conditions.

[0077] Further, after determining that the target function meets the preset conditions, the update data corresponding to the target function can be added to the installation package file of the application to be updated to obtain the update package of the application to be updated, specifically in the following steps:

[0078] Step S221, acquiring target data corresponding to the target function;

[0079] Step S222, generating update data corresponding to the target data according to the target data, wherein the update data is code data for reflecting the target function;

[0080] Step S223: Add the update data to the installation package file of the application to be updated.

[0081] In the specific implementation, the present embodiment first obtains the target data corresponding to the target function, and the target data includes the application or application component or interface data corresponding to the target function. Then, the update data corresponding to the target data is generated according to the target data, and the update data is the code data used to reflect the target function, and then the update data is added to the installation package file of the application to be updated, thereby generating the update package of the application to be updated. For example, when it is determined that the camera function (i.e., the target function) in WeChat meets the preset conditions, the application or application component corresponding to the camera function in the smart terminal, or the interface data corresponding to the camera function is obtained. If the application corresponding to the camera function is B application, that is, the B application has the camera function, then the code data is generated according to the camera function in the B application, and the code data can reflect the camera function, and then the generated code data is added to the installation package file of WeChat, thereby generating the update package of WeChat. It can be seen that in the present embodiment, all the data of the program to be updated need not be updated, and the generation of the update package can be realized by adding the required update data, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application.

[0082] Furthermore, after the update package of the application to be updated is generated, the update package is tested, and after the test is successful, the update package is uploaded to the application store.

[0083] In one implementation, in this embodiment, two tests are required when testing the update package of the application to be updated, namely, an automated test procedure and a manual test process.

[0084] Specifically, the embodiment of the present invention first calls a preset automated test program to perform automated testing on the update package; obtains a first test result corresponding to the automated test program, and determines whether the update package has passed the test of the automated test program based on the first test result; if it is determined that the update package has passed the test of the automated test program, the update package is transferred to a preset manual test process for manual testing. If it is determined that the update package has not passed the test of the automated test program, it means that there is a problem with the update package, and a problem list is generated, and then the problems in the problem list are repaired. After the repair is completed, the preset test program is called again to test the update package, that is, the automated test program is called again to test the update package, until it is determined that the update package has passed the test of the automated test program, and then the manual test process is entered.

[0085] When the update package enters the manual test process, the second test result corresponding to the manual test process is obtained, and the update package is judged whether it has passed the test of the manual test process according to the second test result; if it is determined that the update package has passed the test of the manual test process, the result of passing the test is output. If it is determined that the update package has not passed the test of the manual test process, it means that there is a problem with the update package, and a problem list is also generated, and then the problems in the problem list are repaired. After the repair is completed, the preset test program is called again to test the update package, that is, the automated test program and the manual test process are called again to test the update package until it is determined that the update package has passed all tests.

[0086] The embodiment of the present invention uses a secondary test method to determine whether the update package meets the standard for being put online, so as to avoid defects in the application program after being put online.

[0087] Further, after the test is completed, the upgrade data of the update package of the application to be updated is evaluated. In this embodiment, when the update package passes the test, the upgrade data of the update package is obtained and analyzed. If the upgrade data meets the preset standard data (the standard data is pre-stored in the smart terminal, and the standard data is based on the running data collected when the application is running normally), it means that the update package meets the online standard, that is, the update package is released to the application store. When the upgrade data of the update package does not meet the preset standard data, it means that the update package does not meet the online standard, then the abnormal data in the update package that does not meet the online standard is obtained, and then the abnormal data of the update package is repaired. After the repair is completed, the preset test program is re-called to test the repaired update package, that is, the automated test program and the manual test process are re-called to test the update package until it is determined that the update package passes all tests, and then the update package is re-evaluated until the update package meets the online standard, and then the update package is put online to the application store.

[0088] It can be seen that when an application needs to be updated and upgraded, the embodiment of the present invention needs to first complete the generation of the update package of the application to be updated. When generating the update package, the target function of the application to be updated is first obtained, and the target function represents the function that needs to be updated by the application to be updated. Then the target function is analyzed to determine whether the target function meets the preset conditions. When the target function meets the preset conditions, it means that when the application to be updated is updated, the data corresponding to the target function can be updated separately without the need to comprehensively update all the data in the application. Therefore, when it is determined that the target function meets the preset conditions, the update data corresponding to the target function is directly added to the installation package file of the program to be updated to generate a new update package. It can be seen that this embodiment does not need to update all the data of the program to be updated, and only needs to add the required update data to realize the generation of the update package, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application.

[0089] Exemplary Devices

[0090] like Figure 5 As shown in , an embodiment of the present invention provides an application update package generation device, the device comprising: an acquisition unit 510 and a generation unit 520. Specifically, the acquisition unit 510 is used to acquire the target function of the application to be updated. The generation unit 520 is used to add the update data corresponding to the target function to the installation package file of the application to be updated if the target function meets the preset condition, so as to obtain the update package of the application to be updated.

[0091] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 6 As shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating an application update package is implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is pre-set inside the intelligent terminal to detect the operating temperature of the internal device.

[0092] Those skilled in the art will understand that Figure 6The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0093] In one embodiment, a smart terminal is provided, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:

[0094] Get the target function of the application to be updated;

[0095] If the target function meets the preset condition, the update data corresponding to the target function is added to the installation package file of the application to be updated to obtain the update package of the application to be updated.

[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0097] In summary, the present invention discloses a method for generating an application update package, a smart terminal, and a storage medium, the method comprising: obtaining a target function of the application to be updated; if the target function meets the preset condition, adding the update data corresponding to the target function to the installation package file of the application to be updated, and obtaining the update package of the application to be updated. The present invention can generate a new update package by obtaining the target function of the application to be updated, and determining whether the update data corresponding to the target function is added to the installation package file of the program to be updated based on whether the target function meets the preset condition. There is no need to update all the data of the program to be updated, and only the required update data needs to be added to realize the generation of the update package, thereby simplifying the generation process of the update package and shortening the overall upgrade cycle of the application.

Claims

1. A method for generating an application update package, characterized in that: The method comprises: Get the target function of the application to be updated; If the target function meets the preset condition, the update data corresponding to the target function is added to the installation package file of the application to be updated to obtain the update package of the application to be updated; The step of obtaining the target function of the application to be updated includes: Determine the target requirement of the application to be updated by receiving the user's operation, and determine the target function of the application to be updated according to the target requirement; After obtaining the update package of the application to be updated, the method includes: Testing the update package, and after the test is successful, uploading the update package to the application store; The testing of the update package includes: First, a preset automated testing program is called to perform automated testing on the update package, a first test result corresponding to the automated testing program is obtained, and a determination is made based on the first test result whether the update package has passed the test of the automated testing program; if it is determined that the update package has passed the test of the automated testing program, the update package is transferred to a preset manual testing process for manual testing; if it is determined that the update package has not passed the test of the automated testing program, a problem list is generated, and the problems in the problem list are repaired; after the repair is completed, the preset automated testing program is called again to test the update package, until it is determined that the update package has passed the test of the automated testing program, and then the manual testing process is entered; After the update package enters the manual testing process, a second test result corresponding to the manual testing process is obtained, and whether the update package passes the test of the manual testing process is determined based on the second test result; if it is determined that the update package passes the test of the manual testing process, the test pass result is output; if it is determined that the update package does not pass the test of the manual testing process, a problem list is generated, and the problems in the problem list are repaired; after the repair is completed, the preset automated testing program is re-called to test the update package until it is determined that the update package passes all tests.

2. The method for generating an application update package according to claim 1, characterized in that: The preset condition is that there is target data corresponding to the target function, and the target data is application data or interface data.

3. The method for generating an application update package according to claim 2, characterized in that: When the target data is application data, if the target function satisfies the preset condition, it includes: Acquire function permission data in the terminal, where the function permission data is used to reflect whether there is application data corresponding to the target function in the terminal, where the application data includes an application or an application component; If there is application data corresponding to the target function, it means that the target function meets the preset condition.

4. The method for generating an application update package according to claim 3, characterized in that: If the application data corresponding to the target function exists, the application data includes: Acquire corresponding function permission data according to the target function; Determining whether the application or application component corresponding to the functional permission data can be successfully started; If the application or application component corresponding to the functional permission data can be started successfully, it means that the application data corresponding to the target function exists.

5. The method for generating an application update package according to claim 4, characterized in that: The application components include: an interaction component corresponding to the target function, a service management component and a light application component.

6. The method for generating an application update package according to claim 2, characterized in that: When the target data is interface data, if the target function satisfies the preset condition, it includes: Acquire interface authority data corresponding to all interfaces in the terminal, wherein the interface authority data is used to reflect whether the terminal supports the target function; If the interface data corresponding to the target function exists, it means that the target function meets the preset condition.

7. The method for generating an application update package according to claim 6, characterized in that: If there is interface data corresponding to the target function, it includes: According to the target function, corresponding interface authority data is obtained. Determining whether the interface permission data supports the target function; If the interface permission data supports the target function, the interface data corresponding to the target function exists.

8. The method for generating an application update package according to claim 7, characterized in that: The interface data includes: system interface data corresponding to the target function and middleware calling interface data.

9. The method for generating an application update package according to claim 5 or 8, characterized in that: The step of adding the update data corresponding to the target function to the installation package file of the application to be updated includes: Acquiring target data corresponding to the target function; generating update data corresponding to the target data according to the target data, wherein the update data is code data for reflecting the target function; The update data is added to the installation package file of the application to be updated.

10. An intelligent terminal, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include being used to execute the method according to any one of claims 1 to 9.

11. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 9.