Version upgrading method, device and system, electronic equipment and storage medium
By receiving the version information of the target device and sending upgrade data based on the attribute information, the problem of upgrading the operating system and target process versions is solved, simplifying the upgrade process and improving the user experience.
Patent Information
- Application Number
- CN202311775536.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, during the software version upgrade process of electronic devices, it is difficult to simultaneously take into account the version upgrades of the operating system and the target process, and the upgrade process is complicated, resulting in high technical difficulty and poor user experience.
By receiving the version information sent by the target process on the target device, and sending upgrade data according to the attribute information of the operating system and the target process, the version upgrade of the operating system and the target process is realized, and the target process is used as a bridge to simplify the upgrade process and reduce the technical difficulty.
It achieves simultaneous version upgrades of the operating system and target process, improves the compatibility and independence of version upgrades, simplifies the upgrade process, and improves the device usage experience.
Smart Images

Figure CN118760449A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of software technology, and in particular to a version upgrade method, device, system, electronic device and storage medium. Background Art
[0002] During the use of electronic devices, it is often necessary to upgrade the software of the electronic devices. For example, some electronic devices run an operating system, and one or more processes also run on the operating system. The operating system and each process can be regarded as running software. In order to improve the user experience of electronic devices, it is of great significance to optimize the version upgrade method of the software of electronic devices. Summary of the invention
[0003] In view of this, embodiments of the present application provide a version upgrade method, device, system, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present application, a version upgrade method is provided, characterized in that it includes: receiving version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process; sending upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of a predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
[0005] According to a second aspect of an embodiment of the present application, a version upgrade device is provided, comprising: a receiving unit, for receiving version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process; a sending unit, for sending upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of a predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
[0006] According to a third aspect of an embodiment of the present application, a version upgrade system is provided, comprising: a target device and a back-end server; the target device comprises an operating system and a target process, the target process runs on the operating system, and the target process is used to send version information to the back-end server, the version information comprising the current version information of the operating system and the current version information of the target program; the back-end server is used to receive the version information, and send upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of a predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system comprises configuration information of the target process.
[0007] According to the fourth aspect of the embodiments of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; the processor is used to execute any one of the methods provided in the first aspect by running the computer program stored in the memory.
[0008] According to a fifth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any one of the methods provided in the first aspect is implemented.
[0009] The version upgrade solution provided in the embodiment of the present application can be based on version information sent by a target process on a target device, where the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process. The solution can also send upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of a predetermined version of the operating system, so that the target device can perform a version upgrade of at least one of the operating system and the target process based on the upgrade data, and the attribute information of the operating system includes configuration information of the target process. Therefore, the technical scheme of the embodiment of the present application, on the one hand, can effectively take into account the version upgrade of the operating system and the target process of the target device at the same time, so that the purpose of upgrading the operating system and the target process independently or jointly can be achieved; on the other hand, since the attribute information of the operating system of the target device includes the configuration information of the target process, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process during the version upgrade can be associated with each other, so as to facilitate more reliable implementation of the version upgrade of at least one of the operating system and the target process, and more conducive to ensuring the compatibility of the version upgrade of at least one of the two; on the other hand, since the version information in the embodiment of the present application can be received from the target process on the target device, and the upgrade data used for the upgrade is sent to the target process according to the attribute information of the operating system, this enables the target device to use the target process as a bridge for interaction with the background during the version upgrade, and use the relevant information of the operating system as the center of judgment during the version upgrade, thereby facilitating the way of upgrading at least one of the operating system and the target process, and reducing the technical difficulty of the version upgrade. It can be seen that the version upgrade scheme in the embodiment of the present application can effectively optimize the version upgrade method of the software of the target device, thereby helping to improve the user experience of the target device. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1 A schematic diagram of an exemplary version upgrade system in an embodiment of the present application.
[0012] Figure 2 The present invention is a flowchart of an exemplary version upgrade method in an embodiment of the present application.
[0013] Figure 3This is an optional sub-step flowchart of step S204 in the embodiment of the present application.
[0014] Figure 4 A schematic diagram of an exemplary version upgrade device in an embodiment of the present application.
[0015] Figure 5 A schematic diagram of an exemplary electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0016] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should belong to the scope of protection of the embodiments of the present application. It should be understood that the various steps recorded in the method implementation mode of the present disclosure can be performed in different orders and / or performed in parallel. In addition, the method implementation mode may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0017] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0018] First, the version upgrade system of the embodiment of the present application is described. Figure 1 An exemplary version upgrade system applicable to the embodiment of the present application is shown. Figure 1 As shown, the version upgrade system 100 may include a target device 102 and a back-end server 104. The solution of the embodiment of the present application can be completed by the target device 102 and the back-end server 104 in collaboration. Optionally, the target device 102 may include an operating system and a target process, and the target process may run on the operating system. The target process may send version information to the back-end server, and the version information includes the current version information of the operating system and the current version information of the target program. Optionally, the back-end server 104 may receive the version information, and according to the received version information and the attribute information of the predetermined version of the operating system, send upgrade data for version upgrade of at least one of the operating system and the target process to the target process, so that the target device 102 performs version upgrade of at least one of the operating system and the target process based on the upgrade data. Among them, the attribute information of the operating system may include configuration information of the target process.
[0019] In the embodiment of the present application, the target device 102 can be any electronic device. For example, in some optional embodiments, the target device 102 can be a mobile device, a tablet computer, a laptop computer, a desktop computer, a game console, a media player, a vehicle system and / or any other suitable type of electronic device. The operating system on the target device 104 can be any operating system, for example, including but not limited to the Android operating system, the Linux operating system, the Windows operating system, etc. The target process running on the operating system can be a running software program such as an APP, and the embodiment of the present application does not limit the actual function of the target process.
[0020] As an optional example, the target device 102 may be a screen projection device, the operating system of the target device 104 may be the operating system of the screen projection device, and the target process may be a desktop startup program running on the operating system. The above-mentioned target device can realize display content projection on the head-mounted display device for display by running the target process. In the embodiment of the present application, when performing software upgrade, the version upgrade of the operating system and the desktop startup program of the screen projection device can be taken into account at the same time, which can effectively optimize the version upgrade method of the software of the screen projection device, which is conducive to improving the user experience of the screen projection device.
[0021] In the embodiment of the present application, the background server 104 may be a backend device of the target device 102 , which may be a server, a computer, etc. The background server 104 may manage the version upgrade of the software of the target device 102 .
[0022] In some optional embodiments, the attribute information of each version of the operating system can be stored in the same configuration file along with the configuration information of the corresponding target process. Based on this, the operating system and the target process can be associated through the same configuration file, and the upgrade of both can be taken into account at the same time, thereby making it easier to improve the compatibility of the operating system and the target process when the versions are upgraded.
[0023] In the embodiment of the present application, the version upgrade system 100 may also include a first storage space and a second storage space that are independent of each other, wherein: the first storage space is used to store data packets of each version of the operating system, and the second storage space is used to store data packets of each version of the target process.
[0024] Based on this, the data packets of each version of the operating system and the data packets of each version of the target process are isolated in storage space, and the two are stored in different storage spaces respectively. When the version upgrade is required, the required data packets can be selected from the corresponding storage space. The solution disclosed in this embodiment maintains the independence of the two independent product lines of the operating system and the target process during the version upgrade, so that the operating system version upgrade package and the target process version upgrade package can be managed separately, reducing the dependence between the two.
[0025] The first storage space and the second storage space may include but are not limited to any type of storage media (such as memory, hard disk, etc.), database, etc. In the embodiment of the present application, the first storage space and the second storage space may also be figuratively referred to as "version pools". When a version upgrade is required, the required data package can be selected from the corresponding "version pool".
[0026] The software upgrade system 100 in the embodiment of the present application, on the one hand, can effectively take into account the version upgrade of the operating system and the target process of the target device 102, and can achieve the purpose of independently upgrading the operating system and the target process or upgrading them together; on the other hand, since the attribute information of the operating system of the target device 102 can include the configuration information of the target process, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process during the version upgrade can be associated with each other, thereby facilitating more reliable implementation of the version upgrade of at least one of the operating system and the target process, and is more conducive to ensuring the compatibility of the version upgrade of at least one of the two; on the other hand, since the version information in the embodiment of the present application is received from the target process on the target device 102, and the upgrade data used for the upgrade is sent to the target process according to the attribute information of the operating system, this allows the target device to use the target process as a bridge for interaction with the background during the version upgrade, and use the relevant information of the operating system as the center for judgment during the version upgrade, thereby facilitating the method of performing version upgrades on at least one of the operating system and the target process, and reducing the technical difficulty of version upgrades. It can be seen that the version upgrade system 100 in the embodiment of the present application can effectively optimize the version upgrade method of the software of the target device 102, thereby helping to improve the user experience of the target device 102.
[0027] The version upgrade method in the embodiment of the present application is described below in conjunction with the above version upgrade system 100. It should be understood that the part of the version upgrade method related to the version upgrade system 100 can also be understood in conjunction with the above. In addition, the version upgrade system 100 can also be understood in conjunction with the version upgrade method embodiment below.
[0028] Figure 2A flowchart of a method for version upgrade according to an embodiment of the present application. According to a first aspect of an embodiment of the present application, a method for version upgrade is provided, referring to Figure 2 The version upgrade method includes steps S202 and S204, specifically:
[0029] S202: Receive version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process.
[0030] As mentioned above, the operating system of the target device 102 can be any operating system, for example, including but not limited to Android operating system, Linux operating system, Windows operating system, etc. The target process running on the operating system can be a running software program, and the embodiment of the present application does not impose any limitation on the actual function of the target process.
[0031] To facilitate the explanation of the embodiments of the present application, the target device 102 is taken as the projection device, the operating system is the operating system of the projection device (system, hereinafter referred to as sys, for example, it can be an Android operating system), and the target process is the desktop launcher of the projection device (such as the Android system desktop launcher, hereinafter referred to as launcher) as an example.
[0032] In some optional embodiments, in the version information sent by the target process, the current version information of the operating system may indicate the current version of the operating system, for example, including but not limited to at least one of the current version number and version identifier of the operating system of the target device 102.
[0033] In some optional embodiments, in the version information sent by the target process, the current version information of the target process may indicate the current version of the target process, for example, including but not limited to at least one of the current version number and version identifier of the target process of the target device 102 .
[0034] In step S202, the target device 102 can use the target process as a bridge to interact with the background server 104, so the target process of the target device 102 and the upgrade of the operating system can use the target process as a bridge to transmit signals and data. When version upgrade is required, the target device 102 can send the current version information of the operating system and the current version information of the target process to the background server 104, so that the subsequent steps can obtain data for version upgrade. It should be understood that how to determine when version upgrade is required is not limited in the embodiment of the present application. For example, it can be that the user performs version upgrade of the operating system and / or the target process at the target device 102 end, and determines that version upgrade is required. Alternatively, it can also be that the background server 104 sends the instruction of version upgrade to the target device 102, and determines that version upgrade is required. Alternatively, the user can send the instruction of version upgrade to the target device 102 through other devices, and determine that version upgrade is required.
[0035] S204: Send upgrade data for upgrading at least one of the operating system and the target process to the target process based on the version information and attribute information of the predetermined version of the operating system, so that the target device upgrades the version of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
[0036] In some optional embodiments, the predetermined version of the operating system may be a current version of the operating system or a version of the operating system to be upgraded, which may be determined according to actual conditions.
[0037] The operating system to be upgraded may refer to an operating system that is higher than the current version. For example, the current version of the operating system is sys-3 (sys-3 in the example here can be understood as the operating system is version 3, and the rest can be deduced by analogy, the larger the number, the higher the version is considered), and the operating system to be upgraded can be sys-4, sys-5, etc. The operating system to be upgraded can be pre-specified (for example, it can be pre-specified by the staff at the back-end server 104). For example, taking the current version of the operating system as sys-3 as an example, sys-4 can be pre-specified as the operating system to be upgraded, sys-5 can be specified as the operating system to be upgraded, or the highest version of the operating system can be specified as the operating system to be upgraded. The highest version can also be understood as the latest updated version, and the higher the version can also be understood as the newer the version.
[0038] In an embodiment of the present application, the upgrade data is data used to perform a version upgrade on at least one of the operating system and the target process. For example, it may include at least one of an upgrade package (i.e., a data packet) used during the upgrade, an upgrade instruction, etc. The relationship between the upgrade data and the version upgrade can be understood as follows: the upgrade package determines the content of the version upgrade, and the upgrade instruction determines the method of the version upgrade. After the target device 102 obtains the upgrade data through the target process, it can use the upgrade package to perform a version upgrade on at least one of the operating system and the target process based on the instructions of the upgrade instruction. Specifically, it may refer to installing the upgrade package on the target device 102 according to the upgrade instruction, thereby replacing the current version of the operating system and at least one of the target process with a higher version.
[0039] In the embodiment of the present application, the attribute information of the operating system of the target device 102 may include the configuration information of the target process. The attribute information of the operating system may include at least the configuration information of the target process of the current version. Optionally, the attribute information of the operating system may also include the configuration information of the target process of the version to be upgraded. Similar to the operating system, the target process of the version to be upgraded may refer to a target process higher than the current version, which may be pre-specified or may not be pre-specified. The specific contents of the operating system may be understood with reference to the above, and will not be described in detail.
[0040] In the embodiment of the present application, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process can be associated with each other during the version upgrade, that is, the target device 102 can simultaneously take into account the upgrade of both the operating system and the target process. Optionally, the attribute information of the operating system can be configured by the back-end server 104. For example, the staff can configure multiple attributes for each version of the operating system as needed, and configure the configuration information of the target process as the attributes of the operating system. The attribute information of the configured operating system can be generated into a configuration file, and the configuration file can be directly called to obtain the required attribute information of the operating system during the version upgrade.
[0041] The following is an example to illustrate the process of configuring attribute information for an operating system. The attribute information of an example version 5 operating system is shown below:
[0042]
[0043] The following is an explanation of an example of the attribute information of the operating system of version 5 (hereinafter referred to as sys-5) (for the convenience of reference below, this example is referred to as "Example 1"):
[0044] ① You can configure the mandatory version upgrade for sys-5. For example, configure the operating system version compatible with sys-5 as an attribute for sys-5 (such as attribute 1 above). Here, you can configure a lower version of the operating system. When the lower version of the operating system is compatible with the higher version of the operating system, you can upgrade the version from the lower version of the operating system to the higher version of the operating system in a compatible manner. If the attribute of the operating system version compatible with sys-5 is not configured, sys-5 needs to be upgraded in a mandatory upgrade manner.
[0045] As can be seen above, the sys compatible version in attribute 1 is 3, that is, the operating system version compatible with sys-5 is sys-3. For example, if the current version of the operating system running in the target device 102 is sys-3, sys-5 can be allowed to be upgraded to the target device 102 in a compatible manner. For example, the user can choose whether to upgrade to sys-5. If the above attribute 1 is not configured in the attribute information of sys-5, or there is no sys-3 in attribute 1, sys-5 needs to be upgraded to the target device 102 in a forced upgrade manner.
[0046] ② You can configure the differential nature of version upgrades for sys-5. For example, configure the differential upgrades supported by sys-5 as attributes for sys-5 (such as attribute 2 above). Differential upgrades can be understood as upgrading from a lower version to a higher version by using differential packages to upgrade the added parts. When there are attributes for differential upgrades, you can upgrade from a lower version of the operating system to a higher version of the operating system in the form of differential upgrades. If the attributes for differential upgrades supported by sys-5 are not configured, sys-5 cannot be upgraded in the form of differential upgrades.
[0047] As can be seen above, the differential upgrades supported by sys-5 in attribute 2 are sys4-5 (i.e., differential upgrade from version 4 to version 5) and sys3-5 (i.e., differential upgrade from version 3 to version 5). For example, if the current version of the operating system running in the target device 102 is sys-3, sys-5 may be allowed to be upgraded to the target device 102 in a differential upgrade manner. If the attribute of differential upgrade supported by sys-5 is not configured, or there is no sys3-5 in attribute 2, sys-5 cannot be upgraded to the target device 102 in a differential upgrade manner.
[0048] ③ Sys-5 can be configured with a target process version that is compatible with it (such as attribute 3 above). When there is an attribute that is compatible with the target process version, the version of at least one of the operating system and the target process can be upgraded according to the target process version that Sys-5 is compatible with.
[0049] As can be seen above, the target process versions compatible with sys-5 in attribute 3 are launcher-3, launcher-4, and launcher-5. For example, if the target process of the current version of the target device 102 is launcher-3, sys-5 is compatible with the target process of the current version, and after the current version of the operating system is upgraded to sys-5, it will not affect the operation of the target process of the current version. If the target process of the current version is launcher-2, which is not a target process version compatible with sys-5, then after the current version of the operating system is upgraded to sys-5, it will affect the operation of the target process of the current version.
[0050] ④ The target process of the compatible version can continue to be configured with configuration information related to it (such as the above-mentioned attribute 4). For example, the target process version compatible with the compatible version is configured with the target process version, and the difference of the configuration version upgrade is configured. By making the configuration information of the target process part of the attribute information of the operating system sys-5, the configuration files of the operating system and the target process can be associated with each other during the version upgrade, so as to upgrade the version of the target process through the attribute information of the operating system.
[0051] As can be seen above, in attribute 4, for the target process version launcher-3 / 4 / 5 that is compatible with sys-5, the configuration information such as the compatible target process version and differential upgrade of launcher-3 / 4 / 5 can continue to be configured (the configuration process is similar to the mandatory and differential configuration of the operating system, and will not be repeated here). For example, if the current version of the operating system of the target device 102 is launcher-5, and the current version of the target process is launcher-3, the version upgrade from launcher-3 to launcher-4 or launcher-5 can be achieved through the attribute information of sys-5.
[0052] It should be understood that the above example explanation of the attribute information of the version 5 operating system (hereinafter referred to as sys-5) does not constitute any limitation on the embodiments of the present application.
[0053] As can be seen from the above, the attribute information of the operating system in the embodiment of the present application may include, but is not limited to: mandatory attribute information indicating the upgrade to the operating system version, attribute information indicating the differential of the upgrade to the operating system version, attribute information indicating the target process compatible with the operating system version, and configuration information of the corresponding target process. Those skilled in the art can configure the attribute information of the operating system according to actual needs to meet the diverse needs of software upgrades. For example, the attribute information indicating the differential of the upgrade to the operating system may be optional, and the attribute information of the operating system may not include the attribute information indicating the differential of the upgrade to the operating system.
[0054] Next, an exemplary process of configuring the attribute information of the operating system by the backend server 104 is described, still taking the attribute information of sys-5 in the above text as an example:
[0055] 1. Adding attribute information can be performed in the attribute information operation interface included in the backend server 104, thereby adding a configuration process of the attribute information of the operating system;
[0056] 2. Select auxiliary information for version upgrade, for example, select a target region for pushing version upgrade (only target devices 102 in the selected target region are allowed to use the attribute information of the operating system to upgrade the operating system and / or target process);
[0057] 3. Select sys-5 as the configuration object for attribute information;
[0058] 4. Configure sys-3, the compatible version of sys-5. If not configured, the version upgrade from sys-3 to sys-5 is mandatory (that is, configure the attribute information indicating the mandatory nature of the upgrade to sys-5);
[0059] 5. Configure the differential upgrade of sys-5. The target version is sys-5. The differential package supports sys3-5 and sys4-5 (that is, upgrading from sys-3 or sys-4 to sys-5 supports differential upgrade. Here, the attribute information used to indicate the differential upgrade to sys-5 is configured);
[0060] 6. Select and configure the target process launcher-3 as a compatible version of the target process (that is, configure the attribute information for indicating the target process is compatible with the operating system);
[0061] 7. Select and configure the target process, differential upgrade, etc. of the compatible version of launcher-3 (here, configure the configuration information corresponding to launcher-3);
[0062] 8. Similar to launcher-3, repeat the above configuration process 6-7, select and configure the target process launcher-4 and launcher-5 as the target process of compatible versions, and select and configure the target process of compatible versions of launcher-4 and launcher-5, differential upgrade, etc.
[0063] After completing the above configuration process 1-8, the attribute information of sys-5 in the above example is obtained.
[0064] Optionally, in the above configuration process 7, the effective state of launcher-3 can also be configured (of course, the effective state of launcher-4 / 5 can also be configured), so that when the version of the target process is subsequently upgraded, the effectiveness / ineffectiveness of launcher-3 (i.e., the target process of version 3) can be controlled separately to deal with the situation of version withdrawal, etc., and the configuration of the effective state can also retain the relevant operation records. For example, version withdrawal generally occurs when multiple target devices 102 batch upgrade high-version target processes. For example, a part of the target devices 102 in the multiple target devices 102 has completed the upgrade from the low-version target process to launcher-3. After user feedback, it is found that launcher-3 has serious user experience problems. Therefore, it is necessary to avoid another part of the target devices 102 from continuing to upgrade launcher-3. Then, the effective state of launcher-3 can be configured to be ineffective, so that even if another part of the target devices 102 continue to implement the upgrade according to the original plan, the low-version target process will not be upgraded to launcher-3.
[0065] It should be understood that the configuration process of the above example does not constitute any limitation to the embodiments of the present application.
[0066] Based on the version upgrade method of steps S202 to S204 of the embodiment of the present application, on the one hand, it is possible to effectively take into account the version upgrades of the operating system and the target process of the target device at the same time, thereby achieving the purpose of independently upgrading the operating system and the target process or jointly upgrading the operating system and the target process; on the other hand, since the attribute information of the operating system of the target device includes the configuration information of the target process, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process during the version upgrade can be associated with each other, thereby facilitating more reliable implementation of the version upgrade of at least one of the operating system and the target process, and is more conducive to ensuring the compatibility of the version upgrade of at least one of the two; on the other hand, since the version information in the embodiment of the present application is received from the target process on the target device, and the upgrade data used for the upgrade is sent to the target process according to the attribute information of the operating system, this allows the target device to use the target process as a bridge for interaction with the background during the version upgrade, and use the relevant information of the operating system as the center for judgment during the version upgrade, thereby facilitating the method of performing version upgrades on at least one of the operating system and the target process, and reducing the technical difficulty of the version upgrade. It can be seen that the version upgrade solution in the embodiment of the present application can effectively optimize the version upgrade method of the software of the target device, thereby helping to improve the user experience of the target device.
[0067] The present application embodiment does not limit the specific implementation of step S204. In some optional embodiments, refer to Figure 3 As shown, at least one of the operating system and the target process may be upgraded through the following sub-steps S2041, S2042, and S2043:
[0068] S2041: According to the current version information of the operating system, it is searched whether there is an operating system version to be upgraded.
[0069] The version information sent by the target device 102 to the backend server 104 through the target process may include the current version information of the operating system. Therefore, the backend server 104 may retrieve whether there is a higher version of the operating system to be upgraded according to the current version information of the operating system.
[0070] Step S2041 can be implemented in many ways, for example:
[0071] In some optional implementations, the current version information of the operating system can be used to retrieve whether there is a specified version of the operating system or a higher version of the operating system from the attribute information of each pre-configured version of the operating system. Optionally, if it is determined that the current version of the operating system is a compatible version of one or more higher versions of the operating system, it can be determined that there is an operating system to be upgraded. For example, if it is determined that the current version of the operating system is a compatible version of multiple higher versions of the operating system, and the operating system to be upgraded is not pre-specified, the highest version of the operating system can be determined as the operating system to be upgraded; if the operating system to be upgraded is pre-specified, the pre-specified one is directly determined as the operating system to be upgraded.
[0072] For example, if the current operating system is sys-3, that is, the current version information of the operating system is version 3, and from the attribute information of each operating system, it is retrieved that sys-3 is a compatible version of sys-4 and sys-5, then it can be determined that there is an operating system to be upgraded; if the operating system to be upgraded is not pre-specified, sys-5 can be determined as the operating system to be upgraded; if the operating system to be upgraded is pre-specified as sys-4, sys-4 is directly used as the operating system to be upgraded, and the same applies if sys-5 is pre-specified.
[0073] In some other optional implementations, the current version information of the operating system can be used to retrieve from the first storage space storing the operating system data packets, and if a data packet of a higher version of the operating system is retrieved, it can be determined that there is an operating system to be upgraded. For example, if multiple data packets of higher versions of the operating system are retrieved, and the operating system to be upgraded is not pre-specified, the highest version of the operating system can be determined as the operating system to be upgraded; if the operating system to be upgraded is pre-specified, the pre-specified one is directly determined as the operating system to be upgraded.
[0074] For example, if the current operating system is sys-3, that is, the current version information of the operating system is version 3, and if data packets of higher versions of operating systems sys-4 and sys-5 are retrieved from the first storage space that stores the data packets of the operating system, it can be determined that there is an operating system to be upgraded; if the operating system to be upgraded is not pre-specified, sys-5 can be determined as the operating system to be upgraded; if the operating system to be upgraded is pre-specified as sys-4, sys-4 is directly used as the operating system to be upgraded, and the same applies if sys-5 is pre-specified.
[0075] In some other optional implementations, a file storing the version information of each existing operating system can be preset in the background server 104 (the file type is not limited here, such as word, txt, etc., and the file can be a configuration file storing the attribute information of the operating system), and the current version information of the operating system can be used to directly retrieve the version information of the higher version of the operating system from the file. If it is retrieved, it can be determined that there is an operating system to be upgraded. For example, if the version information of multiple higher versions of the operating system is retrieved, and the operating system to be upgraded is not pre-specified, the highest version of the operating system can be determined as the operating system to be upgraded; if the operating system to be upgraded is pre-specified, the pre-specified one is directly determined as the operating system to be upgraded.
[0076] It should be understood that the above optional methods can be selected as needed. Alternatively, other methods can be used to implement the search in the above sub-step S2041, which is not specifically limited in the embodiments of the present application.
[0077] S2042: If there is an operating system version to be upgraded, then according to the attribute information and version information of the operating system version to be upgraded, the upgrade data for upgrading the operating system version is sent to the target process, so that the target device upgrades the operating system version based on the upgrade data for upgrading the operating system version.
[0078] In some optional embodiments, the upgrade data for upgrading the operating system may include at least one of an upgrade package and an upgrade instruction (eg, the first upgrade instruction described below) of the operating system to be upgraded.
[0079] In some optional embodiments, the upgrade package may be a data packet for upgrading. It should be understood that the upgrade package here may be a full upgrade package for a normal upgrade to the version to be upgraded, or a differential upgrade package (i.e., a differential package) for a differential upgrade to the version to be upgraded. In the embodiment of the present application, the upgrade package of the operating system of the version to be upgraded may be obtained in any manner.
[0080] In some optional embodiments, data packets of various versions of the operating system may be stored in a first storage space, and data packets of various versions of the target process may be stored in a second storage space that is independent of the first storage space.
[0081] Based on this, in the embodiment of the present application, the data packets of each version of the operating system and the data packets of each version of the target process are stored in different storage spaces. When the version upgrade is required, the required data packets can be selected from the corresponding storage space. The scheme of this embodiment maintains the independence of the two independent product lines of the operating system and the target process during the version upgrade, so that the operating system version upgrade package and the target process version upgrade package can be managed separately, reducing the dependence between the two.
[0082] The first storage space and the second storage space may include but are not limited to any type of storage media (such as memory, hard disk, etc.), database, etc. In the embodiment of the present application, the first storage space and the second storage space may also be figuratively referred to as "version pools". When a version upgrade is required, the required data package can be selected from the corresponding "version pool".
[0083] It is understandable that if there is an operating system to be upgraded, corresponding to the operating system to be upgraded, the upgrade data of the operating system to be upgraded can be sent to the target process of the target device. Here, the upgrade data of the operating system to be upgraded will not be sent directly from the background to the operating system for upgrading, but will be sent to the target process, so that the target process can upgrade the operating system as an intermediate interaction bridge.
[0084] In some optional embodiments, sending upgrade data for upgrading the operating system version to the target process according to the attribute information and version information of the operating system to be upgraded may include sub-steps S2042A to S2042E, specifically:
[0085] S2042A: Determine whether the operating system version to be upgraded is a mandatory upgrade version based on the attribute information of the operating system version to be upgraded and the current version information of the operating system, and obtain a first determination result, wherein the first determination result is used to indicate the mandatory nature of upgrading to the operating system version to be upgraded.
[0086] Combined with the above explanation of "Example 1", it can be known that the attribute information of the operating system to be upgraded can include attribute information for indicating the mandatory nature of upgrading from the current version of the operating system to the version of the operating system to be upgraded. It can be determined from the attribute information of the operating system to be upgraded according to the current version information of the operating system whether the current version of the operating system is a compatible version of the operating system to be upgraded. If the current version of the operating system is a compatible version of the operating system to be upgraded, the first determination result can indicate that the operating system to be upgraded is a non-mandatory upgrade version, that is, the operating system can be selected not to be upgraded to the version to be upgraded. If the operating system to be upgraded is incompatible with the current version of the operating system, the first determination result can indicate that the operating system to be upgraded is a mandatory upgrade version, that is, it can be upgraded from the current version of the operating system to the version of the operating system to be upgraded by mandatory upgrade. Then, the mandatory nature of the version upgrade of the operating system can be implemented according to the first determination result. It can be understood that for the operating system to be upgraded, if it is necessary to make it a mandatory upgrade version, the compatible version of the operating system is not configured in the attribute information of the operating system. If it is necessary to make it a non-mandatory upgrade version (such as the user can choose whether to upgrade to the operating system to be upgraded), the compatible version of the operating system is configured in the attribute information of the operating system.
[0087] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5. If the current version information of the operating system indicates that it is sys-3 (i.e., version 3), and it can be determined from the attribute information of the operating system to be upgraded that sys-3 is a compatible version of sys-5, then the first determination result can indicate that sys-3 is a compatible version of sys-5, that is, sys-5 can be a non-mandatory upgrade operating system version, and the user can choose not to upgrade to sys-5 and keep the current sys-3 version unchanged. If the version information of the operating system indicates that it is sys-2 (i.e., version 2), then it is determined from the attribute information of the operating system to be upgraded that sys-2 is not a compatible version of sys-5, then the first determination result indicates that sys-5 is incompatible with sys-2, that is, it is necessary to upgrade from sys-2 to sys-5 by forced upgrade. It should be understood that this is only an example for easy understanding, and not a limitation. The rest of the cases can be deduced accordingly and will not be repeated.
[0088] S2042B: Based on the attribute information of the operating system to be upgraded and the current version information of the operating system, determine whether there is a differential upgrade from the current version of the operating system to the version of the operating system to be upgraded, and obtain a second determination result, wherein the second determination result is used to indicate the difference from the current version of the operating system to the version of the operating system to be upgraded.
[0089] Optionally, in combination with the above explanation of "Example 1", it can be known that the attribute information of the operating system to be upgraded may include attribute information for indicating the difference of the upgrade to the operating system to be upgraded. It is possible to determine whether there is a differential upgrade from the current version of the operating system to the operating system to be upgraded from the attribute information of the operating system to be upgraded based on the current version information of the operating system. If yes, the second determination result obtained is that there is a differential upgrade from the current version of the operating system to the operating system to be upgraded, that is, it is possible to upgrade from the current version of the operating system to the operating system to be upgraded by differential upgrade. If not, the second determination result obtained is that there is no differential upgrade from the current version of the operating system to the operating system to be upgraded, that is, it is not possible to upgrade from the current version of the operating system to the operating system to be upgraded by differential upgrade. Then, the version upgrade of the operating system can be implemented based on the second determination result.
[0090] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5, if the current version information of the operating system indicates that it is sys-3 (i.e., version 3), then according to the attribute information of the operating system to be upgraded, it can be determined that sys-5 supports the differential upgrade of sys3-5 (i.e., differential upgrade from version 3 to version 5), then the second determination result indicates that there is a differential upgrade from sys-3 to sys-5, and the differential upgrade from sys-3 to sys-5 can be performed by using the differential package of sys3-5 in a differential upgrade manner. If the version information of the operating system indicates that it is sys-2 (i.e., version 2), then according to the attribute information of the operating system to be upgraded, it can be determined that there is no differential upgrade from version 2 to version 5, then the second determination result is that there is no differential upgrade from sys-2 to sys-5, and it is impossible to upgrade from sys-2 to sys-5 by differential upgrade. It should be understood that this is only an example for easy understanding, not a limitation. The rest of the cases can be deduced accordingly, and will not be repeated.
[0091] S2042C: Determine whether the current version of the target process is compatible with the operating system to be upgraded based on the attribute information of the operating system to be upgraded and the current version information of the target process, and obtain a third determination result, wherein the third determination result is used to indicate the compatibility of the current version of the target process with the operating system to be upgraded.
[0092] Optionally, in combination with the above explanation of "Example 1", it can be known that the attribute information of the operating system to be upgraded can include attribute information for indicating the target process compatible with the operating system to be upgraded. It is possible to determine whether the target process of the current version is a compatible version of the operating system to be upgraded from the attribute information of the operating system to be upgraded based on the current version information of the target process, thereby determining whether the target process of the current version is compatible with the operating system to be upgraded. If yes, the third determination result obtained indicates that the target process of the current version is compatible with the operating system to be upgraded, that is, upgrading from the current version of the operating system to the version of the operating system to be upgraded will not affect the operation of the current target process. If not, the third determination result obtained indicates that the target process of the current version is incompatible with the operating system to be upgraded, that is, upgrading from the current version of the operating system to the version of the operating system to be upgraded will affect the operation of the current target process. Subsequently, the version upgrade of the operating system and / or the target process can be implemented based on the third determination result.
[0093] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5, if the current version information of the operating system indicates that it is sys-3 (i.e., version 3), if the current version information of the target process is launcher-3 (i.e., version 3), then according to the attribute information of the operating system to be upgraded, it can be determined that launcher-3 is compatible with sys-5, and the third determination result indicates that sys-5 is compatible with launcher-3, and upgrading from sys-3 to sys-5 will not affect the current operation of launcher-3. If the current version information of the target process is launcher-2, then according to the attribute information of the operating system to be upgraded, it can be determined that launcher-2 is incompatible with sys-5, and the third determination result indicates that sys-5 is incompatible with launcher-2, and upgrading from sys-3 to sys-5 will affect the current operation of launcher-2. It should be understood that this is only an example for easy understanding, not a limitation. The rest of the cases can be deduced accordingly and will not be repeated.
[0094] S2042D: Generate a first upgrade instruction for indicating an upgrade method according to at least one of the first determination result, the second determination result, and the third determination result.
[0095] After determining the first determination result, the second determination result and the third determination result, a first upgrade instruction indicating an upgrade method may be generated according to at least one of them as needed.
[0096] For example, in an optional implementation, if the first determination result indicates that the operating system version to be upgraded is a forced upgrade version (i.e., it can be upgraded from the current version of the operating system to the version to be upgraded by forced upgrade), the second determination result indicates that there is a differential upgrade from the current version of the operating system to the version to be upgraded (i.e., it can be upgraded from the current version of the operating system to the version to be upgraded by differential upgrade), and the third determination result indicates that the current version of the target process is compatible with the version to be upgraded (i.e., upgrading from the current version of the operating system to the version to be upgraded will not affect the operation of the current target process), then a first upgrade instruction can be generated for forcibly upgrading the current version of the operating system of the target device 102 to the version to be upgraded by differential upgrade.
[0097] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5, if the current version information of the operating system indicates that it is sys-2 (i.e., version 2), if the current version information of the target process is launcher-3 (i.e., version 3), then if the above-mentioned first determination result indicates that the operating system is forcibly upgraded to sys-5, the second determination result indicates that there is no differential upgrade version of sys2-5, and the third determination result indicates that sys-5 is compatible with launcher-3, then a first upgrade instruction is generated for forcing sys-2 of the target device 102 to be upgraded to sys-5 using the full package of sys5. It should be understood that this is only an example for easy understanding, and not a limitation. The rest of the cases can be inferred accordingly and will not be elaborated on.
[0098] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5, if the current version information of the operating system indicates that it is sys-3 (i.e., version 3), if the current version information of the target process is launcher-3 (i.e., version 3), then if the above-mentioned first determination result indicates that sys-5 is a non-forced upgrade operating system version, the second determination result indicates that there is a differential upgrade version of sys3-5, and the third determination result indicates that sys-5 is compatible with launcher-3, then a first upgrade instruction is generated to determine whether sys-3 of the target device 102 is upgraded to sys-5. If so, the differential upgrade package of sys3-5 can be used to upgrade to sys-5. It should be understood that this is only an example for easy understanding, not a limitation. The rest of the cases can be deduced accordingly and will not be repeated.
[0099] For another example, in an optional embodiment, if the first determination result indicates that the operating system version to be upgraded is a forced upgrade version, the second determination result indicates that there is no differential upgrade from the current version of the operating system to the version of the operating system to be upgraded, and the third determination result indicates that the current version of the target process is incompatible with the version of the operating system to be upgraded (that is, upgrading from the current version of the operating system to the version of the operating system to be upgraded will affect the operation of the current target process), then a first upgrade instruction can still be generated for forcibly upgrading the current version of the operating system of the target device 102 to the version of the operating system to be upgraded with a full upgrade package.
[0100] Optionally, still taking the aforementioned "Example 1" as an example, the operating system to be upgraded is sys-5, if the current version information of the operating system indicates that it is sys-2 (i.e., version 2), the current version information of the target process is launcher-2 (i.e., version 2). If the above-mentioned first determination result indicates that sys-5 is a forced upgrade operating system version (which is not compatible with sys-2), the second determination result indicates that there is no differential upgrade version of sys2-5, and the third determination result indicates that sys-5 is compatible with launcher-2, then a first upgrade instruction is generated for forcing sys-2 of the target device 102 to be upgraded to sys-5 using the full upgrade package of sys5. It should be understood that in this case, although launcher-2 is incompatible with sys-5, the target process can still be run normally by other means. In one example, on the basis of upgrading sys-2 to sys-5, the current launcher-2 can be upgraded to launcher-3 synchronously (for the convenience of citing this example later, this example is recorded as "Example 2"). It should be understood that this is only an example for easy understanding, not a limitation. The rest of the situations can be inferred in the same way and will not be elaborated on here.
[0101] The above examples also illustrate a special situation, that is, in some optional embodiments, step S2042D may include: if the first determination result indicates that the upgrade to the operating system of the version to be upgraded is a mandatory upgrade, a first upgrade instruction for instructing the target device to forcefully upgrade the operating system to the version to be upgraded may be generated. The embodiment of the present application can ensure that the operating system of the target device 102 can be reliably and forcibly upgraded by configuring the mandatory upgrade of the operating system.
[0102] S2042E: In response to the first upgrade instruction including first upgrade indication information for instructing to upgrade the current version of the operating system to the version of the operating system to be upgraded, the first upgrade instruction and the upgrade package of the version of the operating system to be upgraded are sent to the target process, so that the target device upgrades the version of the operating system based on the first upgrade instruction using the upgrade package of the version of the operating system to be upgraded.
[0103] In the embodiment of the present application, when the first upgrade instruction needs to include the first upgrade indication information, the first upgrade instruction and the upgrade package of the operating system to be upgraded are sent to the target process, so that the target device 102 can upgrade the version of the operating system. The first upgrade indication information can be generated according to the upgrade request for the operating system issued by the target device 102 to the back-end server 104 (that is, the upgrade indication is directly issued by the target device 102, for example, the user can control the target device 102 to issue the upgrade request, or the target device 102 can issue it automatically in some specific states such as the start of the target process), or it can be information generated by the back-end server 104 by default (that is, the back-end server 104 issues the upgrade indication by itself). The first upgrade instruction information can be any type of data, for example, including but not limited to text segments, program segments, etc.
[0104] Optionally, after the target device 102 obtains the upgrade package of the operating system version to be upgraded through the target process (for example, obtaining the corresponding data packet from the first storage space as the upgrade package), it can install the upgrade package of the operating system version to be upgraded into the target device 102 according to the upgrade method indicated by the first upgrade instruction (including forced upgrade and / or differential upgrade), thereby completing the version upgrade of the operating system.
[0105] Based on this, through the optional implementation method including the above-mentioned sub-steps S2042A~S2042E, on the one hand, the version upgrade of the operating system of the target device 102 can be effectively realized; on the other hand, since the above-mentioned implementation method comprehensively considers important issues such as the mandatory, differential and compatibility of the operating system version upgrade, the operating system version upgrade is more comprehensive and reliable; on the other hand, since the version information in the embodiment of the present application (including the current version information of the operating system and the current version information of the target process) is received from the target process on the target device 102, and the first upgrade instruction and upgrade package used for the upgrade are sent to the target process, this allows the target device to use the target process as a bridge for interaction with the background during the version upgrade, and use the relevant information of the operating system as the center of judgment during the version upgrade, thereby easily simplifying the method of version upgrading the operating system and reducing the technical difficulty of version upgrading.
[0106] In some optional embodiments, if it is determined that there is an operating system version to be upgraded, the version upgrade method in the embodiment of the present application may further include: determining whether the target process of the current version is compatible with the operating system version to be upgraded according to the attribute information of the operating system version to be upgraded and the current version information of the target process (specifically, the method of determining whether the two are compatible can be understood by referring to the relevant content of the aforementioned sub-step S2042C, which will not be repeated here); if the target process of the current version is compatible with the operating system version to be upgraded, executing one of steps A1 and A2; if the target process of the current version is not compatible with the operating system version to be upgraded, executing step A2; wherein:
[0107] Step A1: Without performing a version upgrade on the current version of the target process, the target device is enabled to perform a version upgrade on the operating system based on the upgrade data for performing a version upgrade on the operating system.
[0108] Step A2: Determine the configuration information of the target process of the version to be upgraded from the attribute information of the operating system of the version to be upgraded, and send upgrade data for version upgrade of the target process and upgrade data for version upgrade of the operating system to the target device, so that the target device upgrades the operating system and the target process based on the upgrade data for version upgrade of the operating system and the upgrade data for version upgrade of the target process respectively.
[0109] As can be seen from the foregoing, if the current version of the target process is compatible with the operating system to be upgraded, it means that upgrading the current version of the operating system to the operating system to be upgraded will not affect the operation of the current target process. Therefore, at this time, only the operating system can be upgraded, that is, step A1 is executed; or the operating system and the target process can be upgraded synchronously, that is, step A2 is executed. In this way, the target device 102 can be satisfied with the normal operation after the operating system version is upgraded. If the current version of the target process is not compatible with the operating system to be upgraded, it means that upgrading the current version of the operating system to the operating system to be upgraded will affect the operation of the current target process. Therefore, in order to avoid affecting the use of the target device 102, the operating system and the target process can be upgraded synchronously, that is, step A2 is executed, so that the target process after the version upgrade is compatible with the operating system after the version upgrade, and the target device 102 can be guaranteed to be able to run normally after the operating system version upgrade (for example, referring to the aforementioned "Example 2", on the basis of upgrading sys-2 to sys-5, the current launcher-2 can be upgraded to launcher-3 synchronously, so that since launcher-3 is compatible with sys-5, it will not affect the use of the target device 102).
[0110] It can be seen that through such an optional implementation method, the embodiment of the present application can effectively adapt to the various needs of the operating system version update of the target device 102, making the version update method more flexible, and can effectively ensure that after the operating system version of the target device 102 is upgraded, the operating system and the target process can run normally, thereby effectively improving the user experience.
[0111] S2043: If there is no operating system to be upgraded, in response to determining that the configuration information of the target process to be upgraded exists in the attribute information of the current version of the operating system, upgrade data for version upgrading of the target process is sent to the target process according to the configuration information and version information of the target process to be upgraded, so that the target device performs version upgrading of the target process based on the upgrade data for version upgrading of the target process.
[0112] In some optional embodiments, it can be determined in various ways whether there is an operating system of a to-be-upgraded version. As an example, if the operating system of the current version is the latest operating system, that is, there is no operating system higher than the current version, then it can be determined that there is no operating system of a to-be-upgraded version.
[0113] Optionally, in the case where there is no operating system to be upgraded, the current version information of the target process can be used to retrieve the configuration information of a compatible target process to be upgraded (where the target process to be upgraded can be a higher version than the current version of the target process, or can be pre-specified) under the attribute information of the current version of the operating system. When it is determined that there is configuration information of the target process to be upgraded, further processing can be performed. This can also be understood in conjunction with attribute 3 of the aforementioned "Example 1".
[0114] In the embodiment of the present application, the upgrade data used for version upgrade of the target process may include at least one of an upgrade package and an upgrade instruction (such as the second upgrade instruction below) of the target process of the to-be-upgraded version.
[0115] In some optional embodiments, sending upgrade data for version upgrade of the target process to the target process according to the configuration information and version information of the target process to be upgraded may include sub-steps S2043A to S2043D, specifically:
[0116] S2043A: Determine whether the target process of the version to be upgraded is a mandatory upgrade version based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, and obtain a fourth determination result, wherein the fourth determination result is used to indicate the mandatory nature of upgrading the target process to the version to be upgraded.
[0117] Combined with the explanation of "Example 1" above, it can be known that the configuration information of the target process of the version to be upgraded may include the configuration information of its compatible target process version. It is possible to determine whether the target process of the current version is a compatible version of the target process of the version to be upgraded from the configuration information of the target process of the version to be upgraded based on the current version information of the target process. If so, the fourth determination result obtained indicates that the target process of the version to be upgraded is a forced upgrade version, that is, it can be upgraded from the current version of the target process to the version to be upgraded by forced upgrade. If not, the first determination result obtained indicates that the target process of the version to be upgraded is not a forced upgrade version, that is, it is impossible to upgrade from the current version of the target process to the version to be upgraded by forced upgrade.
[0118] Optionally, still taking the aforementioned "Example 1" as an example, the current version information of the operating system indicates that it is sys-5 (i.e., version 5), and the current version information of the target process indicates that it is launcher-2 (i.e., version 2), and the target process to be upgraded is launcher-5 (i.e., version 5). For example, if the compatible target process versions in the configuration information of launcher-5 are launcher-3 and launcher-4, then according to the configuration information of launcher-5, it can be determined that the current version launcher-2 is not a compatible version of launcher-5, then the fourth determination result can indicate that launcher-5 is a mandatory upgrade version, and it can be upgraded from launcher-2 to launcher-5 by mandatory upgrade. If the compatible target process versions in the configuration information of launcher-5 include launcher-2, then according to the configuration information of launcher-5, it can be determined that the current version launcher-2 is a compatible version of launcher-5, then the fourth determination result is that launcher-5 is not a mandatory upgrade version, and the target process can be selected to be upgraded to launcher-5 or keep the current version unchanged. It should be understood that this is only an example for ease of understanding and is not a limitation. Other situations can be deduced from this and will not be described in detail.
[0119] S2043B: Based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, determine whether there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded, and obtain a fifth determination result, wherein the fifth determination result is used to indicate the difference from the target process of the current version to the target process of the version to be upgraded.
[0120] Combined with the explanation of "Example 1" above, it can be known that the configuration information of the target process of the version to be upgraded may include the configuration information of its differential upgrade. According to the current version information of the target process, it can be determined from the configuration information of the target process of the version to be upgraded whether there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded. If yes, the fifth determination result obtained indicates that there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded, that is, it is possible to upgrade from the target process of the current version to the target process of the version to be upgraded by differential upgrade. If not, the fifth determination result obtained indicates that there is no differential upgrade from the target process of the current version to the target process of the version to be upgraded, that is, it is impossible to upgrade from the target process of the current version to the target process of the version to be upgraded by differential upgrade, and then the version upgrade of the target process can be implemented according to the fifth determination result.
[0121] Optionally, still taking the aforementioned "Example 1" as an example, the current version information of the operating system indicates that it is sys-5 (i.e., version 5), and the current version information of the target process indicates that it is launcher-3 (i.e., version 3), and the target process to be upgraded is launcher-5 (i.e., version 5). For example, if the differential upgrades supported in the configuration information of launcher-5 are launcher3-5 (i.e., differential upgrade from version 3 to version 5) and launcher4-5 (i.e., differential upgrade from version 4 to version 5), then the fifth determination result indicates that there is a differential upgrade from launcher-3 to launcher-5, and the differential upgrade from launcher-3 to launcher-5 can be performed by using the differential package of launcher3-5 in a differential upgrade manner. If the differential upgrade supported in the configuration information of launcher-5 is launcher4-5 but does not include launcher3-5, the fifth determination result may indicate that there is no differential upgrade from launcher-3 to launcher-5, and it is impossible to differentially upgrade from launcher-3 to launcher-5 by differential upgrade. It should be understood that this is only an example for easy understanding and not a limitation. Other situations can be deduced accordingly and will not be described in detail.
[0122] S2043C: Generate a second upgrade instruction for indicating an upgrade method according to at least one of the fourth determination result and the fifth determination result.
[0123] After determining the fourth determination result and the fifth determination result, a second upgrade instruction indicating an upgrade method may be generated according to at least one of them as needed.
[0124] For example, in an optional implementation, if the fourth determination result indicates that the target process of the version to be upgraded is a forced upgrade version (i.e., it can be upgraded from the current version of the target process to the target process of the version to be upgraded by forced upgrade), and the fifth determination result indicates that there is a differential upgrade from the current version of the target process to the target process of the version to be upgraded (i.e., it can be upgraded from the current version of the target process to the target process of the version to be upgraded by differential upgrade), then a second upgrade instruction can be generated for forcibly upgrading the current version of the target process of the target device 102 to the target process of the version to be upgraded by differential upgrade.
[0125] Optionally, still taking the aforementioned "Example 1" as an example, the current version information of the operating system indicates that it is sys-5 (i.e., version 5), and the current version information of the target process indicates that it is launcher-2 (i.e., version 2), and the target process to be upgraded is launcher-5 (i.e., version 5). If the fourth determination result and the fifth determination result indicate "yes", a second upgrade instruction is generated for forcing launcher-3 of the target device 102 to upgrade to launcher-5 using the differential package of launcher3-5. It should be understood that this is only an example for ease of understanding and not a limitation. The remaining cases can be inferred accordingly and will not be described in detail.
[0126] For another example, in another embodiment, if the fourth determination result indicates that the target process of the version to be upgraded is a forced upgrade version and the fifth determination result indicates that there is no differential upgrade from the target process of the current version to the target process of the version to be upgraded (i.e., it is impossible to upgrade from the target process of the current version to the target process of the version to be upgraded by differential upgrade), then a second upgrade instruction can be generated for forcibly upgrading the target process of the current version of the target device 102 to the target process of the version to be upgraded.
[0127] Optionally, still taking the aforementioned "Example 1" as an example, the current version information of the operating system indicates that it is sys-5 (i.e., version 5), and the current version information of the target process indicates that it is launcher-3 (i.e., version 3), and the target process to be upgraded is launcher-5 (i.e., version 5). If the fourth determination result and the fifth determination result both indicate "no, no", a selection instruction for the launcher-3 of the target device 102 to use launcher5 is generated, and when it is determined that the target process is upgraded to launcher-5, an upgrade instruction to launcher-5 can be upgraded to launcher-5 through the full upgrade package of launcher-5. The above-mentioned second upgrade instruction may include both the selection instruction and the upgrade instruction. It should be understood that this is only an example for ease of understanding, and not a limitation. The remaining cases can be inferred accordingly and will not be repeated.
[0128] It should be noted that the above examples also illustrate a special case, that is, in some optional embodiments, step S2043C may include: if the fourth determination result indicates that the target process upgraded to the version to be upgraded is a mandatory upgrade, then a second upgrade instruction is generated to instruct the target device to forcefully upgrade the target process to the version to be upgraded. The embodiment of the present application can ensure that the target process of the target device 102 can reliably perform a mandatory version upgrade by configuring the mandatory upgrade of the target process.
[0129] S2043D: In response to the second upgrade instruction including second upgrade indication information for instructing to upgrade the current version of the target process to the version of the target process to be upgraded, the second upgrade instruction and the upgrade package of the target process of the version to be upgraded are sent to the target process, so that the target device 102 upgrades the version of the target process based on the second upgrade instruction and using the upgrade package of the target process of the version to be upgraded.
[0130] In the embodiment of the present application, when it is necessary to include the second upgrade indication information in the second upgrade instruction, the second upgrade instruction and the upgrade package of the target process to be upgraded are sent to the target process, so that the target device performs the version upgrade of the target process. The second upgrade indication information can be generated according to the upgrade request for the target process issued by the target device 102 to the back-end server 104 (that is, the upgrade indication is issued directly through the target device 102, for example, the user can control the target device 102 to issue the upgrade request, or the target device 102 can issue it automatically in some specific states such as the start of the target process), or it can be information generated by the back-end server 104 by default (that is, the back-end server 104 issues the upgrade indication by itself). The second upgrade instruction information can be any type of data, for example, including but not limited to text segments, program segments, etc.
[0131] Optionally, after the target device 102 obtains the upgrade package of the target process to be upgraded through the target process (for example, obtains the corresponding data packet from the second storage space as the upgrade package), it can install the upgrade package of the target process to be upgraded to the target device 102 in accordance with the upgrade method indicated by the second upgrade instruction (including forced upgrade and / or differential upgrade), thereby completing the version upgrade of the target process.
[0132] Based on this, through the optional implementation method including the above-mentioned sub-steps S2043A~S2043E, on the one hand, the version upgrade of the target process of the target device 102 can be effectively realized; on the other hand, since the above-mentioned implementation method comprehensively considers important issues such as the mandatory, differential and operating system compatibility of the version upgrade of the target process, the version upgrade of the target process is more comprehensive and reliable; on the other hand, since the version information in the embodiment of the present application (including the current version information of the operating system and the current version information of the target process) is received from the target process on the target device 102, and the second upgrade instruction and upgrade package used for the upgrade are sent to the target process, this allows the target device to use the target process as a bridge for interaction with the background during the version upgrade, and use the relevant information of the operating system as the center of judgment during the version upgrade, thereby facilitating the method of version upgrading the target process and reducing the technical difficulty of the version upgrade.
[0133] In some optional embodiments, in the optional implementation of the above “if the current version of the target process is compatible with the version of the operating system to be upgraded, execute one of steps A1 and A2”, the first upgrade instruction in the upgrade data for upgrading the operating system version may include both the first upgrade indication information and the second upgrade indication information, so that the operating system and the target process are upgraded synchronously when executing step A2, thereby meeting the requirement for the target device 102 to operate normally after the operating system version is upgraded.
[0134] It can be seen that based on the optional implementation method including the above sub-steps S2041 to S2043, the version upgrade of the operating system and the target process of the target device can be effectively realized, and it is more conducive to ensuring the compatibility of the version upgrade of at least one of the two. In addition, during the version upgrade, the target process can be used as an interactive bridge, and the attribute information of the operating system can be used as the center of judgment during the version upgrade, thereby facilitating the method of performing the version upgrade of at least one of the operating system and the target process, and reducing the technical difficulty of the version upgrade.
[0135] Next, the version upgrade scheme of the embodiment of the present application is described in conjunction with a scenario example. In this scenario example, the target device 102 is a screen projection device, and the target process is an example of a desktop startup program of the screen projection device (in this scenario example, the desktop startup program can be used for an AR device connected to the screen projection device to achieve a spatial 3D effect), and the user uses the screen projection device as an actual scenario. Specifically:
[0136] 1. The user turns on the target device 102, its operating system runs, and the target process starts;
[0137] 2. The target process initiates an upgrade request to the backend server 104. When making the request, the device information and region information of the current projection device and other parameters may be sent, and the version information (including the current version information of the operating system and the current version information of the target process) may be sent to the backend server 104;
[0138] 3. After obtaining the version information, the backend server 104 searches to determine whether the operating system has a version to be upgraded (taking the highest updated version (i.e., the latest version) as an example), and then decides to implement the following 3a or 3b:
[0139] 3a. If there is an operating system with an updated highest version, the attribute information of the operating system is obtained to determine whether the upgrade method is mandatory, whether there is a differential upgrade, etc. After the attribute information is determined, a first upgrade instruction is generated to indicate the upgrade method of the operating system version upgrade, and the corresponding data packet is obtained from the first storage space as an upgrade package, and the first upgrade instruction and the upgrade package are returned to the target process as an interactive bridge. The target device 102 uses the upgrade package to upgrade the operating system version according to the upgrade method indicated by the first upgrade instruction. Optionally, after the operating system version upgrade is completed, the target device restarts; but if differential upgrade is used for version upgrade, it does not need to restart. After restarting, the upgraded operating system runs and the target process starts. At this time, the target process can send an upgrade request to the backend server 104 again.
[0140] 3b. If the operating system does not have an updated highest version, the backend server 104 searches for a compatible target process to be upgraded (e.g., a higher version of the target process relative to the current version) based on the current version information of the target process and the attribute information of the current version of the operating system, and then determines and implements the following 3b_a or 3b_b:
[0141] 3b_a. If it exists, then according to the configuration information of the target process of the version to be upgraded under the attribute information of the current operating system, determine whether its upgrade method is mandatory, whether there is a differential upgrade, whether it is compatible with the target process of the current version, etc., generate a second upgrade instruction for indicating the upgrade method of the target process version upgrade, and at the same time obtain the corresponding data packet from the second storage space as an upgrade package, and return the second upgrade instruction and the upgrade package to the target process as an interactive bridge, and the target device 102 uses the upgrade package to upgrade the target process version according to the upgrade method indicated by the second upgrade instruction. Optionally, the target process upgrade process does not need to be restarted, and the step can be completed with only a black screen for a few seconds.
[0142] 3b_b. If it does not exist, the backend server 104 returns no version upgrade of the operating system and the target process, and ends the step.
[0143] It should be understood that the above scenario example is only an optional example of the embodiment of the present application and does not constitute any limitation on the embodiment of the present application.
[0144] In summary, the scheme provided in the embodiment of the present application, on the one hand, can effectively take into account the version upgrade of the operating system and the target process of the target device at the same time, so that the purpose of upgrading the operating system and the target process independently or jointly can be achieved; on the other hand, since the attribute information of the operating system of the target device includes the configuration information of the target process, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process during the version upgrade can be associated with each other, so as to facilitate more reliable implementation of the version upgrade of at least one of the operating system and the target process, and more conducive to ensuring the compatibility of the version upgrade of at least one of the two; on the other hand, since the version information in the embodiment of the present application is received from the target process on the target device, and the upgrade data used for the upgrade is sent to the target process according to the attribute information of the operating system, when the target device version is upgraded, the target process can be used as a bridge for interaction with the background, and the relevant information of the operating system is used as the center of judgment when the version is upgraded, so as to simplify the way of upgrading at least one of the operating system and the target process, and reduce the technical difficulty of the version upgrade. It can be seen that the version upgrade scheme in the embodiment of the present application can effectively optimize the version upgrade method of the software of the target device, so as to improve the user experience of the target device.
[0145] It can be understood that the above description of the version upgrade method is only an exemplary description of the embodiments of the present application and does not constitute any limitation to the embodiments of the present application.
[0146] According to a second aspect of the application embodiment, a version upgrade device is provided. Figure 4 As shown, the version upgrade device 400 includes:
[0147] The receiving unit 402 is used to receive version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process;
[0148] The sending unit 404 is used to send upgrade data for version upgrading of at least one of the operating system and the target process to the target process according to the version information and the attribute information of the predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes the configuration information of the target process.
[0149] In some optional embodiments, the receiving unit 404 is specifically used to: retrieve whether there is an operating system to be upgraded based on the current version information of the operating system; if there is an operating system to be upgraded, send upgrade data for operating system version upgrade to the target process based on the attribute information and version information of the operating system to be upgraded, so that the target device performs the operating system version upgrade based on the upgrade data for operating system version upgrade; if there is no operating system to be upgraded, in response to determining that there is configuration information of the target process to be upgraded in the attribute information of the current version of the operating system, send upgrade data for target process version upgrade to the target process based on the configuration information and version information of the target process to be upgraded, so that the target device performs the target process version upgrade based on the upgrade data for target process version upgrade.
[0150] In some optional embodiments, the receiving unit 404 is specifically used to: determine whether the version of the operating system to be upgraded is a mandatory upgrade version based on the attribute information of the version of the operating system to be upgraded and the current version information of the operating system, and obtain a first determination result, wherein the first determination result is used to indicate the mandatory nature of the upgrade to the version of the operating system to be upgraded; determine whether there is a differential upgrade from the current version of the operating system to the version of the operating system to be upgraded based on the attribute information of the version of the operating system to be upgraded and the current version information of the operating system, and obtain a second determination result, wherein the second determination result is used to indicate the difference from the current version of the operating system to the version of the operating system to be upgraded; determine whether the version of the operating system to be upgraded is a mandatory upgrade version ... The method comprises the following steps: determining whether the target process of the current version is compatible with the operating system of the to-be-upgraded version, obtaining a third determination result, wherein the third determination result is used to indicate the compatibility of the target process of the current version with the operating system of the to-be-upgraded version; generating a first upgrade instruction for indicating an upgrade method according to at least one of the first determination result, the second determination result and the third determination result; and sending the first upgrade instruction and the upgrade package of the operating system of the to-be-upgraded version to the target process in response to the first upgrade instruction including the first upgrade indication information for indicating that the current version of the operating system is upgraded to the operating system of the to-be-upgraded version, so that the target device upgrades the version of the operating system based on the first upgrade instruction using the upgrade package of the operating system of the to-be-upgraded version.
[0151] In some optional embodiments, the receiving unit 404 is specifically used to: if the first determination result indicates that the upgrade to the operating system version to be upgraded is a forced upgrade, generate a first upgrade instruction for instructing the target device to forcefully upgrade the operating system to the version to be upgraded.
[0152] In some optional embodiments, if there is an operating system version to be upgraded, the version upgrade device 400 is also used to: determine whether the current version of the target process is compatible with the operating system version to be upgraded based on the attribute information of the operating system version to be upgraded and the current version information of the target process; if the current version of the target process is compatible with the operating system version to be upgraded, execute one of steps A1 and A2, and if the current version of the target process is not compatible with the operating system version to be upgraded, execute step A2, wherein: Step A1: without performing a version upgrade on the current version of the target process, enable the target device to perform a version upgrade on the operating system based on the upgrade data for performing a version upgrade on the operating system; Step A2: determine the configuration information of the target process of the version to be upgraded from the attribute information of the operating system version to be upgraded, and send the upgrade data for performing a version upgrade on the target process and the upgrade data for performing a version upgrade on the operating system to the target device, so that the target device upgrades the operating system and the target process based on the upgrade data for performing a version upgrade on the operating system and the upgrade data for performing a version upgrade on the target process, respectively.
[0153] In some optional embodiments, the receiving unit 404 is specifically used to: determine whether the target process of the version to be upgraded is a mandatory upgrade version based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, and obtain a fourth determination result, wherein the fourth determination result is used to indicate the mandatory nature of the upgrade to the target process of the version to be upgraded; determine whether there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, and obtain a fifth determination result, wherein the fifth determination result is used to indicate the difference from the target process of the current version to the target process of the version to be upgraded; generate a second upgrade instruction for indicating an upgrade method based on at least one of the fourth determination result and the fifth determination result; in response to the second upgrade instruction including second upgrade indication information for indicating upgrading the target process of the current version to the target process of the version to be upgraded, send the second upgrade instruction and the upgrade package of the target process of the version to be upgraded to the target process, so that the target device upgrades the version of the target process based on the second upgrade instruction using the upgrade package of the target process of the version to be upgraded.
[0154] In some optional embodiments, the receiving unit 404 is specifically used to: if the fourth determination result indicates that the target process upgraded to the version to be upgraded is a forced upgrade, generate a second upgrade instruction for instructing the target device to forcefully upgrade the target process to the version to be upgraded.
[0155] In some optional embodiments, data packets of various versions of the operating system are stored in a first storage space, and data packets of various versions of the target process are stored in a second storage space that is independent of the first storage space.
[0156] In some optional embodiments, the target device is a screen projection device, the operating system is the operating system of the screen projection device, and the target process is a desktop startup program running on the operating system.
[0157] The version upgrade scheme provided in the embodiment of the present application, on the one hand, can effectively take into account the version upgrade of the operating system and the target process of the target device at the same time, so that the purpose of upgrading the operating system and the target process independently or jointly can be achieved; on the other hand, since the attribute information of the operating system of the target device includes the configuration information of the target process, the configuration information of the target process can be used as some attributes of the operating system, so that the configuration files of the operating system and the target process during the version upgrade can be associated with each other, so as to facilitate more reliable implementation of the version upgrade of at least one of the operating system and the target process, and more conducive to ensuring the compatibility of the version upgrade of at least one of the two; on the other hand, since the version information in the embodiment of the present application is received from the target process on the target device, and the upgrade data used for the upgrade is sent to the target process according to the attribute information of the operating system, when the target device version is upgraded, the target process can be used as a bridge for interaction with the background, and the relevant information of the operating system is used as the center of judgment when the version is upgraded, so as to simplify the way of upgrading at least one of the operating system and the target process, and reduce the technical difficulty of the version upgrade. It can be seen that the version upgrade scheme in the embodiment of the present application can effectively optimize the version upgrade method of the software of the target device, so as to improve the user experience of the target device.
[0158] The version upgrade device 400 provided in the second aspect of the embodiment of the present application is based on the same inventive concept as the version upgrade method provided in the first aspect, corresponds to the corresponding version upgrade method in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding version upgrade method embodiments, so it will not be repeated here. In addition, the implementation of each module in the version upgrade device 400 of this embodiment can refer to the description of the corresponding parts in the aforementioned version upgrade method embodiments, and will not be repeated here.
[0159] According to a third aspect of the embodiments of the present application, a version upgrade system is provided. Figure 1 As shown, the version upgrade system 100 includes: a target device 102 and a backend server 104;
[0160] The target device 102 includes an operating system and a target process. The target process runs on the operating system. The target process is used to send version information to the backend server. The version information includes the current version information of the operating system and the current version information of the target program.
[0161] The back-end server 104 is used to receive version information and send upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of the predetermined version of the operating system, so that the target device upgrades the version of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
[0162] In some optional embodiments, in the version upgrade system, the attribute information of each version of the operating system carries the configuration information of the corresponding target process and is stored in the same configuration file.
[0163] In some optional embodiments, the version upgrade system also includes a first storage space and a second storage space that are independent of each other, wherein: the first storage space is used to store data packets of each version of the operating system, and the second storage space is used to store data packets of each version of the target process.
[0164] In some optional embodiments, the background server 104 is specifically used to: retrieve whether there is an operating system version to be upgraded based on the current version information of the operating system; if there is an operating system version to be upgraded, then according to the attribute information and version information of the operating system version to be upgraded, send upgrade data for operating system version upgrade to the target process, so that the target device performs the operating system version upgrade based on the upgrade data for operating system version upgrade; if there is no operating system version to be upgraded, then in response to determining that there is configuration information of the target process to be upgraded in the attribute information of the current version of the operating system, send upgrade data for target process version upgrade to the target process, according to the configuration information and version information of the target process to be upgraded, so that the target device performs the target process version upgrade based on the upgrade data for target process version upgrade.
[0165] In some optional embodiments, the backend server 104 is specifically used to: determine whether the version of the operating system to be upgraded is a mandatory upgrade version based on the attribute information of the version of the operating system to be upgraded and the current version information of the operating system, and obtain a first determination result, wherein the first determination result is used to indicate the mandatory nature of the upgrade to the version of the operating system to be upgraded; determine whether there is a differential upgrade from the current version of the operating system to the version of the operating system to be upgraded based on the attribute information of the version of the operating system to be upgraded and the current version information of the operating system, and obtain a second determination result, wherein the second determination result is used to indicate the difference from the current version of the operating system to the version of the operating system to be upgraded; determine whether the version of the operating system to be upgraded is a mandatory upgrade version ... The method further comprises: determining whether the target process of the current version is compatible with the operating system of the to-be-upgraded version based on the current version information of the target process, and obtaining a third determination result, wherein the third determination result is used to indicate the compatibility of the target process of the current version with the operating system of the to-be-upgraded version; generating a first upgrade instruction for indicating an upgrade method based on at least one of the first determination result, the second determination result and the third determination result; and sending the first upgrade instruction and the upgrade package of the operating system of the to-be-upgraded version to the target process in response to the first upgrade instruction including the first upgrade indication information for indicating that the current version of the operating system is upgraded to the operating system of the to-be-upgraded version, so that the target device upgrades the version of the operating system based on the first upgrade instruction using the upgrade package of the operating system of the to-be-upgraded version.
[0166] In some optional embodiments, the background server 104 is specifically used to: if the first determination result indicates that the upgrade to the operating system version to be upgraded is a forced upgrade, generate a first upgrade instruction for instructing the target device to forcefully upgrade the operating system to the version to be upgraded.
[0167] In some optional embodiments, if there is an operating system version to be upgraded, the background server 104 is also used to: determine whether the current version of the target process is compatible with the operating system version to be upgraded based on the attribute information of the operating system version to be upgraded and the current version information of the target process; if the current version of the target process is compatible with the operating system version to be upgraded, execute one of steps A1 and A2, and if the current version of the target process is not compatible with the operating system version to be upgraded, execute step A2, wherein: Step A1: without performing a version upgrade on the current version of the target process, enable the target device to perform a version upgrade on the operating system based on the upgrade data for performing a version upgrade on the operating system; Step A2: determine the configuration information of the target process of the version to be upgraded from the attribute information of the operating system version to be upgraded, and send the upgrade data for performing a version upgrade on the target process and the upgrade data for performing a version upgrade on the operating system to the target device, so that the target device upgrades the operating system and the target process based on the upgrade data for performing a version upgrade on the operating system and the upgrade data for performing a version upgrade on the target process, respectively.
[0168] In some optional embodiments, the background server 104 is specifically used to: determine whether the target process of the version to be upgraded is a mandatory upgrade version based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, and obtain a fourth determination result, wherein the fourth determination result is used to indicate the mandatory nature of upgrading to the target process of the version to be upgraded; determine whether there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded based on the configuration information of the target process of the version to be upgraded and the current version information of the target process, and obtain a fifth determination result, wherein the fifth determination result is used to indicate the difference from the target process of the current version to the target process of the version to be upgraded; generate a second upgrade instruction for indicating an upgrade method based on at least one of the fourth determination result and the fifth determination result; in response to the second upgrade instruction including second upgrade indication information for indicating upgrading the target process of the current version to the target process of the version to be upgraded, send the second upgrade instruction and the upgrade package of the target process of the version to be upgraded to the target process, so that the target device upgrades the version of the target process based on the second upgrade instruction using the upgrade package of the target process of the version to be upgraded.
[0169] In some optional embodiments, the background server 104 is specifically used to: if the fourth determination result indicates that the target process upgraded to the version to be upgraded is a forced upgrade, generate a second upgrade instruction for instructing the target device to forcefully upgrade the target process to the version to be upgraded.
[0170] In some optional embodiments, the target device 102 is a screen projection device, the operating system is the operating system of the screen projection device, and the target process is a desktop startup program running on the operating system.
[0171] Before the introduction of the first aspect, the version upgrade system 100 has been described, and the version upgrade system provided in the third aspect of the embodiment of the present application and the version upgrade method provided in the first aspect of the above text are based on the same inventive concept, correspond to the corresponding version upgrade methods in the aforementioned multiple method embodiments, and have the beneficial effects of the corresponding version upgrade method embodiments, so they will not be repeated here.
[0172] According to a fourth aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the method of the first aspect. Figure 5 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0173] like Figure 5 As shown, the electronic device 500 may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0174] in:
[0175] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0176] The communication interface 504 is used to communicate with other electronic devices or servers.
[0177] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned version upgrade method embodiment.
[0178] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0179] The processor 502 may be a CPU, a GPU (Graphic Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0180] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0181] The program 510 may include multiple computer instructions. Specifically, the program 510 may enable the processor 502 to execute operations corresponding to the version upgrade method described in any of the aforementioned method embodiments through the multiple computer instructions.
[0182] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.
[0183] According to the fifth aspect of the embodiments of the present application, the embodiments of the present application further provide a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the version upgrade method described in any one of the multiple method embodiments provided in the first aspect is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.
[0184] According to the sixth aspect of the embodiments of the present application, the embodiments of the present application also provide a computer program product, including computer instructions, which instruct a computing device to perform operations corresponding to any version upgrade method in the multiple method embodiments provided in the first aspect above.
[0185] The version upgrade device 400 / version upgrade system 100 / electronic device 500 / computer storage medium / computer program product embodiment in the embodiment of the present application has been described in detail in the aforementioned version upgrade method embodiment, so its related content and beneficial effects can be understood with reference to the aforementioned method embodiment and will not be repeated here.
[0186] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0187] It should be noted that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, and two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application. It should be understood that the various technical features in the technical solutions of the embodiments of the present application can be combined in any appropriate manner.
[0188] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.
[0189] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for specific applications, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0190] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
[0191] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". It should be noted that the concepts of "first", "second", etc. mentioned in the embodiments of the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the embodiments of the present application.
Claims
1. A version upgrade method, comprising: Receiving version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process; Based on the version information and attribute information of the predetermined version of the operating system, upgrade data for version upgrading of at least one of the operating system and the target process is sent to the target process, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
2. The version upgrade method according to claim 1, wherein: The sending, according to the version information and the attribute information of the predetermined version of the operating system, upgrade data for performing version upgrade of at least one of the operating system and the target process to the target process, so that the target device performs version upgrade of at least one of the operating system and the target process based on the upgrade data, comprises: According to the current version information of the operating system, searching whether there is an operating system to be upgraded; If there is an operating system of a version to be upgraded, sending upgrade data for upgrading the operating system to the target process according to the attribute information of the operating system of the version to be upgraded and the version information, so that the target device upgrades the version of the operating system based on the upgrade data for upgrading the operating system; If the operating system of the version to be upgraded does not exist, in response to determining that the configuration information of the target process of the version to be upgraded exists in the attribute information of the current version of the operating system, upgrade data for version upgrading of the target process is sent to the target process based on the configuration information and version information of the target process of the version to be upgraded, so that the target device upgrades the version of the target process based on the upgrade data for version upgrading of the target process.
3. The version upgrade method according to claim 2, wherein: The sending, to the target process, upgrade data for performing version upgrade of the operating system according to the attribute information of the version of the operating system to be upgraded and the version information, comprises: Determine whether the operating system to be upgraded is a mandatory upgrade version according to the attribute information of the operating system to be upgraded and the current version information of the operating system, and obtain a first determination result, wherein the first determination result is used to indicate the mandatory nature of upgrading to the operating system to be upgraded; Determine, based on the attribute information of the version of the operating system to be upgraded and the current version information of the operating system, whether there is a differential upgrade from the current version of the operating system to the version of the operating system to be upgraded, and obtain a second determination result, wherein the second determination result is used to indicate the difference from the current version of the operating system to the version of the operating system to be upgraded; Determine whether the target process of the current version is compatible with the operating system of the to-be-upgraded version according to the attribute information of the to-be-upgraded version of the operating system and the current version information of the target process, and obtain a third determination result, wherein the third determination result is used to indicate the compatibility of the target process of the current version with the operating system of the to-be-upgraded version; generating a first upgrade instruction for indicating an upgrade method according to at least one of the first determination result, the second determination result, and the third determination result; In response to the first upgrade instruction including first upgrade indication information for instructing to upgrade the current version of the operating system to the version of the operating system to be upgraded, the first upgrade instruction and the upgrade package of the version of the operating system to be upgraded are sent to the target process, so that the target device upgrades the version of the operating system based on the first upgrade instruction using the upgrade package of the version of the operating system to be upgraded.
4. The method according to claim 3, wherein: The generating, according to at least one of the first determination result, the second determination result, and the third determination result, a first upgrade instruction for indicating an upgrade method comprises: If the first determination result indicates that upgrading to the operating system of the version to be upgraded is a forced upgrade, a first upgrade instruction is generated for instructing the target device to forcefully upgrade the operating system to the version to be upgraded.
5. The method according to claim 2, wherein: If there is an operating system to be upgraded, the method further includes: Determine whether the current version of the target process is compatible with the version of the operating system to be upgraded according to the attribute information of the version of the operating system to be upgraded and the current version information of the target process; If the target process of the current version is compatible with the operating system of the version to be upgraded, one of steps A1 and A2 is executed. If the target process of the current version is not compatible with the operating system of the version to be upgraded, step A2 is executed. in: Step A1: without performing a version upgrade on the target process of the current version, enabling the target device to perform a version upgrade on the operating system based on the upgrade data for performing a version upgrade on the operating system; Step A2: Determine the configuration information of the target process of the version to be upgraded from the attribute information of the operating system of the version to be upgraded, and send upgrade data for version upgrade of the target process and upgrade data for version upgrade of the operating system to the target device, so that the target device upgrades the operating system and the target process based on the upgrade data for version upgrade of the operating system and the upgrade data for version upgrade of the target process respectively.
6. The method according to claim 2, wherein: The sending, to the target process, upgrade data for performing version upgrade of the target process according to the configuration information of the target process of the version to be upgraded and the version information, comprises: Determine, according to the configuration information of the target process of the version to be upgraded and the current version information of the target process, whether the target process of the version to be upgraded is a mandatory upgrade version, and obtain a fourth determination result, wherein the fourth determination result is used to indicate the mandatory nature of upgrading to the target process of the version to be upgraded; Determine, according to the configuration information of the target process of the version to be upgraded and the current version information of the target process, whether there is a differential upgrade from the target process of the current version to the target process of the version to be upgraded, and obtain a fifth determination result, wherein the fifth determination result is used to indicate the difference from the target process of the current version to the target process of the version to be upgraded; generating a second upgrade instruction for indicating an upgrade method according to at least one of the fourth determination result and the fifth determination result; In response to the second upgrade instruction including second upgrade indication information for instructing to upgrade the current version of the target process to the version of the target process to be upgraded, the second upgrade instruction and the upgrade package of the target process of the version to be upgraded are sent to the target process, so that the target device upgrades the version of the target process based on the second upgrade instruction and using the upgrade package of the target process of the version to be upgraded.
7. The method according to claim 6, wherein: The step of generating a second upgrade instruction for indicating an upgrade method according to at least one of the fourth determination result and the fifth determination result includes: If the fourth determination result indicates that the target process upgraded to the version to be upgraded is a forced upgrade, a second upgrade instruction is generated for instructing the target device to forcefully upgrade the target process to the version to be upgraded.
8. The method according to any one of claims 1 to 7, wherein: The data packets of each version of the operating system are stored in a first storage space, and the data packets of each version of the target process are stored in a second storage space independent of the first storage space.
9. The method according to any one of claims 1 to 7, wherein: The target device is a screen projection device, the operating system is the operating system of the screen projection device, and the target process is a desktop startup program running on the operating system.
10. A version upgrade device, comprising: A receiving unit, configured to receive version information sent by a target process on a target device, wherein the target process runs on an operating system of the target device, and the version information includes current version information of the operating system and current version information of the target process; A sending unit is used to send upgrade data for version upgrading of at least one of the operating system and the target process to the target process according to the version information and attribute information of the predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
11. A version upgrade system, comprising: Target devices and backend servers; The target device includes an operating system and a target process, the target process runs on the operating system, and the target process is used to send version information to the backend server, the version information includes current version information of the operating system and current version information of the target program; The back-end server is used to receive the version information, and send upgrade data for version upgrading of at least one of the operating system and the target process to the target process based on the version information and attribute information of a predetermined version of the operating system, so that the target device performs version upgrading of at least one of the operating system and the target process based on the upgrade data, wherein the attribute information of the operating system includes configuration information of the target process.
12. The version upgrade system according to claim 11, wherein: The attribute information of each version of the operating system carries the configuration information of the corresponding target process and is stored in the same configuration file.
13. The version upgrade system according to claim 11, wherein: The version upgrade system further includes a first storage space and a second storage space which are independent of each other, wherein: The first storage space is used to store data packets of various versions of operating systems, and the second storage space is used to store data packets of various versions of target processes.
14. An electronic device comprising: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 9 by running the computer program stored in the memory.
15. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
