Nothing Special   »   [go: up one dir, main page]

CN114363305B - 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
CN114363305B
CN114363305B CN202111618004.2A CN202111618004A CN114363305B CN 114363305 B CN114363305 B CN 114363305B CN 202111618004 A CN202111618004 A CN 202111618004A CN 114363305 B CN114363305 B CN 114363305B
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.)
Active
Application number
CN202111618004.2A
Other languages
Chinese (zh)
Other versions
CN114363305A (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

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

Landscapes

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

Abstract

The application discloses an application updating method, an application updating device, electronic equipment and a storage medium. The method comprises the following steps: determining a first judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not; determining a first update condition of the first application that matches the first determination result; and updating the first application under the condition that the first application has an updating requirement and the 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 update method, an application update device, an electronic device, and a storage medium.
Background
In the related art, the electronic device needs to simultaneously satisfy that the application is in a charging state, connect to the wireless network, and the running temperature is not higher than a set value, so that silence update of the application can be supported, and as the charging time of the electronic device is shorter, it is difficult to accurately control the flow of silence update, so that the application scenario of silence update is limited, and the flow cost of the content delivery network (CDN, content Delivery Network) is increased.
Disclosure of Invention
In view of the above, the embodiments of the present application provide an application update method, apparatus, electronic device, and storage medium, so as to at least solve the problems of the related art that it is difficult to accurately control the flow of silence update, resulting in limited application scenario of silence update, and increasing CDN flow cost.
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 judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not;
determining a first update condition of the first application that matches the first determination result;
and updating the first application under the condition that the first application has an updating requirement and the first updating condition of the first application is met.
In the above solution, the determining, according to the first parameter, a first determination result includes:
under the condition that the first parameter is larger than or equal to a set value, determining that the first judgment result supports automatic updating of the first application in a discharge state of the first electronic equipment;
And under the condition that the first parameter is smaller than a set value, determining that the first judgment result does not support automatic updating of the first application in the discharging state of the first electronic equipment.
In the above solution, the determining a 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 characterizes the running environment of the first electronic equipment;
and adjusting the second updating condition based on the first judging result to generate a first updating condition of the first application.
In the above solution, the determining a first update condition of the first application that matches the first determination result includes:
determining a second parameter under the condition that the first judgment result supports automatic updating of the first application in the discharging state of the first electronic equipment; the second parameter characterizes the maximum flow allowed to be consumed by the first application when the first application is automatically updated;
a first update condition of the first application is determined that matches the first determination result and the second parameter.
In the above 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 characterizes the proportion that the first using time of the first electronic equipment to the first application is longer than the using time of at least two electronic equipment to the first application; the fourth parameter characterizes the proportion of the first use duration to the second use duration of the electronic device;
and determining the first parameter according to the third parameter and/or the fourth parameter.
In the above solution, the updating the first application includes:
under the condition that at least two first applications with updating requirements and corresponding first updating conditions are met, determining updating sequences of the at least two first applications according to first parameters of each of the at least two first applications;
and updating the at least two first applications based on the determined updating sequence.
In the above scheme, the method further comprises:
determining CDN traffic of a first content delivery network; the first CDN traffic characterizes CDN traffic generated by the first application for automatic update;
And adjusting a first updating condition of the first application according to the difference value between the first CDN flow and the set second CDN flow.
The embodiment of the application provides an application updating device, which comprises:
the first determining unit is used for determining a first judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not;
a second determining unit configured to determine a first update condition of the first application that matches the first determination result;
and the updating unit is used for updating the first application under the condition that the first application has an updating requirement and the first updating condition of the first application is met.
The embodiment of the application also provides electronic equipment, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute the steps of any of the methods described above when the computer program is run.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the methods described above.
In the embodiment of the application, the first judging result is determined according to the use condition of the first application by the electronic equipment, the first judging result is used for determining whether to support automatic updating of the first application in the discharging state of the first electronic equipment, further determining the first updating condition of the first application matched with the first judging result, and updating the first application under the condition that the first application has updating requirements and meets the first updating condition of the first application, so that the use condition of the first application by the electronic equipment can be used for adjusting the limit condition of the first updating condition of the first application, the updating condition of the first application can be timely released, the CDN flow generated by the first application in the updating process can be accurately controlled, the CDN bandwidth utilization rate is improved, and the CDN flow cost of the updating of the first application is reduced.
Drawings
FIG. 1 is a schematic diagram of a desired CDN traffic curve and an actual CDN traffic curve provided by the related art;
FIG. 2 is a schematic diagram illustrating an implementation flow of an application update method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an implementation of an application update method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating an implementation of an application update method according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating an implementation of an application update method according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating an implementation of an application update method according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating an implementation of an application update method according to another embodiment of the present application;
FIG. 8 is a flowchart of an application update provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of an application update apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the application.
Detailed Description
The application will be described in further detail with reference to the accompanying drawings and specific examples.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, 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 schemes described in the embodiments of the present application may be arbitrarily combined without any collision.
In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence.
In addition, the term "at least one" herein means any one of a plurality or any combination of at least two 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 the technical scheme of the embodiment of the application is described in detail, an automatic updating technology in the related technology is first described in brief.
In the internet, a lot of services are used for accelerating access by the CDN, wherein the CDN charges according to the highest peak point of the daily traffic, the peak time of each service of the internet is uncertain, so that the peak and the trough easily occur after superposition, huge waste is generated on the CDN traffic, application updating is taken 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 the use of the CDN traffic can be divided into active downloading, active updating and automatic updating, wherein CDN traffic generated by the active downloading and the active updating of a user cannot be controlled, but the whole CDN traffic can be controlled by adjusting the CDN traffic generated by the automatic updating, so that the whole CDN traffic curve tends to be stable, and obvious peaks and troughs cannot occur. In the related art, the charging condition, wi-Fi condition and temperature condition of the electronic device need to be satisfied to automatically update the application, and the charging time of the electronic device is shorter and shorter due to the popularization of the fast charging technology, so that the control window of the CDN flow is smaller, and the CDN flow is difficult to finely control.
Based on the above, in each embodiment of the present application, the update condition of the application is properly relaxed by the use condition of the application by the electronics and the device, so that the CDN traffic can be controlled more accurately, and the cost of the CDN traffic is saved.
An embodiment of the present application provides an application update method, and fig. 2 is a schematic flow chart of the application update method in the embodiment of the present application. As shown in fig. 2, includes:
s201: determining a first judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first determination result characterizes whether the first application is enabled to be automatically updated in a discharge state of the first electronic device.
The first parameter may be obtained through embedded data, where a use condition of the first application by the first electronic device is described by a value of the first parameter, for example, the larger the value of the first parameter, the heavy use of the first application by the first electronic device may be determined, where the heavy use may be a high use frequency or a long use time of the first application by the first electronic device, and the smaller the value of the first parameter, the light use may be determined by the first electronic device, where the light use may be a low use frequency or a long use time of the first application by the first electronic device. By means of the first parameter it is determined whether a first update condition of the first application needs to be relaxed, in particular whether an automatic update of the first application in a discharged state of the first electronic device is supported.
The corresponding relation between the first parameter and the first judging result is specifically:
under the condition that the first parameter is larger than or equal to a set value, determining that the first judgment result supports automatic updating of the first application in a discharge state of the first electronic equipment;
the set value is a limit for relaxing the updating condition, when the first parameter is greater than or equal to the set value, the first electronic device is indicated to be heavily used for the first application, and by updating the first application in time, a user can provide good user experience in the process of using the first application, so that the first updating condition of the first application can be properly relaxed, the first application is supported to be automatically updated in the discharging state of the electronic device, and more scenes supporting the first application to be automatically updated exist.
And under the condition that the first parameter is smaller than a set value, determining that the first judgment result does not support automatic updating of the first application in the discharging state of the first electronic equipment.
When the first parameter is smaller than the set value, the first electronic device indicates that the first application is slightly used or moderately used, and the requirement of rapidly updating the first application does not exist, so that the first updating condition of the first application does not need to be relaxed, and automatic updating of the first application in the discharging state of the first electronic device is not supported. In practical application, the setting of the setting value can be adjusted according to the requirement of the user or the resource condition of the electronic equipment, and when the user needs more applications to update automatically, or the resource of the electronic equipment can support more applications to update automatically, the setting value can be adjusted downwards.
In an embodiment, as shown in fig. 3, before determining the first decision 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 characterizes the proportion that the first using time of the first electronic equipment to the first application is longer than the using time of at least two electronic equipment to the first application; the fourth parameter characterizes a proportion of the first usage time period to a second usage time period of the electronic device.
The first using time of the first electronic device to the first application is obtained through the embedded point data, wherein the first using time can be daily using time, and then the using time of at least two electronic devices to the first application is obtained through big data statistics, so that the proportion of the first using time longer than the using time of at least two electronic devices to the first application can be determined, the obtained proportion value is determined to be a third parameter, in practical application, the proportion value is unified into a percentage form, and the using time of other electronic devices with the first using time longer than 80% to the first application can be determined to be 80.
After a first use time length of the first electronic device for the first application is obtained, determining a second use time length of the electronic device, where the second use time length is a total use time length for the first electronic device, and obtaining a fourth parameter through a ratio value between the first use time length and the second use time length, where the fourth parameter may be obtained by, for example, obtaining that when the first use time length is 3 hours and the second use time length is 5 hours, the fourth parameter is 0.6.
S302: and determining the first parameter according to the third parameter and/or the fourth parameter.
After determining the third parameter and the fourth parameter, the third parameter and the fourth parameter are multiplied to obtain the first parameter, where, for example, in the case that the third parameter is 80 and the fourth parameter is 0.6, the first parameter=80×0.6=48.
In practical applications, the first parameter may be determined by the third parameter and the fourth parameter, or the first parameter may be determined by the fourth parameter, for example, in a case that the usage time of the first application by other electronic devices cannot be obtained by big data statistics, the third parameter may not 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: a first update condition of the first application that matches the first determination result is determined.
The update conditions of the application include different sub-conditions, for example, the update conditions of the application include a charging condition of the electronic device, an electric quantity condition, a temperature condition, a network condition, and the like, where the first update condition of the first application determined in the embodiment of the present application is matched with the first determination result, and for example, when the first determination result indicates that the first application is supported to be automatically updated in the discharging state of the first electronic device, the charging condition of the electronic device in the determined first update condition of the first application is matched with the first determination result, that is, the charging condition of the electronic device in the first update condition of the first application supports to be automatically updated in the discharging state of the first application, and when the first determination result indicates that the first determination result does not support to be automatically updated in the discharging state of the first electronic device, the charging condition of the electronic device in the determined first update condition of the first application also does not support to be automatically updated in the discharging state of the first application.
In practical applications, the first determination result does not affect other sub-conditions in the first update condition, for example, in update conditions corresponding to two applications with different first determination results, the electric quantity condition, the temperature condition, the network condition and the like are the same except for the charging condition of the electronic device, and the first update condition of the first application matched with the first determination result allows the first application to be automatically updated in the discharging state of the electronic device, so that the condition for automatically updating the first application is relaxed.
In an embodiment, as shown in fig. 4, the determining the first update condition of the first application that matches 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 affects the charging condition of the electronic device in the first update condition of the first application, while for other conditions in the first update condition of the first application, it is necessary to determine by other information of the first electronic device. In the embodiment of the application, the first information is an operating environment of the first electronic device, wherein the first information includes a version of an operating system of the electronic device, an international mobile equipment identification code (IMEI, international Mobile Equipment Identity) of the electronic device, a central processing unit (CPU, central Processing Unit) model of the electronic device, and the like, and the second update condition is determined based on the first information, and the second update condition includes different condition components such as a charging condition, an electric quantity condition, a temperature condition, a display condition, a network condition, and the like of the electronic device. In practical application, the second update condition is a condition that the first electronic device executes automatic update.
S402: and adjusting the second updating condition based on the first judging result to generate a first updating condition of the first application.
In practical application, the second update condition may be regarded as an initial update condition configured by the first application, and after the second update condition is properly adjusted according to the use condition of the first electronic device for the first application, a first update condition of the first application is obtained, where, on the basis of the second update condition, after the charging condition of the first electronic device in the second update condition is adjusted to match with the first determination result, the obtained update condition is the first update condition of the first application, and, for example, when the first determination result is that the first determination result supports automatic update of the first application 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 automatic update of the first application in the discharging state, and conditions other than the charging condition of the first electronic device are kept unchanged, thereby obtaining the first update condition of the first application. And when the first judgment result shows that the first application is not supported to be automatically updated in the discharging state of the first electronic equipment, adjusting the charging condition of the first electronic equipment in the second updating condition to be not supported to be automatically updated in the discharging state, and keeping the conditions except the charging condition of the first electronic equipment unchanged, so that the first updating condition of the first application is obtained.
In an embodiment, as shown in fig. 5, the determining the first update condition of the first application that matches the first determination result includes:
s501: determining a second parameter if the first decision result characterization supports automatic updating of the first application in a discharged state of the first electronic device; the second parameter characterizes a maximum flow that the first application is allowed to consume when automatically updating.
Under the condition that the first judgment result characterizes and supports automatic updating of the first application in a discharging state of the first electronic equipment, determining a second parameter, wherein the second parameter is the maximum CDN flow which is allowed to be consumed by the first application in the automatic updating process, and in the automatic updating process of the first application, the CDN flow is required to be consumed to complete updating of the first application, and by setting the second parameter, the peak value of a CDN flow curve of the first application in the automatic updating process can be limited, so that the CDN flow cost of the first application in the automatic updating process can be controlled.
S502: a first update condition of the first application is determined that matches the first determination result and the second parameter.
The first updating condition of the first application is matched with the first judging result and the second parameter, specifically, the first condition of the first application can support updating the first application in a discharging state of the first electronic device, the maximum flow allowed to be consumed by the first application in the updating process is limited, automatic updating of the first application is not supported under the condition that CDN flow exceeds the second parameter, larger CDN flow expense caused by automatic updating of the first application is avoided, and automatic updating of the first application is supported under the condition that CDN flow does not exceed the second parameter, so that CDN flow consumed by automatic updating of the first application can be kept in a range smaller than the second parameter.
S203: and updating the first application under the condition that the first application has an updating requirement and the first updating condition of the first application is met.
When the condition that the new version exists in the first application is detected, the first application with the update requirement can be determined, the first application with the update requirement is automatically updated under the condition that the first update condition of the first application is met, and in the practical application, the automatic update of the first application can be limited by setting the corresponding first update condition for the different first applications because the first update conditions corresponding to the different first applications are not the same, so that CDN traffic consumed in the update process of the first application can be more accurately controlled.
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 with updating requirements exist and corresponding first updating conditions are met, determining the updating sequence of the at least two first applications according to the first parameter of each first application in 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 met, the first applications needing to be updated are updated sequentially, and obvious peaks of CDN traffic curves caused by the simultaneous updating of the first applications are avoided. In practical applications, the update sequence of the plurality of first applications needing to be updated is determined through 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 indicated to be larger, the update 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 indicated to be lower, therefore, the update sequence of at least two first applications can be determined according to the first parameter, and the use experience of a user can be ensured in the process that the first electronic device uses the first application.
S602: and updating the at least two first applications based on the determined updating 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 used heavily can be ensured to be updated preferentially, and a user can acquire better user experience in the process of using the first applications. In practical applications, the update sequence of the application supporting automatic update in the discharging state of the electronic device in the first update condition can be limited, and the update sequence of the application not supporting automatic update in the discharging state of the electronic device in the first update condition is not limited, so that a plurality of first applications can be updated orderly, and CDN flow consumed by the application in the update process can be better controlled.
In an embodiment, as shown in fig. 7, the method further comprises:
s701: determining CDN traffic of a first content delivery network; and the first CDN traffic characterizes CDN traffic generated by the automatic update of the first application.
And in the process of automatically updating the first application, acquiring first CDN traffic generated by the first application in the process of automatically updating, wherein the first CDN traffic can be depicted in a graph form.
S702: and adjusting a first updating condition of the first application according to the difference value between the first CDN flow and the set second CDN flow.
The set second CDN flow is an ideal CDN flow value, when the CDN flow generated by the automatic update of the first application approaches to the ideal CDN flow value, the CDN flow cost generated by the automatic update 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 update condition are adjusted according to the difference value of the first CDN flow and the second CDN flow.
The difference between the first CDN flow and the second CDN flow is differentiated to be positive and negative, when the difference between the first CDN flow and the second CDN flow is less than 0, which indicates that the first CDN flow is lower than the second CDN flow, the electric quantity condition and the temperature condition in the update condition can be relaxed, specifically, the unit difference is set to be 0.2Tbps, when the difference between the first CDN flow and the second CDN flow is lower than 0.2Tbps, the limitation on the electric quantity condition is reduced by 1%, the limitation on the temperature condition is relaxed 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 adjustment is that the electric quantity condition is greater than 29%, and the temperature condition is lower than 41 ℃. When the difference between the first CDN flow and the second CDN flow is greater than 0, which indicates that the first CDN flow is higher than the second CDN flow, it is necessary to further limit the power condition and the temperature condition in the update condition, specifically, the unit difference is set to 0.2Tbps, and when the difference between the first CDN flow and the second CDN flow exceeds 0.2Tbps, the limit in the power condition is increased by 1%, the limit in the temperature is increased by 1 ℃, for example, the power condition in the first update condition is greater than 30%, the temperature condition is lower than 40 ℃, the adjusted first update condition is the power condition is greater than 31%, and the temperature condition is lower than 30 ℃.
In the embodiment of the application, the first judging result is determined according to the use condition of the first electronic equipment on the first application, whether the first application is automatically updated in the discharge state of the first electronic equipment can be determined through the first judging result, the first updating condition of the first application matched with the first judging result is determined, and the first application is updated under the condition that the first application has updating requirements and the first updating condition of the first application is met, so that the first updating condition of the first application can be adjusted through the use condition of the first electronic equipment on the first application, the first updating condition of the first application is properly relaxed, CDN flow can be controlled more accurately, and the cost of the first application for consuming CDN flow in the automatic updating process is reduced.
The application also provides an application embodiment, as shown in fig. 8, and fig. 8 shows a flow diagram of application update. In fig. 8, an operating environment of an electronic device is acquired, and global update conditions are set according to the operating environment of the electronic device. And determining a first judging result according to the use condition of the electronic equipment on the first application, wherein the first judging result is used for determining whether the first application is supported to be automatically updated in the discharging state of the electronic equipment. And under the condition that the first judgment result characterization does not support updating the first application in the discharging state of the electronic equipment, the charging state of the electronic equipment in the global updating condition is adjusted to be matched with the first judgment result, so that a first updating condition corresponding to the first application is obtained. Under the condition that the first judging result representation supports updating the first application 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 judging result and the maximum CDN flow allowed to be consumed by the first application in the automatic updating process, so as to obtain the 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 automatic updating process of the first application, a first updating condition is adjusted according to the difference value between the actual CDN flow of the first application in the automatic updating process and the preset CDN flow.
In order to implement the application updating method of the embodiment of the present application, the embodiment of the present application further provides an application updating device, as shown in fig. 9, where the device includes:
a first determining unit 901, configured to determine a first determination result according to a first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not;
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 there is an update requirement for the first application and a first update condition of the first application is satisfied.
In an embodiment, when determining the first determination result according to the first parameter, the first determining unit 901 is further configured to:
under the condition that the first parameter is larger than or equal to a set value, determining that the first judgment result supports automatic updating of the first application in a discharge state of the first electronic equipment;
and under the condition that the first parameter is smaller than a set value, determining that the first judgment result does not support automatic updating of the first application in the discharging state of the first electronic equipment.
In an embodiment, the second determining unit 902 is further configured to, when determining a first update condition of the first application that matches the first determination result:
determining a second updating condition for the first electronic equipment to execute automatic updating according to the first information; the first information characterizes the running environment of the first electronic equipment;
and adjusting the second updating condition based on the first judging result to generate a first updating condition of the first application.
In an embodiment, the second determining unit 902, when determining a first update condition of the first application that matches the first determination result, is further configured to:
determining a second parameter under the condition that the first judgment result supports automatic updating of the first application in the discharging state of the first electronic equipment; the second parameter characterizes the maximum flow allowed to be consumed by the first application when the first application is automatically updated;
a first update condition of the first application is determined 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 using time period of the first electronic device on the first application is longer than a using time period of at least two electronic devices on the first application; the fourth parameter characterizes the proportion of the first use duration to the second use duration of the electronic device;
and determining the first parameter according to the third parameter and/or the fourth parameter.
In an embodiment, when updating the first application, the updating unit 903 is further configured to:
under the condition that at least two first applications with updating requirements and corresponding first updating conditions are met, determining updating sequences of the at least two first applications according to first parameters of each of the at least two first applications;
and updating the at least two first applications based on the determined updating sequence.
In an embodiment, the device is further configured to:
determining CDN traffic of a first content delivery network; the first CDN traffic characterizes CDN traffic generated by the first application for automatic update;
and adjusting a first updating condition of the first application according to the difference value between the first CDN flow and the 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 device. Of course, the processor needs to execute the program stored in the memory to realize the functions of the program modules.
It should be noted that, when the application updating device provided in the embodiment of fig. 9 performs application updating, only the division of each program module is used as an example, and in practical application, the process allocation may be performed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processes described above. In addition, the application updating device and the application updating method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the application updating device and the application updating method are detailed in the method embodiments and are not repeated herein.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present application, the 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 of 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 devices and is used for executing the application updating method provided by one or more technical schemes when running the computer program. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications 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. But for clarity of illustration 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. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). 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 with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. The processor 2 described above may be a general purpose processor, 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 embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The corresponding flow in each method of the embodiments of the present application is implemented when the processor 2 executes the program, and for brevity, will not be described in detail herein.
In an exemplary embodiment, the present application also provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program executable by the processor 2 for performing the steps of the method described above. The computer readable storage medium may be 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 manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within 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 updating method, comprising:
determining a first judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not;
determining a first update condition of the first application that matches the first determination result;
and updating the first application under the condition that the first application has an updating requirement and the first updating condition of the first application is met.
2. The method of claim 1, wherein determining a first decision result based on the first parameter comprises:
under the condition that the first parameter is larger than or equal to a set value, determining that the first judgment result supports automatic updating of the first application in a discharge state of the first electronic equipment;
and under the condition that the first parameter is smaller than a set value, determining that the first judgment result does not support automatic updating of the first application in the discharging state of the first electronic equipment.
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 characterizes the running environment of the first electronic equipment;
and adjusting the second updating condition based on the first judging 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 under the condition that the first judgment result supports automatic updating of the first application in the discharging state of the first electronic equipment; the second parameter characterizes the maximum flow allowed to be consumed by the first application when the first application is automatically updated;
a first update condition of the first application is determined that matches the first determination result and the second parameter.
5. The method of claim 1, wherein prior to determining the first decision result based on the first parameter, the method comprises:
determining a third parameter and/or a fourth parameter of the first application; the third parameter characterizes the proportion that the first using time of the first electronic equipment to the first application is longer than the using time of at least two electronic equipment to the first application; the fourth parameter characterizes the proportion of the first use duration to the second use duration of the electronic device;
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 with updating requirements and corresponding first updating conditions are met, determining updating sequences of the at least two first applications according to first parameters of each of the at least two first applications;
and updating the at least two first applications based on the determined updating sequence.
7. The method according to claim 1, wherein the method further comprises:
determining CDN traffic of a first content delivery network; the first CDN traffic characterizes CDN traffic generated by the first application for automatic update;
and adjusting a first updating condition of the first application according to the difference value between the first CDN flow and the set second CDN flow.
8. An application updating apparatus, comprising:
the first determining unit is used for determining a first judging result according to the first parameter; the first parameter characterizes the use condition of the first electronic equipment on the first application; the first judging result characterizes whether the first application is automatically updated in a discharging state of the first electronic equipment or not;
A second determining unit configured to determine a first update condition of the first application that matches the first determination result;
and the updating unit is used for updating the first application under the condition that the first application has an updating requirement and the 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 of claims 1 to 7 when the computer program is run.
10. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any 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 CN114363305A (en) 2022-04-15
CN114363305B true 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
CN105827434A (en) * 2016-02-02 2016-08-03 乐视云计算有限公司 Software automatic updating method and 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
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
CN114363305A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN106937534B (en) Mechanism for extending cycle life of a battery
US20140204877A1 (en) Pre-fetching of assets to user equipment
CN110262827B (en) Incremental updating method and device, storage medium and electronic equipment
US20240012754A1 (en) Method and apparatus for adjusting cache memory and computer device
CN111245732B (en) Flow control method, device and equipment
US20190261351A1 (en) Function scheduling method, device, and system
EP3001724B1 (en) Wifi station scheduling and processing method and device
CN112083988A (en) Screen refresh rate control method, mobile terminal and computer readable storage medium
CN106878030B (en) Charging method and device
WO2019058629A1 (en) Service control device, charging management server, service control method, charging information management method, and computer-readable medium
CN114363305B (en) Application updating method and device, electronic equipment and storage medium
WO2021012506A1 (en) Method and apparatus for realizing load balancing in speech recognition system, and computer device
CN111796658A (en) Information processing method, electronic equipment and computer readable storage medium
CN113872871B (en) Network acceleration method, system, device, storage medium and computer program product
CN106714258B (en) Channel switching method and device
CN115348656A (en) MiFi device, power adjusting method thereof, electronic device and system
CN114466365A (en) Spectrum resource acquisition method, spectrum resource acquisition device and computer readable storage medium
CN113873003A (en) Data transmission control method and system between storage end and communication end in Internet of things
CN111385167A (en) Network connection recovery method, device, computer device and storage medium
CN112937366A (en) Battery charging method and device and vehicle
CN116886535A (en) NB-IoT terminal remote upgrade method, apparatus, device and storage medium
CN112203333A (en) Connection release method and device, electronic equipment and storage medium
CN112835527A (en) Expansion method and device based on MINIO cloud storage and electronic equipment
CN116483767A (en) Command response method and device, electronic equipment and storage medium
CN116208672A (en) Scheduling method, electronic device, 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
GR01 Patent grant
GR01 Patent grant