CN108255543A - Application operation method, apparatus and computer readable storage medium - Google Patents

Application operation method, apparatus and computer readable storage medium Download PDF

Info

Publication number
CN108255543A
CN108255543A CN201810043514.3A CN201810043514A CN108255543A CN 108255543 A CN108255543 A CN 108255543A CN 201810043514 A CN201810043514 A CN 201810043514A CN 108255543 A CN108255543 A CN 108255543A
Authority
CN
China
Prior art keywords
intended application
application
sleep pattern
terminal
starts
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810043514.3A
Other languages
Chinese (zh)
Inventor
张晓亮
刘任
张通
邢旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810043514.3A priority Critical patent/CN108255543A/en
Publication of CN108255543A publication Critical patent/CN108255543A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The disclosure is directed to a kind of application operation method, apparatus and computer readable storage mediums, are related to field of terminal technology, applied to terminal, the method includes:When the terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that the number of starts of the intended application under this sleep pattern, the intended application are any application of terminal installation;When the number of starts of intended application described under this sleep pattern is less than or equal to preset times, bring into operation the intended application;When the number of starts of intended application described under this sleep pattern is more than the preset times, ignore the initiation message of intended application.The disclosure carrys out the operation of control targe application, can limit the resource for using malice operation in a sleep mode, saving terminal according to the number of starts of the intended application under this sleep pattern.

Description

Application operation method, apparatus and computer readable storage medium
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of application operation method, apparatus and computer-readable storage Medium.
Background technology
With the fast development of terminal technology, the function of the terminals such as mobile phone, tablet computer is become stronger day by day, and is increasingly becoming People's tool indispensable in working and living.User, usually will not be frequently using eventually in the case where sleeping, the situations such as being busy with one's work End so in order to save terminal resource, can usually be provided with sleep pattern in terminal, terminal can be set as sleep mould by user Formula, to forbid the operation for the application installed in terminal.
However, when terminal is in sleep pattern, such as alarm clock some applications often also need to run, therefore, the relevant technologies In, wake-up mechanism can be generally set in the terminal, these applications can be registered in the wake-up mechanism, later, work as terminal During in sleep pattern, which can wake up these applications registered, and make these applications being capable of normal operation.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of application operation method, apparatus and computer can Read storage medium.
According to the embodiment of the present disclosure in a first aspect, provide a kind of application operation method, including:
When the terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that slept at this The number of starts of the intended application under sleep mode, the intended application are any application of terminal installation;
When the number of starts of intended application described under this sleep pattern is less than or equal to preset times, bring into operation The intended application;
When the number of starts of intended application described under this sleep pattern is more than the preset times, ignore the mesh Mark the initiation message of application.
Optionally, it after the intended application that brings into operation, further includes:
Detect the operation duration of the intended application;
When the operation duration of the intended application reaches preset duration, if the terminal does not exit this sleep mould Formula then closes the intended application.
Optionally, if the initiation message for detecting intended application, it is determined that the mesh under this sleep pattern The number of starts of application is marked, including:
If detecting the initiation message of intended application, the application identities of the intended application are obtained;
When the application identities of the intended application are specified application identities, the target under this sleep pattern is determined The number of starts of application.
Optionally, it is described when the application identities of the intended application are specified application identities, it determines in this sleep mould The number of starts of the intended application under formula, including:
When the application identities of the intended application are specified application identities, the acquisition specified application identities are corresponding to be opened Dynamic message;
When the initiation message of intended application initiation message corresponding for the specified application identities, determine at this The number of starts of the intended application under sleep pattern.
Optionally, it is described when the application identities of the intended application are specified application identities, it determines in this sleep mould Under formula before the number of starts of the intended application, further include:
The register instruction of the intended application is received, the intended application is carried in the register instruction of the intended application The initiation message of application identities and the intended application;
The application identities of the intended application are determined as the specified application identities, and by the application of the intended application Mark carries out corresponding storage with the initiation message of the intended application.
Optionally, it is described when the terminal is in sleep pattern, if detecting the initiation message of intended application, really It is scheduled under this sleep pattern before the number of starts of the intended application, further includes:
Detect the state parameter of the terminal;
According to the state parameter of the terminal, recognition result is determined by preset pattern recognition model, the pattern is known Other model is for identifying whether to meet the model into sleep mode condition;
When the recognition result enters sleep mode condition to meet, the terminal is controlled to enter sleep pattern.
According to the second aspect of the embodiment of the present disclosure, a kind of application operation device is provided, including:
First determining module, for when the terminal is in sleep pattern, if detecting that the startup of intended application disappears Breath, it is determined that the number of starts of the intended application under this sleep pattern, the intended application are terminal installation Any application;
Module is run, for being less than or equal to default time when the number of starts of the intended application under this sleep pattern During number, bring into operation the intended application;
Ignore module, for being more than the preset times when the number of starts of the intended application under this sleep pattern When, ignore the initiation message of the intended application.
Optionally, described device further includes:
First detection module, for detecting the operation duration of the intended application;
Closedown module, for when the operation duration of the intended application reaches preset duration, if the terminal is not moved back Go out this sleep pattern, then close the intended application.
Optionally, first determining module includes:
If first acquisition submodule for detecting the initiation message of intended application, obtains the intended application Application identities;
First determination sub-module, for when the application identities of the intended application are specified application identities, determining at this The number of starts of the intended application under secondary sleep pattern.
Optionally, first determining module includes:
Second acquisition submodule, for when the application identities of the intended application are specified application identities, described in acquisition The corresponding initiation message of specified application identities;
Second determination sub-module opens for working as the initiation message of the intended application for the specified application identities are corresponding During dynamic message, the number of starts of the intended application under this sleep pattern is determined.
Optionally, first determining module further includes:
Receiving submodule for receiving the register instruction of the intended application, is taken in the register instruction of the intended application The initiation message of application identities with the intended application and the intended application;
Sub-module stored, for the application identities of the intended application to be determined as the specified application identities, and by institute The application identities for stating intended application carry out corresponding storage with the initiation message of the intended application.
Optionally, described device further includes:
Second detection module, for detecting the state parameter of the terminal;
Second determining module for the state parameter according to the terminal, determines to know by preset pattern recognition model Not as a result, the pattern recognition model is for identifying whether to meet the model into sleep mode condition;
Control module, for when the recognition result enters sleep mode condition to meet, the terminal being controlled to enter Sleep pattern.
According to the third aspect of the embodiment of the present disclosure, a kind of application operation device is provided, described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the step of processor is configured as performing above-mentioned first aspect the method.
According to the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, it is described computer-readable The step of instruction is stored on storage medium, above-mentioned first aspect the method is realized when described instruction is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiments of the present disclosure, in the case where terminal is in sleep pattern, when the startup for detecting intended application disappears During breath, in order to determine whether intended application can be started at this time, it may be determined that the startup of intended application under this sleep pattern Number.When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, illustrate that intended application exists The number of starts is less under this sleep pattern, and intended application should be the normal use routinely started, thus can start at this time Operational objective application so as to ensure the normal operation of intended application in a sleep mode, meets the use demand of user.And work as When the number of starts of intended application is more than preset times under this sleep pattern, illustrate intended application under this sleep pattern The number of starts is excessive, and intended application may be the malicious application of frequent starting, thus can ignore the startup of intended application at this time Message so as to which limited target applies the malice under this sleep pattern to run, saves terminal resource.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart according to a kind of application operation method shown in an exemplary embodiment.
Fig. 2 is the flow chart according to another application operation method shown in an exemplary embodiment.
Fig. 3 A are the block diagrams according to the first application operation device shown in an exemplary embodiment.
Fig. 3 B are the block diagrams according to second of application operation device shown in an exemplary embodiment.
Fig. 3 C are the block diagrams according to the first the first determining module shown in an exemplary embodiment.
Fig. 3 D are the block diagrams according to second of first determining modules shown in an exemplary embodiment.
Fig. 3 E are the block diagrams according to the third the first determining module shown in an exemplary embodiment.
Fig. 3 F are the block diagrams according to the third application operation device shown in an exemplary embodiment.
Fig. 4 is the block diagram according to the 4th kind of application operation device shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
In order to make it easy to understand, before detailed explanation is carried out to the embodiment of the present disclosure, first to the embodiment of the present disclosure The application scenarios being related to are introduced.
At present, user is in the case where sleeping, the situations such as being busy with one's work, it will usually terminal is set as sleep pattern, to forbid end The operation for the application installed in end.And terminal is when being in sleep pattern, such as alarm clock some applications often also need to run, because This, in the relevant technologies, can generally set wake-up mechanism in the terminal, these applications can be registered in the wake-up mechanism, Later, when terminal is in sleep pattern, which can wake up these applications registered, these is made to apply energy Enough normal operations.But the certain applications installed in terminal may be registered maliciously in the wake-up mechanism, such case Under, when terminal is in sleep pattern, the application of these malicious registrations will frequently be run, so as to waste terminal resource.Therefore, To solve the above-mentioned problems, present disclose provides a kind of application operation methods.
Next the application operation method that the embodiment of the present disclosure provides will be described in detail with reference to attached drawing.
Fig. 1 be according to a kind of flow chart of application operation method shown in an exemplary embodiment, as shown in Figure 1, using In terminal, this method includes the following steps.
In a step 101, when terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that The number of starts of intended application under this sleep pattern, intended application are any application of terminal installation.
In a step 102, when the number of starts of the intended application under this sleep pattern is less than or equal to preset times, Bring into operation intended application.
In step 103, when the number of starts of the intended application under this sleep pattern is more than preset times, ignore mesh Mark the initiation message of application.
In the embodiments of the present disclosure, in the case where terminal is in sleep pattern, when the startup for detecting intended application disappears During breath, in order to determine whether intended application can be started at this time, it may be determined that the startup of intended application under this sleep pattern Number.When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, illustrate that intended application exists The number of starts is less under this sleep pattern, and intended application should be the normal use routinely started, thus can start at this time Operational objective application so as to ensure the normal operation of intended application in a sleep mode, meets the use demand of user.And work as When the number of starts of intended application is more than preset times under this sleep pattern, illustrate intended application under this sleep pattern The number of starts is excessive, and intended application may be the malicious application of frequent starting, thus can ignore the startup of intended application at this time Message so as to which limited target applies the malice under this sleep pattern to run, saves terminal resource.
Optionally, it after the intended application that brings into operation, further includes:
Detect the operation duration of intended application;
When the operation duration of intended application reaches preset duration, if terminal does not exit this sleep pattern, close Intended application.
Optionally, if detecting the initiation message of intended application, it is determined that the intended application under this sleep pattern The number of starts, including:
If detecting the initiation message of intended application, the application identities of intended application are obtained;
When the application identities of intended application are specified application identities, opening under this sleep pattern intended application is determined Dynamic number.
Optionally, when the application identities of intended application are specified application identities, the target under this sleep pattern is determined The number of starts of application, including:
When the application identities of intended application are specified application identities, the corresponding initiation message of specified application identities is obtained;
When the initiation message of intended application initiation message corresponding for specified application identities, determine in this sleep pattern The number of starts of lower intended application.
Optionally, when the application identities of intended application are specified application identities, the target under this sleep pattern is determined Before the number of starts of application, further include:
The register instruction of intended application is received, the application identities and mesh of intended application are carried in the register instruction of intended application Mark the initiation message of application;
The application identities of intended application are determined as specified application identities, and should by the application identities of intended application and target Initiation message carries out corresponding storage.
Optionally, when terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that at this Under sleep pattern before the number of starts of intended application, further include:
Detect the state parameter of the terminal;
According to the state parameter of the terminal, recognition result is determined by preset pattern recognition model, the pattern-recognition mould Type is for identifying whether to meet the model into sleep mode condition;
When the recognition result enters sleep mode condition to meet, the terminal is controlled to enter sleep pattern.
Above-mentioned all optional technical solutions, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real Example is applied no longer to repeat this one by one.
Fig. 2 is according to a kind of flow chart of application operation method shown in an exemplary embodiment, below in conjunction with Fig. 2 pairs The application operation method that Fig. 1 embodiments provide carries out expansion explanation.As shown in Fig. 2, this method is applied to terminal, this method includes Following steps.
In step 201, the state parameter of detection terminal.
It should be noted that the state parameter of terminal can be the parameter of terminal local environment and/or terminal oneself state Parameter, for example, the parameter of terminal local environment can be the location of environmental light intensity, environmental volume, terminal, position Magnetic field and intensity etc., the parameter of terminal oneself state can be that screen state (screen state of going out or bright screen state), terminal add Speed, placing direction, operation application etc..
In step 202, according to the state parameter of terminal, recognition result is determined by preset pattern recognition model.
It should be noted that preset pattern recognition model can be configured in advance, that is to say, it can be advance in terminal Pattern recognition model is stored with, which is for identifying whether to meet the model into sleep mode condition.
In addition, according to the state parameter of terminal, recognition result is determined by preset pattern recognition model, is by the end The state parameter at end inputs preset pattern recognition model, later, recognition result, the identification knot is exported by the pattern recognition model Fruit can be to meet into sleep mode condition or be unsatisfactory for entering sleep mode condition.
Further, in the state parameter according to terminal, before determining recognition result by preset pattern recognition model, The pattern recognition model can also be obtained.
Wherein, obtaining the realization process of the pattern recognition model can be:Sample set is obtained, it will be in these sample sets Positive sample and negative sample input initial pattern recognition model to be carried out to the model parameter in initial pattern recognition model Adjustment, the pattern recognition model after parameter adjustment can identify to maximum probability positive sample and negative sample, at this time the parameter Pattern recognition model after adjustment is required preset pattern recognition model.
It should be noted that sample set includes positive sample and negative sample, which includes that sleep pattern item can be entered The state parameter of terminal during part, the state parameter of terminal when which includes that sleep pattern can not be entered.
In step 203, when the recognition result enters sleep mode condition to meet, control terminal enters sleep mould Formula.
Further, when the recognition result is is unsatisfactory for entering sleep mode condition, control terminal does not enter sleep mould Formula.
It, can be with the state parameter of detection terminal, and according to the state of terminal what deserves to be explained is in the embodiments of the present disclosure Parameter determines recognition result by preset pattern recognition model, then determines whether control terminal according to the recognition result Into sleep pattern, control mode is more flexible and accurate.
In step 204, when terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that The number of starts of intended application under this sleep pattern, intended application are any application of terminal installation.
It should be noted that the initiation message of intended application is the message for starting intended application, for example, intended application Initiation message can be wake-up mechanism send out for starting the message of intended application, and wake-up mechanism can registered The startup time of intended application sends out the message for starting intended application, certainly, in practical applications, the startup of intended application Message can also be sent out by other modules, and the embodiment of the present disclosure is without limitation.
In addition, wake-up mechanism can be the mechanism that can wake up application in a sleep mode set in terminal, machine is waken up The application identities of application can be registered in system, start the information such as time.For example, wake-up mechanism can be RTC (Real-Time Clock, real-time alarm clock) mechanism etc., the embodiment of the present disclosure is without limitation.
Furthermore under this sleep pattern the number of starts of intended application for intended application under this sleep pattern by The number of startup, that is to say, before the initiation message of intended application is detected, intended application has been under this sleep pattern The number run.
What deserves to be explained is detect that the initiation message of intended application illustrates that intended application is wanted to start at this time, thus, The number of starts of the intended application under this sleep pattern can be determined at this time, can subsequently to be determined according to the number of starts Whether intended application is started.
Wherein, the operation of step 204 can be:When terminal is in sleep pattern, if detecting opening for intended application Dynamic message, then can directly determine under this sleep pattern the number of starts of intended application or can first obtain target should Application identities when the application identities of intended application are specified application identities, then determine the target under this sleep pattern The number of starts of application.
Further, it when the application identities of intended application are not for specified application identities, does not know in this sleep pattern The number of starts of lower intended application.
It should be noted that the application identities of intended application are used for unique mark intended application, for example, intended application is answered Can be title, UID (User Identification, user identifier) of intended application etc. with mark.
In addition, specified application identities specify application for unique mark, which can be configured in advance, such as should Specified application can be the application registered in wake-up mechanism, certainly, the specified application or other application etc., this Open embodiment is not construed as limiting this.
It is worth noting that, in the embodiment of the present disclosure in the initiation message for detecting intended application, target can be answered Whether application identities are that specified application identities are judged.When the application identities of intended application are specified application identities, It is the application that can be run in a sleep mode to illustrate intended application, thus can determine the target under this sleep pattern at this time The number of starts of application, subsequently to determine whether to start intended application according to the number of starts.And work as intended application Application identities for specified application identities when, it is the application that cannot be run in a sleep mode to illustrate intended application, thus this When can not know the number of starts of the intended application under this sleep pattern, then would not also perform the follow-up target that starts should Operation so as to avoid unnecessary operation, saves the resource of terminal.
Wherein, it when the application identities of intended application are specified application identities, can directly determine in this sleep pattern The number of starts of lower intended application can first obtain the corresponding initiation message of specified application identities, when opening for intended application When dynamic message is specified application identities corresponding initiation message, then determine the startup time of the intended application under this sleep pattern Number.
Further, it when the initiation message of intended application not initiation message corresponding for specified application identities, does not know The number of starts of intended application under this sleep pattern.
It should be noted that the corresponding initiation message of specified application identities is the message for starting specified application, and refer to The Starting mode of the specified application can be indicated by determining the corresponding initiation message of application identities, for example, specified application identities are corresponding Initiation message can be specified intent (intention) message applied and registered in wake-up mechanism, application identities be specified to correspond at this time Initiation message can indicate Starting mode of the specified application to be started by wake-up mechanism, the embodiment of the present disclosure does not limit this System.
Wherein, obtaining the realization process of the corresponding initiation message of specified application identities can be:According to specified application identities, From the correspondence between the application identities of storage and startup relationship, corresponding initiation message is obtained.
It is worth noting that, when the application identities of intended application are specified application identities, intended application can be opened Whether dynamic message is that the specified corresponding initiation message of application identities is judged.When the initiation message of intended application is specified application When identifying corresponding initiation message, illustrating intended application is started by specific Starting mode, thus can be determined at this time The number of starts of intended application under this sleep pattern, subsequently to determine whether to start mesh according to the number of starts Mark application.And when the initiation message not initiation message corresponding for specified application identities of intended application, illustrate intended application not It is to be started by specific Starting mode, thus does not know the number of starts of the intended application under this sleep pattern at this time, Then the follow-up operation for starting intended application would not be also performed, so as to avoid unnecessary operation, saves the money of terminal Source.
It should be noted that in order to realize the operation of intended application in a sleep mode, further, when intended application When application identities are specified application identities, determine under this sleep pattern before the number of starts of intended application, to connect The register instruction of intended application is received, the application identities of intended application and opening for intended application are carried in the register instruction of intended application The application identities of intended application are determined as specified application identities, and should by the application identities of intended application and target by dynamic message Initiation message carries out corresponding storage.
It is registered it should be noted that register instruction is used to indicate intended application, intended application can be with after being registered It runs in a sleep mode, which can be triggered by user, and user can be triggered by specified operation, Specified operation can be single-click operation, double click operation, voice operating etc..
In addition, the application identities of intended application are determined as specified application identities, and by the application identities of intended application with After the initiation message of intended application carries out corresponding storage, the initiation message of intended application is that specified application identities are corresponding opens Dynamic message.
Wherein, the application identities of intended application are determined as specified application identities, and by the application identities of intended application with The realization process that the initiation message of intended application carries out corresponding storage can be:By the application identities and intended application of intended application Initiation message correspondence store into specified list.
It should be noted that specified list can be configured in advance, and specified list is for storing specified application mark Know the list that the corresponding initiation message of application identities is specified with this, thus opening the application identities of intended application and intended application Dynamic message correspondence is stored into specified list, that is, realizes the application identities of intended application being determined as specified application identities, and The application identities of intended application are carried out to the operation of corresponding storage with the initiation message of intended application.
For example, the application identities of intended application are application identities 1, the initiation message of intended application is initiation message 1, at this time Terminal can be stored the application identities of intended application are corresponding with the initiation message of intended application to the specified list shown in the following table 1 In.
Table 1
Application identities Initiation message
Application identities 1 Initiation message 1
It should be noted that the embodiment of the present disclosure is only illustrated by taking the specified list shown in above-mentioned table 1 as an example, above-mentioned table 1 does not form restriction to the embodiment of the present disclosure.
In step 205, judge whether the number of starts of the intended application under this sleep pattern is more than preset times.
It should be noted that preset times can be in advance configured according to different demands, as preset times can be 3rd, 4,5 etc..
It is preset in addition, judging whether the number of starts of the intended application under this sleep pattern is more than in the embodiment of the present disclosure Number, that is to say judge intended application under this sleep pattern whether frequent starting.
In step 206, when the number of starts of the intended application under this sleep pattern is more than preset times, ignore mesh Mark the initiation message of application.
It should be noted that when the number of starts of the intended application under this sleep pattern is more than preset times, explanation The number of starts of intended application is more under this sleep pattern, that is to say, intended application may be that the malice of frequent starting should With, thus the initiation message of intended application can be ignored at this time, so as to which limited target applies the malice under this sleep pattern Terminal resource is saved in operation.
In addition, since the initiation message of intended application is the message for starting intended application, when intended application When initiation message is ignored, intended application can not start, and that is to say, the initiation message for ignoring intended application is exactly to forbid target should With operation.
In step 207, when the number of starts of the intended application under this sleep pattern is less than or equal to preset times, Bring into operation intended application.
It should be noted that the number of starts when the intended application under this sleep pattern is less than or equal to preset times When, illustrate that the number of starts of the intended application under this sleep pattern is less, that is to say, intended application should routinely start Normal use, thus the intended application that can bring into operation at this time, so as to ensure the normal operation of intended application in a sleep mode, Meet the use demand of user.
It should be noted that in order to avoid intended application is run always in a sleep mode, the resource of terminal is wasted, when opening After the application of beginning operational objective, 205- steps 206 it can also carry out the operation that control targe is applied in accordance with the following steps.
In a step 208, the operation duration of intended application is detected.
It should be noted that after the intended application that brings into operation, in order to avoid intended application is run always in a sleep mode, The operation duration of intended application can also be detected, the operation applied by the operation duration of intended application come control targe.
In step 209, when the operation duration of intended application reaches preset duration, if terminal does not exit this sleep Pattern then closes intended application.
It should be noted that preset duration can be in advance configured according to different demands, if preset duration can be 5 Minute, 8 minutes, 10 minutes etc..
In practical application, after the operation duration for detecting intended application, if the operation duration of intended application is not up to default During duration, intended application can be continued to run with, it, can be with detection terminal if the operation duration of intended application reaches preset duration This sleep pattern whether is exited, if terminal does not exit this sleep pattern, closes intended application, if terminal exits This sleep pattern can then continue to run with intended application.
It should be noted that when the operation duration of intended application is not up to preset duration, illustrate intended application at this time Operation duration is shorter, and the operation of intended application is in normal condition, therefore intended application can continue to run with.When intended application When operation duration reaches preset duration, illustrate that intended application has been running for the long period at this time, whether can be moved back with detection terminal Go out this sleep pattern, if terminal does not exit this sleep pattern, illustrate that intended application is transported under this sleep pattern It has gone the long period, the operation of intended application is likely to be at abnormality, thus in order to save terminal resource, can close target Using and if terminal has exited this sleep pattern, the operation applied should be unrestricted, thus intended application can be after Reforwarding row.
It is applied it is worth noting that, the application of normal operation in a sleep mode is needed generally to standardize, standardization should It is typically all limited with the number of starts in a sleep mode and operation duration, without standardizing, application may then sleep It frequent starting and is run always under pattern.In the embodiments of the present disclosure, by the intended application under this sleep pattern The judgement of operation duration after the number of starts and intended application startup, can accurately distinguish standardization application and lack of standardizationization should With, thereby may be ensured that the normal operation in sleep pattern is applied in standardization, and can be applied to avoid lack of standardizationization sleep mould Misoperation under formula, and then flexibility ratio when controlling application operation and accuracy are provided, and save terminal resource.
In the embodiments of the present disclosure, in the case where terminal is in sleep pattern, when the startup for detecting intended application disappears During breath, in order to determine whether intended application can be started at this time, it may be determined that the startup of intended application under this sleep pattern Number.When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, illustrate that intended application exists The number of starts is less under this sleep pattern, and intended application should be the normal use routinely started, thus can start at this time Operational objective application so as to ensure the normal operation of intended application in a sleep mode, meets the use demand of user.And work as When the number of starts of intended application is more than preset times under this sleep pattern, illustrate intended application under this sleep pattern The number of starts is excessive, and intended application may be the malicious application of frequent starting, thus can ignore the startup of intended application at this time Message so as to which limited target applies the malice under this sleep pattern to run, saves terminal resource.
Next the application operation device provided the embodiment of the present disclosure is introduced.
Fig. 3 A are the block diagrams according to a kind of application operation device shown in an exemplary embodiment.With reference to Fig. 3 A, the device Including the first determining module 301, run module 302 and ignore module 303.
First determining module 301, for when terminal is in sleep pattern, if detecting that the startup of intended application disappears Breath, it is determined that the number of starts of intended application under this sleep pattern, intended application are any application of terminal installation.
Module 302 is run, for being less than or equal to default time when the number of starts of the intended application under this sleep pattern During number, bring into operation intended application.
Ignore module 303, for when the number of starts of the intended application under this sleep pattern be more than preset times when, suddenly The slightly initiation message of intended application.
Optionally, referring to Fig. 3 B, which further includes:
First detection module 304, for detecting the operation duration of intended application.
Closedown module 305, for when the operation duration of intended application reaches preset duration, if terminal does not exit this Sleep pattern then closes intended application.
Optionally, referring to Fig. 3 C, the first determining module 301 includes:
First acquisition submodule 3011, if for detecting the initiation message of intended application, obtains intended application Application identities.
First determination sub-module 3012, for when the application identities of intended application are specified application identities, determining at this The number of starts of intended application under secondary sleep pattern.
Optionally, referring to Fig. 3 D, the first determining module 301 includes:
Second acquisition submodule 3013, for when the application identities of intended application are specified application identities, obtaining specified The corresponding initiation message of application identities.
Second determination sub-module 3014 is that the corresponding startup of specified application identities disappears for working as the initiation message of intended application During breath, the number of starts of the intended application under this sleep pattern is determined.
Optionally, referring to Fig. 3 E, the first determining module 301 further includes:
For receiving the register instruction of intended application, mesh is carried in the register instruction of intended application for receiving submodule 3015 Mark the application identities of application and the initiation message of intended application.
Sub-module stored 3016, for the application identities of intended application to be determined as the specified application identities, and by mesh The application identities of mark application carry out corresponding storage with the initiation message of intended application.
Optionally, referring to Fig. 3 F, which further includes:
Second detection module 306, for the state parameter of detection terminal.
Second determining module 307 for the state parameter according to terminal, determines to identify by preset pattern recognition model As a result, the pattern recognition model is for identifying whether to meet the model into sleep mode condition.
Control module 308, for when the recognition result enters sleep mode condition to meet, control terminal to enter sleep Pattern.
In the embodiments of the present disclosure, in the case where terminal is in sleep pattern, when the startup for detecting intended application disappears During breath, in order to determine whether intended application can be started at this time, it may be determined that the startup of intended application under this sleep pattern Number.When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, illustrate that intended application exists The number of starts is less under this sleep pattern, and intended application should be the normal use routinely started, thus can start at this time Operational objective application so as to ensure the normal operation of intended application in a sleep mode, meets the use demand of user.And work as When the number of starts of intended application is more than preset times under this sleep pattern, illustrate intended application under this sleep pattern The number of starts is excessive, and intended application may be the malicious application of frequent starting, thus can ignore the startup of intended application at this time Message so as to which limited target applies the malice under this sleep pattern to run, saves terminal resource.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is the block diagram according to a kind of application operation device shown in an exemplary embodiment.For example, device 400 can be with It is mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building Equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 can include following one or more components:Processing component 402, memory 404, power supply Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414 and Communication component 416.
The integrated operation of 402 usual control device 400 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 402 can refer to including one or more processors 420 to perform It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, contact data, and telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys and other generate, manage and distribute power supply associated component with for device 400.
Multimedia component 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when device 400 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In some embodiments, audio component 410 further includes a loud speaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor module 414 can detect opening/closed state of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor module 414 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, real shown in above-mentioned Fig. 1 and Fig. 2 for performing The method that example offer is provided.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-metioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that terminal is able to carry out a kind of application operation method, and applied to terminal, this method includes:
When terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that in this sleep mould The number of starts of intended application under formula, intended application are any application of terminal installation;
When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, bring into operation target Using;
When the number of starts of the intended application under this sleep pattern is more than preset times, ignore the startup of intended application Message.
Optionally, it after the intended application that brings into operation, further includes:
Detect the operation duration of intended application;
When the operation duration of intended application reaches preset duration, if terminal does not exit this sleep pattern, close Intended application.
Optionally, if detecting the initiation message of intended application, it is determined that the intended application under this sleep pattern The number of starts, including:
If detecting the initiation message of intended application, the application identities of intended application are obtained;
When the application identities of intended application are specified application identities, opening under this sleep pattern intended application is determined Dynamic number.
Optionally, when the application identities of intended application are specified application identities, the target under this sleep pattern is determined The number of starts of application, including:
When the application identities of intended application are specified application identities, the corresponding initiation message of specified application identities is obtained;
When the initiation message of intended application initiation message corresponding for specified application identities, determine in this sleep pattern The number of starts of lower intended application.
Optionally, when the application identities of intended application are specified application identities, the target under this sleep pattern is determined Before the number of starts of application, further include:
The register instruction of intended application is received, the application identities and mesh of intended application are carried in the register instruction of intended application Mark the initiation message of application;
The application identities of intended application are determined as specified application identities, and should by the application identities of intended application and target Initiation message carries out corresponding storage.
Optionally, when terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that at this Under sleep pattern before the number of starts of intended application, further include:
The state parameter of detection terminal;
According to the state parameter of terminal, recognition result is determined by preset pattern recognition model, pattern recognition model is For identifying whether to meet the model into sleep mode condition;
When recognition result enters sleep mode condition to meet, control terminal enters sleep pattern.
In the embodiments of the present disclosure, in the case where terminal is in sleep pattern, when the startup for detecting intended application disappears During breath, in order to determine whether intended application can be started at this time, it may be determined that the startup of intended application under this sleep pattern Number.When the number of starts of the intended application under this sleep pattern is less than or equal to preset times, illustrate that intended application exists The number of starts is less under this sleep pattern, and intended application should be the normal use routinely started, thus can start at this time Operational objective application so as to ensure the normal operation of intended application in a sleep mode, meets the use demand of user.And work as When the number of starts of intended application is more than preset times under this sleep pattern, illustrate intended application under this sleep pattern The number of starts is excessive, and intended application may be the malicious application of frequent starting, thus can ignore the startup of intended application at this time Message so as to which limited target applies the malice under this sleep pattern to run, saves terminal resource.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (14)

1. a kind of application operation method, applied to terminal, which is characterized in that the method includes:
When the terminal is in sleep pattern, if detecting the initiation message of intended application, it is determined that in this sleep mould The number of starts of the intended application under formula, the intended application are any application of terminal installation;
When the number of starts of intended application described under this sleep pattern is less than or equal to preset times, bring into operation described Intended application;
When the number of starts of intended application described under this sleep pattern is more than the preset times, ignoring the target should Initiation message.
2. according to the method described in claim 1, it is characterized in that, after the intended application that brings into operation, further include:
Detect the operation duration of the intended application;
When the operation duration of the intended application reaches preset duration, if the terminal does not exit this sleep pattern, Close the intended application.
If 3. according to the method described in claim 1, it is characterized in that, the initiation message for detecting intended application, Determine the number of starts of the intended application under this sleep pattern, including:
If detecting the initiation message of intended application, the application identities of the intended application are obtained;
When the application identities of the intended application are specified application identities, the intended application under this sleep pattern is determined The number of starts.
It is 4. according to the method described in claim 1, it is characterized in that, described when the application identities of the intended application are answered to be specified During with mark, the number of starts of the intended application under this sleep pattern is determined, including:
When the application identities of the intended application are specified application identities, obtain the corresponding startup of the specified application identities and disappear Breath;
When the initiation message of intended application initiation message corresponding for the specified application identities, determine to sleep at this The number of starts of the intended application under pattern.
It is 5. according to the method described in claim 4, it is characterized in that, described when the application identities of the intended application are answered to be specified During with mark, determine before the number of starts of the intended application, to further include under this sleep pattern:
The register instruction of the intended application is received, the application of the intended application is carried in the register instruction of the intended application The initiation message of mark and the intended application;
The application identities of the intended application are determined as the specified application identities, and by the application identities of the intended application Corresponding storage is carried out with the initiation message of the intended application.
6. according to the method described in claim 1, it is characterized in that, described when the terminal is in sleep pattern, if inspection Measure the initiation message of intended application, it is determined that under this sleep pattern before the number of starts of the intended application, also wrap It includes:
Detect the state parameter of the terminal;
According to the state parameter of the terminal, recognition result, the pattern-recognition mould are determined by preset pattern recognition model Type is for identifying whether to meet the model into sleep mode condition;
When the recognition result enters sleep mode condition to meet, the terminal is controlled to enter sleep pattern.
7. a kind of application operation device, applied to terminal, which is characterized in that described device includes:
First determining module, for when the terminal is in sleep pattern, if detecting the initiation message of intended application, Determine the number of starts of the intended application under this sleep pattern, the intended application should for any of terminal installation With;
Module is run, for being less than or equal to preset times when the number of starts of the intended application under this sleep pattern When, bring into operation the intended application;
Ignore module, for when the number of starts of intended application described under this sleep pattern be more than the preset times when, Ignore the initiation message of the intended application.
8. device according to claim 7, which is characterized in that described device further includes:
First detection module, for detecting the operation duration of the intended application;
Closedown module, for when the operation duration of the intended application reaches preset duration, if the terminal does not exit this Secondary sleep pattern then closes the intended application.
9. device according to claim 7, which is characterized in that first determining module includes:
If first acquisition submodule for detecting the initiation message of intended application, obtains the application of the intended application Mark;
First determination sub-module, for when the application identities of the intended application are specified application identities, determining to sleep at this The number of starts of the intended application under sleep mode.
10. device according to claim 7, which is characterized in that first determining module includes:
Second acquisition submodule, it is described specified for when the application identities of the intended application are specified application identities, obtaining The corresponding initiation message of application identities;
Second determination sub-module disappears for working as the initiation message of the intended application for corresponding start of the specified application identities During breath, the number of starts of the intended application under this sleep pattern is determined.
11. device according to claim 10, which is characterized in that first determining module further includes:
Receiving submodule for receiving the register instruction of the intended application, carries institute in the register instruction of the intended application State the application identities of intended application and the initiation message of the intended application;
Sub-module stored, for the application identities of the intended application to be determined as the specified application identities, and by the mesh The application identities of mark application carry out corresponding storage with the initiation message of the intended application.
12. device according to claim 7, which is characterized in that described device further includes:
Second detection module, for detecting the state parameter of the terminal;
For the state parameter according to the terminal, identification knot is determined by preset pattern recognition model for second determining module Fruit, the pattern recognition model are for identifying whether to meet the model into sleep mode condition;
Control module, for when the recognition result enters sleep mode condition to meet, the terminal being controlled to enter sleep Pattern.
13. a kind of application operation device, which is characterized in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as the step of any one method described in perform claim requirement 1-6.
14. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that The step of any one method described in claim 1-6 is realized when described instruction is executed by processor.
CN201810043514.3A 2018-01-17 2018-01-17 Application operation method, apparatus and computer readable storage medium Pending CN108255543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810043514.3A CN108255543A (en) 2018-01-17 2018-01-17 Application operation method, apparatus and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810043514.3A CN108255543A (en) 2018-01-17 2018-01-17 Application operation method, apparatus and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108255543A true CN108255543A (en) 2018-07-06

Family

ID=62741376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810043514.3A Pending CN108255543A (en) 2018-01-17 2018-01-17 Application operation method, apparatus and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108255543A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN106095478A (en) * 2016-05-31 2016-11-09 刘华英 Mode control method and system
CN107302789A (en) * 2017-06-21 2017-10-27 上海集赫电子商务有限公司 A kind of method and system for improving Android device battery durable ability
CN107567083A (en) * 2017-10-16 2018-01-09 北京小米移动软件有限公司 The method and apparatus for carrying out power saving optimization processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN106095478A (en) * 2016-05-31 2016-11-09 刘华英 Mode control method and system
CN107302789A (en) * 2017-06-21 2017-10-27 上海集赫电子商务有限公司 A kind of method and system for improving Android device battery durable ability
CN107567083A (en) * 2017-10-16 2018-01-09 北京小米移动软件有限公司 The method and apparatus for carrying out power saving optimization processing

Similar Documents

Publication Publication Date Title
CN104991789B (en) Application program open method and device
CN104219388B (en) Sound control method and device
CN107919123A (en) More voice assistant control method, device and computer-readable recording medium
US10025498B2 (en) Screen unlocking method and apparatus
CN107134823A (en) Charge prompting method and device
CN107608561A (en) Touch-screen control method and device
CN104660806A (en) Information reminding method and device
CN106781242A (en) The method for early warning and device of danger zone
CN105353901A (en) Method and apparatus for determining validity of touch operation
CN107995676A (en) terminal control method and device
CN107197441A (en) The operating mode control method and device of intelligent home device
CN106897009A (en) Mobile device time display method and device
CN104461358B (en) Light the method and device of screen
CN108427618A (en) Interim card state determines method, apparatus and computer readable storage medium
CN108267728A (en) Calibration method, device, equipment and the storage medium of range sensor
CN106912090A (en) New information reminding method and equipment
CN106534495A (en) Method of information processing, device and equipment
CN106921797A (en) Information prompting method and device
CN106455002A (en) Wireless search method and device, and terminal
CN108446226A (en) Using abnormal processing method
CN106101372B (en) Using prompting setting method and device
CN108206881A (en) Mobile terminal reminding method, device and mobile terminal
CN107343311A (en) Push control method and device
CN107037270A (en) Wireless signal detection method and device
CN106775240A (en) The triggering method of application program, device 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706

RJ01 Rejection of invention patent application after publication