CN107608724A - A kind of method, terminal and computer-readable recording medium for managing application program - Google Patents

A kind of method, terminal and computer-readable recording medium for managing application program Download PDF

Info

Publication number
CN107608724A
CN107608724A CN201710882292.XA CN201710882292A CN107608724A CN 107608724 A CN107608724 A CN 107608724A CN 201710882292 A CN201710882292 A CN 201710882292A CN 107608724 A CN107608724 A CN 107608724A
Authority
CN
China
Prior art keywords
application
default
lock
wake
abnormal
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
CN201710882292.XA
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710882292.XA priority Critical patent/CN107608724A/en
Publication of CN107608724A publication Critical patent/CN107608724A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of method, terminal and computer-readable recording medium for managing application program, wherein method includes:If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, and control display screen keeps bright screen state;If described first correspondingly runs on backstage using current running state information, the described first default wake-up lock that first application is held is discharged.Due to when detecting that holding the first default the first application for waking up lock runs on backstage, it is that exception holds the first default wake-up lock to be identified as the first application, and discharge first the held first default wake up of application and lock, so as to enable the terminals to normally enter screen state of going out, and then the electricity of terminal can be saved, extend the cruising time of terminal.

Description

A kind of method, terminal and computer-readable recording medium for managing application program
Technical field
The present invention relates to communication technical field, more particularly to a kind of method, terminal and computer for managing application program can Read storage medium.
Background technology
At present, gradually becoming strong with intelligent terminal (such as mobile phone) function, terminal can support that user installation is miscellaneous Application program (application, APP), to enrich the function of terminal.However, many APP in the market write it is inadequate Specification, or leak be present, screen state of going out can not be normally entered by frequently resulting in terminal, so as to waste the electricity of terminal, shorten end The cruising time at end.
The content of the invention
The embodiment of the present invention provides a kind of method, terminal and computer-readable recording medium for managing application program, can The electricity of terminal is saved, extends the cruising time of terminal.
In a first aspect, the embodiments of the invention provide a kind of method for managing application program, this method includes:
If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current operation shape State information;Wherein, the described first default lock that wakes up remains on state for control processor, and control display screen keeps bright screen State;
If described first correspondingly runs on backstage using current running state information, discharge first application and held The described first default wake up having is locked.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes being used to perform above-mentioned first aspect The unit of method.
The third aspect, the embodiments of the invention provide another terminal, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch The computer program that terminal performs the above method is held, the computer program includes programmed instruction, and the processor is configured to use In calling described program instruction, the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor The method for stating the above-mentioned first aspect of computing device.
If the embodiment of the present invention holds the first default wake-up lock by detecting that the first application is current, described first is obtained Using current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, and controls Display screen processed keeps bright screen state;If described first correspondingly runs on backstage using current running state information, institute is discharged The described first default wake up that the first application is held is stated to lock.Due to detecting the first application for holding the first default wake-up lock When running on backstage, be identified as the first application be it is abnormal hold first it is default wake up lock, and discharge the first application it is held the One default wakes up is locked, and so as to enable the terminals to normally enter screen state of going out, and then can be saved the electricity of terminal, be extended terminal Cruising time.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of method for managing application program provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of the method for management application program that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram for terminal that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch quick Sense surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of method for managing application program provided in an embodiment of the present invention.This The executive agent of the method for embodiment middle pipe reason application program is terminal.Terminal can be the mobile terminals such as mobile phone, tablet personal computer, But this is not limited to, can also be other-end.The method of management application program as shown in Figure 1 may comprise steps of:
S11:If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current fortune Row status information.
In the present embodiment, the dormancy of terminal system is based primarily upon wake-up lock (Wake Lock) mechanism of system with wake-up, As long as having any effective wake up in system to lock, terminal just cannot be introduced into resting state.The wake-up lock of terminal system can be by Any application program (application, APP) or service in terminal obtain.Under normal circumstances, an application program is being run When, can be to one wake-up lock of system application, to ensure to run at it in order to ensure that the task of its own can be performed effectively Period terminal will not enter resting state.
In the present embodiment, terminal system provides the wake-up lock of at least one type.Specifically, wake up lock can include but It is not limited to PARTIAL_WAKE_LOCK types and FULL_WAKE_LOCK types.
The wake-up of FULL_WAKE_LOCK types is locked remains on state for control processor, and control display screen is kept Bright screen state.The wake-up of PARTIAL_WAKE_LOCK types is locked remains on state for control processor under screen state of going out.
During terminal normal work, can the application in detection terminal in real time hold situation to wake up lock, can also be every The application that first prefixed time interval is detected in a terminal holds situation to wake-up lock.Wherein, the first prefixed time interval It can according to the actual requirements set, not be limited herein.For example, the first prefixed time interval can be 30 seconds.
If terminal, which detects that the first application is current, holds the first default wake-up lock, obtain first and apply current operation shape State information.Wherein, the first default lock that wakes up remains on state for control processor, and control display screen preserves bright screen shape State, i.e., the first default lock that wakes up can be locked for the wake-up of FULL_WAKE_LOCK types.It is current to hold what the first default wake-up was locked First application can be one, or at least two, it is not limited herein.
In the present embodiment, pre-set in the power management services (PowerManageService, PMS) of terminal system Have and wake up lock management list, the default application for waking up lock management list in terminal record terminal or service are locked to waking up Hold situation.If for example, it is a certain applied to system application one wake up lock, terminal can by the mark of the application and its The apllied type association for waking up lock is stored in default wake-up lock management list;Held if a certain application releases it Wake-up lock, then terminal, which can delete corresponding to the application this from default wake-up lock management list and wake up locking, record. It should be noted that in the present embodiment, the mark of application can be the installation kit title of application, or it can be the name of application Claim, be not limited herein.
Terminal can hold situation come the application in detection terminal according to default wake-up lock management list to wake-up lock. For example, terminal timing or can in real time detect in default wake-up lock management list and default wake up lock with the presence or absence of first.Terminal Locked if detecting and the first default wake up in default wake-up lock management list be present, illustrate that at least one current application is held First default wake up is locked.Terminal can confirm to hold the first of the first default wake-up lock from default wake-up lock management list Using, and obtain first and apply current running state information.
S12:If described first correspondingly runs on backstage using current running state information, first application is discharged The described first default wake up held is locked.
Under normal circumstances, when an application enters running background from foreground, it can discharge first that it is held and preset Lock is waken up, to enable the terminals to normally enter screen state of going out.
After terminal gets the first current running state information of application, if after detecting that the first application is currently running in Platform, then be identified as the first application be currently it is abnormal hold first it is default wake up lock, now, the application of terminal release first is held First default wake up is locked.Terminal can also terminate first while first the held first default wake-up lock of application is discharged Using corresponding all processes.
It is understood that after terminal gets the first current running state information of application, if detecting the first application Foreground is currently running in, then it is currently normally to hold the first default wake up to lock to be identified as the first application, and now, terminal can not be done Any processing.
Such scheme, if terminal, which detects that the first application is current, holds the first default wake-up lock, obtaining described first should With current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, and controls Display screen keeps bright screen state;If described first correspondingly runs on from the background using current running state information, described in release The described first default wake up that first application is held is locked.Due to detecting that holding the first default the first application for waking up lock transports For row when backstage, it is that exception holds the first default wake-up lock to be identified as the first application, and discharges first using held first It is default to wake up lock, so as to enable the terminals to normally enter screen state of going out, and then the electricity of terminal can be saved, extend the continuous of terminal ETS estimated time of sailing.
Referring to Fig. 2, Fig. 2 is a kind of exemplary flow of the method for management application program that another embodiment of the present invention provides Figure.The executive agent of the method for the present embodiment middle pipe reason application program is terminal.Terminal can be that mobile phone, tablet personal computer etc. are mobile Terminal, but this is not limited to, can also be other-end.The method of management application program as shown in Figure 2 can include following Step:
S21:If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current fortune Row status information.
Further, before S21, S20 can also be included by managing the method for application program.
S20:Detection application holds situation to wake-up lock.
S20 and S21 in the present embodiment is identical with the S11 in a upper embodiment, referring specifically in a upper embodiment S11 associated description, is not repeated herein.
Further, S21 may comprise steps of:
Lock in the presence of the first default wake up if detecting in default wake-up lock management list, locked from default wake up The mark for currently holding the described first default the first application for waking up lock is obtained in managing listings;
According to the mark of the described first application, described first is obtained from campaign management services and applies current running status Information.
If terminal detects that the first default wake up in default wake-up lock management list be present is locked, and lock is waken up from default The mark for holding the first default the first application for waking up lock is obtained in managing listings.Terminal can according to first application mark, First is obtained from campaign management services (ActivityManagerService, AMS) and applies current running state information.
S22:If described first correspondingly runs on backstage using current running state information, first application is discharged The described first default wake up held is locked.
S22 in the present embodiment is identical with the S12 in a upper embodiment, referring specifically to the S102's in a upper embodiment Associated description, do not repeat herein.
S23:If detecting that the second application is current holds the second default wake-up lock, and the display screen is currently at the screen shape that goes out State, then whether detection is current is carrying out default process corresponding with the described second application.
In the present embodiment, the second default lock that wakes up remains on state for control processor under screen state of going out, i.e., The second default lock that wakes up can be locked for the wake-up of PARTIAL_WAKE_LOCK types.
If terminal, which detects that the second application is current, holds the second default wake-up lock, the current state of detection display screen.Eventually If end detects that display screen is currently at screen state of going out, detection is current whether be carrying out it is corresponding with the second application preset into Journey.
Wherein, default process can be configured according to the actual requirements, be not limited herein.For example, default process can be with Including but not limited to music process, data downloading process, localization and meter stepping journey.
If terminal, which detects, is currently executing default process, and at least one in the default process being currently executing Default process is related to the second application, then is identified as being currently executing default process corresponding with the second application.If terminal is examined Measure it is current be not carried out default process, if or terminal detect and be currently executing default process, but currently perform default Do not apply related default process to second in process, then be identified as currently being not carried out it is corresponding with the second application preset into Journey.
If terminal, which detects, is currently not carried out default process corresponding with the described second application, S241 is performed.If terminal Detect and be currently executing default process corresponding with the described second application, then perform S242.
It is understood that if terminal, which detects that the second application is current, holds the second default wake-up lock, and detect display Screen is currently at bright screen state, then it is normally to hold the second default wake up to lock to be identified as the second application, and now, terminal can not be done Any processing.
S241:If being currently not carried out default process corresponding with the described second application, discharge second application and held The described second default wake up having is locked.
If terminal, which detects, is currently not carried out default process corresponding with the described second application, it is identified as the second application and works as Before be it is abnormal hold second it is default wake up lock, now, the second application of terminal release held second is default to wake up lock, so that eventually End can normally enter resting state.
S242:If being currently executing default process corresponding with the described second application, the abnormal application to prestore is detected With the presence or absence of the mark of the described second application in list.
If terminal, which detects, is currently executing default process corresponding with the second application, the second application is tentatively identified as It is currently normally to hold the second default wake up to lock.In order to further confirm that whether the second application is currently normally to hold second to preset Wake up lock.Terminal can be detected in the abnormal list of application to prestore with the presence or absence of the mark of the second application.Wherein, abnormal application row Table is used to store the abnormal mark applied extremely for holding the described second default wake-up lock, and abnormal application is marked in advance by server Note.
If terminal detects the mark that the second application in abnormal list of application be present, S2421 is performed.If terminal detects The mark of the second application is not present in abnormal list of application, then performs S2422.
S2421:If the mark of second application in the abnormal list of application to prestore be present, second application is discharged The described second default wake up held is locked, and terminates the default process corresponding to second application.
If terminal detects the mark that the second application in abnormal list of application be present, confirm that the second application is currently not just Often hold second it is default wake up lock, that is, confirm the second application be currently it is abnormal hold second it is default wake up lock, now, terminal release Second the held second default wake up of application is locked, and terminates to preset process corresponding to the second default application, to enable the terminals to Resting state is normally entered, so as to save the electricity of terminal.
S2422:If the mark of the described second application is not present in the abnormal list of application to prestore, display authorizes prompting letter Breath.
If terminal detects the mark that the second application is not present in the abnormal list of application to prestore, display authorizes prompting letter Breath.Wherein, prompt message is authorized to be used to be confirmed whether to authorize the second application currently to perform default process corresponding to it for user.
If terminal detects the authorized order of user's input, it is currently normally to hold second default to call out to confirm the second application Wake up and lock, terminal can be with without any processing herein.Wherein, authorized order authorizes the second application currently to perform it for identifying user Corresponding default process.
If terminal detects the unauthorized instruction of user's input, S25 is performed.Wherein, unauthorized instruct is used for identifying Family does not authorize the second application currently to perform default process corresponding to it.
S25:If detecting the unauthorized instruction of user's input, it is pre- using held described second to discharge described second If waking up lock, and terminate the default process corresponding to second application.
If terminal detects the unauthorized instruction of user's input, confirm that the second application is currently not that normal to hold second pre- If waking up lock, that is, confirm the second application be currently it is abnormal hold second it is default wake up lock, now, the application of terminal release second is held The second default wake up having is locked, and terminates to preset process corresponding to the second default application, to enable the terminals to normally enter dormancy State, so as to save the electricity of terminal.
S26:Described second is defined abnormal application using identification, and by second mark applied and described second Sent using corresponding abnormal behaviour information to the server.
Terminal is currently that exception holds the second default wake-up in the application of unauthorized confirmation command second inputted according to user During lock, can be defined the second application identification abnormal application, and the mark of the second application and its corresponding abnormal behaviour are believed Breath is sent to server.
Wherein, the abnormal behaviour information of the second application holds the different of the second default wake-up lock for identifying second using abnormal Chang Hangwei.Abnormal behaviour information is used for the application of server detection second to whether being abnormal application.
If specifically, server receive different terminals transmission to second apply related abnormal behaviour information, unite Meter sends the quantity of the terminal of the abnormal behaviour information.If the quantity for sending the terminal of the abnormal behaviour information is more than default threshold Value, then it is that exception holds the second default wake-up lock to be identified as the second application.Wherein, predetermined threshold value can be true according to actual conditions It is fixed, it is not limited herein.For example, predetermined threshold value can be 10.
If server detects that the second application is that exception holds the second default wake-up lock, the second application is labeled as abnormal Using, and the abnormal application message for the mark for carrying the second application is sent to target terminal.
Wherein, target terminal is that the terminal to the second related abnormal behaviour information of application is sent to server.
S27:If receiving the abnormal application message that the server returns, the abnormal application message is carried different The mark often applied is stored in the abnormal list of application.
If terminal is connected to the abnormal application message of server return, the mark applied extremely is obtained from abnormal application message Know, and the mark applied extremely is stored in abnormal list of application.
Such scheme, if terminal, which detects that the first application is current, holds the first default wake-up lock, obtaining described first should With current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, and controls Display screen keeps bright screen state;If described first correspondingly runs on from the background using current running state information, described in release The described first default wake up that first application is held is locked.Due to detecting that holding the first default the first application for waking up lock transports For row when backstage, it is that exception holds the first default wake-up lock to be identified as the first application, and discharges first using held first It is default to wake up lock, so as to enable the terminals to normally enter screen state of going out, and then the electricity of terminal can be saved, extend the continuous of terminal ETS estimated time of sailing.
For terminal when detecting that second holds the second default wake-up lock using exception, release second is using held second It is default to wake up lock, so as to enable the terminals to normally enter resting state, and then the electricity of terminal can be saved, extend the continuous of terminal ETS estimated time of sailing.
The embodiment of the present invention also provides a kind of terminal, and the terminal includes being used to perform the management application described in foregoing any one The unit of the method for program.Specifically, referring to Fig. 3, Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention. Terminal 300 can be the mobile terminals such as smart mobile phone, tablet personal computer.The terminal 300 of the present embodiment includes that list can be obtained with first Member 301 and wake-up lock management unit 302.
If first acquisition unit 301 is locked for detecting first using the first default wake up currently is held, described in acquisition First applies current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, And control display screen keeps bright screen state.
Backstage is correspondingly run on using current running state information if waking up lock management unit 302 and being used for described first, The described first default wake up that first application is held then is discharged to lock.
Further, terminal 300 can also include the first detection unit 303.
If the first detection unit 303 is used to detect that the second default wake-up lock, and the display are currently held in the second application Screen is currently at screen state of going out, then whether detection is current is carrying out default process corresponding with the described second application;Wherein, institute The second default lock that wakes up is stated to be used to control the processor to remain on state under screen state of going out.
If waking up lock management unit 302 to be additionally operable to currently be not carried out default process corresponding with the described second application, release The described second default wake up that second application is held is put to lock.
Further, terminal 300 can also include the second detection unit 304.
If the second detection unit 304 is used to be currently executing default process corresponding with the described second application, detect With the presence or absence of the mark of the described second application in the abnormal list of application to prestore;Wherein, the abnormal list of application is used to store Exception holds the described second default mark applied extremely for waking up lock;The abnormal application is marked in advance by server.
If the mark of second application in waking up the abnormal list of application that lock management unit 302 is additionally operable to prestore be present, Then discharge the described second default wake up that second application is held to lock, and terminate described default corresponding to second application Process.
Further, terminal 300 can also include display unit 305.
If the mark of the described second application is not present in the abnormal list of application that display unit 305 is used to prestore, show Authorize prompt message;Wherein, the mandate prompt message is used to be confirmed whether to authorize second application is current to perform for user The default process.
If waking up the unauthorized instruction that lock management unit 302 is additionally operable to detect user's input, discharging described second should Lock is waken up with described second held is default, and terminates the default process corresponding to second application.
Further, terminal 300 can also include transmitting element 306.
Transmitting element 306 is used to described second be defined abnormal application using identification, and by second mark applied And abnormal behaviour information corresponding to second application is sent to the server;Wherein, the abnormal behaviour information is used for Whether server detection second application is to being abnormal application.
Further, terminal 300 can also include receiving unit 307.
If receiving unit 307 is used to receive the abnormal application message that the server returns, by the abnormal application The mark applied extremely that information carries is stored in the abnormal list of application.
Further, first acquisition unit 301 specifically includes application identities acquiring unit and running state information obtains list Member.
If application identities acquiring unit, which is used to detect, has the first default wake-up lock in default wake-up lock management list, The mark for currently holding the described first default the first application for waking up lock is then obtained in lock management list from default wake up.
Running state information acquiring unit is used for the mark according to the described first application, and institute is obtained from campaign management services State first and apply current running state information.
Such scheme, if terminal, which detects that the first application is current, holds the first default wake-up lock, obtaining described first should With current running state information;Wherein, the described first default lock that wakes up remains on state for control processor, and controls Display screen keeps bright screen state;If described first correspondingly runs on from the background using current running state information, described in release The described first default wake up that first application is held is locked.Due to detecting that holding the first default the first application for waking up lock transports For row when backstage, it is that exception holds the first default wake-up lock to be identified as the first application, and discharges first using held first It is default to wake up lock, so as to enable the terminals to normally enter screen state of going out, and then the electricity of terminal can be saved, extend the continuous of terminal ETS estimated time of sailing.
For terminal when detecting that second holds the second default wake-up lock using exception, release second is using held second It is default to wake up lock, so as to enable the terminals to normally enter resting state, and then the electricity of terminal can be saved, extend the continuous of terminal ETS estimated time of sailing.
Referring to Fig. 4, Fig. 4 is a kind of schematic block diagram for terminal that yet another embodiment of the invention provides.This reality as shown in Figure 4 The terminal 400 applied in example can include:One or more processors 401, one or more input equipments 402, one or more Then output equipment 403 and one or more memories 404.Above-mentioned processor 401, input equipment 402, then output equipment 403 and Memory 404 completes mutual communication by communication bus 405.Memory 404 is used to store computer program, the calculating Machine program includes programmed instruction.Processor 401 is used for the programmed instruction for performing the storage of memory 404.Wherein, the quilt of processor 401 It is configured to call described program instruction to perform following operate:
If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current operation shape State information;Wherein, the described first default lock that wakes up remains on state for control processor, and control display screen keeps bright screen State;
If described first correspondingly runs on backstage using current running state information, discharge first application and held The described first default wake up having is locked.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
If detecting that the second application is current holds the second default wake-up lock, and the display screen is currently at screen state of going out, Whether then detection is current is carrying out default process corresponding with the described second application;Wherein, the described second default lock that wakes up is used In controlling the processor state is remained under screen state of going out;
If being currently not carried out default process corresponding with the described second application, discharge described second and apply held institute The second default wake up is stated to lock.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
If being currently executing default process corresponding with the described second application, detect in the abnormal list of application to prestore With the presence or absence of the mark of the described second application;Wherein, the abnormal list of application is used to storing that abnormal to hold described second default Wake up the mark applied extremely of lock;The abnormal application is marked in advance by server;
If the mark of second application in the abnormal list of application to prestore be present, discharge second application and held Described second it is default wake up lock, and terminate the default process corresponding to second application.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
If the mark of the described second application is not present in the abnormal list of application to prestore, display authorizes prompt message;Its In, the mandate prompt message is used to be confirmed whether to authorize second application currently to perform the default process for user;
If detecting the unauthorized instruction of user's input, discharge that second application is held described second default calls out Wake up and lock, and terminate the default process corresponding to second application.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
Described second is defined abnormal application using identification, and by second mark applied and second application Corresponding abnormal behaviour information is sent to the server;Wherein, the abnormal behaviour information is used for server detection institute The second application is stated to whether being abnormal application.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
If receiving the abnormal application message that the server returns, the exception that the abnormal application message is carried should Mark is stored in the abnormal list of application.
Further, processor 401 is additionally configured to call described program instruction to perform following operate:
Lock in the presence of the first default wake up if detecting in default wake-up lock management list, locked from default wake up The mark for currently holding the described first default the first application for waking up lock is obtained in managing listings;
According to the mark of the described first application, described first is obtained from campaign management services and applies current running status Information.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 403 can include display (LCD etc.), loudspeaker etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the output equipment 403 described in the embodiment of the present invention can Perform the reality described in the first embodiment and second embodiment of the method for management application program provided in an embodiment of the present invention Existing mode, the implementation of the terminal described by the embodiment of the present invention is also can perform, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program includes programmed instruction, and described program instruction is realized when being executed by processor:
If detecting that the first application is current holds the first default wake-up lock, obtain described first and apply current operation shape State information;Wherein, the described first default lock that wakes up remains on state for control processor, and control display screen keeps bright screen State;
If described first correspondingly runs on backstage using current running state information, discharge first application and held The described first default wake up having is locked.
Further, also realized when the computer program is executed by processor:
If detecting that the second application is current holds the second default wake-up lock, and the display screen is currently at screen state of going out, Whether then detection is current is carrying out default process corresponding with the described second application;Wherein, the described second default lock that wakes up is used In controlling the processor state is remained under screen state of going out;
If being currently not carried out default process corresponding with the described second application, discharge described second and apply held institute The second default wake up is stated to lock.
Further, also realized when the computer program is executed by processor:
If being currently executing default process corresponding with the described second application, detect in the abnormal list of application to prestore With the presence or absence of the mark of the described second application;Wherein, the abnormal list of application is used to storing that abnormal to hold described second default Wake up the mark applied extremely of lock;The abnormal application is marked in advance by server;
If the mark of second application in the abnormal list of application to prestore be present, discharge second application and held Described second it is default wake up lock, and terminate the default process corresponding to second application.
Further, also realized when the computer program is executed by processor:
If the mark of the described second application is not present in the abnormal list of application to prestore, display authorizes prompt message;Its In, the mandate prompt message is used to be confirmed whether to authorize second application currently to perform the default process for user;
If detecting the unauthorized instruction of user's input, discharge that second application is held described second default calls out Wake up and lock, and terminate the default process corresponding to second application.
Further, also realized when the computer program is executed by processor:
Described second is defined abnormal application using identification, and by second mark applied and second application Corresponding abnormal behaviour information is sent to the server;Wherein, the abnormal behaviour information is used for server detection institute The second application is stated to whether being abnormal application.
Further, also realized when the computer program is executed by processor:
If receiving the abnormal application message that the server returns, the exception that the abnormal application message is carried should Mark is stored in the abnormal list of application.
Further, also realized when the computer program is executed by processor:
Lock in the presence of the first default wake up if detecting in default wake-up lock management list, locked from default wake up The mark for currently holding the described first default the first application for waking up lock is obtained in managing listings;
According to the mark of the described first application, described first is obtained from campaign management services and applies current running status Information.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily The data that ground storage has been exported or will exported.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the several embodiments provided are originally provided, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, terminal, or network equipment etc.) performs the whole of each embodiment methods described of the present invention Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

  1. A kind of 1. method for managing application program, it is characterised in that including:
    If detecting that the first application is current holds the first default wake-up lock, obtain the current running status of first application and believe Breath;Wherein, the described first default lock that wakes up remains on state for control processor, and control display screen keeps bright screen shape State;
    If described first correspondingly runs on backstage using current running state information, discharge what first application was held Described first default wake up is locked.
  2. 2. according to the method for claim 1, it is characterised in that also include:
    If detecting that the second application is current holds the second default wake-up lock, and the display screen is currently at screen state of going out, then examines Survey and currently whether be carrying out default process corresponding with the described second application;Wherein, the described second default lock that wakes up is used to control Make the processor and remain on state under screen state of going out;
    If being currently not carried out default process corresponding with the described second application, discharge that second application held described the Two default wake up are locked.
  3. 3. according to the method for claim 2, it is characterised in that if described detect that the second application is currently held second and preset Lock is waken up, and the display screen is currently at screen state of going out, then whether detection is current is carrying out with described second using corresponding Default process after, in addition to:
    If being currently executing default process corresponding with the described second application, detect in the abnormal list of application to prestore whether The mark of second application be present;Wherein, the abnormal list of application holds the described second default wake-up for storing exception The mark applied extremely of lock;The abnormal application is marked in advance by server;
    If the mark of second application in the abnormal list of application to prestore be present, discharge described second and apply held institute State the second default wake up to lock, and terminate the default process corresponding to second application.
  4. 4. according to the method for claim 3, it is characterised in that if described be currently executing with described second using corresponding Default process, then detect in the abnormal list of application to prestore with the presence or absence of described second application mark after, in addition to:
    If the mark of the described second application is not present in the abnormal list of application to prestore, display authorizes prompt message;Wherein, institute State and authorize prompt message to be used to be confirmed whether to authorize second application currently to perform the default process for user;
    If detecting the unauthorized instruction of user's input, the described second default wake-up that second application is held is discharged Lock, and terminate the default process corresponding to second application.
  5. 5. according to the method for claim 4, it is characterised in that if the unauthorized instruction for detecting user's input, Discharge that second application is held described second it is default wake up lock, and terminate corresponding to second application it is described preset into After journey, in addition to:
    Described second is defined abnormal application using identification, and second mark applied and second application is corresponding Abnormal behaviour information send to the server;Wherein, the abnormal behaviour information is used for server detection described the Whether two applications are to being abnormal application.
  6. 6. according to the method for claim 5, it is characterised in that it is described that described second is defined abnormal application using identification, And send abnormal behaviour information corresponding to second mark applied and second application to the server, Also include:
    If receiving the abnormal application message that the server returns, by applying extremely of carrying of the abnormal application message Mark is stored in the abnormal list of application.
  7. 7. according to the method described in any one of claim 1 to 6, it is characterised in that if described detect that the first application is currently held There is the first default wake up to lock, then obtain described first and apply current running state information, including:
    Locked if detecting and the first default wake up in default wake-up lock management list be present, from the default wake-up lock management The mark for currently holding the described first default the first application for waking up lock is obtained in list;
    According to the mark of the described first application, the current running status of first application is obtained from campaign management services and is believed Breath.
  8. 8. a kind of terminal, it is characterised in that including the list for performing the method as described in claim 1-7 any claims Member.
  9. 9. a kind of terminal, it is characterised in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store computer program, the computer Program includes programmed instruction, and the processor is arranged to call described program instruction, performed such as any one of claim 1-7 Described method.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-7.
CN201710882292.XA 2017-09-26 2017-09-26 A kind of method, terminal and computer-readable recording medium for managing application program Pending CN107608724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710882292.XA CN107608724A (en) 2017-09-26 2017-09-26 A kind of method, terminal and computer-readable recording medium for managing application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710882292.XA CN107608724A (en) 2017-09-26 2017-09-26 A kind of method, terminal and computer-readable recording medium for managing application program

Publications (1)

Publication Number Publication Date
CN107608724A true CN107608724A (en) 2018-01-19

Family

ID=61058476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710882292.XA Pending CN107608724A (en) 2017-09-26 2017-09-26 A kind of method, terminal and computer-readable recording medium for managing application program

Country Status (1)

Country Link
CN (1) CN107608724A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947484A (en) * 2019-02-25 2019-06-28 努比亚技术有限公司 A kind of control method, terminal and computer readable storage medium waking up lock
CN110087132A (en) * 2019-05-14 2019-08-02 珠海格力电器股份有限公司 Method and equipment for intelligently setting brightness
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110837290A (en) * 2019-09-30 2020-02-25 华为终端有限公司 Management method of kernel lock and terminal equipment
CN111352660A (en) * 2018-12-20 2020-06-30 成都鼎桥通信技术有限公司 Method and device for identifying application with wake-up lock
WO2021017935A1 (en) * 2019-07-26 2021-02-04 华为技术有限公司 Wakelock management method and electronic device
CN113377474A (en) * 2021-06-10 2021-09-10 湖南快乐阳光互动娱乐传媒有限公司 Screen protection display method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105530377A (en) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 Method, device and system for processing wake-up lock
CN106095419A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Wake up lock method for releasing and device up
CN106095288A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of based on the treating method and apparatus waking up lock up
CN106502372A (en) * 2016-11-28 2017-03-15 珠海市魅族科技有限公司 A kind of method of application control and mobile terminal
CN106502687A (en) * 2016-10-24 2017-03-15 深圳市金立通信设备有限公司 A kind of method and terminal for entering resting state

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105530377A (en) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 Method, device and system for processing wake-up lock
CN106095419A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Wake up lock method for releasing and device up
CN106095288A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of based on the treating method and apparatus waking up lock up
CN106502687A (en) * 2016-10-24 2017-03-15 深圳市金立通信设备有限公司 A kind of method and terminal for entering resting state
CN106502372A (en) * 2016-11-28 2017-03-15 珠海市魅族科技有限公司 A kind of method of application control and mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110543333B (en) * 2018-05-29 2024-05-17 视联动力信息技术股份有限公司 Sleep processing method and device for processor, mobile terminal and storage medium
CN111352660A (en) * 2018-12-20 2020-06-30 成都鼎桥通信技术有限公司 Method and device for identifying application with wake-up lock
CN109947484A (en) * 2019-02-25 2019-06-28 努比亚技术有限公司 A kind of control method, terminal and computer readable storage medium waking up lock
CN110087132A (en) * 2019-05-14 2019-08-02 珠海格力电器股份有限公司 Method and equipment for intelligently setting brightness
WO2021017935A1 (en) * 2019-07-26 2021-02-04 华为技术有限公司 Wakelock management method and electronic device
CN110837290A (en) * 2019-09-30 2020-02-25 华为终端有限公司 Management method of kernel lock and terminal equipment
CN113377474A (en) * 2021-06-10 2021-09-10 湖南快乐阳光互动娱乐传媒有限公司 Screen protection display method and related device

Similar Documents

Publication Publication Date Title
CN107608724A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN107528922A (en) A kind of information push method, terminal and computer-readable recording medium
CN107844189A (en) A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN106502687A (en) A kind of method and terminal for entering resting state
CN107728876A (en) A kind of method of split screen display available, terminal and computer-readable recording medium
CN106569585A (en) Method and terminal of managing application program process
CN107479806A (en) The method and terminal of a kind of changing interface
CN107390969B (en) A kind of method and terminal controlling suspended window
CN106453904A (en) Information reminding method and terminal
CN107729781A (en) The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium
CN107734033A (en) A kind of method, terminal, system and computer-readable recording medium exempted from flow and download application program
CN107480001A (en) System recovery method and device
CN107491324A (en) A kind of method and terminal for installing application program
CN107423064A (en) Message treatment method, device, terminal device and storage medium
CN106469396A (en) A kind of method of advertisement information and terminal
CN107463350A (en) A kind of footmark method of adjustment and terminal
CN107743164A (en) A kind of exception falls the processing method and terminal of card
CN107608719A (en) A kind of interface operation method, terminal and computer-readable recording medium
CN107844341A (en) Management-control method, device and the storage medium and mobile terminal of process initiation
CN103902011A (en) Electronic device controlling method and electronic device
CN107370872A (en) Method, terminal and the control device of a kind of terminal lock machine and control terminal lock machine
CN108181980A (en) A kind of terminal control method, terminal and computer readable storage medium
CN107783633A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN107070670A (en) Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
CN106650409B (en) A kind of terminal control method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180119

WD01 Invention patent application deemed withdrawn after publication