Method, terminal, computer device and storage medium for batch updating application program

By filtering and prioritizing the download of update packages for applications with high update rates from the app store, the problem of sudden application interruptions during batch updates was resolved, thus improving the user experience.

CN116069367BActive Publication Date: 2025-11-07CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310118529.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-13
Publication Date
2025-11-07
Estimated Expiration
2043-02-13

AI Technical Summary

Technical Problem

When updating applications in bulk from the app store, the application that the user is using may suddenly be interrupted or exit, especially when the app store switches to the background to update and upgrade, which affects the user's operating experience.

Method used

By obtaining the update index of all applications to be updated, filtering out those with an index greater than or equal to that of applications running in the foreground, and prioritizing the download and installation of the update packages for these applications after the terminal enters standby mode, thus avoiding interruption.

Benefits of technology

This ensures that applications that users are currently using or frequently use will not be interrupted during the update process, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069367B_ABST
    Figure CN116069367B_ABST
Patent Text Reader

Abstract

The application provides a kind of batch updating application method, terminal, computer device and storage medium, it is related to computer technical field, wherein the method comprises: in response to user selects batch updating application and foreground running application is to be updated and upgraded, the update index of all application to be updated and upgraded is obtained, the update index reflects the use rate of application;From all application to be updated and upgraded, the application to be updated and upgraded greater than or equal to the update index of the foreground running application is screened out;In all application to be updated and upgraded, the upgrade package of the application to be updated and upgraded screened out is preferentially downloaded, and the upgrade package of the application to be updated and upgraded screened out is installed after terminal enters standby state.The technical scheme provided by the application ensures that the application being used and frequently used by the user will not be interrupted and exited due to updating and upgrading, and the user experience is good.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and in particular, to a method for batch updating application programs, a terminal, a computer device and a computer readable storage medium. BACKGROUND

[0002] With the improvement of people's living standards, mobile terminals, especially smart mobile terminals, are rapidly popularized. Smart mobile terminals can conveniently expand various functions by downloading and installing various APPs (Application, short for Application). However, APPs will be frequently updated and upgraded in order to provide new functions or better user experience.

[0003] There are mainly two ways to update and upgrade APPs on smart mobile terminals: one is the update and upgrade of a single APP, that is, when a user opens and uses a certain APP, if there is a new update and upgrade package, the user will be prompted to update and upgrade according to the prompt information; the other is to update and upgrade APPs in batches through an application store.

[0004] At present, when updating and upgrading APPs in batches through an application store, the arrangement order, download order and installation order of the APPs to be updated and upgraded are usually based on the first letter of the APP name. Although this way of updating APPs in batches does not affect the user's purpose of updating and upgrading APPs in batches, in some specific scenarios, such as when the application store is turned into the background to update and upgrade APPs, if the APP the user is using is also in the queue of the application store for batch updating and upgrading, the APP running in the foreground will usually be suddenly interrupted and exited, affecting the user's experience of operating and using the mobile terminal. SUMMARY

[0005] In order to at least partially solve the technical problem that the APP running in the foreground is suddenly interrupted and exited when the APP the user is using is also in the queue of the application store for batch updating and upgrading in the prior art, the present application is completed.

[0006] According to an aspect of the present application, a method for batch updating application programs is provided, comprising:

[0007] In response to the user selecting to batch update application programs and the application program running in the foreground being to be updated and upgraded, obtaining an update index of all application programs to be updated and upgraded, the update index reflecting the usage rate of the application program;

[0008] From all the application programs to be updated and upgraded, screening out the application programs to be updated and upgraded which are greater than or equal to the update index of the application program running in the foreground;

[0009] Prioritize downloading the upgrade package of the filtered application to be updated and upgraded among all the applications to be updated and upgraded, and install the upgrade package of the filtered application to be updated and upgraded after the terminal enters the standby state.

[0010] Optionally, before the step of obtaining the update index of all the applications to be updated and upgraded, the method comprises:

[0011] Receiving an instruction of selecting batch updating of applications by the user;

[0012] Based on the instruction, obtaining the names of all the applications to be updated and upgraded;

[0013] Judging whether there is an application running in the foreground;

[0014] If yes, obtaining the name of the application running in the foreground;

[0015] Judging whether the name of the application running in the foreground is contained in the names of all the applications to be updated and upgraded;

[0016] If yes, determining that the application running in the foreground is to be updated and upgraded, and performing the step of obtaining the update index of all the applications to be updated and upgraded.

[0017] Optionally, the step of obtaining the update index of all the applications to be updated and upgraded comprises:

[0018] Evaluating the update index of all the applications to be updated and upgraded based on historical usage data; wherein the historical usage data comprises: the usage time of all the applications to be updated and upgraded within a preset time range, and the usage frequency of all the applications to be updated and upgraded within the preset time range.

[0019] Optionally, the step of evaluating the update index of all the applications to be updated and upgraded based on the historical usage data is calculated by using the following formula:

[0020] Index_App = [(time_app / Time_App_Max)*Q1+(counter_app / Counter_App_Max)*Q2]*[1-(time_now-time_media_app) / time_interval]

[0021] Index App = Q1 * (time_app / Time App Max) + Q2 * (counter_app / Counter App Max) + (time_now-time_media_app) / time_interval wherein Index App is an update index of an application to be updated, time_app is a usage time length of the application to be updated within a preset time range, Time App Max is a maximum value of usage time lengths of all applications to be updated within the preset time range, Q1 is a weight factor, counter_app is a usage frequency of the application to be updated within the preset time range, Counter App Max is a maximum value of usage frequencies of all applications to be updated within the preset time range, Q2 is a weight factor, time_now is a current time, time_media_app is a median value of usage times of the application to be updated within the preset time range, and time_interval is the preset time range.

[0022] Optionally, the downloading of the upgrade package of the filtered application to be updated in priority among all applications to be updated comprises:

[0023] sorting the filtered application to be updated according to the update index from high to low;

[0024] sequentially downloading the upgrade package of the filtered application to be updated according to the sorting result.

[0025] Optionally, the installing of the upgrade package of the filtered application to be updated after the terminal enters the standby state comprises:

[0026] sequentially installing the upgrade package of the filtered application to be updated according to the sorting result.

[0027] Optionally, after the downloading of the upgrade package of the filtered application to be updated, the method further comprises:

[0028] obtaining the size of the upgrade package of the remaining application to be updated;

[0029] sorting the remaining application to be updated according to the size of the upgrade package;

[0030] sequentially downloading the upgrade package of the remaining application to be updated according to the sorting result, and installing the upgrade package of the remaining application to be updated after the terminal enters the standby state.

[0031] According to another aspect of the present application, a terminal is provided, comprising:

[0032] The acquisition module is configured to acquire update indexes of all the application programs to be updated and upgraded in response to the user selecting to update the application programs in batches and the application program running in the foreground being to be updated and upgraded, the update indexes reflecting usage rates of the application programs;

[0033] The screening module is configured to screen the application programs to be updated and upgraded that are greater than or equal to the update index of the application program running in the foreground from all the application programs to be updated and upgraded;

[0034] The updating module is configured to preferentially download the upgrade package of the screened application programs to be updated and upgraded from all the application programs to be updated and upgraded, and install the upgrade package of the screened application programs to be updated and upgraded after the terminal enters the standby state.

[0035] According to still another aspect of the present application, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and when the processor executes the computer program stored in the memory, the processor executes the method for updating the application programs in batches.

[0036] According to still another aspect of the present application, a computer readable storage medium is provided, storing a computer program, and when the processor executes the computer program, the processor executes the method for updating the application programs in batches.

[0037] The technical solution provided by the present application can have the following beneficial effects:

[0038] The method for updating the application programs in batches provided by the present application can screen the application programs that need to preferentially download the upgrade package according to the update indexes of all the application programs to be updated and upgraded when updating the application programs in batches, thereby screening the application programs that are being used and frequently used by the user, preferentially downloading the upgrade package of the application programs that are being used and frequently used by the user, and temporarily not installing the upgrade package after downloading the upgrade package, but installing the upgrade package after the terminal enters the standby state, so that the application programs that are being used and frequently used by the user will not be interrupted and exited due to the update and upgrade, and the user experience is good.

[0039] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the present application. The objects and other advantages of the present application will be realized and achieved by means of the structures particularly pointed out in the description and claims. BRIEF DESCRIPTION OF DRAWINGS

[0040] The accompanying drawings are included to provide a further understanding of the technical solution of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.

[0041] Figure 1 A flowchart of a method for batch updating an application according to an embodiment of the present application is shown in FIG. 1.

[0042] Figure 2 A flowchart of another method for batch updating an application according to an embodiment of the present application is shown in FIG. 2.

[0043] Figure 3 A structure diagram of a terminal according to an embodiment of the present application is shown in FIG. 3.

[0044] Figure 4 A structure diagram of another terminal according to an embodiment of the present application is shown in FIG. 4.

[0045] Figure 5 A structure diagram of a computer device according to an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of embodiments of the present application clearer, the following will describe the specific embodiments of the present application in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain and illustrate the present application, and are not used to limit the present application.

[0047] In view of the deficiencies of the current intelligent mobile terminal in batch updating and upgrading applications (i.e., APPs) in the application store in some specific scenarios, such as the application store being turned into the background for updating and upgrading the APPs, and the user using other APPs in the foreground, if the APP being used by the user is also in the queue of the application store for batch updating and upgrading, the APP running in the foreground will usually be abruptly interrupted and exited, the present application provides a scheme for batch updating and upgrading the APPs in the application store, which can avoid the APP running in the foreground from being interrupted and exited when the terminal batch updates and upgrades the APPs, and improves the user's experience in operating and using the terminal.

[0048] The terminal described in the present application includes not only portable intelligent mobile terminals such as smartphones and tablet computers, but also fixed terminals such as desktop computers and servers.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence; and the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily without conflict.

[0050] In the subsequent description, the suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of the description of the present application, and do not have a specific meaning. Therefore, "module", "component", or "unit" can be used mixedly.

[0051] Figure 1 A flowchart of a method for batch updating application programs is provided in an embodiment of the present application. The method is applied to a terminal, such as Figure 1 As shown, the method comprises the following steps S101-S103.

[0052] S101. In response to a user selecting to batch update application programs and a foreground running application program being to be updated and upgraded, obtaining an update index of all application programs to be updated and upgraded, the update index reflecting a usage rate of the application programs;

[0053] S102. From all application programs to be updated and upgraded, screening out application programs to be updated and upgraded greater than or equal to the update index of the foreground running application program;

[0054] It should be noted that the foreground running application program (to be updated and upgraded) is included in the screened out application programs to be updated and upgraded, because according to the screening rule of step S102, the foreground running application program can be naturally screened out;

[0055] S103. From all application programs to be updated and upgraded, preferentially downloading an upgrade package of the screened out application programs to be updated and upgraded, and installing the upgrade package of the screened out application programs to be updated and upgraded after the terminal enters a standby state.

[0056] In the embodiment, when batch updating application programs, according to the update index of all application programs to be updated and upgraded, the application programs needing to preferentially download upgrade packages are screened out, thereby screening out application programs being used and frequently used by the user, preferentially downloading upgrade packages of the application programs being used and frequently used by the user, and temporarily not installing the upgrade packages after downloading, but installing the upgrade packages after the terminal enters a standby state, so that the application programs being used and frequently used by the user are not interrupted and exited due to updating and upgrading, and the user experience is good.

[0057] In a specific embodiment, before step S101, the following steps S104-S109 are further included.

[0058] S104. Receiving an instruction of a user selecting to batch update application programs;

[0059] S105. Based on the instruction, obtaining names of all application programs to be updated and upgraded;

[0060] S106. Judging whether an application program is running in the foreground, if yes, executing step S107, and if no, ending the current flow;

[0061] S107. Obtaining a name of the foreground running application program;

[0062] S108. Determine whether the name of the foreground running application is included in the names of all the applications to be updated and upgraded. If yes, execute step S109. If no, end the current process;

[0063] S109. Determine that the foreground running application is to be updated and upgraded, and execute step S101, i.e., execute the step of acquiring the update index of all the applications to be updated and upgraded.

[0064] In this embodiment, after the user clicks the icon of the application store to enter the APP update and upgrade interface of the application store, and clicks the batch update application button in the interface, a batch update application instruction is generated.

[0065] After the terminal receives the batch update application instruction, the terminal acquires the names of all the applications to be updated and upgraded based on the instruction, and determines whether an application is running in the foreground at the same time. If an application is running in the foreground, the application store must be running in the background. Specifically, the foreground and background applications can be identified through an application interface provided by the terminal operating system, or the foreground running application can be identified by capturing the application running on the terminal screen.

[0066] After the name of the foreground running application is acquired, it is compared with the names of all the applications to be updated and upgraded. If the name of the foreground running application is the same as the name of one of the applications to be updated and upgraded, it is determined that the foreground running application is to be updated and upgraded.

[0067] In one specific embodiment, step S101 includes:

[0068] Based on historical usage data, the update index of all the applications to be updated and upgraded is evaluated. The historical usage data includes the usage time (including the start time and the end time) of all the applications to be updated and upgraded within a preset time range, and the usage frequency of all the applications to be updated and upgraded within the preset time range.

[0069] In this embodiment, based on the usage time of all the applications to be updated and upgraded within a preset time range and the usage frequency of all the applications to be updated and upgraded within the preset time range, the update index of each application to be updated and upgraded is evaluated. The obtained update index can reflect the usage rate (i.e., whether it is a frequently used application by the user) of each application to be updated and upgraded, so as to subsequently filter out the frequently used applications by the user, and preferentially download the upgrade package of these applications and install them after the terminal enters the standby state.

[0070] In one embodiment, the update index of each application to be updated and upgraded is evaluated by the following formula in step S101:

[0071] Index App = [(time app / Time App Max)*Q1+(counter app / Counter App Max)*Q2]*[1-(time now-time media app) / time interval]

[0072] wherein Index App is the update index of each application to be updated and upgraded, time app is the usage time length of each application to be updated and upgraded within a preset time range, Time App Max is the maximum value of the usage time length of all applications to be updated and upgraded within the preset time range, Q1 is a weight factor, counter app is the usage frequency of each application to be updated and upgraded within the preset time range, Counter App Max is the maximum value of the usage frequency of all applications to be updated and upgraded within the preset time range, Q2 is a weight factor, time now is the current time, time media app is the median value of the usage time of each application to be updated and upgraded within the preset time range, and time interval is the preset time range.

[0073] In this embodiment, the historical usage data of all applications to be updated and upgraded within a preset time range (e.g. 10 days, 15 days or 20 days) can be read from the local database according to the names of the applications, and the current time can be obtained from the local clock module or from a time server in the network. Then, the update index of each application to be updated and upgraded can be evaluated according to the historical usage data of all applications to be updated and upgraded in combination with the current time.

[0074] In addition, when determining the applications to be updated and upgraded which are running in the foreground, the update index of each application to be updated and upgraded can be evaluated in real time, or the update index of each application to be updated and upgraded can be evaluated periodically (e.g. every 10 days, 15 days or 20 days) in advance. Then, the update index of each application to be updated and upgraded can be directly read in step S101 without real-time calculation.

[0075] In one embodiment, step S103 includes steps S1031 and S1032.

[0076] S1031. sorting the filtered applications to be updated and upgraded in descending order of the update index;

[0077] S1032. Download the upgrade package of the filtered application to be updated and upgraded in sequence according to the sorting result.

[0078] In the embodiment, the upgrade package of the filtered application to be updated and upgraded is downloaded in sequence according to the order from high to low of the update index size, which realizes that the upgrade package of the more commonly used application is downloaded earlier, and facilitates the user to use the upgraded application as early as possible.

[0079] In a specific embodiment, step S103 further includes the following step S1033.

[0080] S1033. Install the upgrade package of the filtered application to be updated and upgraded in sequence according to the sorting result.

[0081] In the embodiment, the upgrade package of the filtered application to be updated and upgraded is installed in sequence according to the order from high to low of the update index size, which realizes that the more commonly used application is upgraded earlier, and the user experience is better.

[0082] In a specific embodiment, after step S103, the following steps S110 to S112 are further included.

[0083] S110. Obtain the size of the upgrade package of the remaining application to be updated and upgraded;

[0084] S111. Sort the remaining application to be updated and upgraded according to the size of the upgrade package;

[0085] S112. Download the upgrade package of the remaining application to be updated and upgraded in sequence according to the sorting result, and install the upgrade package of the remaining application to be updated and upgraded after the terminal enters the standby state.

[0086] In the embodiment, for the remaining application to be updated and upgraded, since its usage rate is not high, the download order of its upgrade package is arranged after the filtered application to be updated and upgraded, and the installation is performed after the terminal enters the standby state, so as to avoid the interruption of application use. Of course, the update order of the remaining application to be updated and upgraded should be later than that of the filtered application to be updated and upgraded.

[0087] Figure 2 Another flowchart of a method for batch updating applications provided by the embodiment of the application is shown in FIG. 6. Figure 2 As shown in FIG. 6, the method includes the following steps S201 to S206.

[0088] S201. Obtain real-time time.

[0089] When the terminal user clicks the application store icon and selects the APP update and upgrade interface of the application store, the terminal obtains the real-time time.

[0090] The terminal can obtain the real-time time through a local clock module or from a time server in the network. The application does not limit the method for the terminal to obtain the real-time time.

[0091] S202. Monitoring / judging the background running of the application store.

[0092] The terminal monitors the operation behavior of the user while obtaining the real-time time, and judges whether the application store is switched into the background running. Specifically, the terminal can recognize the foreground and background applications through the application program interface provided by the terminal operating system, or can capture the APP running on the screen. The application does not limit the method for judging whether the application store is switched into the background running.

[0093] When the terminal monitors and judges that the application store is switched into the background running, the terminal continues the subsequent working process of the application; otherwise, the terminal directly stops the subsequent working process of the application and performs the update and upgrade of the APP according to the existing rules.

[0094] S203. Judging whether the foreground application is to be updated

[0095] After the terminal monitors and judges that the application store is switched into the background running, the terminal obtains the name of the APP running in the foreground.

[0096] The terminal compares the name of the APP running in the foreground with the name of the APP to be updated and upgraded in the application store, judges whether the APP running in the foreground is to be updated and upgraded, and specifically, if the name of the APP running in the foreground is the same as the name of the APP to be updated and upgraded in the application store, the terminal judges that the APP running in the foreground is to be updated and upgraded; otherwise, the terminal judges that the APP running in the foreground is not to be updated and upgraded.

[0097] If the terminal judges that the APP running in the foreground is to be updated and upgraded, the terminal continues the subsequent working process of the application; otherwise, the terminal directly stops the subsequent working process of the application and performs the update and upgrade of the APP according to the existing rules.

[0098] S204. Evaluating the application update index.

[0099] When the terminal judges that the APP running in the foreground is to be updated, the terminal evaluates the update index of the APP to be updated and upgraded in the application store. Specifically, the terminal reads the historical use information of the APP in a certain time range (such as 10 days, 15 days, or 20 days) from the local database according to the name of the APP to be updated and upgraded, and calculates the update index Index_App of each APP according to the historical use information of the APP. The formula for calculating the update index Index_App of the APP is defined as follows:

[0100] Index App = [(time app / Time App Max)*Q1+(counter app / Counter App Max)*Q2]*[1-(time now-time media app) / time interval].

[0101] Wherein, Index App is the update index of a certain APP to be updated, time app is the use time length of a certain APP to be updated within a certain time range, Time App Max is the maximum value of the use time length of all APPs to be updated within a certain time range, Q1 is a weight factor, and the value of the application is 0.8, counter app is the use frequency of a certain APP to be updated within a certain time range, Counter App Max is the maximum value of the use frequency of all APPs to be updated within a certain time range, Q2 is a weight factor, and the value of the application is 0.2, time now is the real-time time when the terminal calculates the update index of the APP to be updated, time media app is the median of the use time of a certain APP to be updated, and time interval is the time range for calculating and evaluating the use time length and the use frequency of the APP to be updated. It should be noted that the values of the variables in the above formula should correspond to a specific APP when evaluating the update index of the APP.

[0102] In addition, in addition to the real-time calculation and evaluation of the update index of the APP to be updated when the terminal judges the foreground running APP to be updated, the update index of all local APPs can also be evaluated and calculated periodically, such as every 10 days, 15 days or 20 days, and then the update index of the related APP can be directly read in this step, so that it is not necessary to calculate the update index of the APP to be updated in real time.

[0103] It should be noted that the formula for calculating the update index of the APP in the application can also be used in other ways, and the basic idea is to filter out the applications that can be used by the user, and preferentially download but not preferentially install.

[0104] S205. Screening applications.

[0105] After the terminal calculates the update index of the APP to be updated, the update index of the foreground running APP is compared with the update index of the other APPs to be updated, and the APP to be updated whose update index is greater than or equal to the foreground running APP is screened out.

[0106] S206. Updating and upgrading applications.

[0107] The terminal updates all APPs to be updated in the application store according to preset rules. The preset rules can be that the terminal downloads the upgrade package of the APP to be updated according to the update index from large to small, but does not immediately install (updates when the terminal is in a standby state), and the rest of the APPs to be updated can be updated according to existing rules.

[0108] In order to more intuitively and specifically illustrate the working process of the application, embody the advantages of the application and bring convenience to users, the working process of the application will be described in detail below in combination with a specific example. It is assumed that the terminal of user A has the function of updating applications in batches based on user experience in the application store according to the application. The specific working process is as follows:

[0109] 1. Obtain real-time time

[0110] It is assumed that user A clicks the application store icon on the terminal at a certain time, opens the main interface of the application store, and selects "My-Update Management" to enter the interface of updating and upgrading APPs in batches. At this time, the terminal obtains the update package information of the APPs to be updated, such as version number, upgrade package (also referred to as update package) size and the like, through the application store server.

[0111] If user A agrees to update and upgrade, the existing working process is that the terminal sorts the APPs according to the first letter of the name of the APP in alphabetical order, and starts downloading the update and upgrade package for updating in sequence. However, in the application, when user A agrees to update and upgrade, the terminal does not immediately download and install the update and upgrade package, but obtains the real-time time time_now as "10:30" through the local clock module.

[0112] 2. Monitor / judge the background running of the application store

[0113] It is assumed that after user A agrees to update and upgrade, the terminal monitors that user A opens application B for viewing, and through the captured application B interface running on the screen of the mobile terminal, it can be judged that the application store is turned into background running at this time.

[0114] 3. Judge whether the foreground application is to be updated

[0115] After the terminal judges that the application store is turned into background running, the name of the foreground running application B is obtained, and is compared with the name of the application to be updated and upgraded in the application store one by one. It is assumed here that application B is also an application to be updated and upgraded.

[0116] 4. Evaluate the application update index

[0117] The terminal reads the use information of the application in the application store from the local database according to the name of the application to be updated, as shown in Table 1, and calculates the update index of the application to be updated according to the preset update index formula. Here, the application to be updated in the application store is App_1, App_2, App_3 and App_4, and the update index calculated according to the historical use information is Index_App_1=0.3, Index_App_2=0.6, Index_App_3=0.2 and Index_App_4=0.7 respectively.

[0118] In addition, here, the terminal calculates Index_B=0.58 according to the historical use information of the application B in the last 15 days.

[0119] Table 1 Use information of the application to be updated in the last 15 days (part-examples)

[0120]

[0121] 5, Screening application

[0122] The terminal compares the update index Index_B=0.58 of the application B running in the foreground with the update index of the application to be updated in the application store, that is, App_1, App_2, App_3 and App_4, and screens out the application to be updated according to the rule that the update index is greater than or equal to the update index Index_B=0.58 of the application B. Obviously, here, Index_App_4=0.7>Index_App_2=0.6>Index_B=0.58, so App_4 and App_2 and Index_B=0.58 are the applications screened out in this example.

[0123] 6, Update application

[0124] The terminal downloads the upgrade package according to the preset rule according to the size of the update index of the screened App_4 and App_2 and Index_B=0.58 from high to low, but does not install immediately, and installs the upgrade package in the background after the terminal enters the standby interface; other App_1 and App_3 download and install the upgrade package according to the existing rule.

[0125] The method for batch updating application programs provided by the embodiment of the present application provides a solution for updating applications in batches based on user experience in view of the deficiencies in some specific scenarios when updating and upgrading APPs in batches at present. The method collects information about the use of local APPs by mobile terminal users in daily life and saves the information in a local database; when a mobile terminal user uses an application store to update and upgrade APPs in batches, the mobile terminal first acquires real-time time information; then, the mobile terminal monitors and judges whether the application store is running in the background; if the application store is running in the background, the mobile terminal acquires the name of the foreground APP being used by the user; the name of the foreground APP is compared with the name of the APP to be updated and upgraded in the application store to determine whether the APP is to be updated and upgraded; if the foreground running APP is to be updated and upgraded, the mobile terminal calculates and evaluates the update index of each APP according to the use information of the APP to be updated and upgraded saved locally according to preset rules; the mobile terminal filters the APPs to be updated and upgraded in the application store according to the update index of the foreground running APP; and the mobile terminal preferentially downloads the APPs whose update index is greater than or equal to the update index of the foreground APP but does not immediately install the APPs (the APPs are installed when the mobile terminal enters standby), and other APPs are normally downloaded and installed in the background, which not only avoids the interruption and exit of the foreground running APP to be updated, but also avoids the interruption and exit of the frequently used APP to be updated, thereby improving the user experience.

[0126] Figure 3 A structure diagram of a terminal is provided in the embodiment of the present application. As shown in the figure, Figure 3 the terminal comprises an acquisition module 301, a filtering module 302 and an updating module 303.

[0127] The acquisition module 301 is configured to acquire the update index of all the APPs to be updated and upgraded in response to the user selecting to update and upgrade application programs and the foreground running application program being to be updated and upgraded, and the update index reflects the usage rate of the application program; the filtering module 302 is configured to filter out the application programs to be updated and upgraded whose update index is greater than or equal to the update index of the foreground running application program from all the application programs to be updated and upgraded; and the updating module 303 is configured to preferentially download the upgrade package of the filtered application programs to be updated and upgraded from all the application programs to be updated and upgraded, and install the upgrade package of the filtered application programs to be updated and upgraded after the terminal enters a standby state.

[0128] In a specific implementation, the terminal further comprises a receiving module 304, a judging module 305 and a determining module 306.

[0129] The receiving module 304 is configured to receive an instruction of selecting batch updating of applications; the obtaining module 301 is further configured to obtain names of all applications to be updated based on the instruction; the judging module 305 is configured to judge whether an application is running in the foreground; the obtaining module 301 is further configured to obtain the name of the application running in the foreground if the application is running in the foreground; the judging module 305 is further configured to judge whether the name of the application running in the foreground is contained in the names of all applications to be updated; and the determining module 306 is configured to determine that the application running in the foreground is to be updated if the name of the application running in the foreground is contained in the names of all applications to be updated.

[0130] Correspondingly, the obtaining module 304 is specifically configured to obtain the update indexes of all applications to be updated when the determining module 306 determines that the application running in the foreground is to be updated.

[0131] In an embodiment, the obtaining module 301 is specifically configured to evaluate the update indexes of all applications to be updated based on historical usage data; wherein the historical usage data comprises: usage time of all applications to be updated within a preset time range, and usage times of all applications to be updated within the preset time range.

[0132] In an embodiment, the obtaining module 301 evaluates the update indexes of all applications to be updated based on the historical usage data, and the update indexes are calculated by using the following formula:

[0133] Index_App = [(time_app / Time_App_Max)*Q1+(counter_app / Counter_App_Max)*Q2]*[1-(time_now-time_media_app) / time_interval]

[0134] Where Index_App is the update index of a certain application to be updated, time_app is the usage duration of a certain application to be updated within a preset time range, Time_App_Max is the maximum usage duration of all applications to be updated within the preset time range, Q1 is a weighting factor, counter_app is the number of times a certain application to be updated is used within the preset time range, Counter_App_Max is the maximum number of times all applications to be updated are used within the preset time range, Q2 is a weighting factor, time_now is the current time, time_media_app is the median usage time of a certain application to be updated within the preset time range, and time_interval is the preset time range.

[0135] In one specific implementation, the update module 303 includes a sorting unit and a downloading unit.

[0136] The sorting unit is configured to sort the selected applications to be updated and upgraded from high to low according to their update index; the downloading unit is configured to download the upgrade packages of the selected applications to be updated and upgraded in sequence according to the sorting results.

[0137] In one specific implementation, the update module 303 further includes an installation unit.

[0138] The installation unit is configured to install the upgrade packages of the selected applications to be updated in sequence according to the sorting results of the sorting unit.

[0139] In one specific implementation, the acquisition module 301 is further configured to acquire the size of the upgrade package of the remaining applications to be updated.

[0140] The sorting unit of the update module 303 is further configured to sort the remaining applications to be updated according to the size of the upgrade package; the downloading unit of the update module 303 is further configured to download the upgrade packages of the remaining applications to be updated in sequence according to the sorting result; and the installation unit of the update module 303 is further configured to install the upgrade packages of the remaining applications to be updated after the terminal enters standby mode.

[0141] Figure 4 This is a schematic diagram of another terminal provided in an embodiment of the present invention. Figure 4 As shown, the terminal adds modules for information acquisition, update index evaluation, monitoring and judgment, application filtering, update and upgrade, and database, based on the original functional modules. Figure 4 In the diagram, solid lines represent the original functional modules of the terminal, and dashed lines represent newly added functional modules.

[0142] Among them, the information acquisition module mainly completes the information collection of the user using the APP (including but not limited to the use start / end time, etc.), the acquisition of the real-time time and the APP name running in the foreground and the update index, and saves the related information in the local database; the update index evaluation module mainly completes the evaluation of the update index of each APP in real time or periodically, and saves the update index evaluation result in the local database; the monitoring judgment module mainly monitors and judges whether the application store is turned into the background running when the mobile terminal uses the application store to update the APP in batches, and further judges whether the APP running in the foreground is to be updated and upgraded; the application screening module mainly screens out the to-be-updated APP whose update index is greater than or equal to the update index of the APP running in the foreground according to the rules; the update and upgrade module mainly completes the update and upgrade of the to-be-updated and upgraded APP according to the preset rules; and the database module mainly saves the APP use information, the update index of each APP, etc.

[0143] The terminal provided by the embodiment of the application can screen out the application program that needs to download and upgrade the package preferentially according to the update indexes of all the application programs to be updated and upgraded when updating the application programs in batches, thereby screening out the application program that is being used and frequently used by the user, preferentially downloading the upgrade package of the application program that is being used and frequently used by the user, and not installing the upgrade package temporarily after the upgrade package is downloaded, and then installing the upgrade package after the terminal enters the standby state, so that the application program that is being used and frequently used by the user will not be interrupted and exited due to the update and upgrade, and the user experience is good.

[0144] Based on the same technical concept, the embodiment of the application also correspondingly provides a computer device, as shown in the following Figure 5 The computer device includes a memory 501 and a processor 502, the memory 501 stores a computer program, and when the processor 502 runs the computer program stored in the memory 501, the processor 502 executes the method for updating the application programs in batches.

[0145] Based on the same technical concept, the embodiment of the application also correspondingly provides a computer readable storage medium, which stores a computer program, and when the processor executes the computer program, the processor executes the method for updating the application programs in batches.

[0146] In summary, the method for updating the application programs in batches, the terminal, the computer device and the storage medium provided by the embodiment of the application can screen out the to-be-updated APP that is preferentially downloaded but not immediately installed according to the update index of the APP that is being operated and used by the terminal user when the application store updates and upgrades the APP in batches. Through the implementation of the application, the use interruption caused by the background update and upgrade of the application store can be avoided when the mobile terminal user operates and uses the mobile terminal, and the user experience is improved.

[0147] Those of ordinary skill in the art will appreciate that all or certain steps in the methods disclosed above, functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementation, the division between the functional modules / units referred to in the above description can not necessarily correspond to the division between physical components; for example, one physical component can have multiple functions, or one function or step can be performed by several physical components in cooperation. Certain physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer-readable media, which can include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, it should be appreciated by those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.

[0148] Finally, it should be noted that the above-described embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the present application; although the present application has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that the technical solutions recorded in the above embodiments can be modified, or some or all of the technical features thereof can be replaced equivalently; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of batch updating an application program, characterized by, The application comprises the following steps: In response to the user selecting the batch update application in the application update upgrade interface of the application store, the application store runs in the background and the foreground running application is updated and upgraded, the update index of all the applications to be updated and upgraded is obtained, and the update index reflects the usage rate of the application; The update index of the foreground running application is compared with the update index of other applications to be updated and upgraded, and the application to be updated and upgraded greater than or equal to the update index of the foreground running application is screened from all the applications to be updated and upgraded, so as to screen the application frequently used by the user, wherein the screened application to be updated and upgraded includes the foreground running application; The upgrade package of the screened application to be updated and upgraded is preferentially downloaded from all the applications to be updated and upgraded, and the upgrade package of the screened application to be updated and upgraded is downloaded according to the update index from large to small, the upgrade package of the remaining application to be updated and upgraded is downloaded, and the upgrade package of the screened application to be updated and upgraded and the upgrade package of the remaining application to be updated and upgraded are installed after the terminal enters the standby state, and the update order of the remaining application to be updated and upgraded is later than that of the screened application to be updated and upgraded; Before obtaining the update index of all the applications to be updated and upgraded, the application comprises the following steps: The instruction of the user selecting the batch update application is received; Based on the instruction, the names of all the applications to be updated and upgraded are obtained; It is judged whether the foreground runs the application or not; If yes, the name of the foreground running application is obtained; It is judged whether the name of the foreground running application is contained in the names of all the applications to be updated and upgraded or not; If yes, it is determined that the foreground running application is to be updated and upgraded, and the step of obtaining the update index of all the applications to be updated and upgraded is executed.

2. The method of claim 1, wherein, The update index of all the applications to be updated and upgraded is obtained, comprising the following steps: Based on the historical usage data, the update index of all the applications to be updated and upgraded is evaluated; wherein the historical usage data comprises the usage time of all the applications to be updated and upgraded within a preset time range and the usage times of all the applications to be updated and upgraded within a preset time range.

3. The method of claim 2, wherein, The update index of all the applications to be updated and upgraded is evaluated based on the historical usage data, and is calculated by the following formula: Index_App = [(time_app / Time_App_Max)*Q1+(counter_app / Counter_App_Max)*Q2]*[1-(time_now-time_media_app) / time_interval] Index App = Q1 * (time_app / Time App Max) + Q2 * (counter_app / Counter App Max) + (time_now - time_media_app) / time_interval wherein Index App is an update index of a certain application to be updated and upgraded, time_app is a usage time length of the certain application to be updated and upgraded within a preset time range, Time App Max is a maximum value of usage time lengths of all applications to be updated and upgraded within the preset time range, Q1 is a weight factor, counter_app is a usage frequency of the certain application to be updated and upgraded within the preset time range, Counter App Max is a maximum value of usage frequencies of all applications to be updated and upgraded within the preset time range, Q2 is a weight factor, time_now is a current time, time_media_app is a median value of usage times of the certain application to be updated and upgraded within the preset time range, and time_interval is the preset time range.

4. The method of claim 1, wherein, The method further comprises: sorting the filtered applications to be updated and upgraded according to the update indexes from high to low; downloading the update packages of the filtered applications to be updated and upgraded according to the sorting result.

5. The method of claim 4, wherein, The method further comprises: installing the update packages of the filtered applications to be updated and upgraded according to the sorting result.

6. The method according to any one of claims 1-5, characterized in that, The method further comprises: obtaining the sizes of the update packages of the remaining applications to be updated and upgraded; sorting the remaining applications to be updated and upgraded according to the sizes of the update packages; downloading the update packages of the remaining applications to be updated and upgraded according to the sorting result and installing the update packages of the remaining applications to be updated and upgraded after the terminal enters the standby state.

7. A terminal, characterized by comprising: The method further comprises: obtaining the update indexes of all applications to be updated and upgraded in response to a user selecting to update applications in batch in an application update interface of an application store, the application store being switched to background running and the applications running in the foreground being to be updated and upgraded, the update indexes reflecting the usage rates of the applications; comparing the update index of the application running in the foreground with the update indexes of other applications to be updated and upgraded, filtering out the applications to be updated and upgraded that are greater than or equal to the update index of the application running in the foreground from all the applications to be updated and upgraded, and thus filtering out the applications that are being used and frequently used by the user, wherein the filtered applications to be updated and upgraded include the application running in the foreground; and The updating module is arranged to download the upgrade package of the screened application program to be updated and upgraded preferentially among all the application programs to be updated and upgraded, and download the upgrade package of the screened application program to be updated and upgraded according to the update index from large to small, then download the upgrade package of the remaining application program to be updated and upgraded, and install the upgrade package of the screened application program to be updated and upgraded and the upgrade package of the remaining application program to be updated and upgraded after the terminal enters the standby state, and the update sequence of the remaining application program to be updated and upgraded is later than that of the screened application program to be updated and upgraded; The receiving module is arranged to receive an instruction of selecting batch updating of application programs by a user; The obtaining module is further arranged to obtain the names of all the application programs to be updated and upgraded based on the instruction; The judging module is arranged to judge whether an application program is running in the foreground; The obtaining module is further arranged to obtain the name of the application program running in the foreground if the application program is running in the foreground; The judging module is further arranged to judge whether the name of the application program running in the foreground is contained in the names of all the application programs to be updated and upgraded; and The determining module is arranged to determine that the application program running in the foreground is to be updated and upgraded if the name of the application program running in the foreground is contained in the names of all the application programs to be updated and upgraded, and the obtaining module performs the operation of obtaining the update index of all the application programs to be updated and upgraded.

8. A computer device, comprising: The computer program is executed by the processor, and the processor executes the method for batch updating of application programs according to any one of claims 1 to 6.

9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor, and the processor executes the method for batch updating of application programs according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Application updating method, mobile terminal and computer readable storage medium

    CN107832067A

  • Program updating method and device and electronic equipment

    CN113176889A