CN110069333A - Backstage management-control method, mobile terminal and the computer readable storage medium of application - Google Patents

Backstage management-control method, mobile terminal and the computer readable storage medium of application Download PDF

Info

Publication number
CN110069333A
CN110069333A CN201910360666.0A CN201910360666A CN110069333A CN 110069333 A CN110069333 A CN 110069333A CN 201910360666 A CN201910360666 A CN 201910360666A CN 110069333 A CN110069333 A CN 110069333A
Authority
CN
China
Prior art keywords
application
default
backstage
target application
write
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
CN201910360666.0A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910360666.0A priority Critical patent/CN110069333A/en
Publication of CN110069333A publication Critical patent/CN110069333A/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/506Constraint
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of backstage management-control methods of application, this method comprises: obtaining the operating parameter of the application and application of running background, wherein the operating parameter includes at least running background duration, resource read-write behavior and service processes;When the running background duration of the application is more than preset duration, behavior and the service processes are read and write according to the resource, determine whether the application is target application;When determining the application is target application, based on default control rule, the target application is managed.The invention also discloses a kind of mobile terminal and computer readable storage mediums.The present invention can rationally manage the application of running background, so that it is guaranteed that the fluency of running of mobile terminal, and reach and save energy, increase the beneficial effect in cruise duration.

Description

Backstage management-control method, mobile terminal and the computer readable storage medium of application
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of backstage management-control method of application, mobile terminal and Computer readable storage medium.
Background technique
With the continuous development of electronic technology and mobile terminal becomes increasingly popular, and existing mobile terminal is mountable a variety of Application program, social software, player, map, game etc..Wherein, game class or music class are applied in running background, More system resource, such as memory and electricity can be consumed, it is mobile whole if game class or the application of music class are active in backstage for a long time Easily there is phenomena such as short Caton, standby time, fever in end, affects the fluency and cruising ability of running of mobile terminal.
Summary of the invention
The main purpose of the present invention is to provide a kind of backstage management-control method of application, mobile terminal and computer-readable deposit Storage media, it is intended to promote the fluency and cruising ability of mobile terminal.
To achieve the above object, the backstage management-control method of a kind of application provided by the invention, the method includes following steps It is rapid:
Obtain the operating parameter of the application and application of running background, wherein after the operating parameter includes at least Platform operation duration, resource read-write behavior and service processes;
When the running background duration of the application is more than preset duration, behavior and the service are read and write according to the resource Process determines whether the application is target application;
When determining the application is target application, based on default control rule, the target application is managed.
Optionally, described that behavior and the service processes are read and write according to the resource, determine whether the application is target Using the step of include:
Judge whether resource read-write behavior is to write audio stream operation, and judge that the process values of the service processes is No is default process value;
When resource read-write behavior is to write audio stream operation, and the process value of the service processes is not default process value When, determine that the application is target application.
Optionally, described when determining the application is target application, based on default control rule, to the target application The step of being managed include:
When determining the application is target application, whether detection currently meets default control condition;
If current meet default control condition, force the resource for terminating target application read-write behavior and service into Journey, or freeze resource read-write behavior and the service processes of the target application.
Optionally, described to detect that the step of currently whether meeting default control condition includes:
Read current free memory;
Judge whether the free memory is less than or equal to default memory threshold;
If so, determining the default control condition of current satisfaction.
Optionally, described to detect that the step of currently whether meeting default control condition includes:
Judge current time whether within a preset period of time;
If so, determining the default control condition of current satisfaction.
Optionally, described to detect that the step of currently whether meeting default control condition includes:
Whether detection is current is in energy-saving mode;
If so, determining the default control condition of current satisfaction.
Optionally, it is described judge resource read-write behavior whether be write audio stream operation, and judge it is described service into After the step of whether the process value of journey is default process value, further includes:
When resource read-write behavior is not that write the process value of audio stream operation or the service processes be default process value When, the application is included in the application white list for not making to manage.
Optionally, described when determining the application is target application, based on default control rule, the target is answered After being managed, further includes:
The target application is added to and is forbidden in self-operating list, to forbid the self-starting of the target application to run.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory, Processor and the application backstage control program that is stored on the memory and can run on the processor, after the application Platform control program realizes the step of backstage management-control method of the application as described in any one of above-mentioned when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored on storage medium using backstage control program, the application backstage control program is realized when being executed by processor as above-mentioned Any one of described in application backstage management-control method the step of.
The present invention provides backstage management-control method, mobile terminal and the computer readable storage medium of a kind of application, obtains first Take the operating parameter of application and the application of running background, wherein operating parameter includes at least running background duration, resource is read and write Behavior and service processes read and write behavior and service according to resource then when the running background duration of application is more than preset duration Process determines whether application is target application, finally when determining application is target application, based on default control rule, to mesh Mark application is managed, and the present invention can manage the application of unreasonable occupying system resources, and then ensure mobile terminal The fluency of operation, and reach and save energy, increase the beneficial effect in cruise duration.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram for the backstage management-control method first embodiment that the present invention applies;
Fig. 4 is the flow diagram for the backstage management-control method second embodiment that the present invention applies.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, Tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), just Prompt formula media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer Deng.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.In the present invention, the memory of mobile terminal 100 It is stored in 109 using fast starting sequence.Memory 109 can mainly include storing program area and storage data area, wherein deposit Store up program area can application program needed for storage program area, at least one function (for example sound-playing function, image play function Energy is equal) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone. It can also include nonvolatile memory in addition, memory 109 may include high-speed random access memory, for example, at least one A disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In the present invention, processor 110 is configured to execute application backstage control program to execute operations described below: obtaining backstage and transports The operating parameter of capable application and the application, wherein the operating parameter includes at least running background duration, resource is read and write Behavior and service processes;When the running background duration of the application be more than preset duration when, according to the resource read and write behavior and The service processes determine whether the application is target application;When determining the application is target application, based on default pipe Regulatory control then, is managed the target application.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
Judge whether resource read-write behavior is to write audio stream operation, and judge that the process values of the service processes is No is default process value;
When resource read-write behavior is to write audio stream operation, and the process value of the service processes is not default process value When, determine that the application is target application.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
When determining the application is target application, whether detection currently meets default control condition;
If current meet default control condition, force the resource for terminating target application read-write behavior and service into Journey, or freeze resource read-write behavior and the service processes of the target application.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
Read current free memory;
Judge whether the free memory is less than or equal to default memory threshold;
If so, determining the default control condition of current satisfaction.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
Judge current time whether within a preset period of time;
If so, determining the default control condition of current satisfaction.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
Whether detection is current is in energy-saving mode;
If so, determining the default control condition of current satisfaction.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
When resource read-write behavior is not that write the process value of audio stream operation or the service processes be default process value When, the application is included in the application white list for not making to manage.
Further, mobile terminal calls the application backstage control program stored in memory 1005 by processor 1001 To execute operations described below:
The target application is added to and is forbidden in self-operating list, to forbid the self-starting of the target application to run.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although being not shown in Fig. 1, mobile terminal 100 can also be no longer superfluous herein including bluetooth module etc. in the present invention It states.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, the backstage management-control method that the present invention applies is proposed Each embodiment.
Referring to Fig. 3, Fig. 3 is the flow diagram for the backstage management-control method first embodiment that the present invention applies.
In the present embodiment, the backstage management-control method of application the following steps are included:
Step S10 obtains the operating parameter of application and the application of running background, wherein after operating parameter includes at least Platform operation duration, resource read-write behavior and service processes;
In the present embodiment, a certain or a few particular task is completed using referring to and by developing operation in operating system On computer applied algorithm.It should be added that the front stage operation of application program, exactly application are directly transported by window Row, can be with the interface of terminal user interaction.And the running background of application program, it refers to applying and be transported in resource manager Row, typically no interface, but occupying system resources, provide booster action for other programs.In actual use, using journey Sequence can arbitrarily switch between foreground and backstage.For example user opens a certain music application on terminal interface and plays music, Backstage the music application can also be switched to play out;Or a certain map application is in running background, then by another Tripartite's applications trigger simultaneously jumps to front stage operation etc..The operation of each application has its corresponding operating parameter, including operation Duration, resource read-write behavior and service processes.Operation duration can be divided into front stage operation duration and running background duration.Resource Read-write behavior includes the output or write-in of resource file, such as write-in audio stream, output access request.One program of every operation, Just it is corresponding with a service processes.It is understood that program be it is dead (static), service processes are living (dynamic).
Step S20, when the running background duration of application be more than preset duration when, according to resource read and write behavior and service into Journey determines whether application is target application;
In the present embodiment, what running background duration indicated is the length applied in the running background time, can be 3 minutes, 1 Hour or differ within 32 hours, with specific reference to applying depending on the practical operation situation on backstage.Preset duration can for 30s, 8min, The specific values such as 10min, or ratio (such as 1%) variate of terminal standby duration.In actual use, backstage The one or more different application programs of operation, and the irregular front and back switching of application program, cause the application of running background to be It changes, and these applications may be reasonable employment system resource, it is also possible to unreasonable occupying system resources.For further from Middle determining target application (the i.e. unreasonable application for occupying resource), can be determined, optional application by the operating parameter of application Running background when long hair when being more than preset duration, not counting irrational use if being less than preset duration, read further according to resource Behavior and service processes are write, further determines that whether apply is target application.
Step S30, based on default control rule, carries out at control target application when determining application is target application Reason.
In the present embodiment, when determining application is target application, target application can be carried out according to default control rule Control processing, so that the unreasonable application for occupying backstage resource is managed, for example terminates or freeze operation etc., and then ensure The fluency of terminal operating, and reach and save energy, increase the beneficial effect in cruise duration.
The backstage management-control method for the application that the present embodiment proposes, the first operation of application and the application of acquisition running background Parameter, wherein operating parameter includes at least running background duration, resource read-write behavior and service processes, then when application after When platform operation duration is more than preset duration, behavior and service processes are read and write according to resource, determine whether application is target application, most Afterwards when determining application is target application, based on default control rule, target application is managed, the present invention can be to not conforming to The application of reason occupying system resources is managed, and then ensures the fluency of running of mobile terminal, and reach and save energy, increase The beneficial effect in cruise duration.
Further, the second embodiment of the backstage management-control method of the invention applied is proposed based on first embodiment.
The difference of the first embodiment of the backstage management-control method of the second embodiment and application of the backstage management-control method of application It is, referring to Fig. 4, step S20, comprising:
Step S21 judges whether resource read-write behavior is to write audio stream operation, and judge that the process values of service processes is No is default process value;
In the present embodiment, resource read-write behavior includes the output or write-in of resource file, and audio stream, output access is such as written Request etc..Service processes be how according to assembly operating state the state of dynamic regulation process itself.There are two service processes Important state value, i.e. adj (being defined on ProcessList.java) and procState (are defined on ActivityManager.java).Eligible process value adj herein.Adj=0 is expressed as foreground process, and adj=100 is expressed as can See process, adj=200 is expressed as can aware processes.Thus default process value is chosen as 100 and/or 200.
Step S22, when resource read-write behavior is to write audio stream operation, and the process value of service processes is not default process value When, determine that application is target application.
In the present embodiment, containing playing function in existing application, when being switched to running background, persistently holds and write audio Stream operation (bottom writes pid), such as game class are applied and game sound are only set as nothing at backstage, but backstage is also continuous Write audio stream;For example reading class and applying is that background music is set as nothing at backstage, same backstage is also constantly being write Audio stream.These running background durations are more than preset duration, and occupy the application that resource constantly writes audio stream, and it is unreasonable for being Application.In actual use, it is found that although the broadcasting of certain applications such as music application is switched to running background, and constantly Write audio stream, but sound is provided with, and is not unreasonable application.The process value adj of service processes is equal to 100 or 200 When, it is believed that it is to play the music application of music on backstage, is not target application.The process value adj of service processes is not equal to 100 Or when 200, it is believed that it is to apply on backstage without game, the reading etc. for playing sound but still audio stream being written, and can be determined that mesh Mark application.
Further, after step S21, the backstage management-control method of application further include: when resource read-write behavior is not to write When audio stream operation or the process value of the service processes are default process value, the application is included in the application for not making to manage In white list.
In the present embodiment, mainly in running background, and persistently hold to write audio stream operation but having voiceless sound broadcasting Application, thus when resource read-write behavior be not to write audio stream operation, it is believed that apply in running background but no music function.When When the process value of service processes is default process value, it is believed that apply in running background but have broadcasting sound.Resource is read and write into behavior The process value to write audio stream operation or service processes be corresponding to default process value using being included in using in white list, It avoids managing.
Further, the 3rd embodiment of the backstage management-control method of the invention applied is proposed based on first embodiment.
The difference of the first embodiment of the backstage management-control method of the 3rd embodiment and application of the backstage management-control method of application It is, step S30, comprising:
When determining application is target application, whether detection currently meets default control condition;
If current meet default control condition, the resource read-write behavior for forcing target end to be applied and service processes, or Freeze resource read-write behavior and the service processes of target application.
In the present embodiment, first whether detection currently meets default control condition, if satisfied, managing again to target application Processing.The free memory that default control condition can be mobile terminal is small, current time within a preset period of time, starting energy-saving mould Formula etc. can be specifically configured according to actual needs.
Specifically, the step of whether detection currently meets default control condition, comprising:
A1 reads the free memory of present terminal;
A2, judges whether free memory is less than or equal to default memory threshold;
A3, if so, determining the default control condition of current satisfaction.The size of Installed System Memory is fixed value, can for 8G, 4G, 32M etc., depending on reality.Default memory threshold can for 5,8, the specific values such as 10M, or it is initial it is available in The variates such as the ratio (2%) deposited.In use, the operation of application can occupy certain memory source, so that free memory It reduces, and then terminal operating is made Caton phenomenon slowly even occur, thus when the free memory of the present terminal read is less than Or when being equal to default memory threshold, meet default control condition, without notifying user, intelligence directly can be carried out to target application Control processing.
The step of whether detection currently meets default control condition, comprising:
Within a preset period of time whether b1 judge current time;
B2, if so, determining the default control condition of current satisfaction.
It such as 0 point to 7 points or 9 points to 18 points of preset time period etc., is consumed in this period internal segment resource-saving, extends terminal Stand-by time improves cruising ability, thus when falling within a preset period of time at current time, meet default control condition, is not necessarily to It notifies user, intelligent control processing directly can be carried out to target application.
The step of whether detection currently meets default control condition, comprising:
C1, whether detection is current is in energy-saving mode;
C2, if starting energy-saving mode, it is determined that current to meet default control condition.
The application model of existing terminal includes at least normal mode, sleep pattern, motor pattern, energy-saving mode etc., often Configuration parameter under a mode is different.For example energy-saving mode sub-screen brightness is lower, prompt tone is closed etc., and then saved for terminal More electric energy electricity.When present terminal opens energy-saving mode, meet default control condition, without notifying user Intelligent control processing directly is carried out to target application.
Meet default control condition when current, control processing can be carried out to target application, specifically, control processing includes It forces to terminate or freeze.Resource read-write behavior and the service processes of target end application are forced, that is, terminate the fortune of application Row terminates resource and continues to read and write, thus releasing memory space.Freeze resource read-write behavior and the service processes of target application, Namely freeze the operation of application, stops resource and continue to read and write.Refer to thorough stopping it should be added that terminating, does not have The possibility being further continued for, and stop to refer to midway because some cause specifics stop, it is also possible to continue.It needs to further illustrate It is that control processing is carried out to target application, without user in numerous background applications, manually selects individual applications and handled, And then it is convenient and efficient, improve the usage experience of user.
Further, the fourth embodiment of the backstage management-control method of the invention applied is proposed based on first embodiment.
The difference of the first embodiment of the backstage management-control method of the fourth embodiment and application of the backstage management-control method of application It is, after step S30, the backstage management-control method of application further include:
The target application is added to and is forbidden in self-operating list, to forbid the self-starting of the target application to run.
In the present embodiment, the third party application being commonly installed voluntarily is starting into operation from the background, so that currently terminating Or after freezing, lower a moment will start operation again, and continue occupying system resources, that is, control effect is not significant, to improve control The target application managed is added to and forbids in self-operating list by dynamics, to forbid the self-starting of target application to run.Pass through Forbid application process self-starting to run, application program is made not start from the background and run automatically, is managed not to solve backstage The problem of in place, and then background application is thoroughly managed, the unnecessary wasting of resources is avoided, while improving terminal system operation Safety and reliability has ensured terminal fluency in the long-term use and cruising ability.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, on the computer readable storage medium It is stored with using backstage control program, application backstage control program realizes following operation when being executed by processor 110:
Obtain the operating parameter of the application and application of running background, wherein after the operating parameter includes at least Platform operation duration, resource read-write behavior and service processes;
When the running background duration of the application is more than preset duration, behavior and the service are read and write according to the resource Process determines whether the application is target application;
When determining the application is target application, based on default control rule, the target application is managed.
Each step in through this embodiment is, it can be achieved that manage the unreasonable application for occupying backstage resource, Jin Erbao The fluency and cruising ability of terminal operating are demonstrate,proved, and reduces the operation of user, while improving the usage experience of user.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a readable storage medium In matter (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) method that executes each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, it is all using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, directly or indirectly Other related technical areas are used in, all of these belong to the protection of the present invention.
The above is only alternative embodiments of the invention, are not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of backstage management-control method of application, which is characterized in that the described method comprises the following steps:
Obtain the operating parameter of the application and application of running background, wherein the operating parameter includes at least backstage and transports Row duration, resource read-write behavior and service processes;
When the running background duration of the application be more than preset duration when, according to the resource read and write behavior and it is described service into Journey determines whether the application is target application;
When determining the application is target application, based on default control rule, the target application is managed.
2. the backstage management-control method applied as described in claim 1, which is characterized in that described to read and write behavior according to the resource With the service processes, determine that the step of whether application is target application includes:
Judge resource read-write behavior whether be write audio stream operation, and judge the service processes process value whether be Default process value;
When resource read-write behavior is writes audio stream operation, and the process value of the service processes is not default process value, Determine that the application is target application.
3. the backstage management-control method applied as described in claim 1, which is characterized in that described when the determining application is target In application, including: based on default the step of managing rule, being managed to the target application
When determining the application is target application, whether detection currently meets default control condition;
If current meet default control condition, the resource read-write behavior for terminating the target application and service processes are forced, or Freeze resource read-write behavior and the service processes of the target application.
4. the backstage management-control method applied as claimed in claim 3, which is characterized in that it is default whether the detection currently meets The step of control condition includes:
Read current free memory;
Judge whether the free memory is less than or equal to default memory threshold;
If so, determining the default control condition of current satisfaction.
5. the backstage management-control method applied as claimed in claim 3, which is characterized in that it is default whether the detection currently meets The step of control condition includes:
Judge current time whether within a preset period of time;
If so, determining the default control condition of current satisfaction.
6. the backstage management-control method applied as claimed in claim 3, which is characterized in that it is default whether the detection currently meets The step of control condition includes:
Whether detection is current is in energy-saving mode;
If so, determining the default control condition of current satisfaction.
7. the backstage management-control method applied as claimed in claim 2, which is characterized in that the judgement resource reads and writes behavior It whether is to write audio stream operation, and after judging the step of whether the process value of the service processes is default process value, also Include:
When resource read-write behavior is not that write the process value of audio stream operation or the service processes be default process value, The application is included in the application white list for not making to manage.
8. the backstage management-control method of the application as described in any one of claims 1 to 7, which is characterized in that described when determining institute When stating using being target application, after default the step of managing rule, being managed to the target application, further includes:
The target application is added to and is forbidden in self-operating list, to forbid the self-starting of the target application to run.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage On device and what can be run on the processor manages program using backstage, and the application backstage control program is by the processor The step of backstage management-control method such as application described in any item of the claim 1 to 8 is realized when execution.
10. a kind of computer readable storage medium, which is characterized in that after being stored with application on the computer readable storage medium Platform manages program, and the application backstage control program is realized when being executed by processor as described in any item of the claim 1 to 8 The step of backstage management-control method of application.
CN201910360666.0A 2019-04-29 2019-04-29 Backstage management-control method, mobile terminal and the computer readable storage medium of application Pending CN110069333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910360666.0A CN110069333A (en) 2019-04-29 2019-04-29 Backstage management-control method, mobile terminal and the computer readable storage medium of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910360666.0A CN110069333A (en) 2019-04-29 2019-04-29 Backstage management-control method, mobile terminal and the computer readable storage medium of application

Publications (1)

Publication Number Publication Date
CN110069333A true CN110069333A (en) 2019-07-30

Family

ID=67369663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910360666.0A Pending CN110069333A (en) 2019-04-29 2019-04-29 Backstage management-control method, mobile terminal and the computer readable storage medium of application

Country Status (1)

Country Link
CN (1) CN110069333A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989816A (en) * 2019-09-24 2020-04-10 华为技术有限公司 Application processing method and device and storage medium
CN111459759A (en) * 2020-03-31 2020-07-28 Oppo广东移动通信有限公司 Electronic device, method for managing application program thereof, and computer storage medium
WO2022089206A1 (en) * 2020-10-30 2022-05-05 华为技术有限公司 Management and control method and electronic device
CN116048647A (en) * 2022-07-15 2023-05-02 荣耀终端有限公司 Method for controlling background application to be self-started and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989816A (en) * 2019-09-24 2020-04-10 华为技术有限公司 Application processing method and device and storage medium
CN111459759A (en) * 2020-03-31 2020-07-28 Oppo广东移动通信有限公司 Electronic device, method for managing application program thereof, and computer storage medium
WO2022089206A1 (en) * 2020-10-30 2022-05-05 华为技术有限公司 Management and control method and electronic device
CN114449094A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Management and control method and electronic equipment
CN116048647A (en) * 2022-07-15 2023-05-02 荣耀终端有限公司 Method for controlling background application to be self-started and electronic equipment
CN116048647B (en) * 2022-07-15 2023-10-20 荣耀终端有限公司 Method for controlling background application to be self-started and electronic equipment

Similar Documents

Publication Publication Date Title
CN110069333A (en) Backstage management-control method, mobile terminal and the computer readable storage medium of application
CN108055693A (en) A kind of terminal applies control method, terminal and computer readable storage medium
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN109614176A (en) A kind of application interface layout method, terminal and computer readable storage medium
CN106993102A (en) Intelligence alignment awakening method, mobile terminal and computer-readable recording medium
CN107277902A (en) Terminal power consumption control method, mobile terminal and computer-readable recording medium
CN108519916A (en) Processing method, mobile terminal and the readable storage medium storing program for executing of terminal clean up process
CN109453523A (en) A kind of game picture display processing method, terminal and computer readable storage medium
CN108628430A (en) A kind of game electricity-saving control method, terminal and computer readable storage medium
CN108965602A (en) Application program display methods, mobile terminal and computer readable storage medium
CN108553896A (en) A kind of status information display control method, terminal and computer readable storage medium
CN108512991A (en) A kind of based reminding method, mobile terminal and computer readable storage medium
CN107632886A (en) A kind of switching method, terminal and the computer-readable recording medium of terminal operating pattern
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN109088997A (en) A kind of gaming audio control method, terminal and computer readable storage medium
CN108833690A (en) authority control method, terminal and computer readable storage medium
CN110069167A (en) Touch point sweep-out method, mobile terminal and computer readable storage medium
CN108733424A (en) Using wake-up control method, equipment and computer-readable storage media
CN108650399A (en) A kind of volume adjusting method, mobile terminal and computer readable storage medium
CN109862184A (en) Terminal and its resource management-control method, computer readable storage medium
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN108882223A (en) Using data reporting method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination