CN108594983A - A kind of method and device for saving mobile terminal electricity - Google Patents

A kind of method and device for saving mobile terminal electricity Download PDF

Info

Publication number
CN108594983A
CN108594983A CN201810322294.8A CN201810322294A CN108594983A CN 108594983 A CN108594983 A CN 108594983A CN 201810322294 A CN201810322294 A CN 201810322294A CN 108594983 A CN108594983 A CN 108594983A
Authority
CN
China
Prior art keywords
application
resident
applications
determined
scenarios
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
CN201810322294.8A
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.)
Kylin Seing Network Technology Ltd By Share Ltd
Original Assignee
Kylin Seing Network Technology Ltd By Share 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 Kylin Seing Network Technology Ltd By Share Ltd filed Critical Kylin Seing Network Technology Ltd By Share Ltd
Priority to CN201810322294.8A priority Critical patent/CN108594983A/en
Publication of CN108594983A publication Critical patent/CN108594983A/en
Pending legal-status Critical Current

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/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)
  • Stored Programmes (AREA)

Abstract

The application discloses a kind of method and device for saving terminal power, for during running application, saving the electric quantity consumption of terminal, for mobile terminal, extending its cruise duration.The method includes:The resident applications in memory are obtained, the resident applications are the application being loaded onto in memory according to the opening operation to application;According to the real-time operating status of the resident applications, application scenarios are determined;The operating status includes foreground and/or running background;According to the application scenarios, and the attribute applied in the resident applications, it determines to wait for that suspend mode resident applications and/or non-resident application, the resident applications include the necessary application of the application scenarios and the application of maintenance terminal basic function from the resident applications;By system miscellaneous function, trigger process is simulated, waits for that suspend mode is set as suspend mode in real time using non-resident application by described respectively, to reduce the non-resident electric quantity consumption for waiting for suspend mode application.

Description

A kind of method and device for saving mobile terminal electricity
Technical field
This application involves field of computer technology more particularly to a kind of method and devices for saving terminal power.
Background technology
With the development of mobile terminal, especially intelligent mobile terminal, developed more and more to meet various demands Application program (is referred to as applied).Under normal conditions, most users can install the application of many types, to meet to clothing ,food and housing Capable different demands.
User is after opening application, using necessary data can be loaded onto in memory, so as to according to the instruction of user Execute corresponding operation.During developer is updated with safeguarding application, function is more and more, and data volume is also got over Come bigger, such as popular push function, position sharing functionality, more new function etc., leads to the memory occupied also increasingly It is more.And in order to keep these function normal operations, application that would generally run in memory, even if user is any to application progress Operation, also can run some or certain functions on backstage by the mechanism of itself.
It can be seen that when a large amount of application operation in memory when namely memory in run extensive application when, these are answered It is too fast so as to cause electric quantity consumption with excessive process resource can be consumed, it is unfavorable for extending the cruise duration of mobile terminal.
Invention content
The embodiment of the present application provides a kind of method for saving terminal power, for during running application, saving eventually The electric quantity consumption at end extends its cruise duration for mobile terminal.
The embodiment of the present application provides a kind of device for saving terminal power, for during running application, saving eventually The electric quantity consumption at end extends its cruise duration for mobile terminal.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
The embodiment of the present application uses following technical proposals:
A method of terminal power is saved, including:
The application in memory is obtained, the application is the application that is loaded onto in memory according to opening operation;
According to the real-time operating status of application, application scenarios are determined;The operating status includes foreground and/or backstage Operation;
According to the application scenarios and the attribute of the application, resident applications and non-are determined from the application Resident applications, the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, To reduce the electric quantity consumption of the non-resident application.
Preferably, the method further includes:
According to the application scenarios determined in real time, the non-resident application in suspend mode is adjusted in real time.
Preferably, the resident applications in memory are obtained, including:
According to preset time interval, the resident applications in memory are obtained.
Preferably, according to the application scenarios and the attribute of the application, resident applications are determined from the application And the attribute applied in non-resident application and the resident applications, it determines to wait for suspend mode application from the resident applications, Including:
According to the type applied in the application scenarios and the resident applications, determined from the resident applications Resident applications, and the resident applications with similar relation will be applied to be determined as non-resident waiting for suspend mode application with the resident foreground.
Preferably, according to the application scenarios and the attribute of the application, resident applications are determined from the application And the attribute applied in non-resident application and the resident applications, it determines to wait for suspend mode application from the resident applications, Including:
According to the way of output applied in the application scenarios and the resident applications, from the resident applications really Resident applications are made, and with the foreground resident applications will there are the resident applications of output equipment conflict relationship to be determined as waiting for suspend mode Non-resident application.
Preferably, according to the application scenarios and the attribute of the application, resident applications are determined from the application And the attribute applied in non-resident application and the resident applications, it determines to wait for suspend mode application from the resident applications, Including:
According to the title applied in the application scenarios and the resident applications, determined from the resident applications Resident applications, and determine to wait for that suspend mode is non-resident with the resident applications using conflict relationship by applying with the resident foreground Using.
A kind of device for saving terminal power, including:It acquisition module, the first determining module, the second determining module and sets Set module, wherein
The acquisition module, for obtaining the application in memory, the application is to be loaded onto in memory according to opening operation Application;
First determining module, for according to the real-time operating status of application, determining application scenarios;The operation State includes foreground and/or running background;
Second determining module, for the attribute according to the application scenarios and the application, from the application Determine that resident applications and non-resident application, the resident applications include the necessary application of the application scenarios and/or maintenance The application of terminal basic function;
The setup module, it is respectively that the non-resident application is real for by system miscellaneous function, simulating trigger process When be set as suspend mode, to reduce the electric quantity consumption of the non-resident application.
Preferably, described device further includes terminating adjustment module, is used for:
According to the application scenarios determined in real time, adjustment in real time carried out to the non-resident application in suspend mode pass through be System miscellaneous function terminates and waits for suspend mode application described in operation.
Preferably, the acquisition module, is specifically used for:
According to preset time interval, the resident applications in memory are obtained.
Preferably, second determining module, is specifically used for:
According to the application scenarios and the type of the application, resident applications are determined from the application, and will be with There is the resident applications application of similar relation to be determined as non-resident application.
Preferably, second determining module, is specifically used for:
According to the application scenarios and the way of output of the application, resident applications are determined from the application, and With the resident applications will there is the application of output equipment conflict relationship to be determined as non-resident application.
Preferably, second determining module, is specifically used for:
According to the application scenarios and the title of the application, resident applications are determined from the application, and will be with The resident applications have is determined as non-resident application using the application of conflict relationship.
The technical solution provided by above example is as it can be seen that shape can be run using real-time according in the memory got State determines application scenarios, further according to application scenarios and the attribute of application, determines that application scenarios are necessary and/or maintain The resident applications of terminal basic function, and can be with the non-resident application of suspend mode, and set non-resident application to suspend mode, To reduce consumption of the non-resident application to electricity.When compared to current extensive application operation in memory, excessive place is consumed Resource is managed, for causing electric quantity consumption too fast, the embodiment of the present application can be in specific application scenarios, to without the non-of operation Resident applications carry out suspend mode, reduce consumption of the non-resident application to process resource to the greatest extent, to save the electricity of terminal, and for For cruise duration more important mobile terminal, it is conducive to extend its cruise duration.
Description of the drawings
It, below will be to embodiment or the prior art in order to illustrate more clearly of the embodiment of the present application or existing technical solution Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is only in the application Some embodiments recorded without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow diagram of the method provided by the embodiments of the present application for saving terminal power;
Fig. 2 is the schematic diagram of the method provided by the embodiments of the present application for saving terminal power;
Fig. 3 is the structural schematic diagram of the device provided by the embodiments of the present application for saving terminal power;
Fig. 4 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with specific embodiment and accordingly The technical solution of the application is clearly and completely described in attached drawing.Obviously, described embodiment is only the application part Embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making wound The every other embodiment obtained under the premise of the property made labour, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical solution that each embodiment provides in the application is described in detail.
Embodiment 1
As previously mentioned, user may operate in after opening application in memory, when the application in memory is more, can consume More process resource, to consume the electricity of mobile terminal.For example user can be front and back to open during using mobile terminal Browser application, input method application, news application, shopping application, traffic application, payment application, music application etc. are opened, these are answered With can run in memory, and in order to realize news information, merchandise news, traffic information, logistics information, instant communication information Real time push, location information reports, the functions such as data update, using the operating status for being also in " activity " at consumption Resource is managed, the electricity of terminal can be caused to waste.And as mobile terminal, it is even more important cruise duration, process resource constantly disappears Consumption will obviously constantly consume electricity, too fast so as to cause electric quantity consumption, be unfavorable for extending the cruise duration of mobile terminal.
In addition, in current intelligent mobile terminal, in order to reach better usage experience, can mutually be opened between It opens, for example shopping application can open payment application, life information application can open traffic application etc. so that unconsciously The application of middle operation in memory is more and more, and the electricity of consumption is also just increasing, is more unfavorable for extending mobile terminal Cruise duration.
Based on drawbacks described above, the embodiment of the present application provides a kind of method for saving mobile terminal electricity, for being answered in operation During, the electric quantity consumption of terminal is saved, for mobile terminal, its cruise duration can be extended.The stream of this method Journey schematic diagram is as shown in Figure 1, it is assumed that and executive agent can be intelligent mobile terminal, including:
Step 11:Obtain the application in memory.
By the agency of above, user can open according to certain demand and apply, or can also pass through phase between application The mode mutually called mutually is opened.After opening application, operation can be loaded onto using required data in memory, no matter Front stage operation or running background can be realized with real time execution in memory and apply had various functions.Namely the application It can be the application being loaded onto in memory according to the opening operation to application.The application of front stage operation can refer in interface The application that displaying and user directly interact;And the application of running background can refer to do not shown in interface, but occupy in Resource is deposited, and the application of booster action can be provided for other application.For example, user whithin a period of time, passes through click Instruction opens 10 applications, then this 10 applications may operate in memory.
It, in general, also only can be in the time even if user opens multiple applications in actual usage scenario In section, minority application is subjected to real-time, interactive as foreground application and is used, and seldom will appear and continually switch multiple be applied to Foreground.For example navigation software can be arranged on foreground on the run by user, it, can be only in road to instruct to drive It regard this application as foreground application, or can also be simultaneously using music application as foreground application, to listen to music, and right In other applications such as input method application, browser applications, then use is smaller.For another example user is when using shopping application, it is possible to Simultaneously using music application, input method application, and possibility that other application uses and little.
So the application can have greater probability and answer minority application as foreground by user in general This feature is used with interacting, carries out power-save operation.Specifically, this step can first obtain the application in memory, so as to Which application just real time execution in memory known, and power-save operation is carried out to application by subsequent operation.Further, it is It realizes this step, can be obtained in memory in real time by application management class application in system or memory lookup class application Using.
In practical applications, as explained above, user can within a period, by minority application as foreground application into Row is used interchangeably, and within another period, other application may be switched to foreground application, for example user can use life After info class application living, shopping application, traffic application etc. are opened, or can be turned off manually in certain applications namely memory Using being that can terminate operation with the unlatching of user, or change at any time with mutual opening operation between application.So In a kind of embodiment, the application in memory is obtained, may include:According to preset time interval, the application in memory is obtained. That is, the method that the saving terminal power of this implementation according to preset time interval, can be executed.For example, the time interval can To be 5 minutes, a this method was executed so as to 5 minutes.
And in practical applications, it is possibility to have the mode of others triggering this method, for example some can be opened in user After, so that it may to obtain the application in memory, i.e., open the operation of application according to user, obtain the application in memory;May be used also To terminate the operation of application according to user, the application in memory is obtained.
Step 12:According to the real-time operating status of the application got, application scenarios are determined.
By the agency of, user generally can only hand over minority application as foreground application within a period above Mutually use.As explained above on the run, navigation software can be set to foreground application;It, can be in shopping process Set shopping software to foreground application.As it can be seen that in resident applications different application different real-time running states, can be certain Reflect the application scenarios of user current use state or user in the terminal in degree.For example, using navigation application as Can be the application scenarios (scene of referred to as driving) driven when foreground application;It, can be with using shopping application as when foreground application It is the application scenarios (referred to as shopping scene) of shopping.So this step can determine application according to the operating status of resident applications Scene.
Specifically, may include front stage operation or running background using real-time operating status.For example, in the process driven In, navigation application can be foreground application, and the users such as browser application, shopping application not direct interaction, so that it may with It is background application, but in current intelligent terminal, music application is shown usually in the form of notification bar or user can be by fast Prompt key is operated, so can also be foreground application.
After the application in getting memory, it may be determined that go out these application in which be foreground application, which be backstage Using, and according to real-time operating status, determine application scenarios.Specifically, operating status and applied field can be pre-set The correspondence of scape, for example can first establish the correspondence of the Apply Names and application scenarios of foreground application, the application identities Can be Apply Names, specifically the such as Apply Names such as " XX maps ", " XX music " can correspond to navigation scenarios, music respectively Scene can correspond to shopping scene for electric business application etc., etc..
In practical applications, it is also possible to the case where all applications for depositing in memory are background application, namely temporarily There is no foreground application, can be determined as deactivating scene at this time.
And in practical application, can also be added real time environment factor, it is comprehensive to determine application scenarios, such as light compared with It, can be in the environment secretly (determined by photosensitive sensors), or extremely in the environment that jolts and (determined by acceleration transducer) The application scenarios for being determined as dark and jolting.For example, can be according to using real-time operating status and real-time ring Border feature determines music, dark scene, music, scene of jolting etc..
Step 13:According to the application scenarios determined, and application attribute, determined from application resident applications and Non-resident application.
Application scenarios are defined in previous step, and by introducing above, under some application scenarios, usually only Minority application and user's direct interaction, namely under some application scenarios, can there is the application of at least one necessary operation, and remove Necessary application under application scenarios, other application can not be run, or limit its operation.Here it is possible to by application scenarios Under necessary application as resident applications, resident applications can refer to reside at application in memory namely resident applications can be with Including the necessary application of application scenarios.
When determining resident applications, can be determined according to application scenarios and the attribute of application, such as the category applied Property can be, but not limited to:The type of application, the way of output of application, title of application etc..Specifically, it can pre-set Application scenarios and correspondence that must be between application type to be applied, for example under scene of driving, navigation type application can be Necessity is applied, and under scene of doing shopping, class application of doing shopping, the application of input method class can be necessary application.And for some electric business, Can there are shopping application, payment application etc., the correspondence of application scenarios and Apply Names can be established.
In actual system, to support the normal operation of system, maintaining the basic function of terminal, there can also be some to be System application, for example for mobile phone, can there is the systems application such as phone, short message, setting, clock, these can be with It is the application for maintaining terminal basic function.And these are applied it is usually possible to be used at any time, so these applications can also be made For resident applications.
In practical applications, some applications may need to open for a long time, such as the application of anti-virus class, instant messaging application Deng, can also be by application that some application settings are the basic function that can maintain terminal so in one embodiment.Institute When determining resident applications, can be the application of system class, anti-virus class, instant messaging class application according to application type, determine Go out to maintain the resident applications of terminal basic function.
After determining resident applications, so that it may with according to the application scenarios determined, and the attribute of application, determining can Can refer to without residing at the application in memory with non-resident application.For example, true for navigation application according to foreground application It makes in the case of driving scene, outside navigation application and music application, others application (such as input method application, browsing Device application, Video Applications, reading application etc.) it may each be the application for being not necessarily to operation namely non-resident application;And in shopping scene Under, in addition to shopping application, input method application, music application, others application can also be non-resident application.For another example, for stopping With scene, other than maintaining the application of terminal basic function, other application may each be non-resident application.As it can be seen that resident applications May include the necessary application of application scenarios and/or the application of maintenance terminal basic function.For example, under scene of driving, in order to Not disperseing the energy of driver as possible, the necessary application of scene that will can only drive is determined as resident applications, and in order to maintain eventually Basic function is held, the application of terminal basic function will can also be maintained to be determined as resident applications simultaneously;For another example, in deactivated scene, Only the application of terminal basic function will can be maintained to be determined as resident applications.
Specifically, it is determining non-resident in application, can be determined according to the attribute of application, above by the agency of, is answering Can be, but not limited to attribute include:The type of application, the way of output of application, title of application etc..Such as " XX sounds It is happy " for application, it can be with audio output apparatus that type, which can be audio class, the way of output,.
For how to determine non-resident application, can have three ways, such as following, but in practical applications, can be not limited to down State three kinds of modes.
First way, this step may include:According to the application scenarios determined, and the type of application, from application In determine resident applications, and will have the application of similar relation be determined as non-resident application with the resident applications.Specifically, exist In practical application, user may install the application of multiple same types, such as reading and applying for different purposes, It is influenced by copyright factor, has different books in different readings application, user may be according to oneself for different books Demand installs multiple reading applications;For another example for shopping application, for different demands, multiple B2C can be installed (Business to Customer, quotient is to objective electronic business mode) and C2C (customer to customer, it is personal with Person-to-person e-commerce) shopping application;Also such as, include multiple feature cards in an application, for example browser is answered With, can include the video plug-in unit for playing video, and user can also install other Video Applications.Under normal conditions, right In same type application, user high probability can only use one whithin a period of time, for example user carries out by " XX readings " When reading, for other, the reading of same type is very low using probability.So using this feature, it can be according to normal The type applied in application determines the application for having similar relation with resident applications, and these applications is determined as very In application.For example, when " XX readings " application is resident applications, class application can will be read with its other with similar relation It is determined as non-resident application.In actual realization method, the list of the application with similar relation can be pre-set, such as Read application, music application, Video Applications, navigation application etc. in the whole network can be determined the application with similar relation respectively List.
The second way, this step can also include:According to the application scenarios determined, and application the way of output, Resident applications are determined from application, and non-resident by with the resident applications there is the application of output equipment conflict relationship to be determined as Using.Specifically, in practical applications, since the output equipment of mobile terminal is limited, for example most of mobile terminals are only Have one piece of screen, namely only there are one picture output device, most of mobile terminals also only there are one audio output apparatus, one Audio input device, a video input apparatus.So when an application occupies picture output device, other, needs account for It is very low using probability with picture output device, for example, for Video Applications, video can be occupied simultaneously and audio is defeated Go out equipment, so for recording application, music application, reading application, even the camera for occupying picture output device is needed to answer For, the probability used is very low.So the list of the application with output equipment conflict relationship can also be pre-set, Such as music application, there can be output equipment conflict relationship with other music applications, recording application, Video Applications etc..
The third mode, this step may include again:According to the application scenarios determined, and application attribute, from answering Resident applications and non-resident application are determined in.Specifically, in practical application, the characteristics of for mankind's face and make With custom, user can when using the application, and minimum probability is applied using some.For example the characteristics of for human eye, is (usually only Can concentrate one's energy in one things of observation) and reading habit, user is using reading in application, minimum probability uses simultaneously Video Applications;For another example answered for human eye, hand, the feature (being typically only capable to the something that gets down to) of nerve and game With the harmony requirement for eyes, hand, nerves reaction, for user when using game application, minimum probability, which uses, removes the game Other application in addition, so, for multiple applications, there can be the relationship using conflict.It is possible thereby to by the whole network Operation behavior when user is using mobile terminal is acquired, and is determined with the application using conflict relationship (just as above Citing, extremely strong for the exclusiveness of game application, while using game application, the probability for reusing other application is extremely low), and Conflict relationship can be used by foundation, determine non-resident application.
In practical applications, non-resident application can also be determined in other way, above by the agency of, it can be with The factor, such as music, dark scene etc. of environment are added in application scenarios.And in the case where light is very dark, for taking pictures Application be using probability it is extremely low, then can will take pictures using being determined as non-resident application, and can also establish using and answer There is the list using conflict relationship with scene, for example in the application scenarios extremely to jolt, few user can open reading Using or Video Applications.
Step 14:By system miscellaneous function, trigger process is simulated, the non-resident application determined is arranged in real time respectively For suspend mode, to reduce the electric quantity consumption of the non-resident application.
For non-resident application, this method can control its consumption to process resource by suspend mode, to control Its consumption to electricity.Suspend mode can refer to when not needing work some components, outer for terminal If terminating operation, or make it into low-power consumption mode.And for the application in mobile terminal, suspend mode can refer to Limit using process resource, such as the frequency for calling hardware, limitation network connection, the certain services of limitation can be limited etc.. Specifically such as in Android, (operating system of the freedom and open source code based on Linux of Google's exploitation, mainly makes For mobile device), version is to provide App Standby functions in 6.0 and later operating system, that is, applies suspend mode mould Formula is set as Standby patterns by that will apply, and can limit its frequency for connecting internet, providing the services such as push, may be used also It is opened with the automatic startup of restricted part application or by other application, consumption process resource is reduced to save the mesh of electricity to reach 's.Therefore in this step, the non-resident application determined in abovementioned steps can be set to suspend mode.
During realization, it can be realized by system miscellaneous function, such as in Android operation system, it can be with There is AccessibilityService (system miscellaneous function), which may operate in backstage, and can receive and be sent out by system The some events (AccessibilityEvent can indicate the state change of user interface) gone out such as focus changes, input Content change, button are clicked etc., this kind of function acquisition request window and can search content therein, and can simulate tactile Hair operation.So this method can simulate trigger process (click commands) by AccessibilityService, respectively will Each non-resident application is set as suspend mode in real time.Specifically, the application in interface can be set by the Standby in system Each non-resident application is arranged in list, simulation trigger process in real time respectively.
After setting non-resident application to suspend mode in real time, each non-resident application power consumption can be greatly reduced, but still Can retain in memory, to when be again turned on suspend mode in application, without reloading to memory, so as to Relatively rapid use the application.
By the agency of above, in actual application, the application in memory can be operated as the unlatching of user terminates, Or change at any time with mutual opening operation between application.As it can be seen that during user's using terminal, in memory Using the variation of real-time running state, application scenarios may also change at any time, so in one embodiment, this method may be used also To include:According to the application scenarios determined in real time, the non-resident application in suspend mode is adjusted in real time.Above By the agency of can terminate operation according to the unlatching of prefixed time interval or user and execute this method, it is possible to accordingly in real time Determination application scenarios, and according to application scenarios, the non-resident application in suspend mode is adjusted in real time.Specifically, After determining application scenarios, resident applications and non-resident application can be redefined out according to current application scenarios, due to Resident applications and non-resident application have been had confirmed before this, it is possible to according to the determination of priority as a result, adjustment application in real time Operational mode, for example the application of non-sleep pattern can be set to suspend mode in real time, the application of suspend mode is real-time It is set as non-sleep pattern, so as to preferably support application scenarios.
And in practical applications, even if some application be set as suspend mode in real time, still can be not set as suspend mode Identical process resource is consumed when pattern, such as individual music applications, individual weather applications etc., even if being set as suspend mode mould Formula can yet consume a large amount of electricity.So in one embodiment, this method can also include:Work(is assisted by system Can, trigger process is simulated, terminates the non-resident application that operation is determined respectively.Specifically, can also pass through AccessibilityService, in the details interface of application, the process triggered by simulations such as " ending task " terminates each Application operation will also be applied and be emptied from memory, consumption process resource is further reduced to reach, to further save electricity The purpose of amount.And for some application for, even if being opened again after termination, also due to suspend mode and be limited to all Multioperation.
Such as the schematic diagram that Fig. 2 is the method that the present embodiment saves terminal power, the application in memory, then root can be first obtained According to real-time operating status is applied, determines application scenarios, hereafter can be determined according to application scenarios and the attribute of application Non-resident application finally can simulate trigger process by AccessibilityService, by non-resident application setting in real time For Standby patterns and operation is terminated, to reduce consumption process resource to the greatest extent, saves electricity.
The technical solution provided by above example according in the memory got as it can be seen that in the present embodiment, can answer With real-time operating status, application scenarios are determined, further according to application scenarios and the attribute of application, determine that application scenarios must Resident applications that are wanting and/or maintaining terminal basic function, and can be with the non-resident application of suspend mode, and non-resident application is set It is set to suspend mode, to reduce consumption of the non-resident application to electricity.When compared to current extensive application operation in memory, Excessive process resource is consumed, for causing electric quantity consumption too fast, the embodiment of the present application can be right in specific application scenarios Non-resident application without operation carries out suspend mode, consumption of the non-resident application to process resource is reduced to the greatest extent, to save terminal Electricity be conducive to extend its cruise duration and for cruise duration more important mobile terminal.
Embodiment 2
Based on identical inventive concept, the embodiment of the present application 2 provides a kind of device for saving terminal power, for realizing Method described in embodiment 1.The structural schematic diagram of the device is as shown in figure 3, include:Acquisition module 21, the first determining module 22, Second determining module 23 and setup module 24, wherein
Acquisition module 21, can be used for obtain memory in application, this application can according to opening operation, be loaded onto in Application in depositing;
First determining module 22 can be used for, according to the operating status applied in real time, determining application scenarios;The operating status May include foreground and/or running background;
Second determining module 23 can be used for according to the application scenarios determined, and the attribute of application, from application really Resident applications and non-resident application are made, which may include the necessary application of application scenarios and/or maintenance terminal The application of basic function;
Setup module 24 can be used for, by system miscellaneous function, simulating trigger process, respectively that the non-resident application is real When be set as suspend mode, to reduce the electric quantity consumption of non-resident application.
In one embodiment, which further includes adjustment module, be can be used for:
According to the application scenarios determined in real time, the non-resident application in suspend mode is adjusted in real time.
In one embodiment, the second determining module 23, can be used for:
According to the application scenarios determined, and application type, determine resident applications from application, and will with it is resident It is determined as non-resident application using the application with similar relation.
In one embodiment, the second determining module 23, can be used for:
According to the application scenarios determined, and application the way of output, determine resident applications from application, and will be with There is resident applications the application of output equipment conflict relationship to be determined as non-resident application.
In one embodiment, the second determining module 23, can be used for:
According to the application scenarios determined, and application title, determine resident applications from application, and will with it is resident It is determined as non-resident application using with the application using conflict relationship.
The device provided by above example according in the memory got as it can be seen that in the present embodiment, can apply in fact When operating status, determine application scenarios, further according to application scenarios and the attribute of application, determine that application scenarios are necessary And/or the resident applications of terminal basic function are maintained, and can be with the non-resident application of suspend mode, and set non-resident application to Suspend mode, to reduce consumption of the non-resident application to electricity.When compared to current extensive application operation in memory, consumption Excessive process resource, for causing electric quantity consumption too fast, the embodiment of the present application can be in specific application scenarios, to being not necessarily to The non-resident application of operation carries out suspend mode, consumption of the non-resident application to process resource is reduced to the greatest extent, to save the electricity of terminal Amount, and for cruise duration more important mobile terminal, it is conducive to extend its cruise duration.
Fig. 4 is the structural schematic diagram of one embodiment electronic equipment of the application.In hardware view, which includes Processor further includes optionally internal bus, network interface, memory.Wherein, memory may include memory, such as high speed Random access memory (Random-Access Memory, RAM), it is also possible to further include nonvolatile memory (non- Volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other business institutes The hardware needed.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..For ease of indicating, only indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or a type of Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layer The device for saving terminal power is formed on face.Processor executes the program that memory is stored, and specifically for executing following behaviour Make:
The application in memory is obtained, the application is the application that is loaded onto in memory according to opening operation;
According to the real-time operating status of application, application scenarios are determined;The operating status includes foreground and/or backstage Operation;
According to the application scenarios and the attribute of the application, resident applications and non-are determined from the application Resident applications, the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, To reduce the electric quantity consumption of the non-resident application.
The method that the device of the above-mentioned saving terminal power provided such as the application embodiment illustrated in fig. 4 executes can be applied to In processor, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal. During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor or software form Instruction is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed in conjunction with its hardware The step of method.
The electronic equipment can also carry out the device implementation shown in Fig. 4 of the saving terminal power of embodiment illustrated in fig. 3 offer The function of example, details are not described herein for the embodiment of the present application.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one A or multiple programs, the one or more program include instruction, which works as is held by the electronic equipment including multiple application programs When row, the electronic equipment can be made to execute and save the method that the device of terminal power executes in embodiment illustrated in fig. 3, and specifically used In execution:
The application in memory is obtained, the application is the application that is loaded onto in memory according to opening operation;
According to the real-time operating status of application, application scenarios are determined;The operating status includes foreground and/or backstage Operation;
According to the application scenarios and the attribute of the application, resident applications and non-are determined from the application Resident applications, the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, To reduce the electric quantity consumption of the non-resident application.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage device.
Each embodiment in the application is described in a progressive manner, identical similar part between each embodiment Just to refer each other, and each embodiment focuses on the differences from other embodiments.Implement especially for system For example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part illustrates.
Above is only an example of the present application, it is not intended to limit this application.For those skilled in the art For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (12)

1. a kind of method for saving terminal power, which is characterized in that including:
The application in memory is obtained, the application is the application that is loaded onto in memory according to opening operation;
According to the real-time operating status of application, application scenarios are determined;The operating status includes that foreground and/or backstage are transported Row;
According to the application scenarios and the attribute of the application, resident applications and non-resident are determined from the application Using the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, so as to Reduce the electric quantity consumption of the non-resident application.
2. the method as described in claim 1, which is characterized in that the method further includes:
According to the application scenarios determined in real time, the non-resident application in suspend mode is adjusted in real time.
3. the method as described in claim 1, according to the application scenarios and the attribute of the application, from the application Determine resident applications and non-resident application, including:
According to the application scenarios and the type of the application, determine resident applications from the application, and will with it is described There is resident applications the application of similar relation to be determined as non-resident application.
4. the method as described in claim 1, according to the application scenarios and the attribute of the application, from the application Determine resident applications and non-resident application, including:
According to the application scenarios and the way of output of the application, resident applications are determined from the application, and will be with There is the resident applications application of output equipment conflict relationship to be determined as non-resident application.
5. the method as described in claim 1, according to the application scenarios and the attribute of the application, from the application Determine resident applications and non-resident application, including:
According to the application scenarios and the title of the application, determine resident applications from the application, and will with it is described Resident applications have is determined as non-resident application using the application of conflict relationship.
6. a kind of device for saving terminal power, which is characterized in that including:Acquisition module, the first determining module, second determine mould Block and setup module, wherein
The acquisition module, for obtaining the application in memory, the application is to be loaded onto answering in memory according to opening operation With;
First determining module, for according to the real-time operating status of application, determining application scenarios;The operating status Including foreground and/or running background;
Second determining module is determined for the attribute according to the application scenarios and the application from the application Go out resident applications and non-resident application, the resident applications include the necessary application of the application scenarios and/or maintenance terminal The application of basic function;
The setup module respectively sets the non-resident application for by system miscellaneous function, simulating trigger process in real time It is set to suspend mode, to reduce the electric quantity consumption of the non-resident application.
7. device as claimed in claim 6, which is characterized in that described device further includes adjustment module, is used for:
According to the application scenarios determined in real time, the non-resident application in suspend mode is adjusted in real time.
8. device as claimed in claim 6, second determining module, are specifically used for:
According to the application scenarios and the type of the application, determine resident applications from the application, and will with it is described There is resident applications the application of similar relation to be determined as non-resident application.
9. device as claimed in claim 6, second determining module, are specifically used for:
According to the application scenarios and the way of output of the application, resident applications are determined from the application, and will be with There is the resident applications application of output equipment conflict relationship to be determined as non-resident application.
10. device as claimed in claim 6, second determining module, are specifically used for:
According to the application scenarios and the title of the application, determine resident applications from the application, and will with it is described Resident applications have is determined as non-resident application using the application of conflict relationship.
11. a kind of electronic equipment, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
The application in memory is obtained, the application is the application that is loaded onto in memory according to opening operation;
According to the real-time operating status of application, application scenarios are determined;The operating status includes that foreground and/or backstage are transported Row;
According to the application scenarios and the attribute of the application, resident applications and non-resident are determined from the application Using the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, so as to Reduce the electric quantity consumption of the non-resident application.
12. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs by the electronic equipment including multiple application programs when being executed so that the electronic equipment executes following behaviour Make:
The resident applications in memory are obtained, the resident applications are to be loaded onto answering in memory according to the opening operation to application With;
According to the real-time operating status of the resident applications, application scenarios are determined;The operating status includes foreground and/or backstage Operation;
According to the application scenarios and the attribute of the application, resident applications and non-resident are determined from the application Using the resident applications include the necessary application of the application scenarios and/or the application of maintenance terminal basic function;
By system miscellaneous function, trigger process is simulated, sets the non-resident application to suspend mode in real time respectively, so as to Reduce the electric quantity consumption of the non-resident application.
CN201810322294.8A 2018-04-11 2018-04-11 A kind of method and device for saving mobile terminal electricity Pending CN108594983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810322294.8A CN108594983A (en) 2018-04-11 2018-04-11 A kind of method and device for saving mobile terminal electricity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810322294.8A CN108594983A (en) 2018-04-11 2018-04-11 A kind of method and device for saving mobile terminal electricity

Publications (1)

Publication Number Publication Date
CN108594983A true CN108594983A (en) 2018-09-28

Family

ID=63621861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810322294.8A Pending CN108594983A (en) 2018-04-11 2018-04-11 A kind of method and device for saving mobile terminal electricity

Country Status (1)

Country Link
CN (1) CN108594983A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521924A (en) * 2018-11-27 2019-03-26 麒麟合盛网络技术股份有限公司 A kind of method and apparatus of auxiliary user's selection target application
CN111813213A (en) * 2020-07-01 2020-10-23 深圳传音控股股份有限公司 Power saving method, terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508701A (en) * 2011-10-18 2012-06-20 北京百纳威尔科技有限公司 User terminal and method for controlling automatically-operating application program
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN107562487A (en) * 2017-08-17 2018-01-09 上海展扬通信技术有限公司 The application control method and application control system of a kind of intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508701A (en) * 2011-10-18 2012-06-20 北京百纳威尔科技有限公司 User terminal and method for controlling automatically-operating application program
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN107562487A (en) * 2017-08-17 2018-01-09 上海展扬通信技术有限公司 The application control method and application control system of a kind of intelligent terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521924A (en) * 2018-11-27 2019-03-26 麒麟合盛网络技术股份有限公司 A kind of method and apparatus of auxiliary user's selection target application
CN111813213A (en) * 2020-07-01 2020-10-23 深圳传音控股股份有限公司 Power saving method, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
EP3477472A1 (en) Method for resource allocation and terminal device
TW201821966A (en) Information presentation method and apparatus
TW201743206A (en) Information display method, device, and system making possible in the system architecture level of integral management presentation information resources
CN104580972B (en) For providing the method and system of the media content by the sensor collection of equipment
CN104380256A (en) Method, system and executable piece of code for virtualisation of hardware resource associated with computer system
CN110020912B (en) Page display method, device and equipment
CN108549562A (en) A kind of method and device of image load
CN109391282B (en) Wearable device and information display method and device of wearable device
CN110244957A (en) A kind of resource data updating method, apparatus and system
CN109271587A (en) A kind of page generation method and device
CN109634599A (en) Display methods, device, equipment and the storage medium of page view
CN112084488A (en) Application authority management method, device and system
CN109933381A (en) A kind of loading method and device of kernel
CN108594983A (en) A kind of method and device for saving mobile terminal electricity
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN109903163A (en) A kind of block bonusing method, device and the electronic equipment out of block chain
CN108597546A (en) The background music for recalling video determines method and relevant device
CN111857531A (en) Mobile terminal and file display method thereof
CN109254781A (en) It is a kind of for installing the method and apparatus of application on a user device
CN111143830A (en) Method and device for limiting application use, terminal equipment and storage medium
CN109271254A (en) Method, electronic equipment and the medium risen using process tune
CN105897559B (en) A kind of control method and mobile terminal of HTML5 application
CN112997150B (en) Application management method and device, storage medium and electronic equipment
CN111192063A (en) Online customer service queuing processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928

RJ01 Rejection of invention patent application after publication