Program updating processing method and device
By building and updating configuration and version update information through the subroutine service platform, and generating update packages, the memory usage problem of terminal devices is solved, and efficient update management and security assurance of target subroutines are achieved.
Patent Information
- Application Number
- CN202511191726.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2025-11-28
AI Technical Summary
In existing technologies, sub-application packages associated with third-party applications occupy terminal device memory, resulting in slower operation and a lack of effective program update management mechanisms.
Through the subroutine service platform, based on the update configuration status of the target subroutine, the device information and preset configuration information are queried, the update configuration information is constructed, the version update information is merged, the update package is generated, and it is distributed to the device client through the service interface.
It improves the memory utilization efficiency of terminal devices, ensures the awareness of version update management of target subroutines, maintains the differentiated display of target subroutines in terminal devices and third-party applications, prevents information tampering, and ensures security.
Smart Images

Figure CN121029201A_ABST
Abstract
Description
[0001] This patent application is a divisional application of the Chinese patent application No. CN202210135296.2, with the application date of February 14, 2022, and the title of “Program Update Processing Method and Device”. TECHNICAL FIELD
[0002] The present document relates to the technical field of data processing, and in particular to a program update processing method and device. BACKGROUND
[0003] With the development of Internet technology and the popularity of mobile terminals, more and more services begin to extend to online scenarios. For example, application platform software can carry multiple application sub-programs, avoiding users installing different types of application programs on mobile terminals, but using application sub-programs carried in the application platform software to realize service handling. At the same time, application sub-programs can also fully utilize the sufficient user traffic of the application platform software to provide assistance for service improvement of the application sub-programs. SUMMARY
[0004] One or more embodiments of the present specification provide a program update processing method. The program update processing method comprises: querying an update configuration state of a target sub-program according to version update information of the target sub-program. If the update configuration state is an update open state, reading device information of a terminal device registered in a sub-program service platform, and constructing update configuration information based on the device information and preset configuration information. Merging the update configuration information and the version update information to obtain an update program package of the target sub-program. If it is detected that a device client of the terminal device calls a service interface to access the target sub-program, the update program package is issued to the service interface.
[0005] One or more embodiments of the present specification provide a program update processing device. The program update processing device comprises: a state query module configured to query an update configuration state of a target sub-program according to version update information of the target sub-program. If the update configuration state is an update open state, an information construction module is run. The information construction module is configured to read device information of a terminal device registered in a sub-program service platform, and construct update configuration information based on the device information and preset configuration information. An information merging module is configured to merge the update configuration information and the version update information to obtain an update program package of the target sub-program. If it is detected that a device client of the terminal device calls a service interface to access the target sub-program, a program package issuing module is run. The program package issuing module is configured to issue the update program package to the device client.
[0006] 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 that, when executed, cause the processor to: query an update configuration state of a target subprogram according to version update information of the target subprogram. If the update configuration state is an update open state, read device information of a terminal device registered in a subprogram service platform, and construct update configuration information based on the device information and preset configuration information. Merge the update configuration information and the version update information to obtain an update program package of the target subprogram. If it is detected that a device client of the terminal device calls a service interface to access the target subprogram, the update program package is issued to the service interface.
[0007] One or more embodiments of the present specification provide a storage medium for storing computer executable instructions, which, when executed by a processor, implement the following processes: querying an update configuration state of a target subprogram according to version update information of the target subprogram. If the update configuration state is an update open state, reading device information of a terminal device registered in a subprogram service platform, and constructing update configuration information based on the device information and preset configuration information. Merge the update configuration information and the version update information to obtain an update program package of the target subprogram. If it is detected that a device client of the terminal device calls a service interface to access the target subprogram, the update program package is issued to the service interface. BRIEF DESCRIPTION OF DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the one or more embodiments of the present specification or the prior art, the drawings needed to be used in the embodiment or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments described in the present specification, and those skilled in the art can also obtain other drawings according to these drawings without creative labor; Figure 1 A program update processing method processing flowchart provided by one or more embodiments of the present specification; Figure 2 A program update processing method processing flowchart applied to a subprogram version update scenario provided by one or more embodiments of the present specification; Figure 3 A program update processing device schematic diagram provided by one or more embodiments of the present specification; Figure 4 A structure schematic diagram of a program update processing device provided by one or more embodiments of the present specification. DETAILED DESCRIPTION
[0009] In order to make the person skilled in the art better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be described clearly and completely in the following with reference to the drawings in one or more embodiments of the present specification. Obviously, the described embodiments are only a part of the embodiments of the present specification, rather than all the embodiments. Based on one or more embodiments of the present specification, all other embodiments obtained by those skilled in the art without creative labor should belong to the protection scope of the present document.
[0010] An embodiment of the program updating method provided by the present specification is as follows: Referring to Figure 1 , a program updating method processing flowchart provided by the present embodiment is shown, referring to Figure 2 , a program updating method processing flowchart applied to a subprogram version updating scenario provided by the present embodiment is shown.
[0011] Referring to Figure 1 , the program updating method provided by the present embodiment specifically includes steps S102 to S108.
[0012] Step S102, according to the version updating information of the target subprogram, querying the updating configuration state of the target subprogram.
[0013] The program updating method provided by the present embodiment is applied to a subprogram launching platform. In the case of detecting the version updating of the target subprogram, according to the updating start state of the target subprogram, the updating configuration information is constructed. In the case of constructing the updating configuration information, the updating configuration information and the version updating information of the target subprogram are merged to obtain the updating program package of the target subprogram for the terminal device. If the device client of the terminal device accesses the target subprogram, the updating program package is issued to the device client to load the latest version of the target subprogram in the device client. In this way, it is determined whether to generate the updating program package of the target subprogram in the terminal device according to the updating configuration state of the target subprogram. After detecting the version updating information of the target subprogram, the updating program package of the target subprogram is generated. In this way, the perception degree of the user to which the terminal device belongs to the version of the target subprogram is improved.
[0014] The target subprogram described in the present embodiment refers to a program package or application component loaded on an application platform (or application program) or installed by an application platform. From the service perspective, the target subprogram has the ability to independently provide a self-closed loop service, such as a subprogram running in an application program to provide a self-closed loop capability of vehicle-related services or ordering services. The updating configuration state is the state configured by the subprogram provider of the target subprogram whether to update the version of the target subprogram in real time.
[0015] In order to improve the awareness and permission of the subprogram provider for the version update of the target subprogram, in an optional implementation of the embodiment, the update configuration state is configured in the following manner: According to the opening instruction of the update configuration state of the target subprogram by the subprogram provider of the target subprogram, the update configuration state of the target subprogram is recorded as an update opening state; Alternatively, According to the closing instruction of the update configuration state of the target subprogram by the subprogram provider, the update configuration state of the target subprogram is recorded as an update closing state.
[0016] Specifically, the subprogram provider configures the update configuration state of the target subprogram in the process of putting the target subprogram through the subprogram putting platform, that is, whether to open the real-time update of the version of the target subprogram of the terminal device corresponding to the subprogram service platform. If the subprogram provider configures the opening instruction of the update configuration state of the target subprogram, the update opening state of the target subprogram is recorded. If the subprogram provider configures the closing instruction of the update configuration state of the target subprogram, the update closing state of the target subprogram is recorded. The subprogram provider sets the update configuration state once, and then records it once.
[0017] If it is queried that the update configuration state of the target subprogram is the update opening 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. If it is queried that the update configuration state of the target subprogram is the update closing state, no processing is performed.
[0018] In actual application, storing the program package of the subapplication associated with the third-party application in the terminal device will occupy a large amount of memory of the terminal device and slow down the running speed of the terminal device. Based on this, the subprogram service platform is set, and the service interface corresponding to the subprogram service platform is configured on the terminal device, so that the service interface is called for access in the process of accessing the subprogram associated with the device client through the device client of the terminal device, so as to save the memory occupied by the device client on the terminal device. Optionally, the service interface is a lightweight interface of the subprogram service of the third-party application, and if it is detected that the target subprogram is updated in the version of the subprogram corresponding to the third-party application, the version update information is read, and the step of querying the update configuration state of the target subprogram according to the version update information of the target subprogram is performed.
[0019] In a specific implementation, if the update configuration state of the target subprogram configured by the subprogram provider is the update open state, the update of the target subprogram is performed once when the update open state is set for the first time, and subsequently, when it is detected that the version of the target subprogram corresponding to the subprogram in the third-party application is released, the update configuration state of the target subprogram is queried, and if the update configuration state is the update open state, the update package of the target subprogram is put into the process.
[0020] In step S104, if the update configuration state is the update open 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.
[0021] The terminal device described in the embodiment includes, but is not limited to, at least one of the following: a vehicle-mounted terminal, a terminal device connected to a vehicle, a smart speaker, a vending machine, a self-service radio, an interactive advertising screen, a POS device, and a smart television, a smart refrigerator, and other smart home appliances.
[0022] In a specific implementation, when the putting process is performed, the version information of the target subprogram corresponding to the subapplication in the third-party application after the update is first acquired, that is, the version update information, and then the specific update configuration information of the target subapplication of the subprogram service platform is constructed. To improve the adaptability of the target subprogram, the subprogram provider configures preset configuration information for the target subprogram. The preset configuration information includes the device screen information of the terminal device adapted by the target subprogram and the screen configuration parameter. In addition, the subprogram service platform configures the menu information in the target subprogram access process of the terminal device registered for device registration. Based on this, in the putting process, the device information (device model, device screen parameter, etc.) of the terminal device registered for device registration is first read in the subprogram service platform, and after the device information is read, the update configuration information is constructed based on the device information and the preset configuration information configured by the subprogram provider.
[0023] In the first optional implementation provided in the embodiment, the update configuration information is constructed in the following manner: The preset configuration information configured by the subprogram provider of the target subprogram is read. The preset configuration information and the device information are merged to obtain the update configuration information.
[0024] 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 update configuration information.
[0025] It should be noted that, based on the manner of obtaining the updated cooperation information, the updated configuration information and the version updated information are combined to obtain the update program package of the target subprogram, and in the process of the service interface accessing the target subprogram, after the update program package is read, the target configuration parameter in the preset configuration information is first determined based on the device information in the update program package, and then the target subprogram is loaded through the device client based on the target configuration parameter.
[0026] In order to improve the efficiency of the service interface loading the update program package and further improve the access efficiency of the target subprogram, in a second optional embodiment provided by the present embodiment, the following manner is adopted to construct the updated configuration information. reading the preset configuration information configured by the subprogram provider of the target subprogram; According to the device information, the target configuration parameter in the preset configuration information for the terminal device is extracted and the target configuration parameter is taken as the updated configuration information.
[0027] That is, in the process of constructing the updated configuration information, after the preset configuration information configured by the subprogram provider is read, according to the device information of the terminal device read, the target configuration parameter in the preset configuration information for the terminal device is extracted, and the target configuration parameter is taken as the updated configuration information.
[0028] It should be noted that the process of constructing the updated configuration information based on the device information and the preset configuration information is only illustrative, and in specific scenarios, the data for constructing the updated configuration information can be determined according to actual needs, and the present embodiment does not limit this.
[0029] Step S106, combining the updated configuration information and the version updated information to obtain the update program package of the target subprogram.
[0030] In specific implementation, after obtaining the version updated information of the target subprogram in the third-party application and constructing the updated configuration information, the updated configuration information and the version updated information are combined, and then the combined result is repackaged to obtain the update program package of the target subprogram; in order to prevent the information in the update program package from being tampered with, thereby affecting the security of the terminal device after loading the update program package, the update program 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. In an optional embodiment provided by the present embodiment, after obtaining the update program package of the target subprogram, the following steps are performed: The update program package is signed, and the version identifier corresponding to the update program package is determined after the signing. The version identifier is issued when the device client calls the service interface to read the update program package.
[0031] After obtaining the update package, a specific version of the target subprogram under the subprogram service platform is created, and the specific version is executed and released.
[0032] In 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 package is issued to the service interface.
[0033] Optionally, the device client, in runtime, displays an access component of the target subprogram having an association relationship with the device client; and the device client, in detection of the access component being triggered, calls the service interface and inputs a subprogram identifier of the target subprogram and a program identifier of the device client, to access the target subprogram through the service interface.
[0034] In an optional implementation provided by the embodiment, the association relationship is established in the following manner, According to a configuration request of a device provider for subprogram configuration of a device client of the terminal device, a permission policy type of the target subprogram corresponding to the configuration request is queried; the target subprogram is a subprogram in a subprogram pool of the subprogram service platform; If the permission policy type of the target subprogram configured by a subprogram provider of the target subprogram is a first policy type, an association relationship between the device client and the target subprogram is established; If the permission policy type of the target subprogram configured by the subprogram provider is a second policy type, the association relationship between the device client and the target subprogram is established in a case where the device client is in a permission range corresponding to the second permission policy.
[0035] Specifically, after obtaining the update package of the target subprogram, in order to facilitate management of the updated version of the target subprogram and ensure the security of the update package, the update package is signed, so that a handshake is performed between the service interface and the update package after the service interface reads the update package, and the service interface opens the update package after the handshake is passed; in the process of signing the update package, the elements in the update package are regularly signed, the service interface performs signature verification based on a preset rule after reading the update package after the signature processing, if the signature verification is passed, it is indicated that the update package is trusted, and the update package is opened; if the signature verification fails, the update package is not trusted, in order to avoid affecting the security of the terminal device, the update package is not opened.
[0036] The device client includes the host program configured by the device provider before the terminal device leaves the factory; the device provider includes the manufacturer, seller and / or service and maintenance provider of the terminal device.
[0037] It should be noted that the device provider establishes an association between the device client and the target subroutine. After the association is established, the device client displays the access component of the target subroutine at runtime. When the device client detects that the access component has been triggered, it calls the service interface configured on the device client to access the target subroutine. The service interface reads and loads the update package so that the target subroutine can be accessed through the device client.
[0038] To further improve the efficiency of the service interface in loading the target subroutine, this embodiment provides an optional implementation method in which the service interface performs the following operations after reading the update package and version identifier: Read the local package of the target subroutine stored in the device client; Verify that the version identifier matches the version identifier of the local package; If there is a discrepancy, load the update package and display it through the device client; If they match, load the local application package and display it through the device client.
[0039] Specifically, after the service interface reads the update package and version identifier, it first verifies whether the version identifier matches the version identifier of the local package stored in the terminal device's storage space. If they match, it indicates that the version of the target subroutine has not been updated, and the local package can be loaded. If they do not match, it indicates that the version of the target subroutine has been updated, and the update package is loaded in order to improve the user's awareness of the target subroutine's version.
[0040] The following description uses the application of a program update processing method provided in this embodiment in a subroutine version update scenario as an example to further illustrate the program update processing method provided in this embodiment. (See also...) Figure 2 The program update processing method applied to subroutine version update scenarios specifically includes steps S202 to S216.
[0041] Step S202: Detect the version update status of the target subroutine in the sub-application of the third-party application.
[0042] Step S204: If a version update of the target subroutine in a sub-application of a third-party application is detected, then the version update information of the sub-application of the third-party application is read.
[0043] Step S206, querying the update configuration state of the target subprogram configured by the subprogram provider of the target subprogram.
[0044] Step S208, if the update configuration state is the update start state, reading the device information of the terminal device registered by the subprogram service platform.
[0045] Step S210, merging the device information and the preset configuration information configured by the subprogram provider to obtain the update configuration information.
[0046] Step S212, merging the update configuration information and the version update information to obtain the update program package of the target subprogram.
[0047] Step S214, performing signature processing on the update program package, and determining the version identifier corresponding to the update program package after the signature processing.
[0048] Step S216, 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 and the version identifier are issued to the service interface.
[0049] In summary, the program update processing method provided in the embodiment has the following advantages. First, the update configuration state is configured by the subprogram provider, which improves the perception of the management of the target subprogram by the subprogram provider. Second, the update configuration state configured by the subprogram provider is effective for the version update state of the target subprogram of the terminal device registered by the subprogram service platform, and 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 under the third-party application are independent. Third, since the configuration of the target subprogram under the subprogram service platform and the configuration of the target subprogram in the third-party application have certain differences, in the process of updating the version of the target subprogram of the terminal device of the subprogram service platform, update configuration information is constructed, and the update configuration information and the version update information of the target subprogram in the third-party application are packaged and then put into use. This can ensure that the update program packages of the target subprogram in the terminal device and the third-party application have differences, and the differences determine different display modes of the target subprogram in the terminal device and the third-party application. Fourth, the target subprogram of the third-party application and the target subprogram of the terminal device are managed separately, and one party can still continue to use in the process of offline of the other party.
[0050] The program update processing device provided in the specification has the following implementation, for example. In the above embodiment, a program update processing method is provided, and a program update processing device corresponding to the method is also provided. The following description is made in conjunction with the accompanying drawings.
[0051] Referring to Figure 3 which shows a schematic diagram of a program update processing device provided in the embodiment.
[0052] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant part can be seen in the above provided corresponding description of the method embodiment. The device embodiment described below is only schematic.
[0053] The embodiment provides a program update processing device, which comprises: A state query module 302 is configured to query an update configuration state of a target subprogram according to version update information of the target subprogram; If the update configuration state is an update start state, an information construction module 304 is run, and the information construction module 304 is configured to read device information of a terminal device registered in a subprogram service platform, and construct update configuration information based on the device information and preset configuration information; An information merging module 306 is configured to merge the update configuration information and the version update information to obtain an update program package of the target subprogram; If it is detected that a device client of the terminal device calls a service interface to access the target subprogram, a program package delivery module 308 is run, and the program package delivery module 308 is configured to deliver the update program package to the device client.
[0054] The embodiment provides a program update processing device, which comprises: Corresponding to the above described program update processing method, based on the same technical concept, one or more embodiments of the present specification also provide a program update processing device for executing the above provided program update processing method, Figure 4 A schematic diagram of a program update processing device provided in one or more embodiments of the present specification.
[0055] The embodiment provides a program update processing device, which comprises: As Figure 4As shown, the program update processing device can have a large difference due to different configurations or performances, and can include one or more processors 401 and memories 402, and the memories 402 can store one or more stored applications or data. The memories 402 can be temporary storage or persistent storage. The applications stored in the memories 402 can include one or more modules (not shown in the figure), and each module can include a series of computer executable instructions in the program update processing device. Further, the processor 401 can be configured to communicate with the memory 402 and execute a series of computer executable instructions in the memory 402 on the program update processing device. The program update processing device can 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, and the like.
[0056] In one specific embodiment, the program update processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs can include one or more modules, and each module can include a series of computer executable instructions in the program update processing device, and the one or more processors configured to execute the one or more programs include computer executable instructions for: querying an update configuration state of the target subprogram according to the version update information of the target subprogram; if the update configuration state is an update enabled state, reading device information of a terminal device registered in the subprogram service platform, and constructing update configuration information based on the device information and preset configuration information; merging the update configuration information and the version update information to obtain an update program package of the target subprogram; if it is detected that a device client of the terminal device calls a service interface to access the target subprogram, issuing the update program package to the service interface.
[0057] The storage medium provided in the specification is implemented as follows: According to the above description, a program update processing method based on the same technical concept, one or more embodiments of the specification also provide a storage medium.
[0058] The storage medium provided in the embodiment is used to store computer executable instructions, and the computer executable instructions are executed by the processor to implement the following processes: querying an update configuration state of the target subprogram according to the version update information of the target subprogram; If the update configuration state is the update-on state, device information of a terminal device registered in the subprogram service platform is read, and update configuration information is constructed based on the device information and preset configuration information; The update configuration information and the version update information are merged to obtain an update program package of the target subprogram; If it is detected that a device client of the terminal device calls a service interface to access the target subprogram, the update program package is issued to the service interface.
[0059] It should be noted that the embodiments of the storage medium in the present specification are based on the same inventive concept as the embodiments of the program update processing method in the present specification, and therefore the specific implementation of the embodiments can be referred to the implementation of the corresponding method as described above, and the repeated parts will not be described herein.
[0060] The specific embodiments of the present specification are described above. 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 a different order and still achieve desirable results. Additionally, the process depicted in the figures does not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing can be advantageous or necessary.
[0061] In the 1930s, it was clear to distinguish whether an improvement in a technology was in hardware (e.g., improvement in circuit structure of diodes, transistors, switches, etc.) or in software (e.g., improvement in method flow). However, as technology has evolved, many improvements in method flow today can be considered as direct improvements in hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming it, rather than by ordering a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented using "logic compiler" software, which is similar to software compilers used in program development, and the original code before compilation is written in a specific programming language, which is called a hardware description language (HDL), and there are many HDLs, 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., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that only a little logical programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit that implements the logical method flow.
[0062] The controller can be implemented in any suitable way, for example, the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, such as 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 which include but are not limited to the following microcontrollers: ARC 625D, 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 pure computer readable program code, it is also possible to implement the controller in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. to perform the same functions by logically programming the method steps. Such a controller can therefore be considered as a hardware component, and the means included therein for performing various functions can also be considered as structures within the hardware component. Alternatively, the means for performing various functions can even be considered as both a software module implementing the method and a structure within the hardware component.
[0063] The systems, apparatuses, modules or units illustrated by the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, 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.
[0064] For the sake of description, the above apparatuses are described in functional division and are described respectively. Of course, the functions of the units can be implemented in the same or multiple software and / or hardware when implementing the embodiments of the present specification.
[0065] Those skilled in the art will appreciate that one or more embodiments of the specification can be provided as a method, a system or a computer program product. Therefore, one or more embodiments of the specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the specification can 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.
[0066] The specification is presented with reference to flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.
[0067] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.
[0068] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus (system) and / or computer program product according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.
[0069] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0070] The memory can include non-persistent memory, Random Access Memory (RAM), and / or non-volatile memory, such as Read Only Memory (ROM) or flash memory, among others in a computer readable medium. The memory is an example of computer readable media.
[0071] Computer-readable media includes permanent and non-permanent, movable and non-movable 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0072] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, such that processes, methods, articles or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element.
[0073] One or more embodiments of the present specification can be described in the general context of computer-executable instructions being executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0074] Each embodiment in the present specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0075] The above merely provides the example of the present document and is not intended to limit the present document. For those skilled in the art, the present document can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present document shall be included in the scope of claims of the present document.
Claims
1. A program update processing method, comprising: Build update configuration information based on the update enable status of the target subroutine; The updated configuration information is constructed after a version update of the target subroutine is detected; The update configuration information and the version update information of the target subroutine are combined to obtain the update package of the target subroutine for the terminal device performing device registration; If it is detected that the device client of the terminal device calls the service interface to access the target subroutine, the update package is sent to the service interface.
2. The program update processing method according to claim 1, after the step of merging the update configuration information and the version update information of the target subroutine to obtain the update package for the terminal device for device registration is executed, and before the step of sending the update package to the service interface if it is detected that the device client of the terminal device calls the service interface to access the target subroutine, the method further includes: The update package is signed, and the version identifier corresponding to the update package is determined after the signing process. The version identifier is issued when the device client calls the service interface to read the update package.
3. According to claim 2, after the service interface reads the update package, it performs the following operations: Read the local package of the target subroutine stored in the device client; Verify that the version identifier matches the version identifier of the local package; If there is a discrepancy, load the update package and display it through the device client; If they match, load the local application package and display it through the device client.
4. The program update processing method according to claim 1, wherein constructing update configuration information based on the update start status of the target subroutine includes: Query the update configuration status of the target subroutine based on the version update information; If the update configuration status is the update enabled status, the update configuration information is constructed based on the device information of the terminal device and the preset configuration information read from the subroutine service platform.
5. The program update processing method according to claim 4, wherein constructing the update configuration information based on the device information and preset configuration information of the terminal device read from the subroutine service platform includes: Read 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 updated configuration information.
6. The program update processing method according to claim 4, wherein constructing the update configuration information based on the device information and preset configuration information of the terminal device read from the subroutine service platform includes: Read the preset configuration information configured by the subroutine provider of the target subroutine; Based on the device information, the target configuration parameters for the terminal device are extracted from the preset configuration information and used as the updated configuration information.
7. The program update processing method according to claim 1, wherein when the device client is running, it displays an access component for a target subroutine associated with the device client; When the device client detects that the access component has been triggered, it calls the service interface and passes in the subroutine identifier of the target subroutine and the program identifier of the device client to access the target subroutine through the service interface.
8. The program update processing method according to claim 7, wherein the association relationship is established in the following manner: According to a configuration request of a device provider to configure a subprogram of a device client of the terminal device, the permission policy type of the target subprogram corresponding to the configuration request is queried; The target subroutine is a subroutine in the subroutine pool of the subroutine service platform; If the permission policy type configured by the subroutine provider for the target subroutine is the first policy type, then an association relationship is established between the device client and the target subroutine. If the permission policy type configured by the subroutine provider for the target subroutine is the second policy type, then if the device client is within the permission range corresponding to the second policy type, an association relationship is established between the device client and the target subroutine.
9. The program update processing method according to claim 4, wherein the update configuration state is configured in the following manner: Based on the instruction from the subroutine provider of the target subroutine to enable the update configuration status of the target subroutine, the update configuration status of the target subroutine is recorded as an enabled update status. And / or, Based on the subroutine provider's instruction to close the update configuration status of the target subroutine, the update configuration status of the target subroutine is recorded as closed.
10. The program update processing method according to claim 1, wherein the service interface is a lightweight interface of a subroutine service of a third-party application, and if a version update of the target subroutine in the corresponding subroutine of the third-party application is detected, the version update information is read.
11. A program update processing apparatus, comprising: The information construction module is configured to construct update configuration information based on the update enable status of the target subroutine. The updated configuration information is constructed after a version update of the target subroutine is detected; The information merging module is configured to merge the updated configuration information and the version update information of the target subroutine to obtain the update package of the target subroutine for the terminal device performing device registration; If it is detected that the device client of the terminal device calls the service interface to access the target subroutine, the package delivery module is run. The package delivery module is configured to deliver the update package to the service interface.
12. A program update processing device, comprising: processor; as well as, A memory configured to store computer-executable instructions, which, when executed, cause the processor to: Update configuration information is constructed based on the update enable status of the target subroutine; the update configuration information is constructed after a version update of the target subroutine is detected; The update configuration information and the version update information of the target subroutine are combined to obtain the update package of the target subroutine for the terminal device performing device registration; If it is detected that the device client of the terminal device calls the service interface to access the target subroutine, the update package is sent to the service interface.
13. A storage medium for storing computer-executable instructions, which, when executed by a processor, perform the following process: Update configuration information is constructed based on the update enable status of the target subroutine; the update configuration information is constructed after a version update of the target subroutine is detected; The update configuration information and the version update information of the target subroutine are combined to obtain the update package of the target subroutine for the terminal device performing device registration; If it is detected that the device client of the terminal device calls the service interface to access the target subroutine, the update package is sent to the service interface.