[go: up one dir, main page]

CN107302789B - Method and system for improving battery endurance of android device - Google Patents

Method and system for improving battery endurance of android device Download PDF

Info

Publication number
CN107302789B
CN107302789B CN201710476964.7A CN201710476964A CN107302789B CN 107302789 B CN107302789 B CN 107302789B CN 201710476964 A CN201710476964 A CN 201710476964A CN 107302789 B CN107302789 B CN 107302789B
Authority
CN
China
Prior art keywords
application
background
started
android device
wakelock
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
CN201710476964.7A
Other languages
Chinese (zh)
Other versions
CN107302789A (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.)
Shanghai Jihe Electronic Commerce Co ltd
Original Assignee
Shanghai Jihe Electronic Commerce 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 Shanghai Jihe Electronic Commerce Co ltd filed Critical Shanghai Jihe Electronic Commerce Co ltd
Priority to CN201710476964.7A priority Critical patent/CN107302789B/en
Publication of CN107302789A publication Critical patent/CN107302789A/en
Application granted granted Critical
Publication of CN107302789B publication Critical patent/CN107302789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method and a system for improving battery endurance of an android device, wherein the method comprises the following steps: monitoring the screen state of the android device, and judging whether the android device is switched from a bright screen state to a dead screen state; when the android device is switched to the screen-off state for a first preset time, shielding the wakelock which is not satisfied with the preset requirement and applied for awakening the lock; traversing the wakelock held by the application, and judging whether the time for holding the wakelock by the application exceeds second preset time, if so, releasing the wakelock held by the corresponding application so as to enable the system to enter a sleep mode. The method and the device can enable the operating system of the android device to enter the sleep mode in time, so that the power consumption of the android device is reduced, and the cruising ability of the android device is improved.

Description

Method and system for improving battery endurance of android device
Technical Field
The invention relates to the technical field of android devices, in particular to a method and a system for improving battery endurance of an android device.
Background
At present, smart phones are popular, and most of the smart phones use android operating systems. In the android system, google service and a third-party application installed on the android system may frequently wake up the system, and sometimes lock the system for a long time, so that the system cannot quickly enter a sleep mode, which causes serious power consumption of the system, and moreover, since the whole size of the smart phone is small, the battery capacity is also small, which results in poor battery endurance.
In order to save the power consumption of an android system and prolong the service life of a battery, the android system needs to be optimized in a power saving mode, an original power saving strategy (Doze and App standby mode) of the android system needs to monitor the movement of a mobile phone after a screen is closed, if the mobile phone does not move greatly for a long time, the mobile phone enters the Doze mode to perform power saving operation, and conditions for performing power saving optimization are harsh, so that a new simple and flexible power saving optimization strategy needs to be designed.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method and a system for improving battery endurance of an android device, which can simply and flexibly perform power saving optimization on an android system, so that the android devices such as a mobile phone can reasonably and quickly enter a sleep mode under the condition that the android devices do not move greatly, the power consumption of the android devices is reduced, and the battery endurance of the android devices is improved.
The invention provides a method for improving battery endurance of an android device, which comprises the following steps of:
monitoring the screen state of the android device, and judging whether the android device is switched from a bright screen state to a dead screen state;
when the android device is switched to the screen-off state for a first preset time, shielding the wakelock which is not satisfied with the preset requirement and applied for awakening the lock;
traversing the wakelock held by the application, and judging whether the time for holding the wakelock by the application exceeds second preset time, if so, releasing the wakelock held by the corresponding application so as to enable the operating system of the android device to enter a sleep mode.
Preferably, the method further comprises the following steps:
setting corresponding white list application according to a white list selection instruction input by a user;
the step of shielding wakelock of the application wake-up lock which does not meet the preset requirement comprises the following steps:
judging whether the application started by the background is a third-party application or a system application;
when the application started by the background is the third-party application, continuously judging whether the application started by the background is the white list application, and if the application started by the background is the white list application, allowing the application started by the background to apply for awakening the wakelock;
when the application started by the background is a system application, counting the frequency of the application started by the background for applying for waking up the wakelock, and when the frequency of the application started by the background for applying for waking up the wakelock exceeds the preset frequency, prohibiting the application from continuing to apply for waking up the wakelock.
Preferably, the method further comprises the following steps:
monitoring the application in the android device, and awakening the operating system of the android device when the application in the android device receives the message.
Preferably, the method further comprises the following steps:
and when the android device is switched to the screen-off state for a third preset time, clearing the started application of the background, and forbidding the self-starting of the cleared background application.
Preferably, the clearing the background started application comprises the following steps:
acquiring the application started by the background;
judging whether the application started by the background is: and if not, removing the application started in the background.
The invention also provides a system for improving battery endurance of the android device, which comprises the following steps:
the screen state monitoring module is used for monitoring the screen state of the android device and judging whether the android device is switched from a bright screen state to a dead screen state;
the wake-up lock shielding module is used for shielding the wake-up lock applied by the application which does not meet the preset requirement when the android device is switched to the screen-off state for a first preset time;
and the awakening lock releasing module is used for traversing the awakening lock wakelock held by the application, judging whether the time for holding the awakening lock wakelock by the application exceeds second preset time, and if so, releasing the corresponding awakening lock wakelock held by the application so as to enable the operating system of the android device to enter a sleep mode.
Preferably, the method further comprises the following steps:
the white list setting module is used for setting corresponding white list application according to a white list selection instruction input by a user;
the wake-up lock shielding module comprises:
the application type judging unit is used for judging whether the application started by the background is a third-party application or a system application;
the third-party application shielding unit is used for continuously judging whether the application started by the background is a white list application or not when the application started by the background is the third-party application, and allowing the application started by the background to apply for awakening wakelock if the application started by the background is the white list application;
and the system application shielding unit is used for counting the frequency of the wake lock wakelock applied by the application started by the background when the application started by the background is the system application, and forbidding the application to continue applying the wake lock wakelock when the frequency of the wake lock wakelock applied by the application started by the background exceeds the preset frequency.
Preferably, the method further comprises the following steps:
and the awakening control module is used for monitoring the application in the android device, and awakening the operating system of the android device when the application in the android device receives the message.
Preferably, the method further comprises the following steps:
and the background application clearing module is used for clearing the started application of the background and forbidding the self-starting of the cleared background application when the android device is switched to the screen-off state for the third preset time.
Preferably, the background application clearing module includes:
the background application acquisition unit is used for acquiring the started application of the background;
the application clearing unit is used for judging whether the application started by the background is: and if not, removing the application started in the background.
The implementation of the invention has the following beneficial effects: when the screen is turned off through the preset time by the equipment and the first preset time is reached, the wakelock is awakened by the application which does not meet the preset requirement in a shielding mode, the frequency and the frequency of the wakelock can be reduced, and the wakelock which is awakened by the application on the android equipment is released in time, so that the operating system of the android equipment can enter a sleep mode in time, the sleep time of the operating system is prolonged, the power consumption of the android equipment is reduced, and the cruising ability of the android equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for improving battery endurance of an android device provided by the invention.
Fig. 2 is a flowchart of another embodiment of the method for improving battery endurance of an android device provided in the present invention.
Fig. 3 is a schematic block diagram of a system for improving battery endurance of an android device provided by the present invention.
Detailed Description
The invention provides a method for improving battery endurance of an android device, which comprises the following steps of:
s100, monitoring the screen state of the android device, and judging whether the android device is switched from a bright screen state to a dead screen state.
S200, when the android device is switched to the screen off state for a first preset time, the wakelock is awakened to shield the application which does not meet the preset requirement.
S300, traversing the wakelock held by the application, and judging whether the time of holding the wakelock by the application exceeds second preset time, if so, releasing the wakelock held by the corresponding application so as to enable the operating system of the android device to enter a sleep mode.
For example, if an application holds the wakelock for more than 20 seconds, the wakelock held by the application is released to prevent the application from holding the wakelock for a long time, resulting in the system not being able to enter the sleep mode.
It should be noted that, in other embodiments, the steps S200 and S300 may exchange the execution order.
Preferably, before traversing the wakelock held in the application, it may be determined whether a packet name corresponding to the application exists, and if not, the subsequent operation is not executed, and if so, the subsequent operation is continuously executed. And then, inquiring whether the power saving strategy is started or not, inquiring the state of the current screen, and if the power saving strategy is in a bright screen state and the power saving measurement is closed, executing the wakelock awakening operation held in the following traversal application.
Preferably, before step S100, it is determined whether the power saving policy is turned on, and if the power saving policy is turned on, step S100 may be continuously performed, and if the power saving policy is not turned on, step S100 is suspended.
Here, the application is restricted from self-starting, and the application is also restricted from starting the activity component and the service component of the application.
The android device can be a mobile phone with an android system or a tablet computer with the android system, and can be compatible with android 2.2 and above system versions.
Further, the method for improving the battery endurance of the android device further comprises the following steps:
and setting corresponding white list application according to a white list selection instruction input by a user.
The step of shielding the wakelock of the application wakeup lock which does not meet the preset requirement comprises the following steps:
judging whether the application started by the background is a third-party application or a system application;
when the application started by the background is the third-party application, continuously judging whether the application started by the background is the white list application, and if the application started by the background is the white list application, allowing the application started by the background to apply for awakening the wakelock;
when the application started by the background is a system application, counting the frequency of the application started by the background for applying for waking up the wakelock, and when the frequency of the application started by the background for applying for waking up the wakelock exceeds the preset frequency, prohibiting the application from continuing to apply for waking up the wakelock.
The above system application is an application carried by an operating system of the android device, for example: and dialing and sending short messages.
For example, after the android device is turned off, if the wechat can continue to receive messages, the wechat needs to be set as the white list application, and at this time, the wechat application wakeup lock is allowed.
When the application started by the background is the system application, counting the frequency of the application started by the background for applying for waking up the wakelock, and when the frequency of the application started by the background for applying for waking up the wakelock exceeds the preset frequency, prohibiting the application from continuing to apply for waking up the wakelock.
For example, the preset frequency may be 5 times per hour, by shielding the system application applying for the wakelock with a high frequency, the system can quickly enter the sleep mode, the sleep time of the system is increased, and the power consumption of the system is reduced.
Further, the method for improving the battery endurance of the android device further comprises the following steps:
monitoring the application in the android device, and awakening the operating system of the android device when the application in the android device receives the message.
The method for improving the battery endurance of the android device further comprises the following steps:
when the android device is switched to the screen-off state for a third preset time, clearing the started application of the background, and forbidding the self-starting of the cleared background application; for example, a background running application may be cleared after 10 seconds of screen-off.
Further, the clearing of the application started in the background comprises the following steps:
acquiring the application started by the background;
judging whether the application started by the background is: and if not, removing the application started in the background.
Preferably, after the application started in the background is obtained, the method further comprises the following steps: and judging whether the power saving strategy is opened, if so, continuing to execute the following operation, and if not, suspending to clear the application started in the background.
Preferably, the prohibiting the application from booting comprises the steps of:
acquiring the intent corresponding to the application to be started;
judging whether the intent is empty (namely null), if so, not performing the operation of forbidding starting on the corresponding application;
judging whether the power saving strategy is started or not, inquiring the state of the current screen, and if the power saving strategy is in a bright screen state and is closed, not performing the operation of forbidding starting on the corresponding application;
judging whether the packet name corresponding to the intent is the packet name of the system application, if so, not performing the operation of prohibiting starting on the corresponding application;
and judging whether the packet name corresponding to the intent is the packet name of the white list application, if so, not performing start prohibition operation on the corresponding application, and if so, intercepting the intent to prevent the application from being started.
The invention also provides another embodiment of the method for improving the battery endurance of the android device, as shown in fig. 2, the method comprises the following steps:
s1: first, the android device is in a bright Screen (Screen On) state, and the android device may be an android handset. In the state of the bright screen, background applications can be cleaned in the setting of the mobile phone, and white list applications can also be set in the setting.
S2: the user presses the Power key (namely, the Power key) of the android phone, and after monitoring that the user presses the Power key, the S3 is executed: and controlling the screen of the android mobile phone to be turned off, and monitoring that the Power key is pressed down or the mobile phone is plugged into a charger in the screen turning-off state of the mobile phone, and then lighting the screen of the mobile phone.
S4: and monitoring whether the android phone enters a Screen-Off state (Screen Off) from a Screen-On state (Screen On), if so, executing step S5, and if not, executing step S6.
S5: background applications are cleared, and the cleared applications are not white list applications, nor system applications, nor applications that are playing music.
S6: and preventing the application from applying for awakening the wakelock and forbidding the application from self-starting.
S7: the wake lock wakelock held by the application is released.
S8: the system enters a dormant state, and when the fact that the user presses a Power key or inserts a charger is monitored, the screen of the mobile phone is lightened.
S9: when the screen of the android mobile phone is not lighted, the application on the mobile phone receives a message, for example: the WeChat receives the message or receives the short message, or the alarm clock works and the like to wake up the system.
The invention further provides a system for improving battery endurance of the android device, as shown in fig. 3, the system includes:
the screen state monitoring module 10 is configured to monitor a screen state of the android device, and determine whether the android device is switched from a bright screen state to a dead screen state;
the wake-up lock shielding module 20 is configured to shield a wake-up lock wakelock applied for an application that does not meet a preset requirement when the android device is switched to the screen-off state for a first preset time;
and the wakelock release module 30 is configured to traverse the wakelock held by the application, and determine whether the time that the wakelock is held by the application exceeds a second preset time, if so, release the wakelock held by the corresponding application, so that the operating system of the android device enters a sleep mode.
Further, the system for improving battery endurance of the android device further comprises: a white list setting module 40. The white list setting module 40 is configured to set a corresponding white list application according to a white list selection instruction input by a user.
The wake-up lock shielding module 20 includes: an application type judging unit 21, a third party application shielding unit 22 and a system application shielding unit 23.
The application type determining unit 21 is configured to determine whether the application started in the background is a third-party application or a system application.
The third-party application shielding unit 22 is configured to, when the application started in the background is a third-party application, continuously determine whether the application started in the background is a white list application, and if the application started in the background is a white list application, allow the application started in the background to apply for waking up the wakelock.
The system application shielding unit 23 is configured to count a frequency of the application wakelock that has been started in the background when the application that has been started in the background is a system application, and prohibit the application wakelock that has been started in the background from continuing to apply for wakelock when the frequency of the application wakelock that has been started in the background exceeds a preset frequency.
Further, the system for improving battery endurance of the android device further comprises: the control module 50 is awakened. The wake-up control module 50 is configured to monitor an application in the android device, and wake up an operating system of the android device when the application in the android device receives a message.
Further, the system for improving battery endurance of the android device further comprises:
the background application clearing module 60 is configured to clear the started application in the background and prohibit the self-starting of the cleared background application when the android device is switched to the screen-off state for a third preset time;
further, background application cleanup module 60 includes:
a background application acquiring unit 61, configured to acquire an application that has been started in a background;
an application clearing unit 62, configured to determine whether the application started in the background is: the background is started, and the background is started according to the application information of the background, wherein the application information comprises one of a white list application, a system application and an application which is playing video and audio;
and a policy judgment unit configured to judge whether the power saving policy is turned on, and if the power saving policy is turned on, control the application clearing unit 62 to continue to operate.
In summary, according to the method and system for improving battery endurance of an android device, when the device is turned off for the first preset time after the preset time, the wakelock applied for the wake-up lock by the non-white list application in the third-party application is shielded, and the frequency of the wakelock applied for the wake-up lock exceeds the preset frequency, the wakelock applied for the wake-up lock which does not meet the preset requirement is shielded, for example: the non-white list application in the third party application wakes up lock wakelock to and the frequency of lock wakelock is awakened in the application surpasss the system of predetermined frequency, can reduce application on the android device and apply for awakening the number of times and the frequency of lock wakelock, and in time release the lock wakelock of awakening that holds for a long time, the operating system that makes the android device can be timely gets into sleep mode, increase the sleep time of system, in order to reduce the power consumption of android device, improve the duration of the android device.
Furthermore, the started application of the background can be cleared when the android device is switched to the screen-off state for a preset time, the self-starting of the cleared background application is forbidden, programs running on the background are reduced, the power consumption of the android device is reduced, and the cruising ability of the android device is improved.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (2)

1. A method for improving battery endurance of an android device is characterized by comprising the following steps:
setting corresponding white list application according to a white list selection instruction input by a user;
monitoring the screen state of the android device, and judging whether the android device is switched from a bright screen state to a dead screen state;
when the android device is switched to the screen-off state for a first preset time, shielding the wakelock which is not satisfied with the preset requirement and applied for awakening the lock;
traversing the wakelock held by the application, and judging whether the time for holding the wakelock by the application exceeds second preset time, if so, releasing the wakelock held by the corresponding application so as to enable an operating system of the android device to enter a sleep mode;
monitoring the application in the android device, and awakening an operating system of the android device when the application in the android device receives the message;
when the android device is switched to the screen-off state for a third preset time, clearing the started application of the background, and forbidding the self-starting of the cleared background application;
the step of shielding wakelock of the application wakeup lock which does not meet the preset requirement comprises the following steps:
judging whether the application started by the background is a third-party application or a system application;
when the application started by the background is the third-party application, continuously judging whether the application started by the background is the white list application, and if the application started by the background is the white list application, allowing the application started by the background to apply for awakening the wakelock;
when the started application of the background is a system application, counting the frequency of the application of the background started to wake up the wakelock, and when the frequency of the application of the background started to wake up the wakelock exceeds the preset frequency, prohibiting the application of the background started to wake up the wakelock;
wherein the clearing the background started application comprises:
acquiring the application started by the background;
judging whether the application started by the background is: the background is started, and the background is started according to the application information of the background, wherein the application information comprises one of a white list application, a system application and an application which is playing video and audio;
wherein inhibiting the purged application from launching comprises:
acquiring the intent corresponding to the application to be started;
judging whether the intent is empty, if so, not performing the operation of forbidding starting on the corresponding application;
judging whether the power saving strategy is started or not, inquiring the state of the current screen, and if the power saving strategy is in a bright screen state and is closed, not performing the operation of forbidding starting on the corresponding application;
judging whether the packet name corresponding to the intent is the packet name of the system application, if so, not performing the operation of prohibiting starting on the corresponding application;
and judging whether the packet name corresponding to the intent is the packet name of the white list application, if so, not performing the operation of prohibiting starting on the corresponding application, and if not, intercepting the intent to prevent the application from starting.
2. The utility model provides a system for improve tall and erect equipment battery duration which characterized in that includes:
the screen state monitoring module (10) is used for monitoring the screen state of the android device and judging whether the android device is switched from a bright screen state to a dead screen state;
the wake-up lock shielding module (20) is used for shielding the wake-up lock applied by the application which does not meet the preset requirement when the android device is switched to the screen-off state for a first preset time;
the wake-up lock releasing module (30) is used for traversing the wake-up lock wakelock held by the application, judging whether the time for holding the wake-up lock wakelock by the application exceeds second preset time, and if so, releasing the corresponding wake-up lock wakelock held by the application so as to enable the operating system of the android device to enter a sleep mode;
the background application clearing module (60) is used for clearing the started application of the background and forbidding the self-starting of the cleared background application when the android device is switched to the screen-off state for a third preset time;
the white list setting module (40) is used for setting corresponding white list application according to a white list selection instruction input by a user;
the wake-up lock shielding module (20) comprises:
the application type judging unit (21) is used for judging whether the application started in the background is a third-party application or a system application;
the third-party application shielding unit (22) is used for continuously judging whether the application started in the background is the white list application or not when the application started in the background is the third-party application, and allowing the application started in the background to apply for waking up the wakelock if the application started in the background is the white list application;
the system application shielding unit (23) is used for counting the frequency of the wake lock wakelock applied by the application started by the background when the application started by the background is the system application, and forbidding the application to continue applying the wake lock wakelock when the frequency of the wake lock wakelock applied by the application started by the background exceeds the preset frequency;
wherein the background application cleanup module (60) comprises:
a background application acquisition unit (61) for acquiring an application started in the background;
an application clearing unit (62) for judging whether the application started in the background is: the background is started, and the background is started according to the application information of the background, wherein the application information comprises one of a white list application, a system application and an application which is playing video and audio;
wherein inhibiting the purged application from launching comprises:
acquiring the intent corresponding to the application to be started;
judging whether the intent is empty, if so, not performing the operation of forbidding starting on the corresponding application;
judging whether the power saving strategy is started or not, inquiring the state of the current screen, and if the power saving strategy is in a bright screen state and is closed, not performing the operation of forbidding starting on the corresponding application;
judging whether the packet name corresponding to the intent is the packet name of the system application, if so, not performing the operation of prohibiting starting on the corresponding application;
judging whether the packet name corresponding to the intent is the packet name of the white list application, if so, not performing the operation of prohibiting starting on the corresponding application, and if not, intercepting the intent to prevent the application from starting;
and the awakening control module (50) is used for monitoring the application in the android device, and awakening the operating system of the android device when the application in the android device receives the message.
CN201710476964.7A 2017-06-21 2017-06-21 Method and system for improving battery endurance of android device Active CN107302789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710476964.7A CN107302789B (en) 2017-06-21 2017-06-21 Method and system for improving battery endurance of android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710476964.7A CN107302789B (en) 2017-06-21 2017-06-21 Method and system for improving battery endurance of android device

Publications (2)

Publication Number Publication Date
CN107302789A CN107302789A (en) 2017-10-27
CN107302789B true CN107302789B (en) 2021-04-16

Family

ID=60135914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710476964.7A Active CN107302789B (en) 2017-06-21 2017-06-21 Method and system for improving battery endurance of android device

Country Status (1)

Country Link
CN (1) CN107302789B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894909B (en) * 2017-11-30 2020-06-02 北京小米移动软件有限公司 Method, device and storage medium for limiting Activity starting
CN108255543A (en) * 2018-01-17 2018-07-06 北京小米移动软件有限公司 Application operation method, apparatus and computer readable storage medium
CN108536269A (en) * 2018-03-26 2018-09-14 上海康斐信息技术有限公司 A kind of method and its system reducing terminal standby power consumption
CN110543333B (en) * 2018-05-29 2024-05-17 视联动力信息技术股份有限公司 Sleep processing method and device for processor, mobile terminal and storage medium
CN109462699B (en) * 2018-12-26 2020-10-23 惠州Tcl移动通信有限公司 Method for controlling Doze mode of mobile terminal
CN110989819B (en) * 2019-12-03 2021-04-13 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN112035242B (en) * 2020-11-06 2021-03-09 南京研利科技有限公司 Method for playing push message, computing device and computer-readable storage medium
CN112486308B (en) * 2020-11-26 2025-01-21 广东小天才科技有限公司 Power consumption control method of wearable device, wearable device, and storage medium
CN112860326A (en) * 2021-02-01 2021-05-28 读书郎教育科技有限公司 Power-saving processing method for screen-off standby of android device
CN113747552B (en) * 2021-06-18 2024-03-19 荣耀终端有限公司 Power consumption optimization method and electronic equipment
CN114585054B (en) * 2022-02-23 2023-11-14 北京小米移动软件有限公司 WIFI connection control method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof
CN106774792A (en) * 2016-11-28 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Method for managing power supply and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711098B (en) * 2012-04-28 2015-01-07 广东欧珀移动通信有限公司 Method for preventing background flow of application program from being lost
CN105354044B (en) * 2014-08-21 2018-11-13 阿里巴巴集团控股有限公司 A kind of application awakening method and device
CN105677386A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Application program management method and device and electronic equipment
CN106022099A (en) * 2016-05-16 2016-10-12 上海传英信息技术有限公司 Application self-starting management apparatus and method
CN106095517A (en) * 2016-06-28 2016-11-09 宇龙计算机通信科技(深圳)有限公司 The method and device that a kind of end application runs

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof
CN106774792A (en) * 2016-11-28 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Method for managing power supply and system

Also Published As

Publication number Publication date
CN107302789A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN107302789B (en) Method and system for improving battery endurance of android device
CN109803359B (en) Method for awakening terminal system and terminal
CN105554316B (en) A kind of realization method and system of reserved intelligent terminal battery capacity
CN105183137A (en) Mobile terminal and wake lock control method and system thereof
CN101395584B (en) JTAG power collapse debug
CN105373207B (en) A kind of idle method of wireless communication terminal
EP3361348B1 (en) Terminal-based wakelock control method and apparatus
US8838188B1 (en) Method and apparatus for reducing power consumption in a portable electronic device
CN106020415B (en) Application control method and device under smart machine standby mode
CN106055073B (en) A kind for the treatment of method and apparatus based on bright screen lock
WO2013091561A1 (en) Energy-saving method, device and communication terminal
CN103064669B (en) The timing wake-up method and system of smart machine
CN106547335A (en) Energy consumption reduces method and mobile terminal
CN104156053A (en) Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN104714620A (en) Method and device for adjusting wakeup frequency of intelligent terminal
CN108536269A (en) A kind of method and its system reducing terminal standby power consumption
CN105630132A (en) Power consumption control method and system as well as terminal
CN102968174A (en) Deep sleep awakening method of android device
CN101888435A (en) Portable terminal and state control method thereof
CN106686633A (en) Method for preventing WIFI malicious frequent awakening
CN104267992A (en) Method and device for shielding wake-up program of mobile terminal
CN102932544B (en) Method for answering call in power-off state and mobile intelligent terminal
CN107436672B (en) Application processing method and terminal
CN105867577A (en) Terminal awakening method and terminal
CN108628560A (en) A kind of display methods and terminal

Legal Events

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