CN111240729A - Software updating method, electronic device and medium - Google Patents

Software updating method, electronic device and medium Download PDF

Info

Publication number
CN111240729A
CN111240729A CN202010071484.4A CN202010071484A CN111240729A CN 111240729 A CN111240729 A CN 111240729A CN 202010071484 A CN202010071484 A CN 202010071484A CN 111240729 A CN111240729 A CN 111240729A
Authority
CN
China
Prior art keywords
target
trigger condition
electronic device
condition
software
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
CN202010071484.4A
Other languages
Chinese (zh)
Other versions
CN111240729B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010071484.4A priority Critical patent/CN111240729B/en
Publication of CN111240729A publication Critical patent/CN111240729A/en
Application granted granted Critical
Publication of CN111240729B publication Critical patent/CN111240729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Abstract

The embodiment of the invention discloses a software updating method, electronic equipment and a medium. The software updating method comprises the following steps: under the condition that the target software fails to be updated, acquiring initial trigger conditions and target equipment data associated with the failure of updating; adjusting the initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition; and updating the target software based on the target trigger condition. The embodiment of the invention can solve the problem of low software updating efficiency.

Description

Software updating method, electronic device and medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a software updating method, electronic equipment and a medium.
Background
With the development of electronic technology, more and more software can be run by electronic equipment. In order to improve the security and software performance of electronic devices, electronic devices need to continuously update higher-level software versions offered by software developers.
The current software updating methods generally have two types: manual update and silent update. The manual update needs to be triggered by a user to update, and under the condition that the user does not trigger the update of the software for a long time, the software is kept in a low-level version, so that the update efficiency of the software is reduced, and the use experience of the user is also reduced. The existing silent updating method can realize automatic updating of software only when the electronic device meets all preset triggering conditions, and more preset triggering conditions can be set for improving the use experience of a user, so that the triggering success of software updating is low, and the updating efficiency of the software is also reduced.
Disclosure of Invention
The embodiment of the invention provides a software updating method, electronic equipment and a medium, and aims to solve the problem of low software updating efficiency.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a software updating method, which is applied to an electronic device, and the method includes:
under the condition that the target software fails to be updated, acquiring initial trigger conditions and target equipment data associated with the failure of updating;
adjusting the initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition;
and updating the target software based on the target trigger condition.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the data acquisition module is used for acquiring initial trigger conditions and target equipment data which are associated with update failure under the condition that the target software fails to update;
the condition adjusting module is used for adjusting the initial triggering condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target triggering condition;
and the software updating module is used for updating the target software based on the target triggering condition.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, and when the computer program is executed by the processor, the steps of the software updating method according to the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the software updating method according to the first aspect.
In the embodiment of the invention, the initial trigger condition and the target device data which cause the update failure can be obtained under the condition that the target software fails to be updated, then the initial trigger condition which causes the update failure is adjusted according to the target device data and the preset condition associated with the target device data to obtain the target trigger condition which can trigger the target software to be updated by using the target device data, and finally the target software is updated based on the target trigger condition, so that the actual use condition of the electronic device can be determined based on the target device data which cause the update failure, the initial trigger condition which causes the update failure is dynamically adjusted, and the silent update efficiency and success rate of the target software are improved.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
FIG. 1 is a schematic interface diagram of a conventional update management page;
FIG. 2 is a flowchart illustrating a software update method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a software update method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, after an electronic device downloads a piece of software, if the version of the software is upgraded, the software needs to be updated through an application store, a browser, an application treasure, or the like. In general, software can be updated by manual update, silent update, and the like.
The manual updating is an updating mode that a user actively selects whether to update the software with the version upgraded in an updating page, and the silent updating is an updating mode that the application store system in the electronic equipment automatically updates the software with the version upgraded under the condition of screen locking or in a night time period.
Fig. 1 is a schematic interface diagram illustrating an update management page according to the related art. As shown in fig. 1, the user needs to enter the update management page, see the update prompt for the version-upgraded software, such as an "update" button, and click an "update" button behind the software that the user wants to update, to update the software. Therefore, manual updating completely needs to be actively triggered by a user, and updating cannot be performed without perception of the user.
Because manual updating completely needs subjective initiative triggering of a user and updating efficiency cannot be controlled, under the condition that the user does not trigger updating on software for a long time, the software is kept in a low-level version, so that the updating efficiency of the software is reduced, and the use experience of the user is also reduced.
The trigger condition of the silent update must follow a certain rule, and the silent update of each vendor generally follows the following rule at present:
1. since the silent update requires downloading the update package and consumes the power of the electronic device, the remaining power of the electronic device must be greater than the preset power threshold to perform silent update. For example, the preset power threshold may be 30% of the total power, and the electronic device may perform silent updating only when the remaining power of the electronic device is greater than 30% of the total power; alternatively, the electronic device may perform silent updating while charging.
2. The silent update is to download an update package through a networking manner, and the traffic of the electronic device needs to be consumed, so the silent update is generally performed when the network environment of the electronic device is a wireless local area network.
3. The silent update generally needs to avoid updating software in the background during the use of the user, which causes high power consumption of the electronic device and even heating phenomenon, therefore, the electronic device generally performs silent update under the condition of screen locking or in a night period.
Therefore, in order to improve the use experience of a user, the conventional silent updating method can realize automatic updating of software only when the electronic device meets all preset triggering conditions, and the silent updating capability is limited by various preset triggering conditions, so that the triggering success of software updating is low, and the updating efficiency of the software is also reduced. Therefore, the software cannot reach the level of 100% updating of the electronic equipment, and for manufacturers with a large base number, even if 1% of the electronic equipment is not updated in time, bad user experience is brought.
In order to solve the problem of the prior art, embodiments of the present invention provide a software updating method, an electronic device, and a medium, so that the electronic device can intelligently obtain a trigger condition for silent updating, and adjust the trigger condition for silent updating when silent updating fails, so that the adjusted trigger condition is no longer limited by the previous trigger condition, thereby improving software updating efficiency. The following first describes a software updating method provided in an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a software updating method according to an embodiment of the present invention.
In some embodiments of the present invention, the method shown in fig. 2 may be performed by an electronic device, which may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
As shown in fig. 2, the software updating method may include:
s110, under the condition that the target software fails to be updated, acquiring initial trigger conditions and target equipment data associated with the failure to be updated;
s120, adjusting an initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition;
and S130, updating the target software based on the target trigger condition.
In the embodiment of the invention, the initial trigger condition and the target device data which cause the update failure can be obtained under the condition that the target software fails to be updated, then the initial trigger condition which causes the update failure is adjusted according to the target device data and the preset condition associated with the target device data to obtain the target trigger condition which can trigger the target software to be updated by using the target device data, and finally the target software is updated based on the target trigger condition, so that the actual use condition of the electronic device can be determined based on the target device data which cause the update failure, the initial trigger condition which causes the update failure is dynamically adjusted, and the silent update efficiency and success rate of the target software are improved.
In some embodiments of the present invention, the target software may be full version-up software that is automatically acquired by the electronic device. In other embodiments of the present invention, the target software may also specify, for the user automatically acquired by the electronic device, the software for performing the version upgrade among the software for performing the silent update. In still other embodiments of the present invention, the target software may also be any one of a plurality of version-upgraded software automatically acquired by the electronic device.
In some embodiments of the present invention, the failure of the target software update may be a failure of the software update during the silent update of the target software. In other embodiments of the present invention, the failure of the target software update may also trigger an update failure in the process of triggering a silent update for the target software.
In S110 of some embodiments of the present invention, in a case that the target software update failure is a trigger silent update failure, an initial trigger condition and target device data that cause the trigger update failure may be obtained from among a plurality of preset trigger conditions.
In some embodiments of the present invention, the initial trigger condition includes that the network environment of the electronic device is a wireless local area network, the remaining power of the electronic device reaches a preset power threshold, the available memory of the electronic device reaches a preset memory threshold, the temperature of the target functional device is less than or equal to a preset temperature threshold, the operation mode of the electronic device is at least one of a screen mode and a night mode. In the case that the network environment of the electronic device is a wireless local area network, the remaining power of the electronic device reaches the preset power threshold, the available memory of the electronic device reaches the preset memory threshold, the temperature of the target functional device is less than or equal to the preset temperature threshold, the operation mode of the electronic device is the sniff mode, and the operation mode is the night mode, both of the preset trigger conditions, the initial trigger condition may be at least one of the preset trigger conditions. The target function device may be a processor, a memory, a motherboard, a screen, or the like, which is not specifically limited in this embodiment of the present invention.
The software updating method provided by the embodiment of the invention is explained in detail below for different initial triggering conditions.
In some embodiments of the present invention, the initial trigger condition may include that the network environment of the electronic device is a wireless local area network.
In these embodiments, optionally, the specific method for acquiring the target device data associated with the update failure described in S110 may include:
and determining the mobile network flow residual value according to the subscriber identity card information and/or the historical flow use data.
That is, in the case where the initial trigger condition includes that the network environment of the electronic device is a wireless local area network, the target device data may include a mobile network traffic residual.
In general, if a Subscriber Identity Module (SIM) card installed on the electronic device includes an infinite traffic mobile card identifier, it indicates that the SIM card is an infinite traffic mobile card, and it may be determined that the mobile network traffic is infinite traffic and the mobile network traffic residual is infinite traffic. In addition, if it can be determined that the historical traffic used by the user every month is greater than the preset traffic lower limit value according to the historical traffic usage data, or it is determined that the user frequently uses mobile traffic to watch videos, etc., it can also be described that the SIM card is an infinite traffic mobile card, it can be determined that the mobile network traffic is infinite traffic, and the mobile network traffic remaining value is infinite traffic.
In some embodiments, it may be determined whether the SIM card information has an unlimited traffic mobile card identifier, if the SIM card information has an unlimited traffic mobile card identifier, it may be determined that the mobile network traffic is unlimited traffic, and the mobile network traffic margin is greater than or equal to a predetermined traffic threshold, if the SIM card information does not have an unlimited traffic mobile card identifier, it may be determined whether a frequency of an application program of a category where a user consumes more traffic through the mobile traffic using video, audio, or the like is greater than a preset frequency threshold, if the frequency is greater than the preset frequency threshold, it may be determined that the mobile network traffic is unlimited traffic, and the mobile network traffic margin is greater than or equal to a predetermined traffic threshold, if the frequency is not greater than the preset frequency threshold, it may be determined whether historical traffic used every month is greater than a preset traffic lower limit, and if the traffic is greater than the preset traffic lower limit, it may be determined that the mobile network traffic margin, otherwise, it may be determined that the mobile network traffic residual is less than the predetermined traffic threshold.
In these embodiments, optionally, the specific method of S120 may include:
and if the mobile network flow residual value is greater than or equal to the preset flow threshold value, the type of the network environment is not limited any more, and a target trigger condition is obtained.
Under the condition that the initial trigger condition includes that the network environment is a wireless local area network and the software update fails due to the initial trigger condition, if the mobile network traffic residual value is greater than or equal to the predetermined traffic threshold value, it indicates that the mobile network traffic of the user is sufficient, and the traffic consumed by downloading the general software update package will not cause loss to the mobile network traffic cost of the user, so under this condition, even if the network environment of the electronic device is a mobile network, the silent update can be normally performed, therefore, the initial trigger condition in at least one preset trigger condition can be adjusted to no longer limit the type of the network environment, that is, the network environment is any type of network, so as to obtain the target trigger condition corresponding to the initial trigger condition, and keep other preset trigger conditions unchanged, so that under the condition that the user uses more mobile networks, the success rate of silent updating is effectively improved, and the efficiency of software updating is improved.
In other embodiments of the present invention, the initial trigger condition may further include that the remaining power is greater than or equal to a preset power threshold.
In these embodiments, optionally, the specific method for acquiring the target device data associated with the update failure described in S110 may include:
and estimating the endurance time of the electronic equipment according to the current residual electric quantity.
Generally, the reason why the remaining power is required to be greater than or equal to the preset power threshold during the silent update is to ensure that the electronic device has a relatively sufficient power and the power of the electronic device is not exhausted due to the silent update. However, with the advancement of technology, the endurance of electronic devices with the same remaining capacity is increasing, and the endurance of electronic devices with different models may be different with the same remaining capacity.
In some embodiments, a historical duration corresponding to the current electric quantity of the electronic device in the first preset time period may be obtained, for example, the historical duration in the last month is obtained, and the average value of the historical durations is used as the cruising duration.
In these embodiments, optionally, the specific method of S120 may include:
and if the cruising duration is greater than or equal to the preset duration, not limiting the value of the residual electric quantity any more, and obtaining the target trigger condition.
Specifically, if the cruising duration reaches the preset cruising duration referred to when the preset electric quantity threshold is designed, it indicates that the current remaining electric quantity is sufficient to complete silent updating, so that the initial trigger condition in at least one preset trigger condition can be adjusted to a value that does not limit the remaining electric quantity any more, so as to obtain a target trigger condition corresponding to the initial trigger condition, and the other preset trigger conditions are kept unchanged, so that silent updating can be performed even when the current remaining electric quantity of the electronic device is low, the success rate of silent updating is effectively improved, and the efficiency of software updating is improved.
In other embodiments of the present invention, the initial trigger condition may further include that the available memory is greater than or equal to a preset memory threshold. Optionally, the target device data associated with the update failure may include a currently available memory of the electronic device.
In these embodiments, optionally, the specific method of S120 may include:
and under the condition that the memory required by the target software is smaller than the current available memory, when the software update of the target software is triggered, the current available memory is not limited any more so as to obtain the target trigger condition.
Taking the target software as the second of the two versions of upgraded software as an example, the current available memory of the electronic device is 1GB, the memory required by the first software is 1.5GB, the memory required by the second software is 500MB, and the initial trigger condition is that the available memory of the electronic device reaches the memory required by all versions of upgraded software. At this point, it may be determined that the currently available memory is not sufficient to achieve the memory required by the full version of the upgraded software, and the silent update fails. And the memory required by the target software is smaller than the current available memory, so that the initial trigger condition in at least one preset trigger condition for updating the target software in a silent mode can be adjusted to no longer limit the current available memory so as to obtain the target trigger condition, and other preset trigger conditions are kept unchanged, so that the storage space availability of the electronic equipment is maximized.
In some embodiments of the invention, the initial trigger condition may further include the device temperature being less than or equal to a first temperature threshold. Optionally, the target device data associated with the update failure may include an ambient temperature.
In these embodiments, optionally, the specific method of S120 may include:
and under the condition that the ambient temperature is greater than the second temperature threshold, adjusting the first temperature threshold to the target equipment temperature corresponding to the ambient temperature to obtain a target trigger condition.
In order to avoid the influence on the operating speed and the service life of the electronic device caused by software update when the device temperature of the electronic device is too high, a first temperature threshold value allowing silent update is generally set, but the device temperature is also influenced by the ambient temperature, and the device temperature is increased along with the ambient temperature when the ambient temperature is high in summer. In order to avoid that the software update fails due to a high ambient temperature, when the device temperature is greater than a first temperature threshold, for example, the device temperature is greater than 38 ℃, the ambient temperature at which the electronic device is located may be obtained, if the ambient temperature is greater than a second temperature threshold, for example, the ambient temperature is greater than 32 ℃, a target device temperature corresponding to the current ambient temperature may be found according to a preset correspondence between the ambient temperature and the device temperature, and the first temperature threshold in the initial trigger condition is adjusted to the target device temperature corresponding to the ambient temperature, so as to obtain the target trigger condition. Therefore, under the condition of ensuring that the user experience is not influenced, the limitation of the equipment temperature is reduced as much as possible, the success rate of silent updating is effectively improved, and the efficiency of software updating is improved.
In other embodiments of the present invention, the initial trigger condition may further include at least one of the operation mode being a screen turn-off mode and the operation mode being a night mode.
In these embodiments, optionally, the specific method for acquiring the target device data associated with the update failure described in S110 may include:
and determining the running state of the equipment according to the foreground running application data and/or the user operation data.
In general, in order to avoid affecting the running speed of the foreground running application of the electronic device, so as to avoid the temperature of the device from being too high, and further, to avoid affecting the use of the electronic device by the user, therefore, the silent update is triggered when the running mode of the electronic device is the sniff mode or the running mode is the night mode. Sometimes, although the operation mode of the electronic device is not the screen-saving mode or the night mode, the electronic device does not have a foreground running application, for example, the user plays a song through the background running application, or the electronic device is in the bright screen mode but the user does not have any operation.
In some embodiments, foreground running application data may be obtained, and if no foreground running application exists within a second preset time period, the device running state may be determined to be an idle state.
In other embodiments, the user operation data may be acquired, and if the user operation data is not received within the second preset time period, the device operation state may be determined to be an idle state.
In these embodiments, optionally, the specific method of S120 may include:
and if the equipment running state is the idle state, the running mode of the electronic equipment is not limited any more so as to obtain the target trigger condition.
Specifically, if the device running state is the idle state, it indicates that the use of the user is not affected by performing the silent update, so that the initial trigger condition in the at least one preset trigger condition is adjusted to no longer limit the running mode of the electronic device, so as to obtain the target trigger condition, and the other preset trigger conditions are kept unchanged, thereby effectively improving the success rate of the silent update and improving the efficiency of the software update.
In other embodiments of the present invention, the initial triggering condition may further include that the operation mode is a night mode.
In these embodiments, optionally, the specific method for acquiring the target device data associated with the update failure described in S110 may include:
and determining a first use frequency corresponding to the night mode and a second use frequency corresponding to the day mode according to the operation historical data.
In general, in order to avoid affecting the running speed of the foreground running application of the electronic device, so as to avoid the temperature of the device from being too high, and further, to avoid affecting the use of the electronic device by the user, therefore, the silent update is triggered when the running mode of the electronic device is the night mode. Sometimes, if the user works at night and takes a rest in daytime, the user has a habit of operating the electronic device at night, and the night mode is not set, and at this time, the initial trigger condition is set to the operation mode which is the night mode, and the silent update cannot be triggered, and under these conditions, the trigger mode for adjusting the silent update can be considered.
Accordingly, it is possible to acquire the operation history data and determine a first usage frequency of the user in the night mode and a second usage frequency in the day mode.
In these embodiments, optionally, the specific method of S120 may include:
and if the second using frequency is greater than the first using frequency, the operation mode of the electronic equipment is not limited any more so as to obtain the target triggering condition.
In the case that the second usage frequency is greater than the first usage frequency, it indicates that the user uses the electronic device more frequently at night than during the daytime, and the electronic device is more suitable for silent updating in the daytime mode. Therefore, the initial trigger condition of the at least one preset trigger condition can be adjusted to no longer limit the operation mode of the electronic device, so as to obtain the target trigger condition, and the other preset trigger conditions are kept unchanged.
In S130 according to some embodiments of the present invention, after the target trigger condition is obtained, the target software may be triggered by the silent update based on at least one preset trigger condition obtained by adjusting the initial trigger condition to the target trigger condition, so as to complete the update of the target software.
In some embodiments of the present invention, after S120, the software updating method may further include:
and outputting prompt information, wherein the prompt information comprises distinguishing information between the initial trigger condition and the target trigger condition.
In some embodiments, after the initial trigger condition is adjusted and the target trigger condition is obtained, before the target software is re-triggered to update, during the update of the target software, or after the target software is updated, prompt information may be output, where the prompt information may be used to characterize a difference between the initial trigger condition and the target trigger condition, that is, the prompt information may include information about the difference between the initial trigger condition and the target trigger condition, so that a user may clearly know an adjustment behavior of the electronic device on the initial trigger condition and an adjustment result.
In other embodiments, the electronic device may output the prompt message in a message popup mode, and leave the message popup in the message notification bar; the prompt information can also be output on a message notification page in the software updating application, and a notification identifier is added on an application icon of the software updating application.
In still other embodiments, the hints information can also include target device data, reasons for failure of the update, update data for the target software, and the like. The update information of the target software may specifically include an update version of the target software, a software size of the target software, update content, and the like.
In still other embodiments, the prompt information may further include modification suggestion information of the preset trigger condition of the silent update, where the modification suggestion information is used to prompt the user to adjust at least one preset trigger condition. Specifically, when the electronic device triggers the silent update failure by using the current preset trigger condition for multiple times, the reason of each failure may be summarized and analyzed, so as to prompt the user to modify the preset trigger condition. For example, during summer, the user may be prompted to raise the first temperature threshold, for example, the user may be prompted not to define the operation mode of the electronic device, for example, the user may be prompted not to define the type of network environment, and so on.
Fig. 3 is a flowchart illustrating a software updating method according to another embodiment of the present invention.
In some embodiments of the present invention, the method shown in fig. 3 may be performed by an electronic device, which may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
As shown in fig. 3, the software updating method may include:
s210, under the condition that the target software fails to be updated, acquiring initial trigger conditions and target equipment data associated with the failure to be updated;
s220, adjusting the initial trigger condition according to the target equipment data and the preset condition associated with the target equipment data to obtain a target trigger condition;
s230, updating the target software based on the target trigger condition;
s240, restoring the target trigger condition to the initial trigger condition.
S210-S230 are similar to the method embodiment shown in fig. 2, and are not described herein again.
In the embodiment of the present invention, after the update of the target software is completed, the target trigger condition needs to be restored to the initial trigger condition, so that the silent update is prevented from being continuously triggered after the target device data no longer satisfies the preset condition associated with the target device data, and further, the user experience is prevented from being reduced.
In summary, the embodiments of the present invention enable the electronic device to dynamically adjust its own silent update triggering condition after the target software fails to be updated, and each electronic device can be individually adjusted, thereby improving the efficiency and success rate of silent update for the target software.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
In some embodiments of the present invention, the electronic device 300 shown in fig. 4 may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
As shown in fig. 4, the electronic device 300 may include:
a data obtaining module 310, configured to, in a case that an update of target software fails, obtain an initial trigger condition and target device data associated with the update failure;
a condition adjusting module 320, configured to adjust an initial trigger condition according to the target device data and a preset condition associated with the target device data, to obtain a target trigger condition;
and the software updating module 330 is configured to update the target software based on the target trigger condition.
In the embodiment of the invention, the initial trigger condition and the target device data which cause the update failure can be obtained under the condition that the target software fails to be updated, then the initial trigger condition which causes the update failure is adjusted according to the target device data and the preset condition associated with the target device data to obtain the target trigger condition which can trigger the target software to be updated by using the target device data, and finally the target software is updated based on the target trigger condition, so that the actual use condition of the electronic device can be determined based on the target device data which cause the update failure, the initial trigger condition which causes the update failure is dynamically adjusted, and the silent update efficiency and success rate of the target software are improved.
In some embodiments of the present invention, the electronic device 300 may further include:
and the information output module is used for outputting prompt information after the initial trigger condition is adjusted and the target trigger condition is obtained, wherein the prompt information comprises the distinguishing information between the initial trigger condition and the target trigger condition.
In some embodiments of the present invention, the initial trigger condition includes that the network environment of the electronic device is a wireless local area network, the remaining power of the electronic device reaches a preset power threshold, the available memory of the electronic device reaches a preset memory threshold, the temperature of the target functional device is less than or equal to a preset temperature threshold, the operation mode of the electronic device is at least one of a screen mode and a night mode.
In some embodiments of the present invention, the initial trigger condition includes that the network environment of the electronic device is a wireless local area network;
in these embodiments, optionally, the data acquisition module 310 may include:
and the first acquisition submodule is used for determining the mobile network flow residual value according to the subscriber identity module card information and/or the historical flow use data.
In these embodiments, optionally, the condition adjusting module 320 may include:
and the first adjusting submodule is used for not limiting the type of the network environment any more and obtaining a target triggering condition if the mobile network flow residual value is greater than or equal to the preset flow threshold value.
In some embodiments of the present invention, the initial trigger condition includes a remaining power being greater than or equal to a preset power threshold.
In these embodiments, optionally, the data acquisition module 310 may include:
a second obtaining submodule for predicting the endurance time of the electronic equipment according to the current residual electric quantity
In these embodiments, optionally, the condition adjusting module 320 may include:
and the second adjusting submodule is used for not limiting the value of the residual electric quantity to obtain a target triggering condition if the cruising duration is greater than or equal to the preset duration.
In some embodiments of the present invention, the initial trigger condition includes that the available memory is greater than or equal to a preset memory threshold, and the target device data associated with the update failure includes the currently available memory.
In these embodiments, optionally, the condition adjusting module 320 may include:
and the third obtaining submodule is used for not limiting the current available memory when triggering the software update of the target software under the condition that the memory required by the target software is smaller than the current available memory so as to obtain the target triggering condition.
In some embodiments of the invention, the initial trigger condition comprises a device temperature being less than or equal to a first temperature threshold, the target device data associated with the update failure comprises an ambient temperature;
in these embodiments, optionally, the condition adjusting module 320 may include:
and the fourth obtaining submodule is used for adjusting the first temperature threshold to the target equipment temperature corresponding to the ambient temperature under the condition that the ambient temperature is greater than the second temperature threshold so as to obtain the target triggering condition.
In some embodiments of the present invention, the initial trigger condition includes at least one of the operation mode being a screen turn-off mode and the operation mode being a night mode;
in these embodiments, optionally, the data acquisition module 310 may include:
the third acquisition sub-module is used for determining the running state of the equipment according to the foreground running application data and/or the user operation data;
in these embodiments, optionally, the condition adjusting module 320 may include:
and the fifth obtaining submodule is used for not limiting the operation mode of the electronic equipment to obtain a target trigger condition if the operation state of the equipment is an idle state.
In some embodiments of the invention, the initial triggering condition includes that the operation mode is a night mode;
in these embodiments, optionally, the data acquisition module 310 may include:
the fourth obtaining submodule is used for determining a first use frequency corresponding to a night mode and a second use frequency corresponding to a day mode according to the operation historical data;
in these embodiments, optionally, the condition adjusting module 320 may include:
and the sixth obtaining submodule is used for not limiting the operation mode of the electronic equipment to obtain the target triggering condition if the second using frequency is greater than the first using frequency.
In some embodiments of the present invention, the electronic device 300 may further include:
and the condition restoring module is used for restoring the target triggering condition into the initial triggering condition after the target software is updated based on the target triggering condition.
It should be noted that the electronic device 300 provided in the embodiment of the present invention can implement each process and effect implemented by the electronic device in the method embodiments of fig. 2 to fig. 3, and the implementation principle of each process is similar, and is not described herein again to avoid repetition.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 5, the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to, in the event of a failure in updating the target software, obtain an initial trigger condition and target device data associated with the failure in updating; adjusting the initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition; and updating the target software based on the target trigger condition.
In the embodiment of the invention, the initial trigger condition and the target device data which cause the update failure can be obtained under the condition that the target software fails to be updated, then the initial trigger condition which causes the update failure is adjusted according to the target device data and the preset condition associated with the target device data to obtain the target trigger condition which can trigger the target software to be updated by using the target device data, and finally the target software is updated based on the target trigger condition, so that the actual use condition of the electronic device can be determined based on the target device data which cause the update failure, the initial trigger condition which causes the update failure is dynamically adjusted, and the silent update efficiency and success rate of the target software are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 5, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the software updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the software updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A software updating method applied to electronic equipment is characterized by comprising the following steps:
under the condition that the target software fails to be updated, acquiring initial trigger conditions and target equipment data associated with the failure of updating;
adjusting the initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition;
and updating the target software based on the target trigger condition.
2. The method of claim 1, wherein after adjusting the initial trigger condition to obtain a target trigger condition, the method further comprises:
and outputting prompt information, wherein the prompt information comprises distinguishing information between the initial trigger condition and the target trigger condition.
3. The method of claim 1, wherein the initial trigger condition comprises at least one of a network environment of the electronic device being a wireless local area network, a remaining power of the electronic device reaching a preset power threshold, an available memory of the electronic device reaching a preset memory threshold, a temperature of a target functional device being less than or equal to a preset temperature threshold, an operation mode of the electronic device being a breath-screen mode, and the operation mode being a night mode.
4. The method of claim 1, wherein the initial trigger condition comprises a network environment of the electronic device being a wireless local area network;
wherein the obtaining target device data associated with the update failure comprises:
determining a mobile network flow residual value according to the user identification card information and/or the historical flow use data;
the adjusting the initial trigger condition according to the target device data and a preset condition associated with the target device data to obtain a target trigger condition includes:
and if the mobile network flow residual value is greater than or equal to a preset flow threshold value, the type of the network environment is not limited any more, and the target trigger condition is obtained.
5. The method according to any one of claims 1-4, further comprising, after the updating the target software based on the target trigger condition:
and restoring the target trigger condition to the initial trigger condition.
6. An electronic device, comprising:
the data acquisition module is used for acquiring initial trigger conditions and target equipment data which are associated with update failure under the condition that the target software fails to update;
the condition adjusting module is used for adjusting the initial trigger condition according to the target equipment data and a preset condition associated with the target equipment data to obtain a target trigger condition;
and the software updating module is used for updating the target software based on the target triggering condition.
7. The electronic device of claim 6, further comprising:
and the information output module is used for outputting prompt information after the initial trigger condition is adjusted to obtain a target trigger condition, wherein the prompt information comprises the distinguishing information between the initial trigger condition and the target trigger condition.
8. The electronic device according to claim 6, wherein the initial trigger condition includes at least one of a network environment of the electronic device being a wireless local area network, a remaining power of the electronic device reaching a preset power threshold, an available memory of the electronic device reaching a preset memory threshold, a temperature of a target functional device being less than or equal to a preset temperature threshold, an operation mode of the electronic device being a breath-screen mode, and the operation mode being a night mode.
9. The electronic device of claim 6, wherein an initial trigger condition comprises a network environment of the electronic device being a wireless local area network;
wherein the data acquisition module comprises:
the first acquisition submodule is used for determining a mobile network flow residual value according to the user identification card information and/or the historical flow use data;
the condition adjusting module comprises:
and the first adjusting submodule is used for not limiting the type of the network environment any more and obtaining the target triggering condition if the mobile network flow residual value is greater than or equal to a preset flow threshold value.
10. The electronic device of claim 6, further comprising:
and the condition restoring module is used for restoring the target triggering condition to the initial triggering condition after the target software is updated based on the target triggering condition.
CN202010071484.4A 2020-01-21 2020-01-21 Software updating method, electronic device and medium Active CN111240729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071484.4A CN111240729B (en) 2020-01-21 2020-01-21 Software updating method, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071484.4A CN111240729B (en) 2020-01-21 2020-01-21 Software updating method, electronic device and medium

Publications (2)

Publication Number Publication Date
CN111240729A true CN111240729A (en) 2020-06-05
CN111240729B CN111240729B (en) 2023-03-14

Family

ID=70865139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071484.4A Active CN111240729B (en) 2020-01-21 2020-01-21 Software updating method, electronic device and medium

Country Status (1)

Country Link
CN (1) CN111240729B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363305A (en) * 2021-12-27 2022-04-15 广东明创软件科技有限公司 Application updating method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169311A1 (en) * 2013-12-18 2015-06-18 International Business Machines Corporation Automated Software Update Scheduling
CN105095006A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for repairing software installation failure
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal
CN107239295A (en) * 2016-03-29 2017-10-10 腾讯科技(深圳)有限公司 The method and software updating apparatus of a kind of software upgrading
US20180150290A1 (en) * 2015-05-26 2018-05-31 Kyocera Corporation Software update device, software update system, and software update method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169311A1 (en) * 2013-12-18 2015-06-18 International Business Machines Corporation Automated Software Update Scheduling
US20180150290A1 (en) * 2015-05-26 2018-05-31 Kyocera Corporation Software update device, software update system, and software update method
CN105095006A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for repairing software installation failure
CN107239295A (en) * 2016-03-29 2017-10-10 腾讯科技(深圳)有限公司 The method and software updating apparatus of a kind of software upgrading
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363305A (en) * 2021-12-27 2022-04-15 广东明创软件科技有限公司 Application updating method and device, electronic equipment and storage medium
CN114363305B (en) * 2021-12-27 2023-12-15 广东明创软件科技有限公司 Application updating method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111240729B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN109509473B (en) Voice control method and terminal equipment
CN110445924B (en) Network task execution method and terminal equipment
CN107861730B (en) Application processing method and mobile terminal
CN108270870B (en) Prompt message pushing method and device
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN110780940A (en) Application program loading method, electronic device and storage medium
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN110837327A (en) Message viewing method and terminal
CN107967153B (en) Application program management method and mobile terminal
CN109521920B (en) Application icon control method and terminal equipment
CN109101151B (en) Information display processing method and terminal equipment
CN111124753A (en) Application program control method, electronic equipment and server
CN111158485B (en) Screen control method and electronic equipment
CN111522575B (en) Application program upgrading method and electronic equipment
CN110995924B (en) Account management method and electronic equipment
CN110971507B (en) Information display method and electronic equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN108089935B (en) Application program management method and mobile terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN107704287B (en) Installation-free method for program application, mobile terminal and computer-readable storage medium
CN111240729B (en) Software updating method, electronic device and medium
CN111399715B (en) Interface display method and electronic equipment
CN111443847B (en) Push message processing method and electronic equipment
CN112612552A (en) Application program resource loading method and device, electronic equipment and readable storage medium
CN109902232B (en) Display control method and terminal

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