CN115421752A - Software updating method and device, storage medium and electronic equipment - Google Patents

Software updating method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115421752A
CN115421752A CN202211049062.2A CN202211049062A CN115421752A CN 115421752 A CN115421752 A CN 115421752A CN 202211049062 A CN202211049062 A CN 202211049062A CN 115421752 A CN115421752 A CN 115421752A
Authority
CN
China
Prior art keywords
software
updating
updated
data packet
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211049062.2A
Other languages
Chinese (zh)
Inventor
左文星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211049062.2A priority Critical patent/CN115421752A/en
Publication of CN115421752A publication Critical patent/CN115421752A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention provides a software updating method, a device, a storage medium and electronic equipment, which relate to the technical field of software updating, and the method comprises the following steps: acquiring a software updating data packet; updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software; and performing data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system so as to complete the updating of the software corresponding to the software updating data packet in the main system. The technical scheme provided by the invention can greatly reduce the time spent by the user on software updating, thereby improving the user experience.

Description

Software updating method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of software updating technologies, and in particular, to a software updating method, an apparatus, a storage medium, and an electronic device.
Background
The existing software updating mode generally comprises the following steps: after the user confirms that the software is updated, the software updating data packet is downloaded to the terminal, and the corresponding software is reinstalled on the basis of all data in the software updating data packet. In practical application, each time a developer updates the software, only a small part of data in the program is modified. At the user end, a software installation operation is performed again for the modified small part of data. Therefore, the existing software updating mode is extremely unfriendly to users, and some users even directly abandon the software updating.
Disclosure of Invention
In view of the above problems in the prior art, the present application provides a software updating method, device, storage medium, and electronic device, which can greatly reduce the time spent by a user on software updating, thereby improving user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a software updating method, where the method includes:
acquiring a software updating data packet;
updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
and performing data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In some embodiments, prior to said obtaining the software update package, the method further comprises:
detecting whether a server provides the software updating data packet;
the acquiring of the software update data packet includes:
downloading the software update package from the server when it is determined that the server provides the software update package.
In some embodiments, after the data synchronization of the software corresponding to the software update package in the host system and the updated software in the virtual system, the method further includes:
and deleting the software updating data packet.
In some embodiments, the updating the software corresponding to the software update data packet in the virtual system based on the software update data packet to obtain updated software in the virtual system includes:
determining a module to be updated in the software corresponding to the software updating data packet in the virtual system as a first module to be updated based on the software updating data packet;
updating the first module to be updated based on the software updating data packet to obtain a first updated module;
and obtaining updated software in the virtual system based on the first updated module.
In some embodiments, the performing data synchronization on the software corresponding to the software update data packet in the host system and the updated software in the virtual system to complete the update of the software corresponding to the software update data packet in the host system includes:
when a data synchronization request sent by the virtual system is received, comparing software corresponding to the software updating data packet in the main system with the updated software in the virtual system, and determining a module to be updated in the main system to serve as a second module to be updated;
and synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In some embodiments, before the synchronizing the data of the first updated module to the second module to be updated to complete the update of the software corresponding to the software update package in the host system, the data synchronizing the software corresponding to the software update package in the host system and the updated software in the virtual system to complete the update of the software corresponding to the software update package in the host system further includes:
judging whether the second module to be updated is in an unopened state;
the synchronizing the data of the first updated module to the second module to be updated to complete the updating of the software corresponding to the software update data packet in the main system includes:
and when the second module to be updated is not started, synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In some embodiments, after the data synchronization of the software corresponding to the software update package in the host system and the updated software in the virtual system, the method further includes:
and restarting the terminal for operating the main system.
In some embodiments, the host system includes a zygate process; the virtual system is started when the zygate process is started.
In a second aspect, an embodiment of the present invention provides a software updating apparatus, where the apparatus includes:
the acquisition unit is used for acquiring the software updating data packet;
the updating unit is used for updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
and the data synchronization unit is used for performing data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a program code is stored, and when the program code is executed by a processor, the software updating method according to any one of the above embodiments is implemented.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores program code that is executable on the processor, and when the program code is executed by the processor, the electronic device implements the software updating method according to any one of the foregoing embodiments.
The software updating method, the device, the storage medium and the electronic equipment provided by the embodiment of the invention firstly obtain the software updating data packet, update the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain the updated software in the virtual system, and then perform data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system to complete the updating of the software corresponding to the software updating data packet in the main system. The embodiment of the invention updates the software in the main system by updating the software in the virtual system and then synchronizing the updated software data to the main system, thereby avoiding the direct adoption of a software update data packet to reinstall the corresponding software in the main system and updating the corresponding software in the main system only through simple data synchronization operation. Therefore, the technical scheme provided by the embodiment of the invention can greatly reduce the time spent by the user on software updating, thereby improving the user experience.
Drawings
The scope of the present disclosure will be better understood from the following detailed description of exemplary embodiments when read in conjunction with the accompanying drawings. Wherein the included drawings are:
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an update method when an application is updated according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an update method for updating system software according to an embodiment of the present invention;
FIG. 4 is a diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Example one
Conventional customization systems (e.g., android systems) require a software update package to be downloaded each time an update is made. In practical application, a user does not necessarily download updates, but the problem of software bug causes a certain trouble to the user. Sometimes, the developer only needs to modify a small part of the program, and the whole software update package needs to be downloaded at the user end, and the operation is inconvenient. And if a forced downloading mode is adopted, extremely poor user experience is brought to the user. According to the software updating method and device, a more flexible software updating mode is adopted, the user can completely have no perception, the user experience is greatly enhanced, and the follow-up software maintenance is facilitated.
Based on the above thought, the embodiment of the present invention provides a software updating method, as shown in fig. 1, the software updating method described in this embodiment includes step S101, step S102, and step S103, and the specific contents of these steps are described in detail below:
step S101, acquiring a software updating data packet;
in this embodiment, the software update package is issued to the server by a software developer.
In order to timely and effectively acquire the software update data packet, before acquiring the software update data packet, the method of this embodiment further includes: detecting whether the software updating data packet is provided by a server. The acquiring of the software update data packet described in this embodiment includes: downloading the software update package from the server when it is determined that the server provides the software update package.
Step S102, updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain the updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
with the continuous development and popularization of internet technology, customized smart home systems have appeared in more and more smart homes, and Android systems are good for various manufacturers due to high open-source freedom and convenience and friendliness in customization. However, the customized Android system is still built on the basis of the Android system, so all the defects of the original Android system still exist, and the general updating mode of the customized Android system is to update the system ROM of the customized Android system in an OTA (Over-the-Air Technology, over-the-Air downloading Technology) mode, which requires downloading an updating package and then restarting for a large amount of time, and is very inconvenient and time-consuming. Subsequently, with the technical development, an independent APP updating operation is performed, but the user still needs to click to confirm the updated APP at the moment, and under the condition of running memory shortage, the whole system becomes very unsmooth, even the system is stuck, and extremely poor experience is brought to the user.
In this case, in order to improve user experience, a set of virtual system can be customized on the basis of an original main system, namely an Android system, of the terminal. The main system comprises a zygate process, and the virtual system is started when the zygate process of the main system is started, namely the virtual system and the zygate process of the main system are started simultaneously. The virtual system does not provide interface interaction for users, so that no UI (user interface) process is provided, the requirement on system overhead is extremely low, only the transaction process of the main system is reserved, and the system software has the same application software and part of the same system software as the foreground main system. In practical application, when a new APP update or system update is controlled in the background, the downloading and updating tasks are finished by the virtual system in the background, and under the condition that a user does not have any operation on the software to be updated or the software to be updated is not started in the background, the virtual system and the currently running main system carry out data synchronization, so that the software updating operation can be finished in a short time, the user does not feel, and excellent user experience and development friendliness are brought.
In order to update software more flexibly, avoid installing a whole software update data package, and simplify software update operations, the updating software corresponding to the software update data package in a virtual system based on the software update data package to obtain updated software in the virtual system includes: determining a module to be updated in the software corresponding to the software updating data packet in the virtual system as a first module to be updated based on the software updating data packet; updating the first module to be updated based on the software updating data packet to obtain a first updated module; and obtaining updated software in the virtual system based on the first updated module.
Specifically, a module to be updated of a certain software may be determined first according to the software update data packet, and only the module to be updated is updated subsequently, thereby avoiding updating all data of the software. For example, the system may determine to update only a certain APP, or only a specified system module, etc., while avoiding the forced download of installing all software update packages, such as ROM packages.
It should be noted that, although the specific technical solution is described in the embodiment by taking the main system as an Android system as an example, a person skilled in the art knows that other operating systems capable of implementing the technical solution of the present invention may also be taken as the main system of the embodiment, and the embodiment does not specifically limit this.
Step S103, performing data synchronization on the software corresponding to the software update data packet in the main system and the updated software in the virtual system, so as to complete updating of the software corresponding to the software update data packet in the main system.
In order to avoid performing data synchronization on all data of the updated software in the virtual system, and further, simply and effectively update the software in the main system, the performing data synchronization on the software corresponding to the software update data packet in the main system and the updated software in the virtual system to complete the update of the software corresponding to the software update data packet in the main system in this embodiment includes: when a data synchronization request sent by the virtual system is received, comparing software corresponding to the software updating data packet in the main system with updated software in the virtual system, and determining a module to be updated in the main system as a second module to be updated; and synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In order to avoid system jamming and make a user unaware during a software update process, before synchronizing data of the first updated module to the second module to be updated to complete updating of software corresponding to the software update data packet in the main system, the data synchronization of software corresponding to the software update data packet in the main system and updated software in the virtual system described in this embodiment is performed to complete updating of software corresponding to the software update data packet in the main system, and the method further includes: and judging whether the second module to be updated is in an unopened state. In this embodiment, synchronizing the data of the first updated module to the second module to be updated to complete the update of the software corresponding to the software update data packet in the main system includes: and when the second module to be updated is not started, synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
In this embodiment, the data synchronization operation is performed only when the module to be updated in the main system is not turned on or the user does not currently operate the software to be updated, so that the software updating operation of the main system is performed without the perception of the user, and the problem that the user needs to wait for the software to be updated to continue using the terminal or the user uses the terminal to be blocked in the software updating process is effectively avoided.
In order to further effectively reduce the occupation of the system memory, after the data synchronization is performed on the software corresponding to the software update data packet in the main system and the updated software in the virtual system, the method according to this embodiment further includes: and deleting the software updating data packet.
In order to ensure the validity of software update, after the data synchronization is performed on the software in the host system corresponding to the software update data packet and the updated software in the virtual system, the method of this embodiment further includes: and restarting the terminal for operating the main system.
The software to be updated is divided into an APP to be updated and a system to be updated, and the technical scheme of the invention is further described in detail through an example in practical application:
as shown in fig. 2, the following method steps are adopted for updating APP:
s11: and the target machine requests the system background server to update the interface once a day and confirms whether the APP needs to be updated or not. Wherein the target machine may be a user terminal.
S12: if the background server has APP updating settings, the virtual system downloads a software updating data packet of the APP to be updated, and updates and installs the APP in the virtual system.
S13: and after the APP in the virtual system is updated, sending a data synchronization request to the main system, comparing a program file with the APP in the main system, and determining a module to be updated in the APP.
The APP is written by adopting a kotlin or Java file and finally becomes a byte code program to be cached in the system, so that the updated APP in the virtual system is compared with the APP in the main system, namely the byte code files of the APP and the APP in the main system are compared with byte code data.
S14: after determining the module to be updated of the APP in the host system, if the user does not perform any operation on the APP, or the APP is in a background unopened state, after the update content is determined in step S13, the updated data in the virtual system is synchronized into the host system. The simple data synchronization does not influence the user operation, and the updating mode does not pop up any popup window, avoids the traditional updating process, avoids the high occupation of the traditional updating process on the memory, and prompts the virtual system to delete the updating package downloaded in the virtual system after the main system is updated.
As shown in fig. 3, the following method steps are adopted for updating the system:
s21: the target machine requests the background server to update the interface once a day, and confirms whether a ROM packet needs to be updated or not, and the ROM packet is marked with an updated related module. Wherein the target machine may be a user terminal.
S22: and if the background server has system updating setting, the virtual system downloads an updating ROM packet, and confirms that the part of the system needing to be updated is a multi-component module or a system application module or a system service module according to the mark in the ROM packet.
S23: when the updating part is confirmed to be a multi-component module and/or a system application module, the virtual system sequentially updates the multi-component module and/or the system application module which needs to be updated, and simultaneously carries out a data synchronization request on the main system after the updating is finished.
S24: when the updated part is confirmed to be the system service module, the system service module in the virtual system is updated first.
S25: and after the system service module is updated in the virtual system, performing a data synchronization request on the main system.
S26: when the main system receives a data synchronization request of the virtual system, the following operations are executed according to the situation: (1) if the multi-component module and/or the system application module (S22, S23) are updated in the virtual system at the moment, and the user does not perform any operation on the module or the module is in a background unopened state, the main system synchronizes the updated data in the virtual system to update the module, and the main system sequentially performs the non-perception update operation on all the multi-component modules and the system application modules which confirm the update in the virtual system; (2) if the system service module is updated in the virtual system at the moment, the machine does not need to be restarted (the change does not involve the SystemUI and the WindowManagerservice part is not restarted or is actively marked by the background of the server), and the system service is in a state that the background is not started, the main system synchronizes the updated data in the virtual system to update the system service module; if the machine needs to be restarted (for example, the design driver layer is changed), data synchronization is performed with the virtual system first, and when the user restarts the machine next time and the main system is updated, the updated virtual system setting is directly adopted. And directly deleting the software updating data packet after the main system is confirmed to be updated.
Therefore, in the embodiment of the invention, the system background can set the APP or system ROM packet which needs to be updated at present, and the target intelligent machine can automatically download and update in the virtual system after acquiring the target which needs to be updated at present. If the APP is required to be updated, the APP is updated in the virtual system, data synchronization is carried out with the main system, then the main system can synchronize data in the virtual system to a page under the condition that a user does not actively operate or the APP is not started, and no perception is achieved in the aspect of APP updating; if the system software is required to be updated, the ROM package is downloaded in the virtual system, then the updated contents (a multi-component module, a system application module, a system service module and the like) are compared, after the update is completed in the virtual system, under the condition that a user has no relevant operation or the module to be updated is not started, the data synchronization is sequentially performed on the module to be updated in the main system, and the user does not feel in the aspect of system update. In conclusion, the user does not need to perform any confirmation operation, the occurrence of the system operation jam can be avoided, and the user experience is enhanced.
The software updating method provided by the embodiment of the invention comprises the steps of firstly obtaining a software updating data packet, updating software corresponding to the software updating data packet in a virtual system based on the software updating data packet to obtain updated software in the virtual system, and then carrying out data synchronization on the software corresponding to the software updating data packet in a main system and the updated software in the virtual system to complete the updating of the software corresponding to the software updating data packet in the main system. The embodiment of the invention updates the software in the main system by updating the software in the virtual system and then synchronizing the updated software data to the main system, thereby avoiding the situation that the corresponding software in the main system is re-installed by directly adopting a software updating data packet, and the corresponding software in the main system can be updated only through simple data synchronization operation. Therefore, the technical scheme provided by the embodiment of the invention can greatly reduce the time spent by the user on software updating, thereby improving the user experience.
Example two
Correspondingly to the above method embodiment, the present invention further provides a software updating apparatus, as shown in fig. 4, the apparatus in this embodiment includes:
an obtaining unit 201, configured to obtain a software update data packet;
an updating unit 202, configured to update, based on the software update data packet, software in the virtual system corresponding to the software update data packet, so as to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
a data synchronization unit 203, configured to perform data synchronization on the software in the host system corresponding to the software update data packet and the updated software in the virtual system, so as to complete updating of the software in the host system corresponding to the software update data packet.
Further, the apparatus of this embodiment further includes:
a detecting unit, configured to detect whether a server provides the software update package before the acquiring of the software update package;
the acquiring unit 201 acquires the software update data packet in the following manner:
downloading the software update package from the server when it is determined that the server provides the software update package.
Further, the apparatus of this embodiment further includes:
and the deleting unit is used for deleting the software updating data packet after the data synchronization is carried out on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system.
In this embodiment, the updating unit 202 updates the software corresponding to the software update data packet in the virtual system by using the following method:
determining a module to be updated in the software corresponding to the software updating data packet in the virtual system as a first module to be updated based on the software updating data packet;
updating the first module to be updated based on the software updating data packet to obtain a first updated module;
and obtaining updated software in the virtual system based on the first updated module.
In this embodiment, the data synchronization unit 203 includes:
a comparison unit, configured to compare software in the main system corresponding to the software update data packet with updated software in the virtual system when receiving a data synchronization request sent by the virtual system, and determine a module to be updated in the main system as a second module to be updated;
and the data synchronization subunit is configured to synchronize the data of the first updated module with the second module to be updated, so as to complete updating of the software corresponding to the software update data packet in the main system.
Further, the data synchronization unit 203 further includes:
a determining unit, configured to determine whether the second module to be updated is in an unopened state before the data of the first updated module is synchronized to the second module to be updated to complete updating of the software corresponding to the software update data packet in the main system;
the data synchronization subunit is further configured to synchronize, when the second module to be updated is not turned on, data of the first updated module to the second module to be updated, so as to complete updating of software corresponding to the software update data packet in the main system.
Further, the apparatus of this embodiment further includes:
and the restarting unit is used for restarting the terminal for operating the main system after the data synchronization is carried out on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system.
In this embodiment, the host system includes a zygate process; the virtual system is started when the zygate process is started.
The details of the working principle, the working flow, and the like of the above device related to the specific embodiments can be referred to the specific embodiments of the software updating method provided by the present invention, and the details of the same technical contents are not described herein again.
The software updating device provided by the embodiment of the invention firstly obtains the software updating data packet, updates the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain the updated software in the virtual system, and then performs data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system to complete the updating of the software corresponding to the software updating data packet in the main system. The embodiment of the invention updates the software in the main system by updating the software in the virtual system and then synchronizing the updated software data to the main system, thereby avoiding the direct adoption of a software update data packet to reinstall the corresponding software in the main system and updating the corresponding software in the main system only through simple data synchronization operation. Therefore, the technical scheme provided by the embodiment of the invention can greatly reduce the time spent by the user on software updating, thereby improving the user experience.
EXAMPLE III
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon program code, which when executed by a processor, implements the software updating method according to any one of the above-described embodiments.
Example four
According to an embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores program codes executable on the processor, and when the program codes are executed by the processor, the electronic device implements the software updating method according to any one of the above embodiments.
According to the software updating method, the software updating device, the storage medium and the electronic equipment provided by the embodiment of the invention, the software updating data packet is firstly obtained, the software corresponding to the software updating data packet in the virtual system is updated based on the software updating data packet, the updated software in the virtual system is obtained, and then the software corresponding to the software updating data packet in the main system and the updated software in the virtual system are subjected to data synchronization so as to complete the updating of the software corresponding to the software updating data packet in the main system. The embodiment of the invention updates the software in the main system by updating the software in the virtual system and then synchronizing the updated software data to the main system, thereby avoiding the direct adoption of a software update data packet to reinstall the corresponding software in the main system and updating the corresponding software in the main system only through simple data synchronization operation. Therefore, the technical scheme provided by the embodiment of the invention can greatly reduce the time spent by the user on software updating, thereby improving the user experience.
By the invention, a system software developer can flexibly update a certain module in software, and the problem that the whole system package needs to be downloaded due to the fact that a small problem needs to be updated is avoided, so that the bad impression of a user on a product is avoided, and the user experience is enhanced.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method for updating software, the method comprising:
acquiring a software updating data packet;
updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
and performing data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system so as to complete the updating of the software corresponding to the software updating data packet in the main system.
2. The software update method of claim 1, wherein prior to said obtaining the software update package, the method further comprises:
detecting whether a server provides the software updating data packet;
the acquiring of the software update data packet includes:
downloading the software update package from the server when it is determined that the software update package is provided by the server.
3. The software updating method according to claim 2, wherein after the data synchronization of the software in the host system corresponding to the software update package and the updated software in the virtual system, the method further comprises:
and deleting the software updating data packet.
4. The software updating method according to claim 1, wherein the updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain the updated software in the virtual system comprises:
determining a module to be updated in the software corresponding to the software updating data packet in the virtual system as a first module to be updated based on the software updating data packet;
updating the first module to be updated based on the software updating data packet to obtain a first updated module;
and obtaining updated software in the virtual system based on the first updated module.
5. The software updating method according to claim 4, wherein the performing data synchronization on the software corresponding to the software update package in the host system and the updated software in the virtual system to complete the updating of the software corresponding to the software update package in the host system includes:
when a data synchronization request sent by the virtual system is received, comparing software corresponding to the software updating data packet in the main system with the updated software in the virtual system, and determining a module to be updated in the main system to serve as a second module to be updated;
and synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
6. The software updating method according to claim 5, wherein before the synchronizing the data of the first updated module to the second module to be updated to complete the updating of the software in the host system corresponding to the software updating data package, the synchronizing the data of the software in the host system corresponding to the software updating data package and the updated software in the virtual system to complete the updating of the software in the host system corresponding to the software updating data package further comprises:
judging whether the second module to be updated is in an unopened state;
the synchronizing the data of the first updated module to the second module to be updated to complete the updating of the software corresponding to the software update data packet in the main system includes:
and when the second module to be updated is not started, synchronizing the data of the first updated module to the second module to be updated so as to complete the updating of the software corresponding to the software updating data packet in the main system.
7. The software updating method according to claim 1, wherein after the data synchronization of the software in the host system corresponding to the software update package and the updated software in the virtual system, the method further comprises:
and restarting the terminal for operating the main system.
8. The software updating method according to claim 1, wherein the host system includes a zygate process; the virtual system is started when the zygate process is started.
9. A software updating apparatus, characterized in that the apparatus comprises:
the acquisition unit is used for acquiring the software updating data packet;
the updating unit is used for updating the software corresponding to the software updating data packet in the virtual system based on the software updating data packet to obtain updated software in the virtual system; the virtual system is constructed in advance based on a main system where the software is located, and the virtual system and the main system have the same transaction process and application software;
and the data synchronization unit is used for performing data synchronization on the software corresponding to the software updating data packet in the main system and the updated software in the virtual system so as to complete the updating of the software corresponding to the software updating data packet in the main system.
10. A computer-readable storage medium having program code stored thereon, wherein the program code, when executed by a processor, implements the software updating method according to any one of claims 1 to 8.
11. An electronic device, comprising a memory, a processor, and program code stored on the memory and executable on the processor, wherein the program code, when executed by the processor, implements a software update method as claimed in any one of claims 1 to 8.
CN202211049062.2A 2022-08-30 2022-08-30 Software updating method and device, storage medium and electronic equipment Pending CN115421752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211049062.2A CN115421752A (en) 2022-08-30 2022-08-30 Software updating method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211049062.2A CN115421752A (en) 2022-08-30 2022-08-30 Software updating method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115421752A true CN115421752A (en) 2022-12-02

Family

ID=84201094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211049062.2A Pending CN115421752A (en) 2022-08-30 2022-08-30 Software updating method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115421752A (en)

Similar Documents

Publication Publication Date Title
CN102622241B (en) A kind of method for upgrading software and device
KR100952251B1 (en) Servicing a component base software product
US10242023B2 (en) Programming model for synchronizing browser caches across devices and web services
US8935687B2 (en) Incrementally updating a software appliance
US8601466B2 (en) Software deployment method and system, software deployment server and user server
US8839221B2 (en) Automatic acquisition and installation of software upgrades for collections of virtual machines
US8584115B2 (en) Automated operating system device driver updating system
AU2011329096B2 (en) Networked recovery system
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN111221537A (en) Cloud desktop upgrading method and device, cloud server and storage medium
CN107291481B (en) Component updating method, device and system
EP3270320A1 (en) Method and device for creating virtual machine
EP2805233B1 (en) Installation engine and package format for parallelizable, reliable installations
WO2019056187A1 (en) Application deployment method, apparatus and system
CN110968331A (en) Method and device for running application program
US10827034B2 (en) Providing application versions via delta volumes
CN108459868A (en) A kind of software start-up method, device, terminal and storage medium
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN115421752A (en) Software updating method and device, storage medium and electronic equipment
CN107861761B (en) Starting method and system of physical host
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
CN109960522B (en) Software upgrading method and device
CN104090805A (en) Method, device and system for updating terminal operating systems
US9696983B2 (en) Dynamic updating of operating systems and applications using volume attachment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination