CN108712281B - Method, device, storage medium and terminal for triggering detection management application update - Google Patents

Method, device, storage medium and terminal for triggering detection management application update Download PDF

Info

Publication number
CN108712281B
CN108712281B CN201810434184.0A CN201810434184A CN108712281B CN 108712281 B CN108712281 B CN 108712281B CN 201810434184 A CN201810434184 A CN 201810434184A CN 108712281 B CN108712281 B CN 108712281B
Authority
CN
China
Prior art keywords
management application
update
application
updating
system broadcast
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
CN201810434184.0A
Other languages
Chinese (zh)
Other versions
CN108712281A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201810434184.0A priority Critical patent/CN108712281B/en
Publication of CN108712281A publication Critical patent/CN108712281A/en
Application granted granted Critical
Publication of CN108712281B publication Critical patent/CN108712281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method, a device, a storage medium and a terminal for triggering and detecting updating of a management application, wherein the method for triggering and detecting the updating of the management application comprises the following steps: monitoring system broadcast information; confirming that the system broadcast information meets the trigger condition for detecting the updating of the management application; confirming that the application cache does not have effective management application updating information; a request is issued to detect an update of the management application. The invention can reduce the frequency of sending the update request of the detection management application, and avoid a large number of users from sending the update request of the detection management application in the same time period, thereby reducing the pressure of the large number of users on the server instantly.

Description

Method, device, storage medium and terminal for triggering detection management application update
Technical Field
The present invention relates to information processing technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for triggering detection of an update of a management application.
Background
Detecting whether an installed application on a smart device is updated is one of the functions commonly used in the existing application market. In order to detect the update condition of the application program on the intelligent device, the application market needs to request an update interface of the server to acquire the update information of the application program so as to remind a user of the updateable application information.
This detection update mechanism generally has three problems:
firstly, in order to obtain the update information of the application program in time, the update interface of the server needs to be frequently called, but the application program of the intelligent device is generally updated only once in two to three weeks, so that the frequent calling mode increases a large amount of burden on the server, and the cost performance is very low.
Secondly, the data volume required for detecting the update interface of the management application program is large, and the wireless traffic of the user is wasted in some cases.
Thirdly, a timing pull-alive mechanism and a message push mechanism in the existing application market can cause a large number of users to initiate requests for detecting update at the same time, and huge pressure is caused on a server.
Disclosure of Invention
The object of the present invention is to solve at least one of the above technical drawbacks, in particular to solve the server stress problem caused by initiating a detection management application update request for the same time.
The invention provides a method for triggering detection management application updating, which comprises the following steps:
monitoring system broadcast information;
confirming that the system broadcast information meets the trigger condition for detecting the updating of the management application;
confirming that the application cache does not have effective management application updating information;
a request is issued to detect an update of the management application.
Preferably, the system broadcasting includes:
at least one of system broadcast information of charging state change, system broadcast information of screen state change, system broadcast information of network state change, system broadcast information of application installation/uninstallation, and system broadcast information of external device connection state change.
Preferably, the confirming that the system broadcast information meets the trigger condition for detecting the update of the management application includes:
confirming that the time from the previous monitoring of the system broadcast information meeting the trigger condition to the current monitoring of the system broadcast information meeting the trigger condition is longer than the current trigger period;
the current trigger period is obtained by the following method:
acquiring the quantity of the system broadcast information received in a preset time period;
if the number is larger than a first preset value, increasing the set time length according to a preset rule, and taking the increased set time length as the current trigger period;
if the number is less than or equal to a first preset value and greater than or equal to a second preset value, taking the set time length as the current trigger period;
if the number is smaller than a second preset value, the set time length is shortened according to a preset rule, and the shortened set time length is used as the current trigger period.
Preferably, the confirming that the current application cache does not have valid management application update information includes:
judging whether the application cache has management application updating information or not; if not, obtaining that the application cache does not have effective management application updating information;
if yes, judging whether the last updating time of the management application updating information is larger than a first preset value from the current time, and if not, obtaining that the application cache does not have effective management application updating information.
Preferably, before the sending the request for detecting the update of the management application, the method further includes:
acquiring operation data of a user on management application of the application, and grading the management application according to the operation data to obtain a management application group corresponding to each grade; wherein, each level sets the shortest update time of the level, and each management application group comprises a plurality of management applications;
the issuing of the request for detecting the update of the management application includes:
acquiring the time length of the last updating time point of each management application group from the current time; acquiring the shortest updating time corresponding to the level of each management application group;
acquiring a related application group meeting the requirement of update time from the management application groups according to the duration and the shortest update time of each management application group; a request is issued to detect a management application update for the associated application group.
Preferably, after confirming that the application cache does not have valid management application update information, before sending a request for detecting a management application update, the method further includes:
acquiring the time of last sending a request for detecting the update of the management application;
and judging whether the last time is larger than the current time or not, and if so, continuing the step of sending the request for detecting the updating of the management application.
Preferably, before the monitoring system broadcasts the information, the method further includes:
starting the application;
a request is issued to detect an update of the management application.
The invention also provides a device for triggering the update of the detection management application, which comprises the following components:
the monitoring module is used for monitoring system broadcast information;
the trigger module is used for confirming that the system broadcast information meets the trigger condition of detecting the update of the management application;
the confirming module is used for confirming that the cache of the application does not have effective management application updating information;
and the request module is used for sending a request for detecting the update of the management application.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of triggering a detection of an update of a management application according to any one of the preceding claims.
The invention also proposes a terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the steps of any of the preceding methods for triggering detection of an update of a management application.
The invention has the following beneficial effects:
1. the invention takes the system broadcast information meeting the condition as the trigger condition for triggering and sending the detection management application to update, thereby avoiding a large number of users from initiating the request for detecting the update of the management application in the same time period, and reducing the impact of the large number of users on the server in a short time; especially, when the trigger condition is related to the random behavior of the user, compared with the existing timing pull-alive and message push mechanism, the method has more obvious beneficial effect.
2. The invention can dynamically adjust the current trigger period according to the quantity of the system broadcast information which accords with the trigger condition, or determine whether to send the request for detecting the updating of the management application again according to the time from the last time of sending the updating of the detection management application to the current time, so as to avoid the same terminal from repeatedly sending the request for detecting the updating of the management application for many times in a short time, reduce the times of calling the detection updating interface and further reduce the pressure on the server.
3. The invention can directly send out the request for detecting the update of the management application when the user starts the application, thereby ensuring that the user can immediately obtain the latest update information instead of the cached update information when formally entering the application, and improving the user experience.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating a first embodiment of a method for triggering detection of an update of a management application according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of the present invention for confirming that the application cache is not valid for managing application update information;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. Further, "connected" as used herein may include wirelessly connected. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention provides a method for triggering detection management application update, which is used for detecting whether an application program of a terminal has an update file, wherein a first embodiment of the method is described in figure 1 and comprises the following steps:
step S10: monitoring system broadcast information;
step S20: confirming that the system broadcast information meets the trigger condition for detecting the updating of the management application;
step S30: confirming that the application cache does not have effective management application updating information;
step S40: a request is issued to detect an update of the management application.
Wherein each step is as follows:
step S10: and monitoring system broadcast information.
System broadcast is an important communication mechanism between processes of a terminal operating system. By monitoring the system broadcast information, various operation instructions of the user in the terminal operating system and various state changes of the terminal operating system can be obtained. Taking a terminal of an android system as an example, the method mainly comprises five types of broadcasting: normal Broadcast (Normal Broadcast), System Broadcast (System Broadcast), Ordered Broadcast (Ordered Broadcast), Sticky Broadcast (Sticky Broadcast), and App in-App Broadcast (Local Broadcast); the system broadcast is a broadcast related to basic operations of the terminal, such as turning on and off of the terminal, switching between mute and vibration modes, changing of screen locking or unlocking states, switching between a WIFI network and a mobile network, installing and uninstalling programs, connecting and disconnecting of external equipment, photographing by a camera, and the like. Each system broadcast has a Filter (Intent-Filter) for a specific action (action), and when the system broadcast is used, the corresponding action (action) defined by the broadcast receiver is registered, and when the corresponding system operation is detected, the system broadcast is automatically performed.
Since the system broadcast includes various types of system operations, in order to save terminal resources and improve the running speed of the application program, the step may monitor only part of the system broadcast information, for example, monitor the system broadcast information corresponding to the random operation behavior of the user, so that the random operation behavior of the user triggers the condition for detecting and managing the application update, thereby reducing the amount of concurrence for detecting the invocation of the application update port. The random operation behaviors of the user comprise operation behaviors which occur occasionally when the user is at a non-fixed time point; for example: the user answers or calls according to personal requirements, switches the network environment, adjusts a switch of a vibration mode or a mute mode, starts charging or disconnects charging and the like. Because the time of the random operation behavior of each user is not fixed, the random operation behavior of the user can be used as the time for triggering the updating of the detection management application, so that a large number of users can be prevented from calling the update port of the detection application at the same time.
Step S20: and confirming that the system broadcast information meets the trigger condition for detecting the update of the management application.
The trigger condition includes aperiodic system broadcast information, such as broadcast information of received short message, mobile phone switching from mobile network to wireless local area network, etc.; it may also include states after a handover procedure or change triggered by the user's random operation behavior, such as: monitoring system broadcast information of a user mobile phone mode, wherein the trigger condition can be that the mobile phone mode of the user changes, and comprises that the mobile phone mode changes from a mute state to an un-mute state and also changes from the un-mute state to the mute state; the trigger condition can also be set to be that when the mobile phone mode is changed from a non-mute state to a mute state, the update of the management application is automatically detected and part or all of the update information is automatically cached when a user is inconvenient to operate the mute state of the mobile phone; if the mobile phone mode is changed from the mute state to the non-mute state, the trigger condition is not met.
User actions that conform to random operation behavior include, but are not limited to, the following: the method comprises the following steps of changing the network environment of the terminal, changing the use mode of the terminal, changing the charging state, changing the low or sufficient battery state, restarting the system, changing the photographing state, changing the screen locking or unlocking of the screen, modifying the setting of the terminal (such as interface language, horizontal and vertical screen locking and the like), inserting or pulling out an earphone or a microphone, inserting or pulling out an SD card, installing or uninstalling a program, replacing desktop wallpaper, making or answering a call and the like.
Therefore, the present invention also provides the following embodiments: before the system broadcast information is confirmed to meet the trigger condition for detecting the update of the management application, the method further includes:
and acquiring a system operation instruction of a user, and acquiring the system broadcast information according to the system operation instruction.
The embodiment can take the system broadcast information related to the user operation as the trigger condition, so as to disperse a large number of users and initiate the request for detecting the update of the management application at the same time through the randomness of the user operation.
In combination with the occurrence frequency of the above actions and the detection of the period of the management application update, preferably, the trigger condition may be one of the following operations: charging state change, screen operation state change, network environment change, application installation or uninstallation, and external device connection state change. Therefore, the present invention provides another embodiment:
the system broadcast information includes:
at least one of system broadcast information of charging state change, system broadcast information of screen state change, system broadcast information of network state change, system broadcast information of application installation/uninstallation, and system broadcast information of external device connection state change.
The change in the charging state comprises switching the terminal from an uncharged state to a charged state and switching from the charged state to disconnecting the external power supply; furthermore, a trigger threshold value can be set, and the battery capacity of the terminal is increased to the trigger threshold value in the charging state, or the battery capacity naturally consumes the trigger threshold value in the non-charging state, so that the trigger condition is met.
The screen state change can comprise switching between a horizontal screen and a vertical screen, locking and unlocking the screen, closing and awakening the screen, adjusting the screen brightness and the like. Preferably, the trigger condition is to unlock the screen or close the screen, so that the request for detecting the update of the management application is triggered by the widely used operation change, thereby ensuring the update period of the detection management application, and avoiding the situation that the detection management application cannot be updated for a long time due to the personal operation habit of the user, for example, after the user closes the horizontal screen and vertical screen automatic switching function of the screen, the horizontal screen and the vertical screen of the screen are no longer adjusted for a considerable time, and the request for detecting the update of the management application cannot be triggered and sent by the switching between the horizontal screen and the vertical screen within the considerable time.
The network state change comprises the switching of the current network environment from a mobile network to a wireless local area network, or from the wireless local area network to the mobile network, or from one wireless local area network to another wireless local area network, or from a 3G mobile network to a 4G mobile network, and the like. If the current network environment is switched to the wireless local area network, a request for caching or downloading the application update can be further sent so as to cache or download the application update information in the wireless local area network, thereby avoiding the user from downloading the update information in the mobile network and achieving the purpose of saving the mobile data flow of the user.
The application installation/uninstallation comprises installation of a new application program and uninstallation of an installed application program, and can also comprise changes of partial parameters or data in the application, such as clearing cached installation package data, modifying account safety information and the like. When a user installs a new application program, the updating condition of the management application updating port can be immediately detected, so that the user can timely acquire the latest version information of the application program after installing the new application program. If the user carries out the unloading operation, the management application updating port can be immediately detected, so that the application program is prevented from being unloaded by mistake due to the fact that the user misses updating information. When the user modifies or cleans the application package, the detection management application update can also be triggered, so that the user can know the latest functions of the application and repair the software defects in time.
The external device connection state change comprises the insertion or extraction of an earphone, the insertion or extraction of an external microphone, the insertion or extraction of an expansion storage device, the insertion or extraction of an SIM card, the identification and the loss of wireless connection hardware and the like. When the user connects or disconnects the external device, a request for detecting the update of the management application can be triggered. For example, when a user inserts a microphone or headset, or detects a wirelessly connected remote control device, a request to detect an update of the management application is triggered.
The terminal usage mode change includes switching of the terminal among a plurality of preset modes, such as changing from a mute state to an un-mute state, and also changing from the un-mute state to a mute state; the non-silent state is a state that the system prompt tone is larger than the preset volume, and the preset volume can be zero or slightly higher than zero; the mute state is a state that the system prompt tone is less than or equal to a preset volume, such as a state without sound and vibration prompt, and the like. When the terminal is a mobile phone, multiple preset modes such as a conference mode, a do-not-disturb mode, a sleep mode, a driving mode, a flight mode and the like are generally set, and the change of the terminal use mode also comprises the switching change among the modes; and if the mode after the switching change is a non-network state or a state that the updating request of the detection management application cannot be sent, taking the switching change as the trigger condition instead of the switching change, and taking the switching change with the network state after the switching change as the trigger condition.
The trigger condition may be one of the foregoing system broadcast information, or a combination of multiple types, for example, when the network status changes to be switched from a mobile network to a wireless local area network, and a user locks a screen, it is determined that the system broadcast information meets the trigger condition for detecting the update of the management application, so as to control the frequency of the request for detecting the update of the management application, and reduce the influence of the update of the management application on the user experience.
In order to disperse the time when the user initiates the request for detecting the update of the management application, in another embodiment of the present invention, the system broadcast information meeting the trigger condition is aperiodic system broadcast information, so as to avoid the impact caused by the periodic update of the user.
Step S30: and confirming that the cache of the application does not have effective updating information of the management application.
If the system broadcast information meets the triggering condition for detecting the updating of the management application, triggering the condition for calling the updating port of the detection application, and further confirming whether the cached updating information is valid or not before calling the updating port of the detection application; if the result of the confirmation is yes, the cached management application updating information is available, and a detection application updating port does not need to be called; when the result of the confirmation is negative, the cached update information of the management application may be invalid, outdated or not, and the subsequent step of sending a request for detecting the update of the management application is continuously executed. The step further reduces the frequency of sending the update request of the detection management application, thereby reducing the times of calling the update port of the detection application, saving the flow of users and reducing the pressure of the server.
Determining that the current application cache does not have valid management application update information may include one of: starting the application, the cached update information is empty, the cached update information time exceeds the preset time and the like.
The starting of the application comprises actively starting a main interface of the application, or actively entering or switching to the interface of the application by a user, or actively using partial functions in the application by the user. The present application may be a helper-type application that assists in detecting whether other applications need to be updated, such as an application marketplace or a system helper. When the application is running, in order to ensure that each application detected by the assistant application program is the latest version, the current latest update information of each application needs to be obtained instead of the cached update information; therefore, the present invention also provides the following embodiments:
before the monitoring system broadcasts information, the method further comprises:
starting the application;
a request is issued to detect an update of the management application.
In this embodiment, when the application is started, the cached update information may be considered invalid at this time, and the detection application update port is immediately invoked to query whether all applications or applications meeting the preset condition have the latest update information, so that it is ensured that the user immediately obtains the latest update information when actively starting the application, and the user experience is improved. If the user does not start the present application, the process proceeds to step S10.
The invention also proposes the following embodiments: the confirming that the system broadcast information meets the trigger condition for detecting the update of the management application comprises:
judging whether the system broadcast information is system broadcast information of system startup or not and system broadcast information of which the system current setting is modified;
if yes, sending a request for detecting the updating of the management application;
if not, continuing the step of confirming that the application cache does not have effective management application updating information.
When a user modifies the setting of the terminal system, for example, the time zone, the interface language, the switching of the system user, etc., which may cause some applications in the system to be abnormal, the present embodiment may immediately send a request for detecting and managing the update of the application when the system is turned on and the current setting of the system is modified, so that the system after being turned on obtains the latest update information of the application program, or the application in the system is matched with the current latest setting of the system as soon as possible.
The cached update information is empty, which includes situations that the update information is not cached or the cached update information is already cleared or transferred to other locations. If the cached update information time exceeds the preset time, the cached update information exists, but if the cached update information time is long and possibly out of date, the validity of the cached information needs to be confirmed again. The preset time can be set as one day, or set as other fixed periods or automatically and dynamically adjustable periods according to the operation data, the updating frequency and other data of the user.
The invention further provides the following examples: as shown in fig. 2, the confirming that the current application cache does not have valid management application update information includes:
judging whether the application cache has management application updating information or not; if not, obtaining that the application cache does not have effective management application updating information;
if yes, judging whether the last updating time of the management application updating information is larger than a first preset value from the current time, and if not, obtaining that the application cache does not have effective management application updating information.
In this embodiment, when there is management application update information, it is further determined whether the last update time of the management application update information exceeds a preset period, so as to avoid that the cached update information is out of date or the latest update information of the application is missed.
Step S40: a request is issued to detect an update of the management application.
And executing the request for detecting the update of the management application in the step on the premise that the trigger condition is met and no effective update information of the management application exists, so as to obtain the latest update condition of the application by calling the update port of the detection application.
The invention can preset a plurality of system broadcast information as trigger conditions to avoid a large number of users from initiating requests for detecting and managing application update in the same time period, thereby reducing the impact of the large number of users on the server in a short time; especially when the preset system broadcast information is related to the random behavior of the user, compared with the existing timing pull-alive and message push mechanism, the method has more obvious beneficial effects; moreover, by setting the trigger condition, the invention can reduce the frequency of detecting the calling of the updating interface and further reduce the pressure on the server.
If the triggering condition is not the necessary operation of the user or the unusual operation of part of users, the updating period may be too long, and the user cannot obtain the latest updating information in time; for example, the trigger condition is only the insertion and extraction of an external device or the identification and loss of a wireless device, and for some users, the user may use less plug devices or wireless devices such as earphones, and the like, so that the user cannot meet the trigger condition for a long time, and the update period is too long. If the trigger condition is an operation that is inevitably used by a user and has a high frequency, it may cause frequent transmission of a request for detecting an update of the management application; for example, the screen is unlocked or closed, since the system generally has an automatic screen locking function, even if the user does not perform the screen locking operation, the system can lock the screen by itself within a certain time, thereby triggering the request for detecting the update of the management application. Therefore, the present invention also proposes the following embodiments:
the confirming that the system broadcast information meets the trigger condition for detecting the update of the management application comprises:
confirming that the time from the previous monitoring of the system broadcast information meeting the trigger condition to the current monitoring of the system broadcast information meeting the trigger condition is longer than the current trigger period;
the current trigger period is obtained by the following method:
acquiring the quantity of the system broadcast information received in a preset time period;
if the number is larger than a first preset value, increasing the set time length according to a preset rule, and taking the increased set time length as the current trigger period;
if the number is less than or equal to a first preset value and greater than or equal to a second preset value, taking the set time length as the current trigger period;
if the number is smaller than a second preset value, the set time length is shortened according to a preset rule, and the shortened set time length is used as the current trigger period.
The number of the system broadcast information is the number of the system broadcast information which accords with the update triggering condition of the detection management application. The present embodiment may dynamically adjust the current trigger period according to the number, and when there is a lot of system broadcast information meeting the trigger condition for detecting the update of the management application, the current trigger period is extended to avoid repeatedly sending a request for detecting the update of the management application in a short time. For example, the user triggers a request for detecting the update of the management application by unlocking the screen at a certain time, performs an operation for closing the screen again in a short time, and triggers a request for detecting the update of the management application again, so that the cost performance for sending the request for detecting the update of the management application is reduced. According to the embodiment, the time interval for sending the request can be controlled through the current trigger period, the pressure of the server is reduced, and the cost performance for sending the request is improved. The embodiment can also shorten the current trigger period when the system broadcast information meeting the trigger condition of detecting and managing application update is less, and avoid missing the update information or caching the outdated update information for a long time. The more broadcast is received, the more current program operation is shown, so the period is longer, and the influence on the current program is reduced. For example, the preset period is 100 seconds, if the number is greater than the first preset value, the increase is 100%, and 200 seconds after the increase is taken as the current trigger period; if the number is smaller than the second preset value, the number is shortened by 80%, and the shortened 80 seconds are taken as the current trigger period.
The current trigger period can also be dynamically adjusted according to the frequency of the user using the application or the frequency of updating other application programs in the application, or combined with the number of the system broadcast information, so as to further optimize the trigger period according to the habit of the user and improve the user experience.
Different applications, users have different degrees of sensitivity to the latest version. For example, the requirement of the user for updating is low due to the uncompressing software, and the requirement of the online game is high due to the fact that the instantaneity is high, the user is more sensitive to the updating information. Therefore, the present invention provides another embodiment: before the sending the request for detecting the update of the management application, the method further includes:
acquiring operation data of a user on management application of the application, and grading the management application according to the operation data to obtain a management application group corresponding to each grade; wherein, each level sets the shortest update time of the level, and each management application group comprises a plurality of management applications;
the issuing of the request for detecting the update of the management application includes:
acquiring the time length of the last updating time point of each management application group from the current time; acquiring the shortest updating time corresponding to the level of each management application group;
acquiring a related application group meeting the requirement of update time from the management application groups according to the duration and the shortest update time of each management application group; a request is issued to detect a management application update for the associated application group.
In this embodiment, management applications are classified, and an associated application group included in a request for detecting update of a management application sent this time is determined according to the shortest update time set for each class and the time for updating the management application group last time, so that the period for sending the request can be further optimized, and the data traffic of a user can be saved.
The management applications are classified according to the operation data to obtain a management application group corresponding to each class, and the classification basis can be frequency or period of updating other applications in the application by a user, or frequency or period of actively running the application by the user, data of other applications searched in the application by the user, and the like. For example: when the application is operated, the user is prompted that a certain application program has the updating information, the user selects to skip or ignore the updating information for many times, the user is not sensitive to the updating of the application program, and the application program can be adjusted to the level with the shortest updating time and longer time. Of course, the classification may also be a level preset by the application according to the classification of the application program; for example, the game class application is set to the highest level of the management application group, and the tool class application is set to the lowest level of the management application group.
The invention also proposes a further embodiment: after confirming that the application cache does not have valid management application update information and before sending a request for detecting management application update, the method further includes:
acquiring the time of last sending a request for detecting the update of the management application;
and judging whether the last time is larger than the current time or not, and if so, continuing the step of sending the request for detecting the updating of the management application.
The transmission period may be a preset first fixed period, for example, 1 hour. The application program generally does not have multiple times of information updating in a short time; if the user operation meets the trigger condition for many times in a short time, the request for detecting the update of the management application does not need to be repeatedly sent. The embodiment can enable the time for sending the request twice to be longer than the sending period, so as to avoid the application program from frequently sending the request for detecting the update of the management application in a short time and reduce the load of the server.
Furthermore, the present invention may also preset a second fixed period, and when the user selects to update all the application programs in the application, in the second fixed period, it is no longer determined whether the system broadcast information meets the trigger condition, so as to reduce the number of times of sending the request; if the application automatically clears the cached update information after running update, the embodiment can also avoid repeatedly caching the update information, save the storage space and improve the running speed of the terminal.
Furthermore, the present invention may also suspend monitoring the system broadcast information within a preset suspension time after the request for detecting the update of the management application is issued. For example: if the application triggers a request for detecting the update of the management application at a certain moment, the application does not monitor the system broadcast information for triggering the detection management application any longer within a preset pause time (for example, within 2 minutes), so as to save system resources.
Further, before the request for detecting the update of the management application is sent, the time for sending the request for detecting the update of the management application last time is obtained, and the time length between the time for sending the request for detecting the update of the management application last time and the current time is confirmed to be larger than a second preset time length. If the time length between the last time of sending the detection management application update request and the current time is not greater than the second preset time length, it indicates that the time interval between the two times of sending the detection management application update requests is too short, and the detection management application update requests do not need to be sent repeatedly.
After the sending of the request for detecting the update of the management application, the present invention may further include:
and receiving update information, wherein the update information comprises the time for receiving the update information so as to confirm whether the next request for detecting the update of the management application conforms to the current trigger cycle, the shortest update time or the sending cycle.
For the application program, the running application program can generally trigger the updating function of the application program, so that the embodiment of frequently sending the request for detecting the updating of the management application in a short time is avoided, the frequency of sending the request can be reduced on the premise of not influencing the user experience, the influence of the updating of the detection management application on the server is reduced, and the system running speed of the user terminal is improved.
The invention also provides a device for triggering the update of the detection management application, which comprises the following components:
the monitoring module is used for monitoring system broadcast information;
the trigger module is used for confirming that the system broadcast information meets the trigger condition of detecting the update of the management application;
the confirming module is used for confirming that the cache of the application does not have effective management application updating information;
and the request module is used for sending a request for detecting the update of the management application.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of triggering a detection of an update of a management application according to any one of the preceding claims. The storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
The invention also provides a terminal device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; wherein the processor, when executing the computer program, implements any of the steps of the method for triggering detection of an update of a management application.
The invention also proposes a terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to perform the steps of any of the methods for triggering detection of updates to a management application as set forth in the preceding claims.
As shown in fig. 3, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a server, and the like, taking the terminal as the mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (Wi-Fi) module 1570, processor 1580, and power supply 1590. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
the RF circuit 1510 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1520. The memory 1520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (e.g., an assistant-type application such as an application market or a system assistant that assists in detecting whether other application programs need to be updated), and the like; the storage data area may store data created according to the usage of the mobile phone (such as cache update information, etc.), and the like. Further, the memory 1520 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 input unit 1530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1531 using any suitable object or accessory such as a finger or a stylus) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1531 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, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch panel 1531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch operation is transmitted to the processor 1580 to determine the type of the touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of the touch event. Although in fig. 3, the touch panel 1531 and the display panel 1541 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1550, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1541 according to the brightness of ambient light and a proximity sensor that turns off the display panel 1541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1560, speaker 1561, and microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the electrical signal converted from the received audio data to the speaker 1561, and convert the electrical signal into a voiceprint signal by the speaker 1561 and output the voiceprint signal; on the other hand, the microphone 1562 converts the collected voiceprint signals to electrical signals, which are received by the audio circuit 1560 and converted to audio data, which are processed by the audio data output processor 1580 and passed through the RF circuit 1510 for transmission to, for example, another cell phone, or for output to the memory 1520 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 1570, and provides wireless broadband internet access for the user. Although fig. 3 shows a Wi-Fi module 1570, it is understood that it does not belong to the essential constitution of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, and the like, and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
The handset also includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1580 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In addition, each module in each embodiment of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (9)

1. A method for triggering detection of update of a management application is used for detecting whether an application program of a terminal has an update file, and comprises the following steps:
monitoring partial system broadcast information;
confirming that the system broadcast information meets the trigger condition for detecting the updating of the management application;
judging whether the application cache has management application updating information or not, if not, obtaining that the application cache does not have effective management application updating information,
if so, judging whether the last updating time of the management application updating information is larger than a first preset value from the current time, and if so, obtaining that the application cache does not have effective management application updating information;
a request is issued to detect an update of the management application.
2. The method of claim 1, wherein the system broadcasting information comprises:
at least one of system broadcast information of charging state change, system broadcast information of screen state change, system broadcast information of network state change, system broadcast information of application installation/uninstallation, and system broadcast information of external device connection state change.
3. The method of claim 1, wherein confirming that the system broadcast information meets a trigger condition for detecting an update of a management application comprises:
confirming that the time from the previous monitoring of the system broadcast information meeting the trigger condition to the current monitoring of the system broadcast information meeting the trigger condition is longer than the current trigger period;
the current trigger period is obtained by the following method:
acquiring the quantity of the system broadcast information received in a preset time period;
if the number is larger than a first preset value, increasing the set time length according to a preset rule, and taking the increased set time length as the current trigger period;
if the number is less than or equal to a first preset value and greater than or equal to a second preset value, taking the set time length as the current trigger period;
if the number is smaller than a second preset value, the set time length is shortened according to a preset rule, and the shortened set time length is used as the current trigger period.
4. The method of claim 1, wherein prior to issuing the request to detect the management application update, further comprising:
acquiring operation data of a user on management application of the application, and grading the management application according to the operation data to obtain a management application group corresponding to each grade; wherein, each level sets the shortest update time of the level, and each management application group comprises a plurality of management applications;
the issuing of the request for detecting the update of the management application includes:
acquiring the time length of the last updating time point of each management application group from the current time; acquiring the shortest updating time corresponding to the level of each management application group;
acquiring a management application group meeting the requirement of update time from a plurality of management application groups of the application according to the duration and the shortest update time of each management application group; a request is issued to detect a management application update for the management application group.
5. The method of claim 1, wherein after confirming that the application cache does not have valid management application update information, before issuing a request to detect a management application update, further comprising:
acquiring the time of last sending a request for detecting the update of the management application;
and judging whether the last time is larger than the current time or not, and if so, continuing the step of sending the request for detecting the updating of the management application.
6. The method of claim 1, wherein prior to listening for the portion system broadcast information, further comprising:
starting the application;
a request is issued to detect an update of the management application.
7. An apparatus for triggering detection of update of a management application, configured to detect whether an application of a terminal has an update file, includes:
the monitoring module is used for monitoring part of system broadcast information;
the trigger module is used for confirming that the system broadcast information meets the trigger condition of detecting the update of the management application;
a confirming module for judging whether the application cache has the management application updating information or not, if not, obtaining that the application cache does not have effective management application updating information,
if so, judging whether the last updating time of the management application updating information is larger than a first preset value from the current time, and if so, obtaining that the application cache does not have effective management application updating information;
and the request module is used for sending a request for detecting the update of the management application.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which program, when being executed by a processor, carries out the steps of the method of triggering a detection of an update of a management application of any one of claims 1 to 6.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the steps of the method of triggering detection of a management application update as claimed in any one of claims 1 to 6.
CN201810434184.0A 2018-05-08 2018-05-08 Method, device, storage medium and terminal for triggering detection management application update Active CN108712281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810434184.0A CN108712281B (en) 2018-05-08 2018-05-08 Method, device, storage medium and terminal for triggering detection management application update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810434184.0A CN108712281B (en) 2018-05-08 2018-05-08 Method, device, storage medium and terminal for triggering detection management application update

Publications (2)

Publication Number Publication Date
CN108712281A CN108712281A (en) 2018-10-26
CN108712281B true CN108712281B (en) 2022-02-01

Family

ID=63867863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810434184.0A Active CN108712281B (en) 2018-05-08 2018-05-08 Method, device, storage medium and terminal for triggering detection management application update

Country Status (1)

Country Link
CN (1) CN108712281B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491684A (en) * 2018-10-29 2019-03-19 平安科技(深圳)有限公司 The hot update method of application program, device, electronic equipment and storage medium
CN112416491B (en) * 2020-11-12 2022-11-22 联想(北京)有限公司 Display state adjusting method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043279A (en) * 2007-03-20 2007-09-26 中兴通讯股份有限公司 Method and apparatus for processing update sequence number of network information list
CN102779132A (en) * 2011-05-12 2012-11-14 阿里巴巴集团控股有限公司 Data updating method, system and database server
CN104202401A (en) * 2012-10-16 2014-12-10 北京奇虎科技有限公司 Application upgrading system
CN104683485A (en) * 2015-03-25 2015-06-03 重庆邮电大学 C-RAN based internet content caching and preloading method and system
CN106033364A (en) * 2015-03-19 2016-10-19 Tcl集团股份有限公司 Method and system for upgrading Web application programs
CN106453635A (en) * 2016-11-21 2017-02-22 深圳广联赛讯有限公司 Message pushing method and device
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal
CN107590881A (en) * 2017-08-04 2018-01-16 美的智慧家居科技有限公司 A kind of lockset control method, lockset and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501516B2 (en) * 2014-12-19 2016-11-22 Sap Se Zero downtime upgrade of database applications using triggers and calculated fields

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043279A (en) * 2007-03-20 2007-09-26 中兴通讯股份有限公司 Method and apparatus for processing update sequence number of network information list
CN102779132A (en) * 2011-05-12 2012-11-14 阿里巴巴集团控股有限公司 Data updating method, system and database server
CN104202401A (en) * 2012-10-16 2014-12-10 北京奇虎科技有限公司 Application upgrading system
CN106033364A (en) * 2015-03-19 2016-10-19 Tcl集团股份有限公司 Method and system for upgrading Web application programs
CN104683485A (en) * 2015-03-25 2015-06-03 重庆邮电大学 C-RAN based internet content caching and preloading method and system
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal
CN106453635A (en) * 2016-11-21 2017-02-22 深圳广联赛讯有限公司 Message pushing method and device
CN107590881A (en) * 2017-08-04 2018-01-16 美的智慧家居科技有限公司 A kind of lockset control method, lockset and computer-readable recording medium

Also Published As

Publication number Publication date
CN108712281A (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN107272872B (en) Power saving control method and related product
CN104965721A (en) Method and apparatus for updating an application
WO2018098694A1 (en) Network search method and terminal device
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN111885748B (en) Method for releasing RRC connection, terminal equipment and network equipment
CN105807891A (en) Screen control method and device, and electronic equipment
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN108712281B (en) Method, device, storage medium and terminal for triggering detection management application update
WO2016172878A1 (en) Terminal control method and apparatus, and terminal device
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN107704287B (en) Installation-free method for program application, mobile terminal and computer-readable storage medium
CN104869550A (en) Communication event processing method and device
CN107635277B (en) Power saving management method of terminal equipment of Internet of things and terminal equipment of Internet of things
CN106850957B (en) Application notification management method and device and mobile terminal
CN110312995B (en) Application program accelerated starting method and device and terminal
CN106454953B (en) Flow control method, device and terminal
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN106445594B (en) System application installation method and device and terminal equipment
CN113039517A (en) Audio resource calling method and device and electronic equipment
CN105635379B (en) Noise suppression method and device
CN105094869A (en) Target program determination method and apparatus
CN109151154B (en) Power consumption control method and mobile terminal
CN113542884A (en) Method for synchronizing JS patch files between smart television browser and server
CN106714149B (en) Wireless network access method, device and terminal equipment
CN108307531B (en) Call control method, device, user terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200421

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510640 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 15 layer self unit 02

Applicant before: GUANGZHOU UC NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant