CN105867592B - A kind of method and apparatus managing electric quantity consumption - Google Patents

A kind of method and apparatus managing electric quantity consumption Download PDF

Info

Publication number
CN105867592B
CN105867592B CN201610244755.5A CN201610244755A CN105867592B CN 105867592 B CN105867592 B CN 105867592B CN 201610244755 A CN201610244755 A CN 201610244755A CN 105867592 B CN105867592 B CN 105867592B
Authority
CN
China
Prior art keywords
terminal
electric quantity
application program
quantity consumption
white list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610244755.5A
Other languages
Chinese (zh)
Other versions
CN105867592A (en
Inventor
韩猛猛
刘鸣
孙卓群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610244755.5A priority Critical patent/CN105867592B/en
Publication of CN105867592A publication Critical patent/CN105867592A/en
Application granted granted Critical
Publication of CN105867592B publication Critical patent/CN105867592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

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

Abstract

The disclosure is directed to a kind of method and apparatus for managing electric quantity consumption, belong to electronic technology field.The described method includes: detection when preset high electric quantity consumption event occurs, triggers quickly processing prompt;Receive the confirmation message according to the quick processing prompt;Starting quickly processing, the quick processing include forbidding presetting non-white list application program starting by way of receiving system broadcasts.Using the disclosure, electric quantity consumption can be prevented too fast.

Description

A kind of method and apparatus managing electric quantity consumption
Technical field
The disclosure is directed to electronic technology fields, especially with respect to a kind of method and apparatus for managing electric quantity consumption.
Background technique
With the development of electronic technology, the mobile terminals such as mobile phone using more and more extensive, in corresponding terminal application The type of program is more and more, function is more and more abundant.Application program can be that is, whole when application program is run in front stage operation The interface of end display application program, alternatively, application program can also be in running background, i.e., when application program is run not in terminal Show its interface.Based on the mode of application program running background, terminal can run many application programs simultaneously, in this way, will Cause the electric quantity consumption of terminal very fast.
Summary of the invention
In order to overcome the problems, such as present in the relevant technologies, present disclose provides a kind of methods and dress for managing electric quantity consumption It sets.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method managing electric quantity consumption is provided, which comprises
Detection triggers quickly processing prompt when preset high electric quantity consumption event occurs;
Receive the confirmation message according to the quick processing prompt;
Starting quickly processing, the quick processing include forbidding presetting non-white list application program by receiving system broadcasts Mode start.
Optionally, the preset high electric quantity consumption event of the detection occurs, comprising:
During terminal operating, at least one in following event is detected:
Cpu temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
Optionally, the quick processing, further includes:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
Optionally, it is described forbid presetting non-white list application program start packet in a manner of being called by other applications It includes:
Forbid presetting non-white list application program by startActivity, sendBroadcast, startService Or getContentProvid mode is started by the mode that other applications are called.
Start in this way, application program can be prevented to be invoked at backstage, in turn, it is too fast that electric quantity consumption can be effectively prevented.
Optionally, the quick processing, further includes:
Close the program process of running background;And/or
Screen intensity is down to predetermined luminance;And/or
When detecting that the duration of screen lock state of the terminal reaches preset duration threshold value, running background is closed Application program.
Optionally, the method also includes:
In the charge state, the charging voltage of the terminal is detected;
When the charging voltage reaches predetermined voltage threshold, charging is terminated.
In this way, the use time of terminal can be extended.
According to the second aspect of an embodiment of the present disclosure, a kind of device for managing electric quantity consumption is provided, described device includes:
First detection module triggers quickly processing prompt for detecting when preset high electric quantity consumption event occurs;
Receiving module, for receiving the confirmation message according to the quick processing prompt;
Processing module, for starting quick processing, the quick processing include forbid presetting non-white list application program it is logical It crosses and receives the modes of system broadcasts and start.
Optionally, the first detection module, is used for:
During terminal operating, at least one in following event is detected:
Cpu temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
Optionally, the processing module, is also used to:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
Optionally, the processing module, is used for:
Forbid presetting non-white list application program by startActivity, sendBroadcast, startService Or getContentProvid mode is started by the mode that other applications are called.
Optionally, the processing module, comprising:
Submodule is closed, for closing the program process of running background;And/or
Submodule is reduced, for screen intensity to be down to predetermined luminance;And/or
The closing submodule, is also used to:
When detecting that the duration of screen lock state of the terminal reaches preset duration threshold value, running background is closed Application program.
Optionally, described device further include:
Second detection module, in the charge state, detecting the charging voltage of the terminal;
Module is terminated, for terminating charging when the charging voltage reaches predetermined voltage threshold.
According to the third aspect of an embodiment of the present disclosure, a kind of device managing electric quantity consumption is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detection triggers quickly processing prompt when preset high electric quantity consumption event occurs;
Receive the confirmation message according to the quick processing prompt;
Starting quickly processing, the quick processing include forbidding presetting non-white list application program by receiving system broadcasts Mode start.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, detection triggers quickly processing prompt, receives when preset high electric quantity consumption event occurs According to the confirmation message of quick processing prompt;Starting quickly processing, quickly processing includes forbidding presetting non-white list application program Started by way of receiving system broadcasts.In this way, can prevent certain application programs from consuming electricity in backstage starting automatically, It is thus possible to prevent electric quantity consumption too fast.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of method for managing electric quantity consumption shown according to an exemplary embodiment;
Fig. 2 is a kind of prompting window schematic diagram shown according to an exemplary embodiment;
Fig. 3 is a kind of selection window schematic diagram shown according to an exemplary embodiment;
Fig. 4 is a kind of structural schematic diagram of device for managing electric quantity consumption shown according to an exemplary embodiment;
Fig. 5 is a kind of structural schematic diagram of device for managing electric quantity consumption shown according to an exemplary embodiment;
Fig. 6 is a kind of structural schematic diagram of device for managing electric quantity consumption shown according to an exemplary embodiment;
Fig. 7 is a kind of structural schematic diagram of terminal shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
An exemplary embodiment of the present disclosure provides a kind of method for managing electric quantity consumption, this method can be used for terminal In, wherein the terminal can be the mobile terminals such as mobile phone, tablet computer.Processor and memory can be set in the terminal, Processor can be used for forbidding certain application programs in the relevant treatment started from the background, and memory can be used for storing following The data for needing and generating in treatment process.
Below in conjunction with embodiment, process flow shown in FIG. 1 is described in detail, content can be such that
In a step 101, detection triggers quickly processing prompt when preset high electric quantity consumption event occurs.
Wherein, high electric quantity consumption event, which can be, may cause or characterize the faster event of electric quantity consumption, for example, can be The application program of running background is more, and the unit time consumes electricity etc..
In an implementation, terminal can have the function of preventing electric quantity consumption too fast, for example, the system that can have the function Function can also be equipped with the application program with the function.Specifically, high electric quantity consumption thing can be previously provided in terminal Part and detection cycle, terminal can be based on pre-set detection cycle, periodically detect preset high electric quantity consumption thing Whether part occurs, and when preset high electric quantity consumption event occurs, terminal can detect preset high electric quantity consumption event hair It is raw, it will triggering quickly processing prompt can issue preset standby signal, can pop up prompting window, as shown in Fig. 2, mentioning " electric quantity consumption is very fast, please clear up " prompt information can be shown in awake window.
Optionally, preset high electric quantity consumption event can be cpu temperature, the electricity that is consumed in the unit time, from the background into Number of passes amount, alternatively, electric quantity change trend under charged state, is transported correspondingly, the treatment process of step 101 can be such that in terminal During row, detecting that cpu temperature reaches preset temperature threshold, the electricity consumed in the unit time reaches default power threshold, Background process quantity reaches preset quantity threshold value, alternatively, the electricity under charged state is on a declining curve.
In an implementation, pre-stored high electric quantity consumption event can be cpu temperature, consume in the unit time in terminal Electricity, background process quantity can also be previously stored with the high electricity of judgement alternatively, electric quantity change trend under charged state in terminal The standard whether amount consumption event occurs, specifically, can be cpu temperature reaches preset temperature threshold, consumption in the unit time Electricity reach default power threshold, background process quantity reaches preset quantity threshold value, alternatively, under the electricity under charged state is in Drop trend.During terminal operating, whether terminal can be occurred with real-time detection above situation, above-mentioned have one as long as detecting Event occurs, that is, represents preset high electric quantity consumption event and occur.
In a step 102, the confirmation message according to quickly processing prompt is received.
In an implementation, key cleaning key can also be shown in the prompting window can when user wants to handle Key is cleared up to click a key, terminal will receive the confirmation message according to quickly processing prompt.
In step 103, starting quickly processing, quickly processing includes forbidding presetting non-white list application program passing through receiving The mode of system broadcasts starts.
In an implementation, white list can be previously stored in terminal, wherein can store in white list at least using journey Sequence mark, for example, can be the packet name of application program.In addition, when the system program of terminal realizes certain system function, often Meeting broadcast system message, the application program that can receive system program broadcast will will do it backstage starting (i.e. application program launching When, terminal does not show the interface of application program), for example, when terminal passes through local WiFi (Wireless-Fidelity, nothing Line fidelity) module is when successfully connecting such as certain WLAN, and system program can be with the system message of broadcast radio successful connection, can be with The application program for receiving the broadcast message will start on backstage.For such situation, when terminal is received according to quickly processing When the confirmation message of prompt, quick processing can star, it can forbid the application program identification stored in white list corresponding Application program except application program is started by way of receiving system broadcasts.
Optionally, terminal can forbid presetting non-white list application program is opened in a manner of being called by other applications It is dynamic, correspondingly, treatment process, which can be such that, forbids presetting non-white list application program in a manner of being called by other applications Starting.
In an implementation, certain application programs in terminal are in the process of running, it is also possible to send to other applications Broadcast shares certain information with other applications, is opening from the background in this way, will trigger and can receive the application program of information Dynamic, for such situation, when terminal is received according to the quickly confirmation message of processing prompt, terminal can also forbid default answer Backstage is invoked at by other applications with the application program except program to start, that is, forbid presetting non-white list application program with Started by the mode that other applications are called.Specifically, terminal can forbid the application program except default application program logical Cross sendBroadcast (sending broadcast), startService (opening service), getContentProvider (information sharing) Etc. modes by other applications backstage start.In addition, the application program identification in above-mentioned white list can be it is more commonly used The corresponding application program identification of some application programs, for example, can be the more commonly used application program for shopping and The corresponding application program identification of instant messaging application program.
In addition, the application program identification for including in white list can be preset by technical staff, can also by user into Row setting.Specific setting up procedure can be such that user can click the setting options in terminal, it will triggering terminal pop-up setting The page, white list setting options can be shown by being arranged in the page, and user can click white list setting options, it will triggering is eventually End pop-up application program selects window, as shown in figure 3, can wherein show the application journey of locally-installed all application programs Sequence identifies (for example, can show application name), and user can select to want to be added into white list application wherein Program identification, application program select that determining key can also be shown in window, and after selection, user can click determining key, The application program identification that user selects can be then stored in white list by terminal.
Optionally, it after the preset high electric quantity consumption event of terminal detection occurs, can also carry out closing answering for running background With the operation of program etc., correspondingly, treatment process can be such that the program process for closing running background;And/or it will shield Predetermined luminance is down in curtain brightness;And/or when detecting that the duration of screen lock state of terminal reaches preset duration threshold value, Close the application program of running background.
In an implementation, when terminal detects that preset high electric quantity consumption event occurs, terminal can also close backstage The program process of operation, and/or, screen intensity is down to predetermined luminance, specifically, mentioning when receiving according to quickly processing When the confirmation message shown, the light intensity value for being currently located environment can be obtained with triggering terminal, in turn, terminal can be according to pre- in local The corresponding relationship of the light intensity value and screen intensity decreasing value (changing value that can be screen intensity) that first store, determination are currently located Screen intensity can be reduced screen intensity decreasing value, for example, before reducing by the corresponding screen intensity decreasing value of the light intensity value of environment Screen intensity is A, and the corresponding screen intensity decreasing value of light intensity value for being currently located environment is B, screen intensity can be adjusted to A-B.Furthermore it is also possible to the minimum of screen intensity be preset, when terminal is corresponding according to the light intensity value for being currently located environment Screen intensity decreasing value can adjust screen intensity when being less than preset minimum to screen intensity brightness value adjusted To minimum.
It, can be with triggering terminal when terminal enters screen lock state when detecting that preset high electric quantity consumption event occurs Detect the duration of screen lock state.Specifically, can detecte terminal when terminal enters screen lock state and be in screen lock state Duration can close the application program of running background when detecting that duration reaches preset duration threshold value.In addition, The mechanism for stopping the duration that detection terminal is in screen lock state can also be set in terminal, for example, when detecting in terminal There is application program in front stage operation (when i.e. terminal shows the interface of application program), or when the electricity of terminal reaches preset threshold When, stop the duration that detection terminal is in screen lock state.
Optionally, terminal can also terminate charging when the charging voltage of terminal is excessively high, correspondingly, treatment process can be with It is as follows: in the charge state, to detect the charging voltage of terminal;When charging voltage reaches predetermined voltage threshold, charging is terminated.
In an implementation, in the charge state, terminal can detecte current charging voltage, when charging voltage is greater than the terminal When admissible charging voltage, charging can be terminated, for example, 5V when the terminals such as mobile phone admissible charging voltage, when terminal is worked as When preceding charging voltage is 6V, terminal can terminate charging.
In the embodiment of the present disclosure, detection triggers quickly processing prompt, receives when preset high electric quantity consumption event occurs According to the confirmation message of quick processing prompt;Starting quickly processing, quickly processing includes forbidding presetting non-white list application program Started by way of receiving system broadcasts.In this way, can prevent certain application programs from consuming electricity in backstage starting automatically, It is thus possible to prevent electric quantity consumption too fast.
Disclosure another exemplary embodiment provides a kind of device for managing electric quantity consumption, as shown in figure 4, the device packet It includes:
First detection module 410 triggers quickly processing and mentions for detecting when preset high electric quantity consumption event occurs Show;
Receiving module 420, for receiving the confirmation message according to the quick processing prompt;
Processing module 430, for starting quick processing, the quick processing includes forbidding presetting non-white list application program Started by way of receiving system broadcasts.
Optionally, the first detection module 410, is used for:
During terminal operating, at least one in following event is detected:
Cpu temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
Optionally, the processing module 430, is also used to:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
Optionally, the processing module 430, is used for:
Forbid presetting non-white list application program by startActivity, sendBroadcast, startService Or getContentProvid mode is started by the mode that other applications are called.
Optionally, as shown in figure 5, the processing module 430, comprising:
Submodule 4301 is closed, for closing the program process of running background;And/or
Submodule 4302 is reduced, for screen intensity to be down to predetermined luminance;And/or
The closing submodule 4301, is also used to:
When detecting that the duration of screen lock state of the terminal reaches preset duration threshold value, running background is closed Application program.
Optionally, as shown in fig. 6, described device further include:
Second detection module 440, in the charge state, detecting the charging voltage of the terminal;
Module 450 is terminated, for terminating charging when the charging voltage reaches predetermined voltage threshold.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
In the embodiment of the present disclosure, detection triggers quickly processing prompt, receives when preset high electric quantity consumption event occurs According to the confirmation message of quick processing prompt;Starting quickly processing, quickly processing includes forbidding presetting non-white list application program Started by way of receiving system broadcasts.In this way, can prevent certain application programs from consuming electricity in backstage starting automatically, It is thus possible to prevent electric quantity consumption too fast.
It should be understood that it is provided by the above embodiment management electric quantity consumption device when managing electric quantity consumption, only with The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not Same functional module is completed, i.e., the internal structure of terminal is divided into different functional modules, to complete whole described above Or partial function.In addition, the device of management electric quantity consumption provided by the above embodiment and the method for management electric quantity consumption are implemented Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The another exemplary embodiment of the disclosure shows a kind of structural schematic diagram of terminal.The terminal can be mobile phone, put down Plate computer etc..
Referring to Fig. 7, terminal 700 may include following one or more components: processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and Communication component 716.
The integrated operation of the usual controlling terminal 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in terminal 700.These data are shown Example includes the instruction of any application or method for operating in terminal 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 706 provides electric power for the various assemblies of terminal 700.Electric power assembly 706 may include power management system System, one or more power supplys and other with for audio output apparatus 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between the terminal 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When terminal 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when audio output apparatus 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, wheat Gram wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 704 or warp It is sent by communication component 716.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for terminal 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of terminal 700, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 700, and sensor module 714 can also detect 700 1 components of terminal 700 or terminal Position change, the existence or non-existence that user contacts with terminal 700,700 orientation of terminal or acceleration/deceleration and terminal 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between terminal 700 and other equipment.Terminal 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of terminal 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal When row, the method for enabling the terminal to execute management electric quantity consumption, this method comprises:
Detection triggers quickly processing prompt when preset high electric quantity consumption event occurs;
Receive the confirmation message according to the quick processing prompt;
Starting quickly processing, the quick processing include forbidding presetting non-white list application program by receiving system broadcasts Mode start.
Optionally, the preset high electric quantity consumption event of the detection occurs, comprising:
During terminal operating, at least one in following event is detected:
Cpu temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
Optionally, the quick processing, further includes:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
Optionally, it is described forbid presetting non-white list application program start packet in a manner of being called by other applications It includes:
Forbid presetting non-white list application program by startActivity, sendBroadcast, startService Or getContentProvid mode is started by the mode that other applications are called.
Optionally, the quick processing, further includes:
Close the program process of running background;And/or
Screen intensity is down to predetermined luminance;And/or
When detecting that the duration of screen lock state of the terminal reaches preset duration threshold value, running background is closed Application program.
Optionally, the method also includes:
In the charge state, the charging voltage of the terminal is detected;
When the charging voltage reaches predetermined voltage threshold, charging is terminated.
In the embodiment of the present disclosure, detection triggers quickly processing prompt, receives when preset high electric quantity consumption event occurs According to the confirmation message of quick processing prompt;Starting quickly processing, quickly processing includes forbidding presetting non-white list application program Started by way of receiving system broadcasts.In this way, can prevent certain application programs from consuming electricity in backstage starting automatically, It is thus possible to prevent electric quantity consumption too fast.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method for managing electric quantity consumption, which is characterized in that the described method includes:
During periodically detecting preset high electric quantity consumption event, detect that preset high electric quantity consumption event occurs When, trigger quickly processing prompt;
Receive the confirmation message according to the quick processing prompt;
Starting quickly processing, the quick processing includes forbidding presetting side of the non-white list application program by receiving system broadcasts Formula starting;
Wherein, the quick processing, further includes:
Close the program process of running background;With,
Screen intensity is down to predetermined luminance;With,
When detecting that the duration of screen lock state of terminal reaches preset duration threshold value, the application journey of running background is closed Sequence;
When detecting that there are application programs in front stage operation in the terminal, or when the electricity of the terminal reaches preset threshold When, stop detecting the duration that the terminal is in the screen lock state.
2. being wrapped the method according to claim 1, wherein the preset high electric quantity consumption event of the detection occurs It includes:
During terminal operating, at least one in following event is detected:
Central processor CPU temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
3. the method according to claim 1, wherein the quick processing, further includes:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
4. according to the method described in claim 3, it is characterized in that, described forbid presetting non-white list application program by other The mode of application call, which starts, includes:
Forbid presetting non-white list application program with by startActivity, sendBroadcast, startService or GetContentProvider mode is started by the mode that other applications are called.
5. the method according to claim 1, wherein the method also includes:
In the charge state, the charging voltage of the terminal is detected;
When the charging voltage reaches predetermined voltage threshold, charging is terminated.
6. a kind of device for managing electric quantity consumption, which is characterized in that described device includes:
First detection module, for detecting preset during periodically detecting preset high electric quantity consumption event When high electric quantity consumption event occurs, quickly processing prompt is triggered;
Receiving module, for receiving the confirmation message according to the quick processing prompt;
Processing module, for starting quick processing, the quick processing includes forbidding presetting non-white list application program by connecing Started by the mode of system broadcasts;
Wherein, the processing module, comprising:
Submodule is closed, for closing the program process of running background;With,
Submodule is reduced, for screen intensity to be down to predetermined luminance;With,
The closing submodule, is also used to:
When detecting that the duration of screen lock state of terminal reaches preset duration threshold value, the application journey of running background is closed Sequence;
When detecting that there are application programs in front stage operation in the terminal, or when the electricity of the terminal reaches preset threshold When, stop detecting the duration that the terminal is in the screen lock state.
7. device according to claim 6, which is characterized in that the first detection module is used for:
During terminal operating, at least one in following event is detected:
Central processor CPU temperature reaches preset temperature threshold;
The electricity consumed in unit time reaches default power threshold;
Background process quantity reaches preset quantity threshold value;With,
Electricity under charged state is on a declining curve.
8. device according to claim 6, which is characterized in that the processing module is also used to:
Forbid presetting non-white list application program and be started in a manner of being called by other applications.
9. device according to claim 8, which is characterized in that the processing module is used for:
Forbid presetting non-white list application program with by startActivity, sendBroadcast, startService or GetContentProvider mode is started by the mode that other applications are called.
10. device according to claim 6, which is characterized in that described device further include:
Second detection module, in the charge state, detecting the charging voltage of the terminal;
Module is terminated, for terminating charging when the charging voltage reaches predetermined voltage threshold.
CN201610244755.5A 2016-04-18 2016-04-18 A kind of method and apparatus managing electric quantity consumption Active CN105867592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610244755.5A CN105867592B (en) 2016-04-18 2016-04-18 A kind of method and apparatus managing electric quantity consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610244755.5A CN105867592B (en) 2016-04-18 2016-04-18 A kind of method and apparatus managing electric quantity consumption

Publications (2)

Publication Number Publication Date
CN105867592A CN105867592A (en) 2016-08-17
CN105867592B true CN105867592B (en) 2019-04-12

Family

ID=56633453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610244755.5A Active CN105867592B (en) 2016-04-18 2016-04-18 A kind of method and apparatus managing electric quantity consumption

Country Status (1)

Country Link
CN (1) CN105867592B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502645A (en) * 2016-09-23 2017-03-15 宇龙计算机通信科技(深圳)有限公司 From the method to set up, setting device and the terminal that wake up authority
CN106569832A (en) * 2016-11-10 2017-04-19 北京金山安全软件有限公司 Application program management method and device and terminal
CN106873756A (en) * 2017-02-22 2017-06-20 珠海市魅族科技有限公司 A kind of electric quantity managing method and terminal
CN108684070A (en) * 2018-04-12 2018-10-19 硕诺科技(深圳)有限公司 A kind of backlight brightness control method and device of smart electronics product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2390758A1 (en) * 2010-05-25 2011-11-30 Samsung Electronics Co., Ltd. Method and apparatus for managing an application being executed in a portable terminal
CN204118776U (en) * 2014-08-14 2015-01-21 深圳市纳林科技有限公司 A kind of power supply adaptor control circuit for 3G mobile terminal
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105116990A (en) * 2015-08-14 2015-12-02 董宇文 Method and system for automatic optimization of smartphone operating environment and energy saving
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2390758A1 (en) * 2010-05-25 2011-11-30 Samsung Electronics Co., Ltd. Method and apparatus for managing an application being executed in a portable terminal
CN204118776U (en) * 2014-08-14 2015-01-21 深圳市纳林科技有限公司 A kind of power supply adaptor control circuit for 3G mobile terminal
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105116990A (en) * 2015-08-14 2015-12-02 董宇文 Method and system for automatic optimization of smartphone operating environment and energy saving
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Also Published As

Publication number Publication date
CN105867592A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105677460B (en) Applied program processing method and device
CN106375604B (en) The method and apparatus of controlling terminal electricity
CN105049923B (en) Wake up the method and device of electronic equipment
CN104578372B (en) The method and device of control terminal equipment charge
WO2017028425A1 (en) Energy-saving mode activation method and device
CN105867592B (en) A kind of method and apparatus managing electric quantity consumption
WO2015180386A1 (en) Electricity consumption counting method, apparatus and system
CN105137831B (en) Energy-saving mode open method and device
CN105807894B (en) Using the treating method and apparatus for holding lock
WO2016155304A1 (en) Wireless access point control method and device
CN105278370A (en) Power-saving mode starting method and device
CN104320542A (en) Method and device for sending reminding message
CN105528055A (en) Running object processing method and device
CN105720644A (en) Charging control method and device and terminal device
CN106230066A (en) Charge prompting method and apparatus
CN104657172A (en) System upgrading method and device
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN105975305B (en) OS Events processing method, device and terminal
CN109062625A (en) The method, apparatus and readable storage medium storing program for executing of application program load
CN106502370A (en) The method of control intelligent terminal and intelligent terminal
CN105159434A (en) Time display method, device and terminal
CN104965746B (en) The method and device of quick start
CN104917238B (en) Method, device and smart machine that control device is powered
CN104991634A (en) Terminal control method and device
CN106201738A (en) System broadcasts call method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant