Application program update package obtaining method and device, equipment, medium and product

By determining the target monitoring application and its associated information in the preset monitoring application list, and building and sending application update requests, the problem of manual operation and occupancy of real-time equipment is solved in the prior art acquisition of application update packages, and automatic update package acquisition is realized, reducing overhead.

CN119645456APending Publication Date: 2025-03-18SUZHOU LONGXIN INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411757490.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, obtaining application update packages requires manual operation through the application market in real machine equipment, which is time-consuming and labor-intensive and does not meet the needs of automation, and requires occupancy of real machine equipment, increasing unnecessary overhead.

Method used

By determining the target monitoring application and its associated information in the preset monitoring application list, based on the associated device identification and application market identification, relevant information is obtained from the preset information data table, and application update request is constructed and sent to the target server to obtain the update package.

Benefits of technology

It realizes automatic acquisition of application update packages without occupancy or investment in real-time equipment, meeting automation needs and reducing unnecessary overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645456A_ABST
    Figure CN119645456A_ABST
Patent Text Reader

Abstract

The invention discloses an application program update package obtaining method and device, equipment, a medium and a product. The method comprises the steps of determining a target monitoring application from candidate to-be-monitored applications recorded in a preset to-be-monitored application list, and obtaining application associated information of the target monitoring application; wherein the application associated information comprises associated program information, an associated equipment identifier and an associated application market identifier; acquiring corresponding associated application market information and associated equipment information from a preset information data table based on the associated equipment identifier and the associated application market identifier; and on the basis of the associated program information, the associated application market information and the associated equipment information, constructing a corresponding application program updating request, and sending the application program updating request to a target server to obtain an updating package of the target monitoring application in the target server. According to the technical scheme, automatic acquisition of the update package of the corresponding application program is realized without inputting or occupying real machine equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the popularity of smart phones, mobile applications have deeply influenced people's lives. For example, applications of various types and functions have become essential applications for installation, providing great convenience for people's daily travel, leisure consumption, work and social interaction, and life payment. Based on dynamically changing user needs and technological progress, application updates are of great significance for improving user experience, enhancing security, improving performance, and maintaining competitiveness.

[0003] In the prior art, if you want to obtain an update package for an application, you usually need to perform manual operations through the application market in the real device where the application can run, which is time-consuming and labor-intensive, does not meet automation requirements, and requires investment in or occupation of real devices, adding unnecessary expenses. Summary of the invention

[0004] The present invention provides a method, device, equipment, medium and product for obtaining an application update package, so as to realize automatic acquisition of the update package of the corresponding application without investing in or occupying a real machine device.

[0005] According to one aspect of the present invention, a method for obtaining an application update package is provided, the method comprising:

[0006] Determine a target monitoring application from each candidate monitoring application recorded in the preset monitoring application list and obtain application association information of the target monitoring application; wherein the application association information includes association program information, association device identifier and association application market identifier;

[0007] Based on the associated device identifier and the associated application market identifier, obtain corresponding associated application market information and associated device information from a preset information data table; wherein the preset information data table includes a preset device information data table and a preset application market information data table;

[0008] Based on the associated program information, the associated application market information and the associated device information, a corresponding application update request is constructed, and the application update request is sent to the target server to obtain an update package of the target monitoring application in the target server.

[0009] According to another aspect of the present invention, a device for obtaining an application update package is provided, the device comprising:

[0010] The application association information acquisition module is used to determine the target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtain the application association information of the target monitoring application; wherein the application association information includes the association program information, the association device identifier and the association application market identifier;

[0011] The device and application market information acquisition module is used to acquire the corresponding associated application market information and associated device information from the preset information data table based on the associated device identifier and the associated application market identifier; wherein the preset information data table includes a preset device information data table and a preset application market information data table;

[0012] The update package acquisition module is used to construct a corresponding application update request based on the associated program information, associated application market information and associated device information, and send the application update request to the target server to obtain the update package of the target monitoring application in the target server.

[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for obtaining an application update package described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for obtaining an application update package described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method for obtaining an application update package as described in any embodiment of the present invention is implemented.

[0019] The technical solution of the embodiment of the present invention determines the target monitoring application and the application association information of the target monitoring application in a preset monitoring application list, and based on the associated device identifier and the associated application market identifier in the application association information, obtains the application market information and the real device information associated with the corresponding target monitoring application in the corresponding preset device information data table and the preset application market information data table, and then further constructs the corresponding application update request based on the associated application market information, the associated device information and the corresponding associated program information, so as to obtain the corresponding update package from the target server based on the application update request, thereby avoiding the need to occupy or invest in a real device and manually obtain the corresponding update package from the application market in the real device, thereby facilitating the automatic acquisition of the update package of the corresponding application, meeting the automation requirements, and at the same time reducing unnecessary expenses because no investment or occupation is required.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 The present invention is a flowchart of a method for obtaining an application update package provided in accordance with a first embodiment of the present invention.

[0023] Figure 2 It is a flowchart of another method for obtaining an application update package provided according to the second embodiment of the present invention.

[0024] Figure 3 It is a flowchart of another method for obtaining an application update package provided according to Embodiment 3 of the present invention.

[0025] Figure 4 It is a structural diagram of a device for obtaining an application update package provided according to a fourth embodiment of the present invention.

[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the method for obtaining an application update package according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Figure 1 The flowchart of a method for obtaining an application update package provided in the first embodiment of the present invention is applicable to the case of simulating the environment of a real device to obtain an application update package. The method can be executed by a device for obtaining an application update package. The device can be implemented in the form of hardware and / or software. The device can be configured in an electronic device. The electronic device can be a device of a type other than the device type to which the real device belongs. For example, the device type to which the real device belongs can be a mobile phone, while other types can include computers, etc. Figure 1 Said method comprises:

[0030] S110. Determine a target monitoring application from each candidate to-be-monitored application recorded in a preset to-be-monitored application list and obtain application association information of the target monitoring application; wherein the application association information includes association program information, an association device identifier, and an association application market identifier.

[0031] Among them, the candidate application to be monitored can be an application running on a real device, and the real device can be a real device for running the application. The real device can be a mobile portable device, such as a smart phone. The preset list of applications to be monitored can be a pre-constructed data table for recording the application association information of each candidate application to be monitored and the application association information of each candidate application to be monitored. The associated program information can be information associated with the program code of the application itself. The associated program information may include at least one of the information such as the application name, the installation package name, the current application version, the current application version number, the installation package information, and the most recent update time. The associated device identifier can be the identification information of the real device where the target monitoring application is actually running. The associated application market identifier can be the identification information of the application market in the real device for downloading and updating the target monitoring application. The associated device identifier and the associated application market identifier of the target monitoring application can be set as needed, and no specific restrictions are made here.

[0032] Specifically, one of the candidate applications to be monitored may be selected randomly or traversed to be the target application to be monitored. Optionally, one of the candidate applications to be monitored in the preset table of applications to be monitored may be manually designated as the target application to be monitored.

[0033] S120. Based on the associated device identifier and the associated application market identifier, obtain corresponding associated application market information and associated device information from a preset information data table; wherein the preset information data table includes a preset device information data table and a preset application market information data table.

[0034] Among them, the associated application market information may be the associated information of the application market associated with the target monitoring application. The associated application market information may include at least one application market information field and the field content corresponding to each application market information field. The application market information field may include an application market identification field and an application market version field, the application market identification field may be used to represent the identification information of the application market, and the application market version field may be used to represent the version information of the application market. The application market information field may also include the code of the application market, etc., and the code may be a fixed value. The associated device information may be the real device parameter of the real device associated with the target monitoring application, the real device parameter may include the field value corresponding to at least one device information field, and the device information field may be one of the field types such as supported hardware parameters, system support architecture, device pixel points, device preferred language, mobile phone density, firmware version, device brand, manufacturer, device signal, resolution information, etc. The preset device information data table may be a pre-constructed data table for recording the real device parameters of real devices of different models and the corresponding content of each real device parameter. The preset application market information data table may be a pre-constructed data table for recording application market information fields of different types of application markets and the contents of each application market information field. The different types may be different device models, and the device model may be set by the device manufacturer.

[0035] Optionally, the preset list of applications to be monitored, the preset device information data table and the preset application market information table may be stored in a monitoring application database.

[0036] S130: construct a corresponding application update request based on the associated program information, the associated application market information and the associated device information, and send the application update request to the target server to obtain an update package of the target monitoring application in the target server.

[0037] The application update request may be a request for a target server to update a corresponding update package of a target monitoring application. The application request may include at least one of the following information types: associated program information, associated application market information, and associated device information corresponding to the target monitoring application. The target server may be a server for downloading and updating the corresponding target monitoring application, and the target server may be provided by the brand of the real device where the target monitoring application is actually running. The update package may be a new version or upgraded software package of the application.

[0038] Specifically, a mapping relationship database between different associated program information, different associated application market information, different associated device information and corresponding application update requests can be established in advance. Accordingly, when determining the associated program information, associated application market information and associated device information of the target monitoring application, the corresponding application update request can be matched by traversing the mapping relationship database, and the matched application update request can be used as the application update request of the corresponding target monitoring application.

[0039] Exemplarily, after receiving the application update request, the target server may return the corresponding feedback result to the current device based on the associated program information, associated application market information, and associated device information in the application update request. The feedback result may include an update package for the target monitoring application. The current device may be a device that currently requests the target monitoring application from the target server, and the current device may be a device of a different device type from the real device where the target monitoring application is actually running. For example, the device type to which the real device belongs may be a mobile phone, and the device type to which the current device belongs may include types such as computers other than mobile phones.

[0040] The technical solution of the embodiment of the present invention determines the target monitoring application and the application association information of the target monitoring application in a preset monitoring application list, and based on the associated device identifier and the associated application market identifier in the application association information, obtains the application market information and the real device information associated with the corresponding target monitoring application in the corresponding preset device information data table and the preset application market information data table, and then further constructs the corresponding application update request based on the associated application market information, the associated device information and the corresponding associated program information, so as to obtain the corresponding update package from the target server based on the application update request, thereby avoiding the need to occupy or invest in a real device and manually obtain the corresponding update package from the application market in the real device, thereby facilitating the automatic acquisition of the update package of the corresponding application, meeting the automation requirements, and at the same time reducing unnecessary expenses because no investment or occupation is required.

[0041] Figure 2 This is a flow chart of a method for obtaining an application update package provided in the second embodiment of the present invention. This embodiment is further optimized based on the above embodiments. It should be noted that for the parts not described in detail in this embodiment, please refer to the relevant descriptions in other embodiments.

[0042] Furthermore, before determining the target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtaining the application association information of the target monitoring application, add "obtaining application association information of at least one application program, and constructing a corresponding preset monitoring application list based on the application association information of each application program; obtaining real-machine device parameters of at least one real-machine device, and constructing a corresponding preset device information data table based on the real-machine device parameters of each real-machine device; obtaining association information of at least one application market, and constructing a corresponding preset application market information data table based on the association information of each application market; wherein the association information of the application market includes application market identification information and application market version information; constructing a corresponding monitoring application database based on the preset to-be-monitored application list, the preset device information data table and the preset application market information table." to improve the construction mechanism of the preset to-be-monitored application list, the preset device information data table and the preset application market information.

[0043] refer to Figure 2 , the method specifically comprises the following steps:

[0044] S210: Obtain application association information of at least one application program, and construct a corresponding preset monitoring application list based on the application association information of each application program.

[0045] Specifically, the application association information of at least one application can be downloaded from the application market on at least one real device, and a corresponding preset monitoring application list can be constructed based on the correspondence between each application and each application association information. Optionally, the user can download the application as needed and write the application and the corresponding application association information into the corresponding preset monitoring application list.

[0046] In an optional embodiment, obtaining application association information of at least one application may include:

[0047] Download at least one application in the application market on at least one real device; based on a preset resource packaging tool, obtain the association information of each application corresponding to the current installation package; wherein the association information includes the package name, application version number and application version; obtain the signature information of each application corresponding to the current installation package through a specified application; convert the corresponding signature information into an array, and encode the array based on a preset encoding method; based on a preset secure hash algorithm, calculate the encoded array to obtain a signature information hash value corresponding to the encoded array; based on a specified data structure, write the signature information and the association information of the current installation package into a set array to obtain the installation package information corresponding to the current installation package.

[0048] Among them, the preset resource packaging tool can be a tool for extracting the associated information of the installation package, which can be selected according to needs or experience, for example, it can be an Android Asset Packaging Tool (AAPT), etc. The associated information of the installation package may include information types such as package name, application version number and application version. The associated information of the installation package may also include at least one of the information such as target development tool version, current installation package hash value, application developer signature, brand determination information, support compiler determination information and application category determination information. Brand determination information can be used to characterize whether the current application is a unique application of a set brand, and the set brand can be selected as needed. Support compiler determination information can be used to characterize whether the current application supports the set compiler, and the set compiler can be selected as needed. The application category determination letter can be used to characterize whether the current application is an application of a specific category, and the specific type can be, for example, an application type such as an Android application.

[0049] The designated application may be a specific application for extracting the signature information corresponding to the installation package, and the designated application may be selected based on needs or experience. The preset encoding method may be Base64 encoding or the like. The preset secure hash algorithm may be secure hash algorithm 256-bit version SHA256 or the like. The designated data structure may be selected based on needs, or may be a data structure allowed by the target server during data transmission, such as a json structure. The set array may be selected based on experience or needs, such as a params array.

[0050] S220: Acquire real device parameters of at least one real device, and construct a corresponding preset device information data table based on the real device parameters of each real device.

[0051] Specifically, at least one real device parameter of at least one model of real device may be obtained, and based on the correspondence between each model of real device and each real device parameter, a corresponding preset device information data table may be constructed.

[0052] Exemplarily, the real device parameters may include supported hardware parameters, system support architecture, device pixel points, and device preferred language of the real device. Accordingly, based on the real device parameters of each real device, a corresponding device information data table is constructed, which may include:

[0053] Based on the preset mapping relationship, the content of each supported hardware parameter in the real device parameters is replaced with the corresponding key value; wherein the preset mapping relationship is the association relationship between each supported hardware parameter and different key values, and different supported hardware parameters correspond to different key values; the system supported architecture, device pixel count, device preferred language and the key value corresponding to each supported hardware parameter are written into the corresponding device information data table.

[0054] Among them, the supported hardware parameters may be parameters corresponding to each hardware module supported by the real device. For example, the type of the supported hardware parameters may include at least one of the parameter types such as audio output support parameters, Bluetooth support parameters, camera support parameters, and positioning support parameters. Different supported hardware parameters have different corresponding key values ​​in the corresponding preset mapping relationship, and the key value may be taken according to experience or needs. The system support architecture may be the processor architecture supported by the operating system of the real device. The device pixel count may refer to the number of pixels on the device screen of the real device. The device preferred language may refer to the main language set by the real device when it leaves the factory or when the user uses it for the first time.

[0055] It can be understood that by replacing the content of each supported hardware parameter with the corresponding key value, it helps to avoid the problem of excessive data in the subsequent packaging process caused by the content of the supported hardware parameters being too long, thereby ensuring the integrity of the supported hardware parameter information while reducing resource usage and improving the corresponding data transmission efficiency.

[0056] In an optional embodiment, based on a specified data structure, the system support architecture, device pixel count, device preferred language, and key values ​​corresponding to each supported hardware parameter may be written to construct real device parameters of the corresponding real device.

[0057] S230. Obtain association information of at least one application market, and construct a corresponding preset application market information data table based on the association information of each application market; wherein the association information of the application market includes application market identification information and application market version information.

[0058] The associated information of the application market may further include a code of the application market, etc. The code may be a fixed value.

[0059] Specifically, based on at least one model of real device, at least one application market installation package can be downloaded, and the associated information of each application market installation package can be determined, and then the associated information of each application market installation package can be written into a preset application market information data table.

[0060] In an optional embodiment, the associated information of each application market installation package may be extracted based on a preset resource packaging tool.

[0061] S240: Construct a corresponding monitoring application database based on the preset list of applications to be monitored, the preset device information data table, and the preset application market information table.

[0062] S250, determining a target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtaining application association information of the target monitoring application; wherein the application association information includes association program information, association device identifier, and association application market identifier;

[0063] S260, based on the associated device identifier and the associated application market identifier, obtaining corresponding associated application market information and associated device information from a preset information data table; wherein the preset information data table includes a preset device information data table and a preset application market information data table;

[0064] S270: Based on the associated program information, the associated application market information and the associated device information, a corresponding application update request is constructed, and the application update request is sent to a target server to obtain an update package of the target monitoring application in the target server.

[0065] In an embodiment of the present invention, by acquiring application association information of at least one application, real device parameters of at least one real device, and association information of at least one application market, a corresponding preset monitoring application list, a preset device information data table, and a preset application market information table are constructed, and a corresponding monitoring application database is further constructed. When it is necessary to obtain an update package of the corresponding target monitoring application, the pre-constructed monitoring application database can be used to simulate the environment of the corresponding real device to construct a corresponding application update request to obtain the corresponding update package. There is no need to occupy or invest in a real device to manually obtain the corresponding update package from the application market in the real device, thereby helping to achieve automatic acquisition of update packages for the corresponding application, thereby helping to meet automation requirements, and also helping to reduce unnecessary overhead.

[0066] Figure 3 This is a flow chart of a method for obtaining an application update package provided in Embodiment 3 of the present invention. This embodiment is further optimized based on the above embodiments. It should be noted that for the parts not described in detail in this embodiment, please refer to the relevant descriptions in other embodiments.

[0067] Further, "based on the associated program information, associated application market information and associated device information, construct a corresponding application update request" is refined into "concatenating the associated program information, associated application market information and associated device information to obtain corresponding update request content; encoding the update request content based on a preset encoding format, and compressing the encoded update request content to obtain target compressed data; configuring request parameters based on the target compressed data to construct a corresponding application update request" to refine the construction mechanism of the application update request.

[0068] refer to Figure 3 , the method specifically comprises the following steps:

[0069] S310. Determine a target monitoring application from each candidate monitoring application recorded in a preset monitoring application list and obtain application association information of the target monitoring application; wherein the application association information includes association program information, an association device identifier, and an association application market identifier.

[0070] S320. Based on the associated device identifier and the associated application market identifier, obtain corresponding associated application market information and associated device information from a preset information data table; wherein the preset information data table includes a preset device information data table and a preset application market information data table.

[0071] S330: Concatenate the associated program information, the associated application market information, and the associated device information to obtain corresponding update request content.

[0072] The update request content may include associated program information, associated application market information, associated device information, and the like.

[0073] Exemplarily, the associated program information, the associated application market information, and the associated device information are concatenated to obtain corresponding update request content, which may include:

[0074] The current system timestamp is obtained, and the current system timestamp, the associated program information, the associated application market information and the associated device information are concatenated to obtain corresponding update request content.

[0075] The current system timestamp may be the timestamp of the system running on the current device at the current time. The current device may be the device sending the application update request to the target server, and the current time may be the time when the current device sends the application update request to the target server.

[0076] It can be understood that by introducing the current system timestamp in the process of obtaining the corresponding update request content, and using the concatenation of the current system timestamp, the current system timestamp, the associated program information, the associated application market information and the associated device information as the corresponding update request content, the target server can not respond to the timed-out and unprocessed application update request based on the corresponding timestamp information, thereby helping to avoid resource waste and potential errors caused by processing timed-out application requests.

[0077] S340: Encode the update request content based on a preset encoding format, and compress the encoded update request content to obtain target compressed data.

[0078] The preset encoding format may be the format required by the target server for the data information in the application update request when processing the application update request, for example, a Uniform Resource Locator (URL) encoding format, etc. The target compressed data may be the result of compressing the encoded update request content.

[0079] Specifically, the encoded update request content can be compressed based on a preset compression algorithm to obtain corresponding target compressed data, wherein the preset compression algorithm can be selected as needed, for example, it can be a Gzip algorithm.

[0080] S350: Configure request parameters based on the target compressed data to construct a corresponding application update request.

[0081] The request method corresponding to the application update request can be set as needed, for example, it can be a POST method, etc. The application update request may include a request header and a request body. The request parameter may be a request header of the application update request, and the target compressed data may be a request body of the application update request. The request parameter may include at least one of the parameter types such as the address of the target server, the length of the request body, the data type of the request body, and the encoding method corresponding to the target compressed data.

[0082] Specifically, after obtaining the corresponding target compressed data, the corresponding request parameters may be configured, and the configured request parameters may be used as a request header, and the corresponding target compressed data may be used as a request body to construct a corresponding application update request.

[0083] In an optional embodiment, a preset third-party library may be selected, request parameters may be configured based on corresponding target compressed data, and a corresponding application update request may be constructed.

[0084] The third-party library may be a library for automatically generating codes corresponding to corresponding application update requests, and may be selected according to needs or experience, for example, a curl library.

[0085] S360: Send the application update request to the target server to obtain an update package of the target monitoring application in the target server.

[0086] In an optional embodiment, obtaining the update package of the target monitoring application in the target server may include:

[0087] Obtain feedback data returned by the target server to the current device; wherein the feedback data includes version information and a download link of an update package corresponding to the target monitoring application; based on the download link, download the update package and store it in a specified location of the current device; enter the version information, the download link and the specified location into a historical update data table of the target monitoring application; wherein the historical update data table is a pre-established data table for recording historical update information of the corresponding candidate application to be monitored.

[0088] The corresponding feedback data may also include at least one of the data types such as the release time of the update package, the update content of the update package, the application version number corresponding to the update package, and the hash value corresponding to the update package. The designated location may be a file directory for storing the update package of the target monitoring application in the current device. Each candidate application to be monitored may be provided with a corresponding historical update data table. The historical update information may include at least one of the version information, storage location, and download link corresponding to the update package obtained by the application each time it is updated. The version information may include at least one of the information such as the application version and the application version number. The storage location may be a corresponding designated location.

[0089] It is understandable that the target server can download and store the update package of the target monitoring application based on the download link by feeding back the download link, without the need for the target server to directly feed back the update package of the target monitoring application, thereby reducing the resource usage of the data transmission process between the target server and the current device and improving the efficiency of the corresponding target server feeding back the corresponding update package information of the target monitoring application. In addition, by setting up the corresponding historical update data table, the corresponding version of the update package can be quickly located for acquisition when there is a subsequent demand.

[0090] In an optional embodiment, the preset list of applications to be monitored may be traversed to determine whether the update time is greater than the start time of the day. If so, the update may be pushed to the current device. If not, the update may not be pushed to the current device.

[0091] In an optional embodiment, a trigger may be triggered in real time to determine a target monitoring application from each candidate to-be-monitored application recorded in a preset list of to-be-monitored applications, and obtain application-related information of the target monitoring application. A trigger may also be triggered based on a set period to determine a target monitoring application from each candidate to-be-monitored application recorded in a preset list of to-be-monitored applications, and obtain application-related information of the target monitoring application.

[0092] In an embodiment of the present invention, the associated program information, the associated application market information and the associated device information are spliced ​​to obtain the corresponding update request content, and the update request content is encoded based on a preset format, and the encoded update request content is compressed to obtain target compressed data, and then parameter configuration is performed based on the corresponding target compressed data to construct a corresponding application update request, thereby helping to avoid the situation where the request data in the generated application update request is too large, thereby helping to reduce resource occupation, and also helping to improve the update request transmission efficiency between the target server.

[0093] Figure 4 This is a schematic diagram of the structure of a device for obtaining an application update package provided in Embodiment 4 of the present invention. This embodiment can be applied to the situation where an environment of a simulated real device is used to obtain an application update package. The device can be implemented in the form of hardware and / or software. The device can be configured in an electronic device, and the electronic device can be a device of a type other than the device type to which the real device belongs. For example, the device type to which the real device belongs can be a mobile phone, and other types can include computers, etc.

[0094] As described in 4, the device includes:

[0095] The application association information acquisition module 410 is used to determine the target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtain the application association information of the target monitoring application; wherein the application association information includes the association program information, the association device identifier and the association application market identifier;

[0096] The device and application market information acquisition module 420 is used to acquire the corresponding associated application market information and associated device information from the preset information data table based on the associated device identifier and the associated application market identifier; wherein the preset information data table includes a preset device information data table and a preset application market information data table;

[0097] The update package acquisition module 430 is used to construct a corresponding application update request based on the associated program information, the associated application market information and the associated device information, and send the application update request to the target server to obtain the update package of the target monitoring application in the target server.

[0098] The technical solution of the embodiment of the present invention determines the target monitoring application and the application association information of the target monitoring application in a preset monitoring application list, and based on the associated device identifier and the associated application market identifier in the application association information, obtains the application market information and the real device information associated with the corresponding target monitoring application in the corresponding preset device information data table and the preset application market information data table, and then further constructs the corresponding application update request based on the associated application market information, the associated device information and the corresponding associated program information, so as to obtain the corresponding update package from the target server based on the application update request, thereby avoiding the need to occupy or invest in a real device and manually obtain the corresponding update package from the application market in the real device, thereby facilitating the automatic acquisition of the update package of the corresponding application, meeting the automation requirements, and at the same time reducing unnecessary expenses because no investment or occupation is required.

[0099] Optionally, before applying the associated information acquisition module 410, the device may further include:

[0100] A monitoring application list construction module, used to obtain application association information of at least one application program, and to construct a corresponding monitoring application list based on the application association information of each application program;

[0101] A device information data table construction module, used to obtain real device parameters of at least one real device, and construct a corresponding device information data table based on the real device parameters of each real device;

[0102] An application market information data table construction module, used to obtain the associated information of at least one application market, and construct a corresponding application market information data table based on the associated information of each application market; wherein the associated information of the application market includes application market identification information and application market version information;

[0103] The monitoring application database construction module is used to construct a corresponding monitoring application database based on the list of applications to be monitored, the device information data table and the application market information table.

[0104] Optionally, the real device parameters may include supported hardware parameters, system support architecture, device pixel count, and device preferred language of the real device; accordingly, the device information data table construction module may include:

[0105] A supporting hardware parameter replacement unit is configured to replace the content of each supporting hardware parameter in the real device parameter with a corresponding key value based on a preset mapping relationship; wherein the preset mapping relationship is an association relationship between each supporting hardware parameter and different key values, and different supporting hardware parameters correspond to different key values;

[0106] The device information data table writing unit is used to write the key values ​​corresponding to the system support architecture, device pixel points, device preferred language and each supported hardware parameter into the corresponding device information data table.

[0107] Optionally, the update package acquisition module 430 may include:

[0108] An update request content acquisition unit, used to combine the associated program information, the associated application market information and the associated device information to obtain corresponding update request content;

[0109] a target compressed data acquisition unit, configured to encode the update request content based on a preset encoding format, and compress the encoded update request content to obtain target compressed data;

[0110] The application update request construction unit is used to configure request parameters based on the target compressed data to construct a corresponding application update request.

[0111] Optionally, the update request content acquisition unit may include:

[0112] The update request content acquisition subunit is used to acquire the current system timestamp, and to concatenate the current system timestamp, the associated program information, the associated application market information and the associated device information to obtain the corresponding update request content.

[0113] Optionally, the update package acquisition module 430 may include:

[0114] A feedback data acquisition unit, used to acquire feedback data returned by the target server to the current device; wherein the feedback data includes version information and download link of the update package corresponding to the target monitoring application;

[0115] An update package download storage unit, used to download the update package based on the download link and store it to a specified location of the current device;

[0116] The historical update data table entry unit is used to enter the version information, the download link and the specified location into the historical update data table of the target monitoring application; wherein the historical update data table is a pre-established data table for recording the historical update information of the corresponding application to be monitored.

[0117] The device for obtaining an application update package provided in the embodiment of the present invention can execute any one of the methods for obtaining an application update package provided in the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the methods for obtaining an application update package. For the contents not described in detail in the embodiment of the present invention, reference can be made to the description in the embodiment of the method for obtaining an application update package in any one of the embodiments of the present invention.

[0118] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.

[0119] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0120] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0121] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0122] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for obtaining an application update package.

[0123] In some embodiments, the method for obtaining the application update package may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for obtaining the application update package described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for obtaining the application update package in any other appropriate manner (e.g., by means of firmware).

[0124] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0125] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0126] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0127] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0128] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0129] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0130] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.

[0131] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution provided by this disclosure can be achieved, and this document does not limit this.

[0133] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for obtaining an application update package, characterized in that: include: Determine a target monitoring application from each candidate monitoring application recorded in the preset monitoring application list and obtain application association information of the target monitoring application; wherein the application association information includes association program information, association device identifier and association application market identifier; Based on the associated device identifier and the associated application market identifier, obtain corresponding associated application market information and associated device information from a preset information data table; wherein the preset information data table includes a preset device information data table and a preset application market information data table; Based on the associated program information, the associated application market information and the associated device information, a corresponding application update request is constructed, and the application update request is sent to the target server to obtain an update package of the target monitoring application in the target server.

2. The method according to claim 1, characterized in that Before determining a target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtaining application association information of the target monitoring application, the method further includes: Acquire application association information of at least one application, and construct a corresponding monitoring application list based on the application association information of each application; Acquire real device parameters of at least one real device, and construct a corresponding device information data table based on the real device parameters of each real device; Obtaining at least one application market's associated information, and constructing a corresponding application market information data table based on the associated information of each application market; wherein the application market's associated information includes application market identification information and application market version information; Based on the list of applications to be monitored, the device information data table and the application market information table, a corresponding monitoring application database is constructed.

3. The method according to claim 2, characterized in that The real device parameters include supported hardware parameters, system support architecture, device pixel count and device preferred language of the real device; accordingly, based on the real device parameters of each real device, a corresponding device information data table is constructed, including: Based on the preset mapping relationship, the content of each supported hardware parameter in the real device parameter is replaced with a corresponding key value; wherein the preset mapping relationship is an association relationship between each supported hardware parameter and different key values, and different supported hardware parameters correspond to different key values; Write the key values ​​corresponding to the system support architecture, device pixel count, device preferred language, and each supported hardware parameter into the corresponding device information data table.

4. The method according to claim 1, characterized in that: Based on the associated program information, associated application market information, and associated device information, a corresponding application update request is constructed, including: The associated program information, the associated application market information and the associated device information are combined to obtain corresponding update request content; Encoding the update request content based on a preset encoding format, and compressing the encoded update request content to obtain target compressed data; Request parameters are configured based on the target compressed data to construct a corresponding application update request.

5. The method according to claim 4, characterized in that The associated program information, associated application market information and associated device information are combined to obtain corresponding update request content, including: The current system timestamp is obtained, and the current system timestamp, the associated program information, the associated application market information and the associated device information are concatenated to obtain corresponding update request content.

6. The method according to claim 1, characterized in that Obtaining an update package of the target monitoring application in the target server includes: Obtain feedback data returned by the target server to the current device; wherein the feedback data includes version information and download link of the update package corresponding to the target monitoring application; Based on the download link, download the update package and store it to a specified location of the current device; The version information, the download link and the designated location are entered into the historical update data table of the target monitoring application; wherein the historical update data table is a pre-established data table for recording the historical update information of the corresponding application to be monitored.

7. A device for obtaining an application update package, characterized in that: include: The application association information acquisition module is used to determine the target monitoring application from each candidate to-be-monitored application recorded in the preset to-be-monitored application list and obtain the application association information of the target monitoring application; wherein the application association information includes the association program information, the association device identifier and the association application market identifier; The device and application market information acquisition module is used to acquire the corresponding associated application market information and associated device information from the preset information data table based on the associated device identifier and the associated application market identifier; wherein the preset information data table includes a preset device information data table and a preset application market information data table; The update package acquisition module is used to construct a corresponding application update request based on the associated program information, associated application market information and associated device information, and send the application update request to the target server to obtain the update package of the target monitoring application in the target server.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for obtaining an application update package according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for obtaining an application update package according to any one of claims 1 to 7 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for obtaining an application update package according to any one of claims 1 to 7.

Citation Information

Cited By

  • Operation system batch installation method and system, electronic equipment and readable medium

    CN121143818A