Program update processing method and device
Through the update management mechanism of the subroutine service platform, update packages are generated and distributed, which solves the problem of memory usage of terminal devices and realizes efficient update and difference management of target subroutines.
Patent Information
- Application Number
- CN202210135296.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-02-14
AI Technical Summary
In the prior art, sub-application packages associated with third-party applications occupy terminal device memory, resulting in a slowdown in operation, and lack of an effective program update management mechanism.
Through the subprogram service platform, query the update configuration status according to the version update information of the target subprogram, read the terminal device information, build the update configuration information, merge the version update information to generate the update package, and send the update package to the device client through the service interface.
It improves the version awareness of target subprograms on terminal devices, saves memory, ensures the security and management convenience of updated program packages, and realizes differentiated management of target subprograms in terminal devices and third-party applications.
Smart Images

Figure CN114518894B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of data processing technology, and in particular to a program update processing method and device. Background Art
[0002] With the development of Internet technology and the popularization of mobile terminals, more and more services have begun to extend to online scenarios, and application platform software that can carry multiple application sub-programs has emerged, avoiding users from installing different types of applications on mobile terminals. Instead, services are handled with the help of application sub-programs installed in the application platform software. At the same time, application sub-programs can also make full use of the sufficient user traffic of the application platform software to provide support for the service improvement of the application sub-programs. Summary of the Invention
[0003] One or more embodiments of this specification provide a program update processing method. The program update processing method includes: querying the update configuration status of the target subprogram based on the version update information of the target subprogram. If the update configuration status is the update-on state, the device information of the terminal device that registers the device on the subprogram service platform is read, and the update configuration information is constructed based on the device information and the preset configuration information. The update configuration information and the version update information are merged to obtain the update program package of the target subprogram. If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface.
[0004] One or more embodiments of the present specification provide a program update processing device, including: a status query module, configured to query the update configuration status of the target subprogram based on the version update information of the target subprogram. If the update configuration status is the update-on state, the information construction module is run, and the information construction module is configured to read the device information of the terminal device that registers the device on the subprogram service platform, and construct the update configuration information based on the device information and the preset configuration information. The information merging module is configured to merge the update configuration information and the version update information to obtain the update package of the target subprogram. If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the package sending module is run, and the package sending module is configured to send the update package to the device client.
[0005] One or more embodiments of the present specification provide a program update processing device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to: query the update configuration status of the target subprogram based on the version update information of the target subprogram. If the update configuration status is the update-on state, the device information of the terminal device that registers the device on the subprogram service platform is read, and the update configuration information is constructed based on the device information and the preset configuration information. The update configuration information and the version update information are merged to obtain an update package for the target subprogram. If it is detected that the device client of the terminal device calls a service interface to access the target subprogram, the update package is sent to the service interface.
[0006] One or more embodiments of this specification provide a storage medium for storing computer-executable instructions, which implement the following process when executed by a processor: query the update configuration status of the target subprogram based on the version update information of the target subprogram. If the update configuration status is the update-on state, read the device information of the terminal device that registers the device on the subprogram service platform, and construct the update configuration information based on the device information and the preset configuration information. Merge the update configuration information and the version update information to obtain the update program package of the target subprogram. If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, send the update program package to the service interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] In order to more clearly illustrate one or more embodiments of this specification or technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments described in this specification. Those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0008] Figure 1 A flowchart of a program update processing method provided in one or more embodiments of this specification;
[0009] Figure 2 A flowchart of a program update processing method applied to a subprogram version update scenario provided by one or more embodiments of this specification;
[0010] Figure 3 A schematic diagram of a program update processing device provided in one or more embodiments of this specification;
[0011] Figure 4A schematic diagram of the structure of a program update processing device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0012] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.
[0013] This specification provides an embodiment of a program update processing method:
[0014] Reference Figure 1 , which shows a process flow chart of a program update processing method provided by this embodiment, referring to Figure 2 , which shows a processing flow chart of a program update processing method provided by this embodiment and applied to a sub-program version update scenario.
[0015] Reference Figure 1 The program update processing method provided in this embodiment specifically includes steps S102 to S108.
[0016] Step S102: query the update configuration status of the target subprogram according to the version update information of the target subprogram.
[0017] The program update processing method provided in this embodiment is applied to a sub-program delivery platform. When a version update of a target sub-program is detected, update configuration information is constructed according to the update activation status of the target sub-program. When the update configuration information is constructed, the update configuration information and the version update information of the target sub-program are merged to obtain an update package of the target sub-program for the terminal device. If it is detected that a device client of the terminal device accesses the target sub-program, the update package is sent to the device client to load the latest version of the target sub-program on the device client. In this way, it is determined whether to generate an update package for the target sub-program on the terminal device according to the update configuration status of the target sub-program. After the version update information of the target sub-program is detected, an update package for the target sub-program is generated, thereby improving the user's perception of the version of the target sub-program of the terminal device.
[0018] The target subprogram in this embodiment refers to a program package or application component that is installed on an application platform (or application) or loaded and installed by the application platform. From a service perspective, the target subprogram has the ability to independently provide closed-loop services, such as a closed-loop subprogram running within an application that provides vehicle-related services or ordering services. The update configuration status is the status of whether the subprogram provider of the target subprogram configures the target subprogram to update its version in real time.
[0019] In order to improve the subprogram provider's awareness and authority over the target subprogram's version update, this embodiment provides an optional implementation in which the update configuration state is configured in the following manner:
[0020] According to an enabling instruction of the target subprogram's update configuration state by a subprogram provider of the target subprogram, recording the target subprogram's update configuration state as an update enabling state;
[0021] or,
[0022] According to the closing instruction of the subprogram provider on the update configuration state of the target subprogram, the update configuration state of the target subprogram is recorded as the update closed state.
[0023] Specifically, during the delivery of a target subprogram via the subprogram delivery platform, the subprogram provider configures the target subprogram's update configuration status, i.e., whether to enable real-time updates of the target subprogram version on the terminal device corresponding to the subprogram service platform. If the subprogram provider configures the target subprogram's update configuration status with an on instruction, the target subprogram's update-enabled status is recorded; if the subprogram provider configures the target subprogram's update configuration status with a off instruction, the target subprogram's update-disabled status is recorded. Each time the subprogram provider sets the update configuration status, a record is made.
[0024] If the update configuration status of the target subprogram is found to be the update-on state, the device information of the terminal device registered on the subprogram service platform is read, and the update configuration information is constructed based on the device information and the preset configuration information. If the update configuration status of the target subprogram is found to be the update-off state, no processing is performed.
[0025] In actual applications, storing all the sub-application packages associated with a third-party application on a terminal device will occupy a large amount of the terminal device's memory, slowing down the terminal device's operation. Based on this, this embodiment sets up a sub-program service platform and configures a service interface corresponding to the sub-program service platform on the terminal device, so that when the device client of the terminal device accesses the sub-program associated with the device client, the service interface is called for access, thereby saving the memory occupied by the device client on the terminal device. Optionally, the service interface is a lightweight interface for the sub-program service of the third-party application. If a version update of the target sub-program corresponding to the third-party application is detected, the version update information is read, and the step of querying the update configuration status of the target sub-program based on the version update information of the target sub-program is executed.
[0026] In specific implementation, if the update configuration status of the target subprogram configured by the subprogram provider is the update-on status, the target subprogram is updated once when the update-on status is set for the first time. Subsequently, when it is detected that the version of the subprogram corresponding to the target subprogram in the third-party application has been released, the update configuration status of the target subprogram is queried. When the update configuration status is the update-on status, the update package of the target subprogram is delivered.
[0027] Step S104: If the update configuration state is the update-on state, the device information of the terminal device registered in the subprogram service platform is read, and the update configuration information is constructed based on the device information and the preset configuration information.
[0028] The terminal device described in this embodiment includes but is not limited to at least one of the following: a vehicle-mounted terminal, a terminal device connected to the vehicle, a smart speaker, an unmanned vending machine, an autonomous radio, an interactive advertising screen, a POS device, and smart home appliances such as smart TVs and smart refrigerators.
[0029] In specific implementation, when executing the delivery process, first obtain the updated version information of the sub-application corresponding to the target sub-application in the third-party application, that is, the version update information, and then build the specific update configuration information of the sub-application service platform for the target sub-application;
[0030] In order to improve the adaptability of the target subprogram, the subprogram provider will configure preset configuration information for the target subprogram; the preset configuration information includes the device screen information and screen configuration parameters of the terminal device that the target subprogram is adapted to; in addition, the subprogram service platform will configure the menu information used by the terminal device to access the target subprogram based on the terminal device that is used to register the device. Based on this, during the delivery process, the subprogram service platform first reads the device information (device model, device screen parameters, etc.) of the terminal device that is used to register the device on the subprogram service platform. After reading the device information, the subprogram service platform then updates the configuration information based on the device information and the preset configuration information configured by the subprogram provider.
[0031] In the first optional implementation provided by this embodiment, the update configuration information is constructed in the following manner:
[0032] Reading the preset configuration information configured by the subroutine provider of the target subroutine;
[0033] The preset configuration information and the device information are combined to obtain the updated configuration information.
[0034] Specifically, the preset configuration information configured by the subprogram provider is read, and the preset configuration information and the device information are directly merged to obtain the updated configuration information.
[0035] It should be noted that based on this method, the update coordination information is obtained, the update configuration information and the version update information are merged, and the update package of the target subroutine is obtained. After the update package is read during the service interface accessing the target subroutine, the target configuration parameters in the preset configuration information are first determined based on the device information in the update package, and then the target subroutine is loaded through the device client based on the target configuration parameters.
[0036] In order to improve the efficiency of loading the update package of the service interface and further improve the efficiency of accessing the target subprogram, in the second optional implementation provided by this embodiment, the update configuration information is constructed in the following manner:
[0037] Reading the preset configuration information configured by the subroutine provider of the target subroutine;
[0038] According to the device information, target configuration parameters for the terminal device in the preset configuration information are extracted and the target configuration parameters are used as the updated configuration information.
[0039] That is, in the process of constructing the updated configuration information, after reading the preset configuration information configured by the subroutine provider, the target configuration parameters for the terminal device in the preset configuration information are extracted according to the device information of the terminal device read, and the target configuration parameters are used as the updated configuration information.
[0040] It should be noted that the above process of constructing updated configuration information based on device information and preset configuration information is merely illustrative. In specific scenarios, the data for constructing updated configuration information can be determined according to actual needs, and this embodiment does not limit this.
[0041] Step S106: Merge the update configuration information and the version update information to obtain an update package of the target subprogram.
[0042] During specific implementation, the version update information of the target subprogram in the third-party application is obtained, and after the update configuration information is constructed, the update configuration information and the version update information are merged, and then the merged result is repackaged to obtain the update package of the target subprogram; in order to prevent the information in the update package from being tampered with, thereby affecting the security of the terminal device after the update package is loaded, the update package is signed, and in order to improve the convenience of version management of the target subprogram, a version identifier is set for each version;
[0043] In an optional implementation manner provided by this embodiment, after obtaining the update package of the target subprogram, the following steps are performed:
[0044] Performing a signature process on the update program package, and determining a version identifier corresponding to the update program package after the signature process;
[0045] The version identifier is issued when the device client calls the service interface to read the update program package.
[0046] After obtaining the update package, a unique version of the target subprogram is created under the subprogram service platform, and the unique version is released.
[0047] Step S108: If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface.
[0048] Optionally, when the device client is running, it displays an access component of a target subprogram associated with the device client; when the device client detects that the access component is triggered, it calls the service interface and passes in the subprogram identifier of the target subprogram and the program identifier of the device client to access the target subprogram through the service interface.
[0049] In an optional implementation manner provided by this embodiment, the association relationship is established in the following manner:
[0050] querying, according to a configuration request for subprogram configuration by a device provider for a device client of the terminal device, a permission policy type of the target subprogram corresponding to the configuration request; the target subprogram is a subprogram in a subprogram pool of the subprogram service platform;
[0051] If the permission policy type configured by the subprogram provider of the target subprogram for the target subprogram is the first policy type, establishing an association relationship between the device client and the target subprogram;
[0052] If the permission policy type configured by the subprogram provider for the target subprogram is the second policy type, then an association relationship between the device client and the target subprogram is established when the device client is within the permission range corresponding to the second permission policy.
[0053] Specifically, after obtaining the update package of the target subprogram, in order to facilitate the management of the updated version of the target subprogram and to ensure the security of the update package, the update package is signed, so that after the service interface reads the update package, a handshake is performed with the update package, and after the handshake is passed, the service interface opens the update resource package; wherein, in the process of signing the update package, a regular signature processing is performed on the elements in the update package, and after the service interface reads the update package after the signature processing, the signature is verified based on preset rules. If the signature verification is passed, it indicates that the update package is trusted and the update package is opened; if the signature verification fails, the update package is not trusted, and in order to avoid affecting the security of the terminal device, the update package is not opened.
[0054] The device client includes a host program configured by the device provider of the terminal device before the terminal device leaves the factory; the device provider includes the manufacturer, seller and / or service operator of the terminal device.
[0055] It should be noted that the device provider establishes an association relationship between the device client and the target subprogram. After the association relationship is established, the device client displays the access component of the target subprogram at runtime. When the device client detects that the access component is triggered, it calls the service interface configured on the device client to access the target subprogram. The service interface reads the update package and loads it to access the target subprogram through the device client.
[0056] In order to further improve the efficiency of the service interface in loading the target subprogram, in an optional implementation provided in this embodiment, the service interface performs the following operations after reading the update package and version identifier:
[0057] Reading a local program package of the target subprogram stored in the device client;
[0058] Verifying whether the version identifier is consistent with the version identifier of the local program package;
[0059] If they are inconsistent, loading the update package and displaying it through the device client;
[0060] If they are consistent, the local program package is loaded and displayed through the device client.
[0061] Specifically, after reading the update package and version identifier, the service interface first verifies whether the version identifier is consistent with the version identifier of the local package stored in the storage space of the terminal device. If they are consistent, it indicates that the version of the target subprogram has not been updated and the local package can be loaded; if they are inconsistent, it indicates that the version of the target subprogram has been updated. In order to improve the user's perception of the target subprogram version of the terminal device, the update package is loaded.
[0062] The following takes the application of a program update processing method provided by this embodiment in a subprogram version update scenario as an example to further illustrate the program update processing method provided by this embodiment. Figure 2 , a program update processing method applied to a subprogram version update scenario, specifically including steps S202 to S216.
[0063] Step S202: Detect the version update status of the target subprogram in the sub-application of the third-party application.
[0064] Step S204: If it is detected that the target subprogram is updated in the sub-application of the third-party application, the version update information of the sub-application of the third-party application is read.
[0065] Step S206: query the updated configuration status of the target subprogram configured by the subprogram provider of the target subprogram.
[0066] Step S208: If the update configuration state is the update-on state, the device information of the terminal device registered by the subroutine service platform is read.
[0067] Step S210: Merge the device information and the preset configuration information configured by the subroutine provider to obtain updated configuration information.
[0068] Step S212: Merge the update configuration information and the version update information to obtain an update package of the target subprogram.
[0069] Step S214: Sign the update package and determine the version identifier corresponding to the update package after signing.
[0070] Step S216: If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, an update program package and a version identifier are sent to the service interface.
[0071] In summary, the program update processing method provided by this embodiment, in a first aspect, the subprogram provider configures and updates the configuration status, thereby improving the subprogram provider's awareness of the management of the target subprogram;
[0072] Secondly, the update configuration status configured by the subprogram provider is valid for the version update status of the target subprogram of the terminal device registered with the subprogram service platform, but is invalid for the subprogram corresponding to the target subprogram in the third-party application. In this way, the target subprogram under the subprogram service platform and the subprogram corresponding to the target subprogram in the third-party application are kept independent;
[0073] Third, because the configuration of the target subprogram on the subprogram service platform differs from that in third-party applications, when updating the target subprogram on the terminal device of the subprogram service platform, update configuration information is constructed and packaged with the target subprogram's version update information in the third-party application before delivery. This ensures that the target subprogram's update package on the terminal device and the third-party application is different. This difference determines the different display methods of the target subprogram on the terminal device and the third-party application.
[0074] Fourthly, the target subprograms of third-party applications and terminal devices are managed separately, so that when one party goes offline, the other party can still continue to use it.
[0075] An embodiment of a program update processing device provided in this specification is as follows:
[0076] In the above embodiment, a program update processing method is provided, and correspondingly, a program update processing device is also provided, which will be described below with reference to the accompanying drawings.
[0077] Reference Figure 3 , which shows a schematic diagram of a program update processing device provided by this embodiment.
[0078] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.
[0079] This embodiment provides a program update processing device, including:
[0080] A status query module 302 is configured to query the update configuration status of the target subprogram according to the version update information of the target subprogram;
[0081] If the update configuration state is the update-on state, the information construction module 304 is run. The information construction module 304 is configured to read the device information of the terminal device registered on the subprogram service platform and construct the update configuration information based on the device information and the preset configuration information;
[0082] An information merging module 306 is configured to merge the update configuration information and the version update information to obtain an update package of the target subprogram;
[0083] If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the program package sending module 308 is executed. The program package sending module 308 is configured to send the update program package to the device client.
[0084] An embodiment of a program update processing device provided in this specification is as follows:
[0085] Corresponding to the program update processing method described above, based on the same technical concept, one or more embodiments of this specification further provide a program update processing device, which is used to execute the program update processing method provided above. Figure 4 A schematic diagram of the structure of a program update processing device provided in one or more embodiments of this specification.
[0086] This embodiment provides a program update processing device, including:
[0087] like Figure 4 As shown, the program update processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 401 and memory 402, and the memory 402 may store one or more stored applications or data. Among them, the memory 402 can be a temporary storage or a persistent storage. The application stored in the memory 402 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the program update processing device. Furthermore, the processor 401 can be configured to communicate with the memory 402 to execute the series of computer-executable instructions in the memory 402 on the program update processing device. The program update processing device may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input / output interfaces 405, one or more keyboards 406, etc.
[0088] In a specific embodiment, a program update processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the program update processing device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:
[0089] Query the update configuration status of the target subprogram according to the version update information of the target subprogram;
[0090] If the update configuration state is the update-on state, then reading the device information of the terminal device registered on the subprogram service platform, and constructing the update configuration information based on the device information and the preset configuration information;
[0091] Merging the update configuration information and the version update information to obtain an update program package of the target subprogram;
[0092] If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface.
[0093] An embodiment of a storage medium provided in this specification is as follows:
[0094] Corresponding to the program update processing method described above, based on the same technical concept, one or more embodiments of this specification further provide a storage medium.
[0095] The storage medium provided in this embodiment is used to store computer-executable instructions. When the computer-executable instructions are executed by a processor, the following process is implemented:
[0096] Query the update configuration status of the target subprogram according to the version update information of the target subprogram;
[0097] If the update configuration state is the update-on state, then reading the device information of the terminal device registered on the subprogram service platform, and constructing the update configuration information based on the device information and the preset configuration information;
[0098] Merging the update configuration information and the version update information to obtain an update program package of the target subprogram;
[0099] If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface.
[0100] It should be noted that the embodiment of the storage medium in this specification and the embodiment of the program update processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.
[0101] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0102] In the 1930s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0103] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the means for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as both a software module implementing the method and a structure within the hardware component.
[0104] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0105] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0106] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as a method, system, or computer program product. Thus, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0107] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0108] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0110] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0111] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0112] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0113] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0114] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0115] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0116] The foregoing description is merely an example of the present invention and is not intended to limit the present invention. Persons skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims herein.
Claims
1. A program update processing method, comprising: Query the update configuration status of the target subprogram according to the version update information of the target subprogram; The version update information is read after detecting the version update of the target subprogram in the sub-application of the third-party application; If the update configuration state is the update-on state, the device information of the terminal device registered on the subprogram service platform is read, and the target configuration parameters are constructed based on the device information and the preset configuration information; the preset configuration information includes the device screen information and screen configuration parameters adapted by the target subprogram; Merging the target configuration parameters and the version update information to obtain an update package of the target subprogram; If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface; The service interface is a lightweight interface of the subroutine service of the third-party application.
2. The program update processing method according to claim 1, further comprising: after executing the step of merging the target configuration parameters and the version update information to obtain an update package for the target subprogram, and before executing the step of issuing the update package to the service interface if detecting that the device client of the terminal device calls a service interface to access the target subprogram, Performing a signature process on the update program package, and determining a version identifier corresponding to the update program package after the signature process; The version identifier is issued when the device client calls the service interface to read the update program package.
3. The program update processing method according to claim 2, wherein after the service interface reads the update program package, the service interface performs the following operations: Reading a local program package of the target subprogram stored in the device client; Verifying whether the version identifier is consistent with the version identifier of the local program package; If they are inconsistent, loading the update package and displaying it through the device client; If they are consistent, the local program package is loaded and displayed through the device client.
4. The program update processing method according to claim 1, wherein the constructing of target configuration parameters based on the device information and preset configuration information comprises: Reading the preset configuration information configured by the subroutine provider of the target subroutine; The preset configuration information and the device information are combined to obtain the target configuration parameters.
5. The program update processing method according to claim 1, wherein the constructing of target configuration parameters based on the device information and preset configuration information comprises: Reading the preset configuration information configured by the subroutine provider of the target subroutine; According to the device information, the target configuration parameters for the terminal device in the preset configuration information are extracted.
6. The program update processing method according to claim 1, wherein the device client, when running, displays an access component of a target subprogram associated with the device client; When detecting that the access component is triggered, the device client calls the service interface and inputs the subprogram identifier of the target subprogram and the program identifier of the device client, so as to access the target subprogram through the service interface.
7. The program update processing method according to claim 6, wherein the association relationship is established in the following manner: According to a configuration request for subprogram configuration by a device provider for a device client of the terminal device, querying the permission policy type of the target subprogram corresponding to the configuration request; The target subprogram is a subprogram in the subprogram pool of the subprogram service platform; If the permission policy type configured by the subprogram provider of the target subprogram for the target subprogram is the first policy type, establishing an association relationship between the device client and the target subprogram; If the permission policy type configured by the subprogram provider for the target subprogram is the second policy type, then an association relationship between the device client and the target subprogram is established when the device client is within the permission range corresponding to the second policy type.
8. The program update processing method according to claim 1, wherein the update configuration state is configured in the following manner: According to an enabling instruction of the target subprogram's update configuration state by a subprogram provider of the target subprogram, recording the target subprogram's update configuration state as an update enabling state; and / or, According to the closing instruction of the subprogram provider on the update configuration state of the target subprogram, the update configuration state of the target subprogram is recorded as the update closed state.
9. The program update processing method according to claim 1, wherein the service interface is a lightweight interface for the subroutine service of a third-party application. If a version update of the subroutine corresponding to the target subroutine in the third-party application is detected, the version update information is read, and the step of querying the update configuration status of the target subroutine based on the version update information of the target subroutine is executed.
10. A program update processing device, comprising: A status query module is configured to query the update configuration status of the target subprogram according to the version update information of the target subprogram; The version update information is read after detecting the version update of the target subprogram in the sub-application of the third-party application; If the update configuration state is the update-on state, an information construction module is run, wherein the information construction module is configured to read device information of a terminal device registered on the subprogram service platform, and construct target configuration parameters based on the device information and preset configuration information; the preset configuration information includes device screen information and screen configuration parameters adapted by the target subprogram; an information merging module, configured to merge the target configuration parameters and the version update information to obtain an update package of the target subprogram; If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, a program package sending module is executed, wherein the program package sending module is configured to send the update program package to the service interface; The service interface is a lightweight interface of the subroutine service of the third-party application.
11. A program update processing device, comprising: processor; as well as, a memory configured to store computer-executable instructions that, when executed, cause the processor to: querying the update configuration status of the target subprogram according to the version update information of the target subprogram; the version update information is read after detecting the version update status of the sub-application of the target subprogram in the third-party application; If the update configuration state is the update-on state, the device information of the terminal device registered on the subprogram service platform is read, and the target configuration parameters are constructed based on the device information and the preset configuration information; the preset configuration information includes the device screen information and screen configuration parameters adapted by the target subprogram; Merging the target configuration parameters and the version update information to obtain an update package of the target subprogram; If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface; The service interface is a lightweight interface of the subroutine service of the third-party application.
12. A storage medium for storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the following process: querying the update configuration status of the target subprogram according to the version update information of the target subprogram; the version update information is read after detecting the version update status of the sub-application of the target subprogram in the third-party application; If the update configuration state is the update-on state, the device information of the terminal device registered on the subprogram service platform is read, and the target configuration parameters are constructed based on the device information and the preset configuration information; the preset configuration information includes the device screen information and screen configuration parameters adapted by the target subprogram; Merging the target configuration parameters and the version update information to obtain an update package of the target subprogram; If it is detected that the device client of the terminal device calls the service interface to access the target subprogram, the update program package is sent to the service interface; The service interface is a lightweight interface of the subroutine service of the third-party application.
Citation Information
Patent Citations
Applet processing method, device, equipment and storage medium
CN111382362A
Applet application installation management method, device, equipment and system
CN111651734A
Screen adaptation method and device, electronic equipment and storage medium
CN111694530A
Multi-type application publishing method and device, computer equipment and storage medium
CN112947945A
Risk detection method, device and equipment for applet
CN113568841A