CN114363305A - Application updating method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114363305A
CN114363305A CN202111618004.2A CN202111618004A CN114363305A CN 114363305 A CN114363305 A CN 114363305A CN 202111618004 A CN202111618004 A CN 202111618004A CN 114363305 A CN114363305 A CN 114363305A
Authority
CN
China
Prior art keywords
application
updating
condition
parameter
determining
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.)
Granted
Application number
CN202111618004.2A
Other languages
Chinese (zh)
Other versions
CN114363305B (en
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.)
Guang Dong Ming Chuang Software Technology Corp ltd
Original Assignee
Guang Dong Ming Chuang Software Technology Corp 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 Guang Dong Ming Chuang Software Technology Corp ltd filed Critical Guang Dong Ming Chuang Software Technology Corp ltd
Priority to CN202111618004.2A priority Critical patent/CN114363305B/en
Publication of CN114363305A publication Critical patent/CN114363305A/en
Application granted granted Critical
Publication of CN114363305B publication Critical patent/CN114363305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/27Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets

Abstract

The application discloses an application updating method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a first judgment result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device; determining a first update condition of the first application that matches the first determination result; updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.

Description

Application updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of application software technologies, and in particular, to an application updating method and apparatus, an electronic device, and a storage medium.
Background
In the related art, the electronic device needs to be in a charging state, connected to a wireless Network, and operated at a temperature not higher than a set value, so that silent update of an application can be supported.
Disclosure of Invention
In view of this, embodiments of the present application provide an application updating method, an application updating apparatus, an electronic device, and a storage medium, so as to solve at least the problems that it is difficult to accurately control a silent update flow, so that an application scenario of the silent update is limited, and CDN flow cost is increased in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides an application updating method, which comprises the following steps:
determining a first judgment result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device;
determining a first update condition of the first application that matches the first determination result;
updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.
In the foregoing solution, the determining a first determination result according to the first parameter includes:
determining that the first judgment result supports automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is greater than or equal to a set value;
and determining that the first judgment result does not support automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is smaller than a set value.
In the foregoing solution, the determining the first update condition of the first application that matches the first determination result includes:
determining a second updating condition for the first electronic equipment to execute automatic updating according to the first information; the first information represents the operating environment of the first electronic equipment;
and adjusting the second updating condition based on the first judgment result to generate a first updating condition of the first application.
In the foregoing solution, the determining the first update condition of the first application that matches the first determination result includes:
determining a second parameter when the first determination result supports automatic updating of the first application in a discharge state of the first electronic device; the second parameter characterizes a maximum flow allowed to be consumed by the first application when the first application is automatically updated;
determining a first update condition of the first application that matches the first determination result and the second parameter.
In the foregoing solution, before determining the first determination result according to the first parameter, the method includes:
determining a third parameter and/or a fourth parameter of the first application; the third parameter represents that the first use duration of the first electronic equipment to the first application is greater than the proportion of the use durations of the at least two electronic equipment to the first application; the fourth parameter represents the proportion of the first use duration to the second use duration of the electronic equipment;
and determining the first parameter according to the third parameter and/or the fourth parameter.
In the foregoing solution, the updating the first application includes:
under the condition that at least two first applications which have updating requirements and meet corresponding first updating conditions exist, determining the updating sequence of the at least two first applications according to a first parameter of each of the at least two first applications;
updating the at least two first applications based on the determined update sequence.
In the above scheme, the method further comprises:
determining the CDN flow of a first content delivery network; the first CDN flow represents CDN flow generated by automatic updating of the first application;
and adjusting a first updating condition of the first application according to a difference value between the first CDN flow and a set second CDN flow.
An embodiment of the present application provides an application update apparatus, including:
a first determining unit configured to determine a first determination result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device;
a second determination unit configured to determine a first update condition of the first application that matches the first determination result;
the updating unit is used for updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.
An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of any of the above methods when running the computer program.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, a first determination result is determined according to the use condition of the first application by the electronic device, and the first determination result is used for determining whether the first application is automatically updated in the discharge state of the first electronic device, so that a first update condition of the first application matched with the first determination result is determined, and the first application is updated under the condition that the first application has an update requirement and meets the first update condition of the first application, so that the limit condition of the first update condition of the first application can be adjusted according to the use condition of the first application by the electronic device, the update condition of the first application can be timely released, the CDN flow generated by the first application in the update process can be accurately controlled, the CDN bandwidth utilization rate is improved, and the CDN flow cost for updating the first application is reduced.
Drawings
Fig. 1 is a schematic diagram of an expected curve of CDN traffic and an actual curve of CDN traffic provided in the related art;
fig. 2 is a schematic flow chart illustrating an implementation of an application updating method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating an implementation of an application updating method according to another embodiment of the present application;
fig. 4 is a schematic flowchart illustrating an implementation of an application updating method according to another embodiment of the present application;
fig. 5 is a schematic flowchart illustrating an implementation of an application updating method according to another embodiment of the present application;
fig. 6 is a schematic flowchart illustrating an implementation of an application updating method according to another embodiment of the present application;
fig. 7 is a schematic flowchart illustrating an implementation of an application updating method according to another embodiment of the present application;
FIG. 8 is a flowchart illustrating application update provided by an application embodiment of the present application;
fig. 9 is a schematic structural diagram of an application update apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and specific embodiments.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
In addition, the term "at least one" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Before describing the technical solution of the embodiment of the present application in detail, first, a brief description is given of an automatic update technology in the related art.
A plurality of services in the internet are all accessed and accelerated by using the CDN, wherein the CDN charges according to a peak point of a day traffic, and a peak time of each service in the internet is uncertain, which causes a peak and a trough to easily appear after superposition, so that a huge waste is generated in the CDN traffic, taking application update as an example, as shown in fig. 1, fig. 1 shows a schematic diagram of an expected curve of the CDN traffic and an actual curve of the CDN traffic, and usage of the CDN traffic can be divided into active downloading, active updating, and automatic updating, wherein a user cannot be controlled to actively download and actively update the generated CDN traffic, but the entire CDN traffic can be controlled by adjusting the generated by automatic updating, so that the entire CDN traffic curve tends to be stable, and no obvious peak and trough can appear. In the related art, the application can be automatically updated only when the charging condition, the Wi-Fi condition and the temperature condition of the electronic device need to be satisfied, and due to the popularization of the quick charging technology, the charging time of the electronic device is shorter and shorter, so that the control window of the CDN flow is smaller, and the CDN flow is difficult to be finely controlled.
Based on this, in each embodiment of the application, the update condition of the application is appropriately relaxed through the use condition of the application by the electronic device and the device, so that the CDN flow can be more accurately controlled, and the cost of the CDN flow is saved.
An application updating method is provided in the embodiments of the present application, and fig. 2 is a schematic flow chart of the application updating method in the embodiments of the present application. As shown in fig. 2, includes:
s201: determining a first judgment result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application in a discharge state of the first electronic device is supported.
The first parameter may be obtained through the buried point data, where a usage of the first application by the first electronic device is described by a numerical value of the first parameter, for example, the larger the numerical value of the first parameter is, it may be determined that the first application is heavily used by the first electronic device, where the heavy use may be that the first application is frequently used or long used by the first electronic device, and the smaller the numerical value of the first parameter is, it may be determined that the first application is lightly used by the first electronic device, where the light use may be that the first application is frequently used or long used by the first electronic device. Whether the first updating condition of the first application needs to be relaxed is determined through the first parameter, and specifically, whether automatic updating of the first application in the discharging state of the first electronic device is supported is determined through the first parameter.
The correspondence between the first parameter and the first determination result is specifically:
determining that the first judgment result supports automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is greater than or equal to a set value;
the set value is a boundary of the relaxed updating condition, when the first parameter is greater than or equal to the set value, the first electronic device indicates that the first application is heavily used by the first electronic device, and the user can provide good user experience in the process of using the first application by updating the first application in time, so that the first updating condition of the first application can be properly relaxed, automatic updating of the first application in the discharging state of the electronic device is supported, and more scenes for automatically updating the first application exist.
And determining that the first judgment result does not support automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is smaller than a set value.
When the first parameter is smaller than the set value, the first electronic device indicates that the first application is lightly used or moderately used, and there is no need to update the first application quickly, so that the first update condition of the first application does not need to be relaxed, and automatic update of the first application in the discharge state of the first electronic device is not supported. In practical application, the setting of the setting value may be adjusted according to user requirements or resource conditions of the electronic device, and when the user needs more applications for automatic updating, or the resources of the electronic device can support more applications for automatic updating, the setting value may be adjusted downward.
In an embodiment, as shown in fig. 3, before determining the first determination result according to the first parameter, the method includes:
s301: determining a third parameter and/or a fourth parameter of the first application; the third parameter represents that the first use duration of the first electronic equipment to the first application is greater than the proportion of the use durations of the at least two electronic equipment to the first application; the fourth parameter represents the proportion of the first usage duration to the second usage duration of the electronic device.
The method includes the steps that first use duration of first application by first electronic equipment is obtained through buried point data, wherein the first use duration can be daily use duration, then use duration of the first application by the at least two pieces of electronic equipment is obtained through big data statistics, further, the proportion that the first use duration is larger than the use duration of the first application by the at least two pieces of electronic equipment can be determined, the obtained proportion value is determined as a third parameter, in practical application, the proportion values are unified into a percentage mode, in an exemplary mode, the use duration of the first application by other pieces of electronic equipment of which the first use duration exceeds 80% can be determined, and the third parameter can be 80.
After obtaining a first usage duration of the first application by the first electronic device, determining a second usage duration of the electronic device, where the second usage duration is a total usage duration for the first electronic device, and obtaining a fourth parameter according to a ratio between the first usage duration and the second usage duration, where for example, when the first usage duration is 3 hours and the second usage duration is 5 hours, the fourth parameter may be obtained to be 0.6.
S302: and determining the first parameter according to the third parameter and/or the fourth parameter.
After the third parameter and the fourth parameter are determined, the third parameter and the fourth parameter are multiplied to obtain the first parameter, for example, in the case where the third parameter is 80 and the fourth parameter is 0.6, the first parameter is 80 × 0.6 — 48.
In practical applications, the first parameter may be determined by the third parameter or the fourth parameter in addition to the third parameter and the fourth parameter, for example, when the usage duration of the first application by other electronic devices cannot be obtained through big data statistics, the third parameter cannot be determined, so that the first parameter may be determined according to the fourth parameter, where the fourth parameter may be determined as the first parameter.
S202: determining a first update condition of the first application that matches the first determination result.
The update condition of the application includes different sub-conditions, for example, the update condition of the application includes a charge condition, a power condition, a temperature condition, a network condition, and the like of the electronic device, wherein the first update condition of the first application determined in the embodiment of the present application matches with the first determination result, for example, when the first determination result indicates that the first application is automatically updated in the discharge state of the first electronic device, the charge condition of the electronic device in the first update condition of the determined first application matches with the first determination result, that is, the charge condition of the electronic device in the first update condition of the first application supports automatic update of the first application in the discharge state, and when the first determination result indicates that the first application is not automatically updated in the discharge state of the first electronic device, the charge condition of the electronic device in the first update condition of the determined first application also does not support automatic update of the first application in the discharge state And carrying out automatic updating.
In practical applications, the first determination result does not affect other sub-conditions in the first update condition, for example, in the update conditions corresponding to two applications with different first determination results, the power condition, the temperature condition, the network condition, and the like except the charging condition of the electronic device are the same, and the first update condition of the first application matched with the first determination result allows automatic update of the first application in the discharging state of the electronic device, and relaxes the condition for automatic update of the first application.
In an embodiment, as shown in fig. 4, the determining a first update condition of the first application matching the first determination result includes:
s401: determining a second updating condition for the first electronic equipment to execute automatic updating according to the first information; the first information characterizes an operating environment of the first electronic device.
The first determination result influences the charging condition of the electronic device in the first update condition of the first application, and other conditions in the first update condition of the first application need to be determined by other information of the first electronic device. In this embodiment of the application, the first information is an operating environment of the first electronic device, where the first information includes a version of an operating system of the electronic device, an International Mobile Equipment Identity (IMEI) of the electronic device, a Central Processing Unit (CPU) model of the electronic device, and the like, and determines a second update condition based on the first information, where the second update condition includes different conditions of the electronic device, such as a charging condition, an electric quantity condition, a temperature condition, a display condition, and a network condition. In practical applications, the second update condition is a condition that the first electronic device performs automatic update.
S402: and adjusting the second updating condition based on the first judgment result to generate a first updating condition of the first application.
In practical applications, the second update condition may be regarded as an initial update condition configured by the first application, and the first update condition of the first application is obtained after performing appropriate adjustment on the second update condition according to the usage of the first application by the first electronic device, where the update condition obtained after adjusting the charging condition of the first electronic device in the second update condition to match the first determination result is the first update condition of the first application on the basis of the second update condition, and illustratively, when the first determination result is that the first application is automatically updated in the discharging state of the first electronic device, the charging condition of the first electronic device in the second update condition is adjusted to support the automatic updating of the first application in the discharging state, and the conditions other than the charging condition of the first electronic device are kept unchanged, thereby obtaining a first updated condition for the first application. And when the first judgment result shows that the automatic updating of the first application in the discharging state of the first electronic device is not supported, adjusting the charging condition of the first electronic device in the second updating condition to be incapable of automatically updating the first application in the discharging state, and keeping the conditions except the charging condition of the first electronic device unchanged, thereby obtaining the first updating condition of the first application.
In an embodiment, as shown in fig. 5, the determining a first update condition of the first application matching the first determination result includes:
s501: determining a second parameter when the first determination result indicates that automatic updating of the first application is supported in the discharge state of the first electronic device; the second parameter characterizes a maximum flow rate allowed to be consumed by the first application when performing the automatic update.
And under the condition that the first judgment result represents that the first application is automatically updated under the discharge state supporting the first electronic device, determining a second parameter, wherein the second parameter is the maximum CDN flow allowing the first application to be consumed in the automatic updating process, the CDN flow needs to be consumed to complete the updating of the first application in the automatic updating process of the first application, and the peak value of a CDN flow curve of the first application in the automatic updating process can be limited by setting the second parameter, so that the CDN flow cost of the first application in the automatic updating process can be controlled.
S502: determining a first update condition of the first application that matches the first determination result and the second parameter.
The first updating condition of the first application is matched with the first judgment result and the second parameter, specifically, the first condition of the first application can support updating of the first application in a discharging state of the first electronic device, and limit the maximum flow allowed to be consumed by the first application in the updating process, and in the case that the CDN flow exceeds the second parameter, the automatic updating of the first application is not supported, so that greater CDN flow expense caused by the automatic updating of the first application is avoided, and in the case that the CDN flow does not exceed the second parameter, the automatic updating of the first application is supported, so that the CDN flow consumed by the automatic updating of the first application can be ensured to be kept within a range smaller than the second parameter.
S203: updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.
When a situation that a new version of a first application exists is detected, it can be determined that the first application has an updating requirement, and the first application with the updating requirement is automatically updated under a first updating condition that the first application is met.
In an embodiment, as shown in fig. 6, the updating the first application includes:
s601: and under the condition that at least two first applications which have updating requirements and meet corresponding first updating conditions exist, determining the updating sequence of the at least two first applications according to the first parameter of each of the at least two first applications.
When a plurality of first applications needing to be updated exist and the first conditions corresponding to the first applications needing to be updated are all met, the first applications needing to be updated are updated in sequence, and the phenomenon that obvious peaks appear on a CDN flow curve due to the fact that the first applications are updated at the same time is avoided. In practical applications, the updating sequence of a plurality of first applications needing to be updated is determined by the first parameter of each first application, wherein when the first parameter is larger, the probability that the first electronic device uses the first application is higher, the updating requirement of the first application is more urgent, and when the first parameter is smaller, the probability that the first electronic device uses the first application is lower, so that the updating sequence of at least two first applications can be determined according to the first parameter, and the using experience of a user can be guaranteed in the process that the first electronic device uses the first application.
S602: updating the at least two first applications based on the determined update sequence.
And updating the at least two first applications in sequence according to the updating sequence of the at least two first applications, so that the first applications which are heavily used can be guaranteed to be updated preferentially, and a user can obtain better user experience in the process of using the first applications. In practical applications, the update sequence of the application that supports automatic update in the discharge state of the electronic device in the first update condition may be limited, and the update sequence of the application that does not support automatic update in the discharge state of the electronic device in the first update condition is not limited, so that the plurality of first applications can be updated in order, and CDN traffic consumed in the update process of the application is better controlled.
In an embodiment, as shown in fig. 7, the method further comprises:
s701: determining the CDN flow of a first content delivery network; the first CDN flow represents CDN flow generated by automatic updating of the first application.
In the process of automatically updating the first application, a first CDN flow generated by the automatically updating the first application is obtained, where the first CDN flow may be depicted in a graph.
S702: and adjusting a first updating condition of the first application according to a difference value between the first CDN flow and a set second CDN flow.
The set second CDN flow is an ideal CDN flow value, and when the CDN flow generated by the automatic updating of the first application approaches the ideal CDN flow value, the CDN flow cost of the automatic updating of the first application can be saved, wherein the size relation between the first CDN flow and the second CDN flow can be determined through the difference value of the first CDN flow and the second CDN flow, and the electric quantity condition and the temperature condition in the first updating condition are adjusted according to the difference value of the first CDN flow and the second CDN flow.
The difference between the first CDN traffic and the second CDN traffic is positive or negative, when the difference between the first CDN traffic and the second CDN traffic is less than 0, it is indicated that the first CDN traffic is lower than the second CDN traffic, the power condition and the temperature condition in the update condition may be relaxed, specifically, the unit difference value is set to 0.2Tbps, when the difference between the first CDN traffic and the second CDN traffic is each lower than 0.2Tbps, the limit on the power condition is reduced by 1%, the limit on the temperature condition is relaxed by 1 ℃, for example, the power condition in the first update condition is greater than 30%, the temperature condition is lower than 40 ℃, the first update condition after adjustment is that the power condition is greater than 29%, and the temperature condition is lower than 41 ℃. When the difference between the first CDN traffic and the second CDN traffic is greater than 0, it is indicated that the first CDN traffic is higher than the second CDN traffic, and an electric quantity condition and a temperature condition in the update condition need to be further limited, specifically, the unit difference value is set to 0.2Tbps, when the difference between the first CDN traffic and the second CDN traffic exceeds 0.2Tbps, the limit in the electric quantity condition is increased by 1%, and the limit in the temperature is increased by 1%, for example, the electric quantity condition in the first update condition is greater than 30%, the temperature condition is lower than 40 ℃, the first update condition after the adjustment is that the electric quantity condition is greater than 31%, and the temperature condition is lower than 30 ℃.
In the embodiment of the application, a first determination result is determined according to a use condition of a first application by a first electronic device, whether automatic update of the first application in a discharge state of the first electronic device is supported or not can be determined according to the first determination result, a first update condition of the first application matched with the first determination result is determined, and the first application is updated under the condition that the first application has an update requirement and the first update condition of the first application is satisfied, so that the first update condition of the first application can be adjusted according to the use condition of the first application by the first electronic device, the first update condition of the first application is appropriately widened, the CDN flow can be more accurately controlled, and the cost of the first application for consuming the CDN flow in the automatic update process is reduced.
An application embodiment is further provided, and as shown in fig. 8, fig. 8 shows a flowchart of application update. In fig. 8, the operating environment of the electronic device is acquired, and the global update condition is set according to the operating environment of the electronic device. And determining a first judgment result according to the use condition of the electronic equipment for the first application, wherein the first judgment result is used for determining whether automatic updating of the first application in the discharge state of the electronic equipment is supported. And under the condition that the first judgment result represents that the first application is not supported to be updated in the discharging state of the electronic equipment, adjusting the charging state of the electronic equipment in the global updating condition to be matched with the first judgment result, so as to obtain a first updating condition corresponding to the first application. And under the condition that the first judgment result represents that the first application is supported to be updated in the discharging state of the electronic equipment, determining the maximum CDN flow allowed to be consumed by the first application in the automatic updating process, and adjusting the global updating condition according to the first judgment result and the maximum CDN flow allowed to be consumed by the first application in the automatic updating process, so as to obtain a first updating condition corresponding to the first application. And under the condition that the first application has an updating requirement and the first updating condition of the first application is met, updating the first application according to the updating sequence. In the process of automatically updating the first application, a first updating condition is adjusted according to a difference value between the actual CDN flow of the first application in the automatic updating process and a preset CDN flow.
In order to implement the application updating method according to the embodiment of the present application, an embodiment of the present application further provides an application updating apparatus, as shown in fig. 9, the apparatus includes:
a first determining unit 901, configured to determine a first determination result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device;
a second determining unit 902, configured to determine a first update condition of the first application that matches the first determination result;
an updating unit 903, configured to update the first application when the first application has an update requirement and a first update condition of the first application is met.
In an embodiment, the first determining unit 901, when determining the first determination result according to the first parameter, is further configured to:
determining that the first judgment result supports automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is greater than or equal to a set value;
and determining that the first judgment result does not support automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is smaller than a set value.
In an embodiment, the second determining unit 902, in determining the first update condition of the first application matching the first determination result, is further configured to:
determining a second updating condition for the first electronic equipment to execute automatic updating according to the first information; the first information represents the operating environment of the first electronic equipment;
and adjusting the second updating condition based on the first judgment result to generate a first updating condition of the first application.
In an embodiment, the second determining unit 902, when determining the first update condition of the first application matching the first determination result, is further configured to:
determining a second parameter when the first determination result supports automatic updating of the first application in a discharge state of the first electronic device; the second parameter characterizes a maximum flow allowed to be consumed by the first application when the first application is automatically updated;
determining a first update condition of the first application that matches the first determination result and the second parameter.
In an embodiment, before the first determining unit 901 determines the first determination result according to the first parameter, the apparatus is further configured to:
determining a third parameter and/or a fourth parameter of the first application, wherein the third parameter characterizes a proportion that a first usage duration of the first electronic device for the first application is longer than usage durations of the at least two electronic devices for the first application; the fourth parameter represents the proportion of the first use duration to the second use duration of the electronic equipment;
and determining the first parameter according to the third parameter and/or the fourth parameter.
In an embodiment, when the updating unit 903 updates the first application, the updating unit is further configured to:
under the condition that at least two first applications which have updating requirements and meet corresponding first updating conditions exist, determining the updating sequence of the at least two first applications according to a first parameter of each of the at least two first applications;
updating the at least two first applications based on the determined update sequence.
In an embodiment, the apparatus is further configured to:
determining the CDN flow of a first content delivery network; the first CDN flow represents CDN flow generated by automatic updating of the first application;
and adjusting a first updating condition of the first application according to a difference value between the first CDN flow and a set second CDN flow.
In actual application, the first determining unit 901, the second determining unit 902, and the updating unit 903 may be implemented by a processor in the application updating apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that, when the application updating apparatus provided in the embodiment of fig. 9 performs application updating, only the division of each program module is illustrated, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules to complete all or part of the above-described processing. In addition, the application updating apparatus and the application updating method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 10 is a schematic diagram of a hardware composition structure of the electronic device according to the embodiment of the present application, and as shown in fig. 10, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the application updating method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For clarity of illustration, however, the various buses are labeled as bus system 4 in fig. 10.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device and method may be implemented in other ways. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An application update method, comprising:
determining a first judgment result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device;
determining a first update condition of the first application that matches the first determination result;
updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.
2. The method of claim 1, wherein determining the first determination based on the first parameter comprises:
determining that the first judgment result supports automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is greater than or equal to a set value;
and determining that the first judgment result does not support automatic updating of the first application in the discharge state of the first electronic device under the condition that the first parameter is smaller than a set value.
3. The method of claim 1, wherein the determining a first update condition of the first application that matches the first determination result comprises:
determining a second updating condition for the first electronic equipment to execute automatic updating according to the first information; the first information represents the operating environment of the first electronic equipment;
and adjusting the second updating condition based on the first judgment result to generate a first updating condition of the first application.
4. The method of claim 1, wherein the determining a first update condition of the first application that matches the first determination result comprises:
determining a second parameter when the first determination result supports automatic updating of the first application in a discharge state of the first electronic device; the second parameter characterizes a maximum flow allowed to be consumed by the first application when the first application is automatically updated;
determining a first update condition of the first application that matches the first determination result and the second parameter.
5. The method of claim 1, prior to determining the first determination based on the first parameter, the method comprising:
determining a third parameter and/or a fourth parameter of the first application; the third parameter represents that the first use duration of the first electronic equipment to the first application is greater than the proportion of the use durations of the at least two electronic equipment to the first application; the fourth parameter represents the proportion of the first use duration to the second use duration of the electronic equipment;
and determining the first parameter according to the third parameter and/or the fourth parameter.
6. The method of claim 1, wherein the updating the first application comprises:
under the condition that at least two first applications which have updating requirements and meet corresponding first updating conditions exist, determining the updating sequence of the at least two first applications according to a first parameter of each of the at least two first applications;
updating the at least two first applications based on the determined update sequence.
7. The method of claim 1, further comprising:
determining the CDN flow of a first content delivery network; the first CDN flow represents CDN flow generated by automatic updating of the first application;
and adjusting a first updating condition of the first application according to a difference value between the first CDN flow and a set second CDN flow.
8. An application update apparatus, comprising:
a first determining unit configured to determine a first determination result according to the first parameter; the first parameter represents the use condition of the first electronic equipment to the first application; the first determination result represents whether automatic updating of the first application is supported in a discharge state of the first electronic device;
a second determination unit configured to determine a first update condition of the first application that matches the first determination result;
the updating unit is used for updating the first application under the condition that the first application has an updating requirement and a first updating condition of the first application is met.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 7.
CN202111618004.2A 2021-12-27 2021-12-27 Application updating method and device, electronic equipment and storage medium Active CN114363305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111618004.2A CN114363305B (en) 2021-12-27 2021-12-27 Application updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111618004.2A CN114363305B (en) 2021-12-27 2021-12-27 Application updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114363305A true CN114363305A (en) 2022-04-15
CN114363305B CN114363305B (en) 2023-12-15

Family

ID=81103857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111618004.2A Active CN114363305B (en) 2021-12-27 2021-12-27 Application updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114363305B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130076462A (en) * 2011-12-28 2013-07-08 엘지전자 주식회사 Mobile terminal and control method for mobile terminal
CN103402243A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Method and device for adjusting data updating frequency applied to mobile terminal
CN104079540A (en) * 2013-03-28 2014-10-01 中兴通讯股份有限公司 Method, device and system of updating application as well as user equipment
KR20150008987A (en) * 2013-07-02 2015-01-26 엘지전자 주식회사 Mobile terminal and control method thereof
CN105204915A (en) * 2015-10-29 2015-12-30 小米科技有限责任公司 Application program updating method, device and system
CN105247482A (en) * 2013-06-28 2016-01-13 三星电子株式会社 Method and apparatus for updating application
CN105262890A (en) * 2015-09-09 2016-01-20 捷开通讯科技(上海)有限公司 Information update control system and method for applications on portable electronic device
CN105824659A (en) * 2015-07-30 2016-08-03 广东维沃软件技术有限公司 Application program updating method and terminal equipment
CN105824660A (en) * 2015-08-10 2016-08-03 维沃移动通信有限公司 Application program updating method and terminal
CN105827434A (en) * 2016-02-02 2016-08-03 乐视云计算有限公司 Software automatic updating method and device
CN106227569A (en) * 2016-07-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of application upgrade method and terminal unit
CN106775898A (en) * 2017-01-18 2017-05-31 维沃移动通信有限公司 The update method and mobile terminal of a kind of application program
CN108040172A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 Information updating method, terminal and the computer-readable storage medium of application software
CN109032648A (en) * 2018-10-30 2018-12-18 努比亚技术有限公司 Update method, mobile terminal and the storage medium of application program
CN109194812A (en) * 2018-07-10 2019-01-11 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its method and apparatus for updating application
CN109800010A (en) * 2019-01-25 2019-05-24 努比亚技术有限公司 Using update method, terminal and computer readable storage medium
CN109933352A (en) * 2019-03-18 2019-06-25 联想(北京)有限公司 Firmware update, electronic equipment and control system
CN111240729A (en) * 2020-01-21 2020-06-05 维沃移动通信有限公司 Software updating method, electronic device and medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130076462A (en) * 2011-12-28 2013-07-08 엘지전자 주식회사 Mobile terminal and control method for mobile terminal
CN104079540A (en) * 2013-03-28 2014-10-01 中兴通讯股份有限公司 Method, device and system of updating application as well as user equipment
CN105247482A (en) * 2013-06-28 2016-01-13 三星电子株式会社 Method and apparatus for updating application
KR20150008987A (en) * 2013-07-02 2015-01-26 엘지전자 주식회사 Mobile terminal and control method thereof
CN103402243A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Method and device for adjusting data updating frequency applied to mobile terminal
CN105824659A (en) * 2015-07-30 2016-08-03 广东维沃软件技术有限公司 Application program updating method and terminal equipment
CN105824660A (en) * 2015-08-10 2016-08-03 维沃移动通信有限公司 Application program updating method and terminal
CN105262890A (en) * 2015-09-09 2016-01-20 捷开通讯科技(上海)有限公司 Information update control system and method for applications on portable electronic device
CN105204915A (en) * 2015-10-29 2015-12-30 小米科技有限责任公司 Application program updating method, device and system
CN105827434A (en) * 2016-02-02 2016-08-03 乐视云计算有限公司 Software automatic updating method and device
CN106227569A (en) * 2016-07-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of application upgrade method and terminal unit
CN106775898A (en) * 2017-01-18 2017-05-31 维沃移动通信有限公司 The update method and mobile terminal of a kind of application program
CN108040172A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 Information updating method, terminal and the computer-readable storage medium of application software
CN109194812A (en) * 2018-07-10 2019-01-11 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its method and apparatus for updating application
CN109032648A (en) * 2018-10-30 2018-12-18 努比亚技术有限公司 Update method, mobile terminal and the storage medium of application program
CN109800010A (en) * 2019-01-25 2019-05-24 努比亚技术有限公司 Using update method, terminal and computer readable storage medium
CN109933352A (en) * 2019-03-18 2019-06-25 联想(北京)有限公司 Firmware update, electronic equipment and control system
CN111240729A (en) * 2020-01-21 2020-06-05 维沃移动通信有限公司 Software updating method, electronic device and medium

Also Published As

Publication number Publication date
CN114363305B (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN108965485B (en) Container resource management method and device and cloud platform
EP2586115B1 (en) Hierarchical power smoothing
US8954487B2 (en) Management server and method for providing cloud computing service
US9853471B2 (en) Mechanism for extending cycle life of a battery
US20090164152A1 (en) Method, Apparatus and Computer Program Product for Providing Power Consumption Notification and Management
EP3968702A1 (en) Communication method and apparatus, entity and computer readable storage medium
US20240012754A1 (en) Method and apparatus for adjusting cache memory and computer device
CN103580908A (en) Server configuration method and system
CN103049287A (en) Mobile terminal and method for installing application programs of mobile terminal
CN105981332A (en) Broadcasting management information using fountain codes
WO2014153311A1 (en) Automatic version management
CN106569917B (en) Data backup method and mobile terminal
CN105786539B (en) File downloading method and device
CN114363305A (en) Application updating method and device, electronic equipment and storage medium
US10719243B2 (en) Techniques for preserving an expected lifespan of a non-volatile memory
CN104866438A (en) Storage device, storage device control method and electronic equipment
CN109962941B (en) Communication method, device and server
CN101146107B (en) A method and device for data download
CN114040378B (en) Method, device, computer equipment and storage medium for arranging application
CN114143377B (en) Resource request configuration method, server, client, device and storage medium
CN110891033A (en) Network resource processing method, device, gateway, controller and storage medium
CN112860388B (en) Regulation strategy updating method and related equipment
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN114020468A (en) Elastic expansion method and device of algorithm container based on GPU (graphics processing Unit) index and application of elastic expansion method and device
CN113872871A (en) Network acceleration method and system

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
GR01 Patent grant
GR01 Patent grant