CN115113908A - Method, terminal, computer device and storage medium for updating application programs in batch - Google Patents

Method, terminal, computer device and storage medium for updating application programs in batch Download PDF

Info

Publication number
CN115113908A
CN115113908A CN202210807861.5A CN202210807861A CN115113908A CN 115113908 A CN115113908 A CN 115113908A CN 202210807861 A CN202210807861 A CN 202210807861A CN 115113908 A CN115113908 A CN 115113908A
Authority
CN
China
Prior art keywords
application
network performance
terminal
updating
application programs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210807861.5A
Other languages
Chinese (zh)
Inventor
赵友军
胡庆东
王蓓蓓
曹善文
李雨涵
李创硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210807861.5A priority Critical patent/CN115113908A/en
Publication of CN115113908A publication Critical patent/CN115113908A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, a terminal, computer equipment and a storage medium for updating application programs in batches, and relates to the technical field of computers, wherein the method comprises the following steps: measuring the network performance of the connection between the terminal and the application store server; judging whether the network performance is lower than a preset network performance threshold value or not; and if the network performance is lower than the preset network performance threshold, preferentially updating the application program with the smaller upgrade package in all the application programs to be upgraded. According to the technical scheme provided by the invention, when the current network performance is poor, the application program with the smaller upgrade package is preferentially updated in all the application programs to be updated and upgraded, and then the application program with the larger upgrade package is updated, so that the influence on the experience of a user for operating and using the terminal due to the fact that the current download upgrade package occupies a larger proportion of network flow can be avoided.

Description

Method, terminal, computer device and storage medium for updating application programs in batch
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for updating applications in batch, a terminal, a computer device, and a computer-readable storage medium.
Background
With the improvement of living standard of people, mobile terminals, especially intelligent mobile terminals, rapidly enter thousands of households. The smart mobile terminal can conveniently expand various functions by downloading and installing various APPs (abbreviations of applications). But APP will frequently be updated to provide new functionality or a better user experience.
The updating and upgrading of the APP on the intelligent mobile terminal mainly have two modes: one is update and upgrade of a single APP, namely when a user opens and uses a certain APP, if a new update package exists, the user is reminded, and the user can update and upgrade according to reminding information; one is to perform update and upgrade of the APP in batch through an APP store.
At present, when updating and upgrading of APPs are performed in batches through APP stores, the arrangement order, downloading order and installation order of APPs to be updated and upgraded are usually based on the initial letters of APP names. Although the batch update of the APPs does not affect the user to achieve the purpose of batch update of the APPs, in some specific scenarios, for example, when the network connection performance between the mobile terminal and the APP store server is not good, the excessively large APP update package requires a long download time, which may affect the experience of the user in operating the mobile terminal.
Therefore, a scheme for updating the APPs in batch, which can minimize the influence on the experience of using the mobile terminal by the user operation, is urgently needed to be provided in the field.
Disclosure of Invention
The invention is completed in order to at least partially solve the technical problem that when the APP is updated in batch by the mobile terminal in the prior art, the downloading of an oversized APP update upgrade package may influence the experience of the user for operating and using the mobile terminal.
According to an aspect of the present invention, there is provided a method of updating applications in batches, comprising:
measuring the network performance of the connection between the terminal and the application store server;
judging whether the network performance is lower than a preset network performance threshold value or not;
and if the network performance is lower than the preset network performance threshold, preferentially updating the application program with the smaller upgrade package in all the application programs to be upgraded.
Optionally, the measuring the network performance of the terminal connected to the application store server includes:
measuring the time delay of a data packet between a terminal and an application store server; determining the network performance of the connection between the terminal and the application store server according to the data packet delay;
or, trying to download a file from an application store server; acquiring the downloading speed of the file; and evaluating the network performance of the connection between the terminal and the application store server according to the downloading speed of the file.
Optionally, after determining that the network performance is lower than a preset network performance threshold, and before preferentially updating an application with a smaller upgrade package in all applications to be upgraded, the method further includes:
judging whether a user pays attention to batch update events of the application programs at present;
if so, executing the step of preferentially updating the application programs with smaller upgrade packages in all the application programs to be upgraded.
Optionally, the determining whether the user is currently interested in the batch update event of the application program includes:
judging whether the current interface of the terminal stays in the batch updating application program interface of the application store or not;
if yes, determining the batch updating event of the current concerned application program of the user;
if not, determining that the user is not concerned with the batch update event of the application program currently.
Optionally, after determining that the current interface of the terminal stays in the batch update application program interface of the application store, and before determining that the user is currently interested in the application program batch update event, the method further includes:
starting a front camera of a terminal to capture a real-time image;
judging whether the captured image contains a face image of a user;
if yes, determining batch update events of the application programs which are currently concerned by the user;
if not, determining that the user is not concerned with the batch update event of the application program currently.
Optionally, preferentially updating the application program with the smaller upgrade package among all the application programs to be updated and upgraded includes:
acquiring the sizes of upgrade packages of all application programs to be upgraded; and the number of the first and second groups,
and preferentially updating the application programs with the upgrade package size lower than the preset threshold value from all the application programs to be upgraded, and then updating the application programs with the upgrade package size higher than or equal to the preset threshold value.
Optionally, preferentially updating the application program with the smaller upgrade package among all the application programs to be upgraded includes:
acquiring the sizes of upgrade packages of all application programs to be upgraded;
sequencing the updating sequence of all application programs to be updated and upgraded according to a preset rule; and the number of the first and second groups,
and updating all the application programs to be updated and upgraded in sequence according to the sequencing result.
According to another aspect of the present invention, there is provided a terminal comprising:
a network performance evaluation module configured to measure network performance of the terminal in connection with the application store server;
a network performance determination module configured to determine whether the network performance is below a preset network performance threshold;
and the application updating module is set to preferentially update the application program with a smaller upgrading packet in all the application programs to be updated and upgraded when the judgment result of the network performance judging module is yes.
According to a further aspect of the present invention, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor executing the method of batch updating an application program as described above when the processor runs the computer program stored in the memory.
According to yet another aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the aforementioned method of batch updating an application.
The technical scheme provided by the invention can have the following beneficial effects:
according to the method for updating the application programs in batch, the network performance of the connection between the terminal and the application store server is measured, when the current network performance is poor, the application programs with the smaller upgrade packages are preferentially updated in all the application programs to be updated and upgraded, and then the application programs with the larger upgrade packages are updated, so that the situation that the experience of a user for operating and using the terminal is influenced due to the fact that the current downloaded upgrade packages occupy larger proportion of network flow is avoided.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart illustrating a method for batch updating applications according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a second schematic structural diagram of a terminal according to an embodiment of the present invention.
FIG. 4 is a schematic structural diagram of a system for batch updating applications according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
The invention provides a scheme for updating and upgrading application programs in batches by an application store, which can reduce the influence on the experience of a user in operating and using a terminal to the greatest extent when the application programs are updated and upgraded in batches by the terminal.
The terminal provided by the invention comprises a portable intelligent mobile terminal such as a smart phone and a tablet personal computer, and also comprises a fixed terminal such as a desktop computer and a server.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order; furthermore, the embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict.
In the following description, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
Fig. 1 is a flowchart illustrating a method for batch updating an application according to an embodiment of the present invention. The method is applied to a terminal, and as shown in fig. 1, the method includes the following steps S101 to S103.
And S101, measuring the network performance of the connection between the terminal and the application store server.
In this step, the user clicks an icon of the application store on the terminal main interface, and when entering an application program updating interface of the application store, the terminal measures and evaluates the network performance connected with the application store server. As for how to evaluate the network performance of the terminal and the application store server, the existing solution can be adopted, and is not limited here.
S102, judging whether the network performance is lower than a preset network performance threshold value, if so, executing a step S103; if not, the current flow is ended.
In this step, after the terminal evaluates the network performance connected to the application store server, the quality of the network performance needs to be judged. Specifically, the current network performance is compared with a preset network performance threshold, and if the network performance of the connection between the terminal and the application store server is lower than the preset network performance threshold, the current network performance can be judged to be poor; otherwise, the current network performance can be judged to be better.
The network performance threshold value can be preset by a terminal manufacturer when the terminal leaves a factory, and an operation interface can be provided and customized by a terminal user.
And S103, preferentially updating the application programs with smaller upgrade packages in all the application programs to be updated and upgraded.
In the embodiment, when the current network performance is poor, the application program with the smaller upgrade package is preferentially updated in all the application programs to be updated and upgraded, and then the application program with the larger upgrade package is updated, so that the application program with the smaller upgrade package is preferentially updated in the remaining application programs to be updated and upgraded under the condition of poor network performance, and the influence on the experience of a user for operating and using a terminal due to the fact that the currently downloaded upgrade package occupies a large proportion of network flow can be avoided. The sizes of the upgrade packages to be updated in the same batch are relative, that is, the size of the smaller upgrade package in the same batch is not necessarily lower than a certain value, but is relative to the larger upgrade package in the batch.
Of course, when the current network performance is better, the application programs to be updated and upgraded may be updated in batch in the existing manner, for example, the downloading and installing order of all the application program upgrade packages to be updated and upgraded, that is, the updating order of all the application programs to be updated and upgraded, is determined based on the initial letters of the application program names.
In an alternative embodiment, step S101 includes the following steps S101a and S101b.
S101a, measuring data packet time delay between a terminal and an application store server;
and S101b, determining the network performance of the connection between the terminal and the application store server according to the data packet time delay.
In this embodiment, it is determined that the network performance belongs to an active measurement mode according to the packet delay. The active measurement is to utilize a measurement tool to purposefully and actively generate measurement flow to be injected into the network at a selected measurement point, and analyze the performance of the network according to the transmission condition of the measurement data flow, wherein one active measurement only inspects the instantaneous network quality, so that a plurality of times of measurement are necessary to be repeated, and more accurate data is obtained by a statistical method. One alternative active measurement tool is the "Ping" command, which can measure the two-way delay.
In another alternative embodiment, step S101 includes the following steps S101a 'through S101 c'.
S101 a', trying to download a file from the application store server;
s101 b', acquiring the downloading speed of the file;
s101 c', evaluating the network performance of the terminal and the application store server connection according to the download speed of the file.
In this embodiment, the network performance of the connection between the terminal and the application store server can also be evaluated by downloading a file from the application store server in an attempt. The type of the file which is downloaded in a pilot test is not limited, and the size of the file does not exceed a preset threshold value A, so that the downloading of the application program upgrading package is not influenced.
In a specific embodiment, after the step S102 determines that the network performance is lower than the preset network performance threshold, and before the step S103, the following step S104 is further included.
S104, judging whether the user pays attention to the batch updating event of the application program at present, if so, executing the step S103; if not, the current flow is ended.
In the embodiment, if the network performance of the connection between the terminal and the application store server is poor, whether the user pays attention to the batch updating event of the application programs is judged, and if the user pays attention to the batch updating event of the application programs, the application programs with smaller upgrading packages are preferentially updated in all the application programs to be upgraded, so that the use experience of the terminal user is improved; if the application program is not concerned, the upgrading application program can be updated in batch in the existing mode.
In one embodiment, step S104 includes the following steps S104a to S104c.
S104a, judging whether the current interface of the terminal stays in the batch updating application program interface of the application store or not; if yes, go to step S104 b; if not, go to step S104 c;
s104b, determining batch updating events of the current concerned application programs of the user;
and S104c, determining that the user does not pay attention to the batch updating event of the application program currently.
In this embodiment, the method for judging whether the current interface of the terminal stays in the batch update application program interface of the application store may be that, after the user clicks the batch update application program interface of the application store, the judgment is made by monitoring whether the user has further operations. In other words, if the user does not perform further operation, judging that the current interface of the terminal stays in the batch updating application program interface of the application store, and determining that the user focuses on the current batch updating event of the application program; and if not, judging that the current interface of the terminal does not stay in the batch updating application program interface of the application store, and determining that the user is not concerned about the batch updating event of the application program currently.
In one embodiment, after the step S104a judges that the current interface of the terminal stays in the batch update application interface of the application store and before the step S10b, the following steps S104d and S104e are further included.
S104d, starting a front camera of the terminal to capture a real-time image;
s104e, judging whether the captured image contains a user face image, if yes, executing step S104 b; if not, step S104c is executed.
In this embodiment, after it is determined that the current interface of the terminal stays in the batch update application program interface of the application store, it may be further determined whether the user is watching the batch update application program interface of the application store, specifically, the front-facing camera of the terminal is turned on to capture a real-time image, and it is determined whether the captured image includes a user face image, that is, when the captured image includes the user face image, it indicates that the user is watching the batch update application program interface of the application store, and when the captured image does not include the user face image, it indicates that the user is not watching the batch update application program interface of the application store. The specific image recognition algorithm for judging whether the captured image contains the face image of the user can be realized by using the existing face unlocking related technology of the current terminal, and the image recognition algorithm is not limited by the invention.
If the current interface of the terminal stays in the batch updating application program interface of the application store and the user is watching the batch updating application program interface of the application store, judging that the user is concerned about the batch updating event of the application program currently; and if the current interface of the terminal stays in the batch updating application program interface of the application store, but the user does not watch the batch updating application program interface of the application store currently, judging that the user is not concerned about the batch updating event of the application program currently.
Of course, the present invention does not limit the specific implementation method for determining whether the current interface of the terminal stays in the batch update application program interface of the application store, and whether the user is watching the batch update application program interface of the application store, as long as the determination result can be obtained.
In an alternative embodiment, step S103 includes the following steps S103a and S103b.
S103a, obtaining the sizes of upgrade packages of all application programs to be upgraded;
s103b, preferentially updating the application programs with the upgrade package size lower than the preset threshold value from all the application programs to be upgraded, and then updating the application programs with the upgrade package size higher than or equal to the preset threshold value.
In this embodiment, after obtaining the sizes of the upgrade packages of all the application programs to be upgraded, the upgrade packages are divided into two types, the first type is an upgrade package with a size lower than a preset threshold, and the second type is an upgrade package with a size higher than or equal to a preset threshold. Moreover, when the application programs of the first-type/second-type upgrade packages are updated, the application programs can be updated according to the sequence of the upgrade packages from small to large, the application programs can also be updated according to the sequence of the initials of the application program names, the update sequence of the application programs can also be determined according to other rules, and an operation interface can also be provided to enable a terminal user to customize the update sequence of the application programs.
In another alternative embodiment, step S103 includes the following steps S103a 'through S103 c'.
S103 a', obtaining the size of the upgrade package of all the application programs to be upgraded;
s103 b', sequencing the updating sequence of all the application programs to be updated and upgraded according to a preset rule;
s103 c', and updating all the application programs to be updated and upgraded in sequence according to the sequencing result.
In this embodiment, after the sizes of the upgrade packages of all the application programs to be updated and upgraded are obtained, the update orders of the application programs to be updated and upgraded may be sorted according to a preset rule, and then the corresponding upgrade packages are downloaded and installed from the app store server according to the sorted order, so as to complete the update of the application programs. The preset rule may be that the update sequence of all the applications to be updated and upgraded is sorted according to the sequence of the upgrade package from small to large. The preset rule can be preset by a terminal manufacturer when the terminal leaves a factory, and an operation interface can be provided and defined by a terminal user.
In step S103a/S103 a', the terminal may acquire the upgrade package size of all applications to be upgraded through the application store server. Alternatively, if the terminal has acquired the upgrade package sizes of all the applications to be upgraded by the application store server upon entering the batch update application interface of the application store according to the existing method, the steps S103a/S103a 'may be omitted, and the previously acquired upgrade package sizes of all the applications to be upgraded are directly used in the next steps S103b/S103 b'.
It should be noted that the sequence of the above steps is only a specific example provided for illustrating the embodiment of the present invention, and the present invention does not limit the sequence of the above steps, and those skilled in the art can adjust the sequence as required in practical application; and the sequence number of the steps does not limit the execution sequence.
In order to more intuitively and specifically explain the working process of the present invention, embody the advantages of the present invention and bring convenience to the user, the working process of the present invention is described in detail below with reference to an example.
Let the terminal with model P40 owned by user a have the function of batch updating application programs described in the present invention. The specific working process of this example is as follows:
evaluation of network Performance
Let user A click the APP store icon on Huawei P40 at a certain moment, open the main interface of the APP store, and select "my-update management" to enter the interface for updating the upgrade APP, at this time, obtain all upgrade package information of the upgrade APP to be updated, such as information of version number, upgrade package size, etc., through Huawei APP store server according to the existing workflow P40, and sort according to the initial sequence of the APPs. If the user A agrees to update the upgrade, the P40 starts downloading the upgrade package for update according to the existing update sequence.
However, in the present invention, when the user a agrees to perform the update upgrade, the P40 starts evaluating the network connection performance with the huaji application store server without downloading and installing the upgrade package. In this embodiment, a form of "ping hua is an application store server IP" is used to obtain the time delay of the data packet as an index value of the network performance. Here, the ping command packet delay is set to 35 milliseconds.
② network performance judgment
The performance index value of Huaqi P40 and Huaqi application store server network connection is obtained in step (r) in the form of "ping Huaqi application store server IP": the packet delay is 25 milliseconds. Next, hua shi P40 compares the packet delay of 25 ms with a predetermined network performance threshold, so as to determine whether the network connection performance between P40 and hua shi application store server is good or bad. Let P40 preset the network performance threshold to be 20 ms of packet delay. Obviously, in this example, the performance index value (packet delay of 25 ms) of the network connection between P40 and the huaji application store server is greater than the preset network performance threshold, so that it can be determined that the performance of the network connection between P40 and the huaji application store server is poor.
Evaluation of user's attention
In the step two, Chinese is P40, the performance of network connection with the Huashi application store server is judged to be poor, so P40 simultaneously judges whether the current interface of the user A stays at the batch update APP interface of the application store or not and judges whether the user A watches the batch update APP interface of the application store or not through a real-time image captured by a front-facing camera. If the user A has no further operation after entering the batch update APP interface of the P40 application store, it can be judged that the P40 stays in the batch update APP interface of the application store; meanwhile, if the head portrait information (i.e. the face image) of the user a is detected in the real-time image captured by the front camera in the P40, it can be determined that the user a is also watching the batch update APP interface of the APP store. In summary, P40 may determine that the user is paying attention to the batch update APP event of the APP store.
(iv) application sequencing/update
Step III, a batch update APP event of the application store concerned by the user A is evaluated by P40, and in step I, the sizes of upgrade packages D1, D2, D3 and D4 of 4 APPs to be updated, namely D1 > D2 > D3 > D4, of A, B, C and D are obtained by the existing method, the 4 APPs to be updated and upgraded are sorted according to a preset rule from small to large of the upgrade packages, namely D, C, B, A, so that the 4 APPs to be updated and upgraded are sorted according to the sequence of D, C, B, A by the application store batch update APP interface of P40, and then the corresponding upgrade packages are downloaded and installed from the application store server according to the sorted sequence.
When the application program is updated and upgraded in batch by the application store, firstly, the network connection performance of the network connection between the evaluation terminal and the application store server is measured; if the network connection performance of the terminal and the application store server is lower than a preset network performance threshold value, the terminal captures a real-time image through a front-facing camera, and judges whether a user is paying attention to an application program batch updating event or not by combining whether a current interface of the terminal stays in a batch updating application program interface of an application store or not; if the terminal judges that the user is paying attention to the batch updating event of the application programs of the application store, acquiring the size of an upgrading packet of each application program to be updated; the terminal sorts the updating sequence of all the application programs to be updated and upgraded according to the size of the obtained upgrading packet and the sequence of the upgrading packet from small to large; and finally, the terminal sequentially downloads and installs the upgrade packages of the application programs to be upgraded from the application store server according to the reordered sequence so as to complete batch updating of the application programs, and the condition that the experience of the user for operating and using the terminal is influenced by the fact that the currently downloaded upgrade packages occupy a large proportion of network flow can be avoided in the updating process.
Based on the same technical concept, the embodiment of the invention correspondingly provides a terminal, in particular to a terminal with the function of updating application programs in batches. As shown in fig. 2, the terminal includes: a network performance evaluation module 201, a network performance judgment module 202 and an application update module 203.
Wherein the network performance evaluation module 201 is configured to measure the network performance of the connection of the terminal with the application store server; the network performance determination module 202 is configured to determine whether the network performance is lower than a preset network performance threshold; the application updating module 203 is configured to preferentially update the application program with the smaller upgrade package among all the application programs to be updated and upgraded when the determination result of the network performance determining module 202 is yes.
In one embodiment, the network performance evaluation module 201 is specifically configured to measure the packet delay between the terminal and the application store server; and determining the network performance of the connection between the terminal and the application store server according to the data packet delay. Alternatively, the network performance evaluation module 201 is specifically configured to try to download a file from the application store server; acquiring the downloading speed of the file; and evaluating the network performance of the connection between the terminal and the application store server according to the downloading speed of the file.
In a specific embodiment, as shown in fig. 3, the terminal further includes: the user attention assessment module 301.
The user attention evaluation module 301 is configured to determine whether the user pays attention to the batch update event of the application program at present after the network performance determination module 202 determines that the network performance is lower than the preset network performance threshold and before the application update module 203 preferentially updates the application program with a smaller upgrade package among all the application programs to be updated and upgraded.
Correspondingly, the application updating module 203 is specifically configured to preferentially update the application program with the smaller upgrade package among all the application programs to be updated and upgraded after the network performance judging module 202 judges that the network performance is lower than the preset network performance threshold and the user attention evaluating module 301 judges that the user pays attention to the batch update event of the application programs.
In one embodiment, the user attention assessment module 301 comprises: a first judging unit and a determining unit.
The first judging unit is arranged for judging whether the current interface of the terminal stays in the batch updating application program interface of the application store or not; the determining unit is set to determine the batch updating event of the application program which is currently concerned by the user when the first judging unit judges that the current interface of the terminal stays in the batch updating application program interface of the application store, and determine the batch updating event of the application program which is not currently concerned by the user when the first judging unit judges that the current interface of the terminal does not stay in the batch updating application program interface of the application store.
In one embodiment, the user attention assessment module 301 further comprises: a control unit and a second judgment unit.
The control unit is set to start a front camera of the terminal to capture a real-time image when the first judging unit judges that the current interface of the terminal stays in the batch updating application program interface of the application store; the second judgment unit is configured to judge whether the captured image contains a face image of the user. Correspondingly, the determining unit is specifically configured to determine the current application program batch update event concerned by the user when the first judging unit judges that the current interface of the terminal stays in the batch update application program interface of the application store, and the second judging unit judges that the captured image contains the face image of the user; and when the first judging unit judges that the current interface of the terminal stays in the batch updating application program interface of the application store, and the second judging unit judges that the captured image does not contain the face image of the user, determining that the user does not pay attention to the application program batch updating event currently.
In one embodiment, the application update module 203 comprises: an acquisition unit and an update unit.
The acquisition unit is configured to acquire the upgrade package size of all application programs to be upgraded. The updating unit is set to preferentially update the application programs with the size of the upgrade package being lower than the preset threshold value from all the application programs to be upgraded, and then update the application programs with the size of the upgrade package being higher than or equal to the preset threshold value.
In another embodiment, the application update module 203 comprises: the device comprises an acquisition unit, a sorting unit and an updating unit.
The acquisition unit is set to acquire the sizes of upgrade packages of all application programs to be upgraded; the sequencing unit is arranged for sequencing the updating sequence of all the application programs to be updated and upgraded according to a preset rule; the updating unit is set to sequentially update all the application programs to be updated and upgraded according to the sequencing result.
Referring to fig. 3, the terminal implements the function of batch updating application programs according to the present invention by adding a network performance evaluation module 201, a network performance judgment module 202, a user attention evaluation module 301, and an application update module 203 on the basis of the original function modules (a communication module, an application store module, etc.). In fig. 3, the solid line box represents the original function module of the terminal, and the dotted line box represents the newly added function module of the terminal.
When the application program is updated and upgraded in batches by the application store, the terminal provided by the embodiment of the invention firstly measures and evaluates the networking performance of the network connection between the terminal and the application store server; if the network connection performance of the terminal and the application store server is lower than a preset network performance threshold value, the terminal captures a real-time image through a front-facing camera, and judges whether a user is paying attention to an application program batch updating event or not by combining whether a current interface of the terminal stays in a batch updating application program interface of an application store or not; if the terminal judges that the user is paying attention to the batch updating events of the application programs of the application store, acquiring the size of an upgrading packet of each application program to be updated; the terminal sorts the updating sequence of all the application programs to be updated and upgraded according to the size of the obtained upgrading packet and the sequence of the upgrading packet from small to large; and finally, the terminal sequentially downloads and installs the upgrade packages of the application programs to be upgraded from the application store server according to the reordered sequence so as to complete batch updating of the application programs, and the condition that the experience of the user for operating and using the terminal is influenced by the fact that the currently downloaded upgrade packages occupy a large proportion of network flow can be avoided in the updating process.
Based on the same technical concept, the embodiment of the invention correspondingly provides a system for updating the application programs in batch. As shown in fig. 4, the system includes a terminal 401 and an application store server 402.
The terminal 401 establishes a communication connection with the application store server 402 through the carrier mobile network. The terminal 401 is specifically a mobile terminal, such as a smart phone, a tablet computer, and the like, and adds functions such as network performance evaluation, network performance judgment, user attention evaluation, application update, and the like on the basis of the original function, which are described in detail in the previous embodiment and are not described herein again. The application store server 402 keeps the original functions unchanged, provides functions of downloading and updating application programs for the terminal, and evaluates network performance in cooperation with the terminal 401.
Based on the same technical concept, the embodiment of the present invention correspondingly provides a computer device, as shown in fig. 5, the computer device includes a memory 51 and a processor 52, the memory 51 stores a computer program, and when the processor 52 runs the computer program stored in the memory 51, the processor 52 executes the foregoing method for updating application programs in batches.
Based on the same technical concept, the embodiment of the invention correspondingly provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the method for batch updating the application program.
In summary, according to the method, the system, the terminal, the computer device, and the storage medium for updating application programs in batch provided by the embodiments of the present invention, when an application store updates application programs in batch, by measuring the network performance of the connection between the terminal and the application store server, and when the current network performance is poor, and in combination with whether a user is paying attention to a batch update event of an application program, when it is determined that the user is paying attention to the batch update event of the application program, the download and installation order of the upgrade packages of all application programs to be updated is determined automatically according to the sizes of the upgrade packages of all application programs to be updated. By the implementation of the invention, when the network performance of the connection between the terminal and the application store server is poor and the user is paying attention to the batch updating event of the application programs, the application programs with smaller upgrade packages are automatically selected to be updated preferentially, so that the intelligent sequencing, downloading and installation of the batch application programs to be updated are realized, and the use experience of the terminal user is improved.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, 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, as is well known to those of ordinary skill in the art. Computer storage media includes, but is 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 accessed by a computer. In addition, 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 as known to those skilled in the art.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for batch updating applications, comprising:
measuring the network performance of the connection between the terminal and the application store server;
judging whether the network performance is lower than a preset network performance threshold value or not;
and if the network performance is lower than the preset network performance threshold, preferentially updating the application program with the smaller upgrade package in all the application programs to be upgraded.
2. The method of claim 1, wherein measuring network performance of the terminal in connection with the application store server comprises:
measuring the time delay of a data packet between a terminal and an application store server; determining the network performance of the connection between the terminal and the application store server according to the data packet delay;
or, trying to download a file from an application store server; acquiring the downloading speed of the file; and evaluating the network performance of the connection between the terminal and the application store server according to the downloading speed of the file.
3. The method of claim 1, after determining that the network performance is lower than a preset network performance threshold and before preferentially updating an application with a smaller upgrade package among all applications to be upgraded, further comprising:
judging whether a user pays attention to batch update events of the application programs at present;
if so, executing the step of preferentially updating the application programs with smaller upgrade packages in all the application programs to be upgraded.
4. The method of claim 3, wherein the determining whether the user is currently interested in the application batch update event comprises:
judging whether the current interface of the terminal stays in the batch updating application program interface of the application store or not;
if yes, determining batch update events of the application programs which are currently concerned by the user;
if not, determining that the user does not pay attention to the batch update event of the application program currently.
5. The method of claim 4, after determining that the current interface of the terminal stays in the batch update application interface of the application store and before determining that the user is currently interested in the batch update event of the application, further comprising:
starting a front camera of a terminal to capture a real-time image;
judging whether the captured image contains a face image of a user;
if yes, determining batch update events of the application programs which are currently concerned by the user;
if not, determining that the user does not pay attention to the batch update event of the application program currently.
6. The method according to any one of claims 1 to 5, wherein the preferentially updating the application program with the smaller upgrade package among all the application programs to be upgraded comprises:
acquiring the sizes of upgrade packages of all application programs to be upgraded; and the number of the first and second groups,
and preferentially updating the application programs with the upgrade package size lower than the preset threshold value from all the application programs to be upgraded, and then updating the application programs with the upgrade package size higher than or equal to the preset threshold value.
7. The method according to any one of claims 1 to 5, wherein the preferentially updating the application program with the smaller upgrade package among all the application programs to be upgraded comprises:
acquiring the size of an upgrade package of all application programs to be upgraded;
sequencing the updating sequence of all application programs to be updated and upgraded according to a preset rule; and the number of the first and second groups,
and updating all the application programs to be updated and upgraded in sequence according to the sequencing result.
8. A terminal, comprising:
a network performance evaluation module configured to measure network performance of the terminal in connection with the application store server;
a network performance determination module configured to determine whether the network performance is below a preset network performance threshold;
and the application updating module is set to preferentially update the application program with a smaller upgrading packet in all the application programs to be updated and upgraded when the judgment result of the network performance judging module is yes.
9. A computer device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the method of batch updating applications according to any one of claims 1 to 7 when the processor executes the computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of batch updating applications according to any one of claims 1 to 7.
CN202210807861.5A 2022-07-11 2022-07-11 Method, terminal, computer device and storage medium for updating application programs in batch Pending CN115113908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210807861.5A CN115113908A (en) 2022-07-11 2022-07-11 Method, terminal, computer device and storage medium for updating application programs in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210807861.5A CN115113908A (en) 2022-07-11 2022-07-11 Method, terminal, computer device and storage medium for updating application programs in batch

Publications (1)

Publication Number Publication Date
CN115113908A true CN115113908A (en) 2022-09-27

Family

ID=83332131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210807861.5A Pending CN115113908A (en) 2022-07-11 2022-07-11 Method, terminal, computer device and storage medium for updating application programs in batch

Country Status (1)

Country Link
CN (1) CN115113908A (en)

Similar Documents

Publication Publication Date Title
US8191061B2 (en) Method for managing internal software of terminal through device management server
US9285857B2 (en) Application idle current drain measurement
CN108055264A (en) Dispatching device, method and the computer readable storage medium of stream pushing server
CN108399132A (en) A kind of scheduling tests method, apparatus and storage medium
CN110022347A (en) A kind of method and mobile terminal of management application
CN103634592A (en) Automatic test method and system for intelligent televisions
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
CN110933178B (en) Method for adjusting node configuration in cluster system and server
CN110162384A (en) Time-out time dynamic adjusting method and system based on Redis distributed lock
CN111695032A (en) Method and device for recommending function based on user operation record
CN112835802A (en) Equipment testing method, device, equipment and storage medium
CN115686963A (en) Server compatibility testing method and device
CN113885971A (en) State management method and device based on self-adaptive platform system
CN108616870B (en) Method and device for identifying terminal customized preferentially
CN111176985B (en) Software interface performance testing method and device, computer equipment and storage medium
CN110019321B (en) Question delimitation method, device and equipment
CN112202951A (en) Mobile phone compatibility testing method and related device
CN115113908A (en) Method, terminal, computer device and storage medium for updating application programs in batch
CN113452533B (en) Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN115061907A (en) Test method and test system, electronic device, and storage medium
CN115113890A (en) Automatic deployment method, system, equipment and medium of terminal software
CN113010310A (en) Job data processing method and device and server
CN111708670A (en) Method and device for determining task time parameters in real-time operating system and vehicle
CN116069367A (en) Method, terminal, computer equipment and storage medium for updating application programs in batches
CN114244950B (en) Data switching method, device, electronic equipment and computer readable storage medium

Legal Events

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