Desktop launcher upgrade method, electronic device and storage medium
By adding a flag bit that does not kill the process in the first installation stage of the desktop launcher and interrupting the upgrade when the interrupt installation flag appears, the problem of process exceptions during the desktop launcher upgrade caused the user to return to the desktop without response, achieving the effect of quickly returning to the desktop and improving the upgrade success rate.
Patent Information
- Application Number
- CN202011502410.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-12-17
AI Technical Summary
During the upgrade process, the desktop launcher may cause process exceptions, resulting in unresponsiveness of the user pressing the home key when returning to the desktop.
By adding the process flag bit that does not kill the process during the first installation phase and interrupting the upgrade when the interrupt installation flag is detected, wait for the desktop launcher to switch to the background to continue completing the upgrade.
Ensure that Laucnher upgrade does not affect user desktop use, quickly returns to the desktop, and improves Laucnher upgrade success rate and efficiency.
Smart Images

Figure CN114647423B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of upgrading, and in particular to an upgrading method, electronic device and storage medium of a desktop launcher. Background Art
[0002] With the rapid development of Android TV, more and more families are returning to TV. Launcher is the most commonly used application, and users may switch back to Launcher at any time. However, the upgrade of Launcher may affect the user experience. For example, when TV manufacturers push Launcher upgrades, the process of the desktop launcher will be frozen and killed during PMS installation. If the user returns to the desktop at this time, there will be technical problems such as no response when pressing the home button.
[0003] Therefore, the prior art needs to be improved and developed. Summary of the invention
[0004] Based on this, in order to solve the technical problem in the prior art that a process abnormality during a desktop launcher upgrade causes an unresponsive desktop, the present invention provides a desktop launcher upgrade method, an electronic device and a storage medium.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A method for upgrading a desktop launcher, the method comprising the following steps:
[0007] Determine how the desktop launcher is upgraded;
[0008] If the upgrade mode of the desktop launcher is a senseless upgrade, an interrupt installation flag for interrupting the upgrade of the desktop launcher is configured;
[0009] If the installation interruption flag is detected during the desktop launcher upgrade, the desktop launcher upgrade is interrupted, and the desktop launcher is continuously detected to determine whether it is switched to the background;
[0010] If it is detected that the desktop launcher is switched to the background, the installation interface is called to continue the upgrade of the desktop launcher.
[0011] Optionally, the desktop launcher upgrade method further includes:
[0012] If it is detected that the process of the desktop launcher is closed after the desktop launcher upgrade is interrupted, the interruption is ended and the installation interface is called to continue the upgrade of the desktop launcher.
[0013] Optionally, determining the upgrade method of the desktop launcher specifically includes:
[0014] After entering the first installation phase of the desktop launcher upgrade, detecting whether the desktop launcher upgrade carries a senseless upgrade flag;
[0015] If it is detected that the desktop launcher upgrade carries a senseless upgrade flag, the upgrade mode of the desktop launcher is a senseless upgrade;
[0016] If it is detected that the desktop launcher upgrade does not carry a senseless upgrade flag, the upgrade method of the desktop launcher is a regular upgrade.
[0017] Optionally, the upgrade mode of the desktop launcher is a seamless upgrade and further includes:
[0018] After the desktop launcher is upgraded and enters the first installation phase, a process flag is configured to prevent the desktop launcher process from being closed, so that when the desktop launcher enters the replacement installation phase, the process flag is detected and the desktop launcher process is not closed.
[0019] Optionally, if the installation interruption flag is detected during the desktop launcher upgrade, interrupting the desktop launcher upgrade specifically includes:
[0020] When the desktop launcher upgrade enters the replacement installation phase and the interrupt installation flag is detected, the relevant installation parameters of the desktop launcher upgrade package are saved to the memory, and the installation process of the desktop launcher is interrupted, the interrupt installation result is returned, the upgrade package that has not been installed is retained, and a custom message processing process is entered, wherein the custom message processing process includes a processing callback function.
[0021] Optionally, if it is detected that the desktop launcher is switched to the background, calling the installation interface to continue upgrading the desktop launcher specifically includes:
[0022] If it is detected that the desktop launcher is switched to the background, a custom installation interface is called;
[0023] Obtain relevant installation parameter information of the upgrade package of the desktop launcher, enter the replacement installation phase, and complete the installation process of the desktop launcher upgrade;
[0024] A post installation message is sent to enter a regular message processing flow, wherein the regular message processing flow includes installing a broadcast, processing a callback function, and deleting a source data packet of the desktop launcher.
[0025] Optionally, the desktop launcher upgrade method further includes:
[0026] If the interrupt installation mark is not detected during the desktop launcher upgrade, the replacement installation phase is entered to complete the installation process of the desktop launcher upgrade;
[0027] After successful installation, a conventional message processing flow is entered, wherein the conventional message processing flow includes installing broadcast, processing callback functions, and deleting the source data packet of the desktop launcher.
[0028] Optionally, the desktop launcher upgrade method further includes:
[0029] If a shutdown operation is detected after the desktop launcher upgrade is interrupted, the desktop launcher is restarted through a pre-set customized startup package scanning process to complete the upgrade of the desktop launcher.
[0030] Based on the above method, the present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the desktop launcher upgrade method when executing the computer program.
[0031] Based on the above method, the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the desktop launcher upgrade method are implemented.
[0032] Beneficial effects:
[0033] The present application skips this step by adding a process flag that does not kill the process in the first installation phase, and interrupts the upgrade when the interrupt installation flag is detected, so that the desktop launcher ends the interruption when it switches to the background, that is, the desktop displays other applications. In the system application replacement installation phase, a customized installation process is used to continue to complete the upgrade of the desktop launcher. In this way, the Laucnher upgrade does not affect the user's desktop application, and the user can quickly return to the desktop, while improving the success rate and efficiency of the Laucnher upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 The present invention provides a flowchart of a method for upgrading a desktop launcher.
[0035] Figure 2 This is a flowchart of the process of AMS detecting that the desktop launcher is killed.
[0036] Figure 3 This is a customized boot-up package scanning flowchart.
[0037] Figure 4 The present invention provides a flowchart of a specific embodiment of a method for upgrading a desktop launcher.
[0038] Figure 5 The present invention provides a flowchart of another specific embodiment of a desktop launcher upgrade method.
[0039] Figure 6 This is a structural block diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0041] The inventor has found that when TV manufacturers push Laucnher upgrades, the desktop launcher process will be frozen and killed during PMS installation. If the user returns to the desktop at this time, there will be technical problems such as no response when pressing the home button. Therefore, this application skips this step by adding a process flag that does not kill the process in the first installation phase, interrupts the upgrade when the interrupt installation flag is detected, so that the desktop launcher switches to the background, that is, the desktop displays other applications, and ends the interruption. The desktop launcher upgrade is continued during the system application replacement installation phase. In this way, the Laucnher upgrade does not affect the user's desktop application, and the user can quickly return to the desktop, while improving the success rate and efficiency of the Laucnher upgrade.
[0042] See also Figure 1 , Figure 1 is a flowchart of a desktop launcher upgrade method provided by the present invention. It should be noted that the desktop launcher upgrade method of the embodiment of the present invention is not limited to Figure 1 The steps and sequence in the flowchart shown may be added, removed or the sequence may be changed according to different requirements.
[0043] like Figure 1 As shown, the desktop launcher upgrade method provided by the present invention comprises the following steps:
[0044] S10. Determine the upgrade method of the desktop launcher.
[0045] In this embodiment, the desktop launcher is applied to a third-party desktop, and different terminal devices have different desktop launchers. For example, Android desktop launcher, Apple desktop launcher. The terminal device can be a mobile terminal, such as a mobile phone, a tablet, or a fixed terminal, such as a TV. This application does not limit the terminal device, as long as the device has a desktop launcher. The desktop launcher has multiple functions, and can manage all application lists by adding, removing, modifying, viewing, uninstalling, etc. to meet the needs of different users.
[0046] The upgrade methods of the desktop launcher include regular upgrade and imperceptible upgrade. In this embodiment, the regular upgrade refers to the original upgrade method of the terminal device, and its regular upgrade can be a silent upgrade or a non-silent upgrade. The imperceptible upgrade refers to changing the original upgrade method but not affecting the user experience without successfully upgrading.
[0047] In order to successfully return to the desktop after the desktop launcher is upgraded, it is necessary to determine the upgrade method of the desktop launcher when upgrading the desktop launcher, so as to adopt different upgrade processes according to the corresponding upgrade method. In other words, whether the upgrade of the desktop launcher enters the system's built-in installation process or the non-sensing upgrade process.
[0048] In one method of this embodiment, the method of determining the upgrade method of the desktop launcher specifically includes:
[0049] S11, after entering the first installation phase of the desktop launcher upgrade, detecting whether the desktop launcher upgrade carries a senseless upgrade flag;
[0050] S12, if it is detected that the desktop launcher upgrade carries a senseless upgrade flag, then the upgrade mode of the desktop launcher is a senseless upgrade;
[0051] S13: If it is detected that the desktop launcher upgrade does not carry a non-sensitive upgrade flag, the desktop launcher is upgraded in a conventional manner.
[0052] Specifically, the upgrade of the desktop launcher is divided into two stages. The first stage is the first installation stage, namely installpackageLI, which is to parse the source data packet of the desktop launcher. The second stage is the system replacement installation stage, namely replacesystempackageLIF, which is to replace the source data packet with the upgrade package of the desktop launcher to complete the upgrade of the desktop launcher. In the system replacement installation stage, when the conventional upgrade method is adopted, the process of the desktop launcher will be killed or closed. In this way, after completing the installation process of the conventional upgrade, the desktop may return to an unresponsive state. Therefore, when the application determines that the upgrade method of the desktop launcher is a senseless upgrade, the process flag for preventing the process of the desktop launcher from being closed is configured in the first stage, so that when the desktop launcher enters the replacement installation stage, the process flag is detected and the process of the desktop launcher is not closed.
[0053] Furthermore, if a senseless upgrade flag is detected during the desktop launcher upgrade process, it can be determined that the upgrade method of the desktop launcher is a senseless upgrade. Specifically, if the application requires a senseless upgrade during deployment and upgrade, a senseless upgrade flag such as matedate is added according to the agreement. Once this senseless upgrade flag is detected, the desktop launcher is informed to replace the system replacement installation process with the senseless upgrade process. In actual applications, when entering the first installation stage, if the system replacement installation process is entered and the current setting is silent upgrade, it can be determined to be a senseless upgrade.
[0054] S20: If the upgrade mode of the desktop launcher is a seamless upgrade, an installation interruption flag for interrupting the upgrade of the desktop launcher is configured.
[0055] In this embodiment, based on step S10, if it is determined that the upgrade mode of the desktop launcher is a senseless upgrade, in order to ensure the successful upgrade of the desktop launcher and avoid the situation where the desktop launcher process is closed when entering the system replacement installation phase, it is necessary to configure a process flag for preventing the desktop launcher process from being closed, so that when the desktop launcher enters the replacement installation phase, the process flag is detected and the desktop launcher process is not closed. It is also necessary to configure an interrupt installation flag so that the desktop launcher detects the interrupt installation flag when entering the system replacement installation to interrupt the upgrade.
[0056] S30: If the installation interruption flag is detected during the desktop launcher upgrade, the desktop launcher upgrade is interrupted, and the desktop launcher is continuously detected to determine whether it is switched to the background.
[0057] In this embodiment, the interrupt installation flag is used to interrupt the upgrade process of the current desktop launcher. Therefore, after the desktop launcher upgrade executes installpackageLI, when entering replacepackageLIF, i.e., the system replacement installation phase, it is necessary to determine whether the system carries the interrupt installation flag. If it carries the interrupt installation flag, the relevant installation parameters of the upgrade package of the desktop launcher are saved to the memory, and the installation process of the desktop launcher is interrupted, and the interrupt installation result is returned. DoPostinstall processes the installation message, retains the upgrade package that has not been installed, and then enters the custom message processing process, i.e., the customized message processing process, which only processes the callback function and keeps installarg.
[0058] Then continue to detect whether the desktop launcher is switched to the background to trigger the condition for ending the interruption, so as to continue to complete the installation of the desktop launcher when it was interrupted.
[0059] In one mode of this embodiment, the desktop launcher switches to the background when the user actively exits the desktop and opens other applications, for example, exiting the home button and entering an application app.
[0060] In another embodiment of the present invention, another manifestation of the desktop launcher switching to the background is that the AMS detects that the process of the desktop launcher is killed. Figure 2 As shown, when the desktop launcher upgrade is interrupted, AMS executes the callback function activitystopped of activity onstop, and PMS determines whether there is interruption installation parameter information of the application. The application refers to the application to be upgraded, such as the desktop launcher. If PMS determines that there is interruption installation parameter information of the application, it continues to determine whether the currently displayed application is the application. If so, the process corresponding to the currently displayed application is closed. If it is not the application, it ends. If PMS determines that there is no interruption installation parameter information of the application, it ends.
[0061] It should be noted that if the interrupt installation flag is not detected during the desktop launcher upgrade, the replacement installation phase replacepackageLIF is entered to complete the installation process of the desktop launcher upgrade, and then after the doPostinstall installation is successful, there is no need to clear the source data packet and enter the regular message processing process, wherein the regular message processing process includes installing broadcasts, processing callback functions, and deleting the source data packet of the desktop launcher. That is, the post_install regular processing process.
[0062] Furthermore, if the upgrade method of the desktop launcher is a regular upgrade, it is installed according to the regular upgrade process in the first installation phase, and then enters the replacepackageLIF system replacement installation phase to complete the installation process of the desktop launcher upgrade. After doPostinstall is successfully installed, there is no need to clear the source data packet, and enters the post_install regular message processing process, such as installing broadcasts, processing callback functions, and deleting the source data packet of the desktop launcher.
[0063] S40: If it is detected that the desktop launcher is switched to the background, an installation interface is called to continue upgrading the desktop launcher.
[0064] In this embodiment, one way to end the upgrade interruption is to switch the desktop launcher to the background. Specifically, if it is detected that the desktop launcher is switched to the background, the PMS customized installation interface is called to complete the interrupted installation, and then the relevant installation parameter information of the upgrade package of the desktop launcher is obtained, and the system replacement installation phase replacesystempackageLIF is entered to complete the installation process of the desktop launcher upgrade; then a post installation message, i.e., a post_install message, is sent to enter the regular message processing process, and the regular message processing process includes installing broadcasts, processing callback functions, and deleting the source data packet of the desktop launcher.
[0065] Furthermore, another way to end the upgrade interruption is to detect that the process of the desktop launcher is closed, then end the interruption and call the installation interface to continue the upgrade of the desktop launcher. Specifically, if it is detected that the desktop launcher is switched to the background, the PMS customized installation interface is called to complete the interrupted installation, and then the relevant installation parameter information of the upgrade package of the desktop launcher is obtained, and the system replacement installation phase replacesystempackageLIF is entered to complete the installation process of the desktop launcher upgrade; then a post installation message, i.e., a post_install message, is sent to enter the regular message processing process, which includes installing broadcasts, processing callback functions, and deleting the source data packet of the desktop launcher.
[0066] It should be noted that if the desktop launcher upgrade is interrupted and the user shuts down the computer. Once the desktop launcher process is abnormally closed due to the user shutting down the computer during the upgrade process, the desktop launcher can still be restarted through the pre-set customized startup scan process to complete the upgrade of the desktop launcher. The pre-set customized startup scan process is as follows: Figure 3 As shown:
[0067] When the desktop launcher is restarted, the apk package information is read from the installation directory / data / syste / packagex.xml and stored in the memory, and then the system update orphan package is cleared. At this time, the codepath does not exist, and then the system partition scan is entered to traverse the packagesettin to determine whether there is an upgraded app. In this embodiment, the determination of whether the app is upgraded is only for the system app.
[0068] If the package has not been disabled (the app in the system partition has not been upgraded), just disablePackageSetting. When mExpectingBetter is judged, it will be added to the map. After scanning the data partition, the new APK package (upgrade package) can be installed normally. If the data partition does not have the new APK package or the installation fails, the disabled old APK package will be reinstalled after scanning the data partition.
[0069] When the package has disabled pakcageSeting (the app has been upgraded and there is an old APK in the / data partition), the old APK PackageSetting needs to be deleted and backed up to mExpectingDataBetter, which mimics the original mExpectingBetter mechanism of the system. In addition, when scanning the directory, the installation of the old APK package path is skipped, and the new APK package can be installed normally.
[0070] In order to further understand the technical method of the present application, two embodiments are used to illustrate the present invention. Figure 4 and Figure 5 shown. Figure 4 This section illustrates how to upgrade the desktop launcher for the application scenario.
[0071] like Figure 4 As shown, the desktop launcher upgrade in this embodiment is divided into regular upgrade and non-sensing upgrade. Regular upgrade is as follows: Figure 4 As shown, the desktop launcher upgrade enters the installpackageLI stage, executes the installpackageLI installation process, and then enters the replacepackageLIF stage to complete the installation process. The installation is successful in dopostinstall, and there is no need to clear the apk package. Then the post_install regular message processing process sends an installation broadcast, processes the callback function, and deletes the old APK package.
[0072] No sense of upgrade Figure 4As shown, when the desktop launcher upgrade enters the installpackageLI stage, if the system upgrade adopts the replacement installation method and has a silent upgrade flag (that is, a senseless upgrade flag), it means that it is a senseless upgrade. At this time, add the do not kill process flag and the custom interrupt installation flag in this stage, execute the installpackageLI installation process, and then enter the replacepackageLIF stage to determine whether it carries the custom interrupt installation flag. If not, enter the replacepackageLIF stage in the regular upgrade to complete the installation process. The installation is successful in dopostinstall, and there is no need to clear the apk package. Then the post_install regular message processing process sends an installation broadcast, processes the callback function, and deletes the old APK package.
[0073] If a custom interrupt installation flag is carried, the installation parameters will be saved in the memory, the installation process will be interrupted, and the interrupt installation process will be returned. There is no need to clear the apk package in dopostinstall. Then the custom message processing process of post_install only processes the callback function and saves installarg. Wait for the triggering of the end interrupt condition. When AMS detects launcherdied, the end interrupt is triggered. At this time, the PMS custom installation interface is called to complete the interrupted installation. At this time, it is necessary to determine whether there is installation parameter information corresponding to the package name in the memory. If not, it ends directly. If so, it enters the replacepackageLIF stage to complete the installation process. The installation is successful in dopostinstall, and there is no need to clear the apk package. Then the regular message processing process of post_install sends an installation broadcast, processes the callback function, and deletes the old APK package.
[0074] Figure 5 The following example shows how to upgrade the desktop launcher corresponding to the program code. Figure 5As shown, in step 10, it is determined whether it has a senseless upgrade flag, and then the process-not-killing flag INSTALL_DONT_KILL_APP and the custom interruption process flag are set. Before performing the system application replacement installation process replaceSystemPackageLIF, it is determined whether it has a custom interruption process flag, and then the installation parameter information is saved, the installation process is interrupted, and the custom installation result: INSTALL_REPLACE_CUSTMON is returned. Then, in the subsequent processing after the installation is completed, the stored new APK package (incomplete installation) is not deleted, and the POST_INSTALL message is processed customly, and only the callback function is processed. If the desktop launcher upgrade is interrupted, when AMS detects that the launcher died before restarting the launcher, it obtains the installation parameters in the memory, completes the interrupted installation process, resends the POST_INSTALL message, performs installation broadcast sending, old APK package deletion and other operations.
[0075] In this way, the present application skips this step by adding a process flag that does not kill the process in the first installation phase, and interrupts the upgrade when the interrupt installation flag is detected, so that the desktop launcher ends the interruption when it switches to the background, that is, the desktop displays other applications. The upgrade of the desktop launcher is continued during the system application replacement installation phase, which does not affect the user's desktop application and quickly returns to the desktop, while improving the upgrade success rate and efficiency.
[0076] In one embodiment, the present invention further provides an electronic device, such as Figure 6 As shown, the electronic device 100 includes a processor 11 and a memory 22 connected to the processor 11. Figure 6 Only some components of the electronic device 100 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0077] In some embodiments, the memory 22 may be an internal storage unit of the electronic device 100, such as the memory of the electronic device 100. In other embodiments, the memory 22 may also be an external storage device of the electronic device 100, such as a plug-in USB flash drive, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 100. Further, the memory 22 may also include both an internal storage unit of the electronic device 100 and an external storage device. The memory 22 is used to store application software and various types of data installed on the electronic device 100, such as the upgrade program code of the desktop launcher, etc. The memory 22 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 22 stores an upgrade program of the desktop launcher, and the upgrade program of the desktop launcher can be executed by the processor 11, thereby realizing the upgrade method of the desktop launcher in the present application, as described in the above method.
[0078] In some embodiments, the processor 11 can be a central processing unit (CPU), a microprocessor, a mobile phone baseband processor or other data processing chip, used to run the program code or process data stored in the memory 22, such as executing the upgrade method of the desktop launcher, etc., as described in the above method.
[0079] The present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors (the processor 11 in this embodiment) to implement the steps in the desktop launcher upgrade method of the present invention, as specifically described in the above method.
[0080] Those skilled in the art will understand that Figure 6 What is shown is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. A specific intelligent terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. The steps of the desktop launcher upgrade method described above are implemented when the processor executes the computer program, as described above.
[0081] In summary, the present invention discloses an upgrade method, electronic device and storage medium for a desktop launcher, the method comprising determining an upgrade mode of the desktop launcher; if the upgrade mode of the desktop launcher is a senseless upgrade, configuring an interrupt installation flag for interrupting the upgrade of the desktop launcher; if the interrupt installation flag is detected during the upgrade of the desktop launcher, interrupting the upgrade of the desktop launcher, and continuing to detect whether the desktop launcher is switched to the background; if it is detected that the desktop launcher is switched to the background, calling the installation interface to continue the upgrade of the desktop launcher. The present application skips this step by adding a process flag that does not kill the process in the first installation phase, interrupting the upgrade when the interrupt installation flag is detected, so that the desktop launcher switches to the background, that is, the desktop displays other applications, and the interruption ends, and the upgrade of the desktop launcher is continued to be completed in the system application replacement installation phase, without affecting the user's desktop use, and quickly returns to the desktop, while improving the upgrade success rate and efficiency.
[0082] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, an optical disk, etc.
[0083] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for upgrading a desktop launcher, characterized in that: The desktop launcher upgrade method comprises the following steps: Determine how the desktop launcher is upgraded; If the upgrade mode of the desktop launcher is a senseless upgrade, an interrupt installation flag for interrupting the upgrade of the desktop launcher is configured; If the installation interruption flag is detected during the desktop launcher upgrade, the desktop launcher upgrade is interrupted, and the desktop launcher is continuously detected to determine whether it is switched to the background; If it is detected that the desktop launcher is switched to the background, calling the installation interface to continue the upgrade of the desktop launcher; The upgrade method of the desktop launcher is a non-sensing upgrade and also includes: After the desktop launcher is upgraded and enters the first installation phase, a process flag is configured to prevent the process of the desktop launcher from being closed, so that when the desktop launcher enters the replacement installation phase, the process flag is detected and the process of the desktop launcher is not closed; If the interrupt installation flag is detected during the desktop launcher upgrade, interrupting the desktop launcher upgrade specifically includes: When the desktop launcher upgrade enters the replacement installation phase, the installation interruption flag is detected, and the installation parameters of the desktop launcher upgrade package are saved to the memory, and the installation process of the desktop launcher is interrupted, and the installation interruption result is returned, the upgrade package that has not been installed is retained, and a custom message processing process is entered, wherein the custom message processing process includes a processing callback function; If it is detected that the desktop launcher is switched to the background, calling the installation interface to continue the upgrade of the desktop launcher specifically includes: If it is detected that the desktop launcher is switched to the background, a custom installation interface is called; Obtain relevant installation parameter information of the upgrade package of the desktop launcher, enter the replacement installation phase, and complete the installation process of the desktop launcher upgrade; A post installation message is sent to enter a regular message processing flow, wherein the regular message processing flow includes installing a broadcast, processing a callback function, and deleting a source data packet of the desktop launcher.
2. The method for upgrading the desktop launcher according to claim 1, characterized in that: The method for upgrading the desktop launcher further includes: If it is detected that the process of the desktop launcher is closed after the desktop launcher upgrade is interrupted, the interruption is ended and the installation interface is called to continue the upgrade of the desktop launcher.
3. The method for upgrading the desktop launcher according to claim 1, characterized in that: The method for determining the upgrade of the desktop launcher specifically includes: After entering the first installation phase of the desktop launcher upgrade, detecting whether the desktop launcher upgrade carries a senseless upgrade flag; If it is detected that the desktop launcher upgrade carries a senseless upgrade flag, the upgrade mode of the desktop launcher is a senseless upgrade; If it is detected that the desktop launcher upgrade does not carry a senseless upgrade flag, the upgrade method of the desktop launcher is a regular upgrade.
4. The method for upgrading the desktop launcher according to claim 1, characterized in that: The method for upgrading the desktop launcher further includes: If the interrupt installation mark is not detected during the desktop launcher upgrade, the replacement installation phase is entered to complete the installation process of the desktop launcher upgrade; After successful installation, a conventional message processing flow is entered, wherein the conventional message processing flow includes installing broadcast, processing callback functions, and deleting the source data packet of the desktop launcher.
5. The method for upgrading the desktop launcher according to claim 4, characterized in that: The method for upgrading the desktop launcher further includes: If a shutdown operation is detected after the desktop launcher upgrade is interrupted, the desktop launcher is restarted through a pre-set customized startup package scanning process to complete the upgrade of the desktop launcher.
6. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the desktop launcher upgrade method according to any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for upgrading the desktop launcher according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Application upgrading method, mobile terminal and computer readable storage medium
CN107832068A
Method and apparatus for compressing and decompressing memory occupied by processor
CN110023906A