CN112486308A - Power consumption control method of wearable device, wearable device and storage medium - Google Patents

Power consumption control method of wearable device, wearable device and storage medium Download PDF

Info

Publication number
CN112486308A
CN112486308A CN202011354541.6A CN202011354541A CN112486308A CN 112486308 A CN112486308 A CN 112486308A CN 202011354541 A CN202011354541 A CN 202011354541A CN 112486308 A CN112486308 A CN 112486308A
Authority
CN
China
Prior art keywords
application
wearable device
background
service
executing
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
CN202011354541.6A
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202011354541.6A priority Critical patent/CN112486308A/en
Publication of CN112486308A publication Critical patent/CN112486308A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The embodiment of the application relates to the technical field of wearable equipment, and discloses a power consumption control method of the wearable equipment, the wearable equipment and a storage medium, wherein the method comprises the following steps: after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the execution of business logic in the background; and if the wearable device is in a non-charging state, the first application does not belong to a system application, and the first application is not in a preset white list, prohibiting the first application from executing a service in a background. By implementing the embodiment of the application, the non-inductive power consumption brought by the application of a third party to the background service execution can be saved, and the battery endurance of the wearable device is improved.

Description

Power consumption control method of wearable device, wearable device and storage medium
Technical Field
The application relates to the technical field of wearable equipment, in particular to a power consumption control method of wearable equipment, the wearable equipment and a storage medium.
Background
At present, wearable devices (such as smart phone watches) are more and more widely applied, but the short battery life of the wearable devices is always an unavoidable pain point. Particularly, as functions of the wearable device are more and more abundant, the wearable device introduces more and more third-party applications, and even if the third-party applications are switched to the background, the third-party applications still execute services (such as holding a CPU lock, accessing devices such as GPS, WIFI, bluetooth, sensor, and the like) under the condition that the user does not perceive the services, so that the condition that the battery of the wearable device is not durable is more prominent.
Disclosure of Invention
The embodiment of the application discloses a power consumption control method of wearable equipment, the wearable equipment and a storage medium, which can save non-inductive power consumption brought by a third party applying to background execution service and improve battery endurance of the wearable equipment.
The embodiment of the application discloses a first aspect of a power consumption control method for wearable equipment, and the method comprises the following steps:
after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the service to be executed in the background;
and if the wearable device is in a non-charging state, the first application does not belong to a system application, and the first application is not in a preset white list, prohibiting the first application from executing a service in a background.
The embodiment of the present application discloses in a second aspect a wearable device, including:
the first judging unit is used for judging whether the wearable device is in a non-charging state and whether a first application of the wearable device belongs to a system application or not and the first application is not in a preset white list after the first application of the wearable device is switched from a foreground to a background; the white list is used for recording applications allowing the service to be executed in the background;
the control unit is used for prohibiting the first application from executing a service in a background when the first judging unit judges that the wearable device is in a non-charging state and the first application does not belong to a system application and is not in a preset white list.
A third aspect of an embodiment of the present application discloses a wearable device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute all or part of the steps of the power consumption control method of the wearable device disclosed in the first aspect of the embodiment of the present application.
In a fourth aspect of the embodiments of the present application, a computer-readable storage medium has stored thereon computer instructions, which, when executed, cause a computer to perform all or part of the steps of the method for controlling power consumption of a wearable device disclosed in the first aspect of the embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
in the embodiment of the application, after a certain first application of the wearable device is switched to the background from the foreground, if it is determined that the wearable device is in a non-charging state and the first application does not belong to a system application and the first application is not in a preset white list, the first application may be prohibited from executing a service in the background (for example, the first application is prohibited from holding a CPU lock in the background, prohibiting access to a network, GPS, WIFI, bluetooth, sensor, audio, a camera, and other devices), so that non-perceived power consumption caused by the service executed in the background by a third party may be saved, and the battery endurance of the wearable device is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first embodiment of a power consumption control method for a wearable device disclosed in an embodiment of the present application;
fig. 2 is a flowchart illustrating a second embodiment of a power consumption control method of a wearable device disclosed in an embodiment of the present application;
fig. 3 is a flowchart illustrating a power consumption control method of a wearable device according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a first embodiment of a wearable device disclosed in embodiments of the present application;
fig. 5 is a schematic structural diagram of a second embodiment of the wearable device disclosed in the embodiments of the present application;
fig. 6 is a schematic structural diagram of a third embodiment of the wearable device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses a power consumption control method of wearable equipment, the wearable equipment and a storage medium, which can save non-inductive power consumption brought by a third party applying to background execution service and improve battery endurance of the wearable equipment. The following detailed description is made with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a power consumption control method of a wearable device according to a first embodiment of the present disclosure. The wearable device may include a smart phone watch and other wearable electronic devices that can be installed with third-party applications, which is not limited in the embodiments of the present application. As shown in fig. 1, the power consumption control method of the wearable device may include the steps of:
101. after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the business logic to be executed in the background; if yes, executing step 102 if the wearable device is in a non-charging state and the first application does not belong to the system application and the first application is not in the preset white list; otherwise, step 103 is executed.
In this embodiment of the application, the first application may be any application that the wearable device runs in the foreground, for example, any third-party application, any system application, and the like, which is not limited in this embodiment of the application.
As an optional embodiment, before performing step 101, the wearable device may further perform the following steps:
whether wearable equipment detects the wearer of wearable equipment and gets into sleep state, if the wearer of wearable equipment gets into sleep state, the first application of control wearable equipment proscenium current operation switches to the backstage to can realize automatic triggering wearable equipment's consumption control when the wearer of wearable equipment gets into sleep state, thereby can promote wearable equipment's battery duration.
Furthermore, after the wearable device detects that the wearer of the wearable device enters the sleep state, the battery available time of the wearable device can be detected, whether the average sleep time of the user of the wearer of the wearable device counted in advance exceeds the battery available time of the wearable device is judged, and if the average sleep time exceeds the battery available time of the wearable device, the first application of the foreground of the wearable device running at present is controlled to be switched to the background, so that the power consumption control of the wearable device can be automatically triggered when the wearer of the wearable device enters the sleep state, the battery endurance capability of the wearable device is improved, and the situation that the user wakes up to find that the wearable device is out of power can be reduced.
Furthermore, if it is determined that the average sleep time of the user of the wearable device, which is counted in advance, does not exceed the available battery time of the wearable device, the wearable device may identify whether the power consumption rate of the first application exceeds a specified rate threshold, and if so, control the first application, which is currently running on the foreground of the wearable device, to be switched to the background, so as to provide as much available power for the user after waking up.
For example, the wearable device may be embedded with a heart rate sensor and a posture sensor, and accordingly, the wearable device may detect heart rate data of the wearer through the heart rate sensor, and when it is determined that the wearer is in a sleep state by analyzing the heart rate data, the wearable device may further detect whether the amount of motion of the wearer has not changed within a specified time period (e.g., 15 minutes) through the posture sensor, and if so, determine that the wearer is in the sleep state. Obviously, such an embodiment may significantly improve the accuracy of determining that the user wearing the wearable device is in a sleep state.
As another optional embodiment, before performing step 101, the wearable device may further perform the following steps:
when the wearable device detects that the login account (such as a social account) of the first application currently running on the foreground of the wearable device logs in on the same application of other devices, the first application currently running on the foreground of the wearable device is controlled to be switched to the background, so that power consumption control of the wearable device can be automatically triggered when the login account of the first application logs in on the same application of other devices, and the battery endurance of the wearable device can be improved.
Furthermore, when the wearable device detects that a login account (such as a social account) of a first application currently running in the foreground logs in the same application of other devices, the wearable device may further detect whether the login account is set for information synchronization, and only if the information synchronization is not set, the first application currently running in the foreground of the wearable device is controlled to be switched to the background.
102. The wearable device prohibits the first application from executing the service in the background, and the process is ended.
For example, the wearable device may prohibit the first application from holding a CPU lock in the background, prohibit the first application from accessing a network, GPS, WIFI, bluetooth, sensor, audio, camera, etc. in the background.
103. The wearable device allows the first application to execute the service in the background, and the process is ended.
Exemplarily, if the wearable device is in a charging state, and/or the first application belongs to a system application, and/or the first application is in a preset white list, the wearable device allows the first application to execute a service in the background, so that it can be ensured that the core service function is not affected, such as system update, background downloading of a system update package, and the like, that is, normal use of the core service function is not affected while power is saved, so that the embodiment of the present application is more humanized and has higher feasibility.
In the method described in fig. 1, the purpose of saving power is achieved by a method of prohibiting the first application from executing the service in the background, that is, the background application is prohibited from holding a CPU lock, and from accessing to devices such as a network, a GPS, a WIFI, a bluetooth, a sensor, an audio, a camera, and the like, so that the non-perceptual power consumption caused by executing the service after the application is switched to the background is saved, and the purposes of saving power and improving the battery endurance of the wearable device are achieved.
In addition, by not limiting the system application and setting the white list, the core application is allowed to execute the service in the background, and the core function is prevented from being influenced, so that the method and the system are more humanized and have higher feasibility.
Referring to fig. 2, fig. 2 is a flowchart illustrating a power consumption control method of a wearable device according to a second embodiment of the disclosure. The wearable device may include a smart phone watch and other wearable electronic devices that can be installed with third-party applications, which is not limited in the embodiments of the present application. As shown in fig. 2, the power consumption control method of the wearable device may include the steps of:
201. after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the service to be executed in the background; if yes, if the wearable device is in a non-charging state and the first application does not belong to the system application and the first application is not in the preset white list, executing step 202; otherwise, step 203 is executed.
202. The wearable device prohibits the first application from performing the service in the background and performs step 204.
203. The wearable device allows the first application to execute the service in the background and performs step 204.
Exemplarily, if the wearable device is in a charging state, and/or the first application belongs to a system application, and/or the first application is in a preset white list, the wearable device allows the first application to execute a service in the background, so that it can be ensured that the core service function is not affected, such as system update, background downloading of a system update package, and the like, that is, normal use of the core service function is not affected while power is saved, so that the embodiment of the present application is more humanized and has higher feasibility.
204. After a certain second application of the wearable device is switched from the background to the foreground, judging whether the second application is forbidden to execute the service in the background, if not, ending the process; if yes, go to step 205.
In this embodiment of the application, the second application may be any application that runs in the background of the wearable device, for example, any third-party application, any system application, and the like, which is not limited in this embodiment of the application.
205. The wearable device resumes the function of the second application to perform the service.
For example, the wearable device may allow the second application to hold a CPU lock, allow the second application to access a network in the background, GPS, WIFI, bluetooth, sensor, audio, camera, etc. devices, and so on.
In the method described in fig. 2, the purpose of saving power is achieved by a method of prohibiting the first application from executing the service in the background, that is, the background application is prohibited from holding a CPU lock, and from accessing to devices such as a network, a GPS, a WIFI, a bluetooth, a sensor, an audio, a camera, and the like, so that the non-perceptual power consumption caused by executing the service after the application is switched to the background is saved, and the purposes of saving power and improving the battery endurance of the wearable device are achieved.
In addition, by not limiting the system application and setting the white list, the core application is allowed to execute the service in the background, and the core function is prevented from being influenced, so that the method and the system are more humanized and have higher feasibility.
In addition, after the application is switched from the background to the foreground, the function of executing the service by the application can be recovered, so that the application is more humanized, and the user experience is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a power consumption control method of a wearable device according to a third embodiment of the disclosure. The wearable device may include a smart phone watch and other wearable electronic devices that can be installed with third-party applications, which is not limited in the embodiments of the present application. As shown in fig. 3, the power consumption control method of the wearable device may include the steps of:
301. after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the service to be executed in the background; if the wearable device is in a non-charging state and the first application does not belong to the system application and the first application is not in the preset white list, executing the step 302 to the step 303; otherwise, go to step 307.
302. The wearable device outputs prompt information and starts timing; the prompt information comprises a prompt field and selectable items, wherein the prompt field is used for prompting that the first application is prohibited from executing the service in the background when the timing duration reaches the specified duration; the optional item is used to trigger allowing the first application to execute the service in the background.
303. The wearable device detects whether the selectable item is selected in the process that the timing duration does not reach the specified duration, if the selectable item is not selected in the process that the timing duration does not reach the specified duration, the step 306 is executed when the timing duration reaches the specified duration; if the selectable item is selected in the process that the timed duration does not reach the specified duration, the steps 304 to 305 are executed.
304. The wearable device prompts to input information to be verified.
305. The wearable device checks whether the input information to be verified is matched with the legal unlocking information bound to the first application, if not, the step 306 is executed when the timing duration reaches the designated timing duration; if so, go to step 307.
In step 302 to step 303, the accuracy of prohibiting or allowing the first application from executing the service in the background may be improved, and an illegal user may be prevented from wantonly prohibiting or allowing the first application to execute the service in the background.
As an optional embodiment, after performing step 304, the wearable device may further perform the following steps:
the wearable device determines a social application associated with the first application, and determines a group associated with the first application from the social application;
the wearable device outputting a face-to-face content interface for the group, the face-to-face content interface including conversation voices posted by a plurality of different social users;
the wearable device detects any two segments of dialogue voices selected by a wearer from the dialogue voices issued by different social users, and splices the selected any two segments of dialogue voices into a voice sentence which is used as input information to be verified; in the speech sentence, selecting one section of dialogue speech with early time before and another section of dialogue speech with late time after;
accordingly, the implementation manner of the step 305 may be:
the wearable device checks whether the user to which any two sections of dialogue voices belong is the same as the legal user pair included in the legal unlocking information bound by the first application, if so, checks whether the content of the voice sentence is the same as the content of the dialogue combined voice of the legal user included in the legal unlocking information bound by the first application, and if so, the wearable device determines that the input information to be verified is matched with the legal unlocking information bound by the first application; otherwise, the wearable device determines that the input information to be verified is not matched with the legal unlocking information bound to the first application.
306. The wearable device prohibits the first application from performing the service in the background and performs step 308.
307. The wearable device allows the first application to execute the transaction in the background and performs step 308.
Exemplarily, if the wearable device is in a charging state, and/or the first application belongs to a system application, and/or the first application is in a preset white list, the wearable device allows the first application to execute a service in the background, so that it can be ensured that the core service function is not affected, such as system update, background downloading of a system update package, and the like, that is, normal use of the core service function is not affected while power is saved, so that the embodiment of the present application is more humanized and has higher feasibility.
308. After a certain second application of the wearable device is switched from the background to the foreground, judging whether the second application is forbidden to execute the service in the background, if not, ending the process; if so, go to step 309.
In this embodiment of the application, the second application may be any application that runs in the background of the wearable device, for example, any third-party application, any system application, and the like, which is not limited in this embodiment of the application.
309. The wearable device resumes the function of the second application to perform the service.
For example, the wearable device may allow the second application to hold a CPU lock, allow the second application to access a network in the background, GPS, WIFI, bluetooth, sensor, audio, camera, etc. devices, and so on.
In the method described in fig. 3, the purpose of saving power is achieved by a method of prohibiting the first application from executing the service in the background, that is, the background application is prohibited from holding a CPU lock, and from accessing to devices such as a network, a GPS, a WIFI, a bluetooth, a sensor, an audio, a camera, and the like, so that the non-perceptual power consumption caused by executing the service after the application is switched to the background is saved, and the purposes of saving power and improving the battery endurance of the wearable device are achieved.
In addition, by not limiting the system application and setting the white list, the core application is allowed to execute the service in the background, and the core function is prevented from being influenced, so that the method and the system are more humanized and have higher feasibility.
In addition, after the application is switched from the background to the foreground, the function of executing the service by the application can be recovered, so that the application is more humanized, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wearable device according to a first embodiment disclosed in the present application. The wearable device may include a smart phone watch and other wearable electronic devices that can be installed with third-party applications, which is not limited in the embodiments of the present application. As shown in fig. 4, the wearable device may include:
a first determining unit 401, configured to determine, after a certain first application of the wearable device is switched from a foreground to a background, whether the wearable device is in a non-charging state and the first application does not belong to a system application and the first application is not in a preset white list; the white list is used for recording applications allowing the service to be executed in the background;
the control unit 402 is configured to prohibit the first application from executing a service in the background when the first determining unit 401 determines that the wearable device is in the non-charging state and the first application does not belong to the system application and the first application is not in the preset white list.
As an alternative embodiment, the wearable device shown in fig. 4 may further include:
a second determining unit 403, configured to determine whether a second application of the wearable device is prohibited from executing a service in the background after the second application is switched from the background to the foreground;
accordingly, the control unit 402 is further configured to resume the function of the second application to execute the service when the second determination unit 403 determines that the second application is prohibited from executing the service in the background.
In the wearable device described in fig. 4, the purpose of saving power is achieved by a method of prohibiting the first application from executing the service in the background, that is, the background application is prohibited from holding a CPU lock, and from accessing the network, GPS, WIFI, bluetooth, sensor, audio, camera, and other devices, so that the non-inductive power consumption caused by executing the service after the application is switched to the background is saved, and the purposes of saving power and improving the battery endurance of the wearable device are achieved.
In addition, by not limiting the system application and setting the white list, the core application is allowed to execute the service in the background, and the core function is prevented from being influenced, so that the method and the system are more humanized and have higher feasibility.
In addition, after the application is switched from the background to the foreground, the function of executing the service by the application can be recovered, so that the application is more humanized, and the user experience is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a wearable device according to a second embodiment disclosed in the present application. Wherein, the wearable device shown in fig. 5 is optimized by the wearable device shown in fig. 4. Compared to the wearable device shown in fig. 4, the wearable device shown in fig. 5 may further include:
an output timing unit 404, configured to output a prompt message and start timing after the first determining unit 401 determines that the wearable device is in a non-charging state and the first application does not belong to the system application and the first application is not in the preset white list; the prompt information comprises a prompt field and an optional item, wherein the prompt field is used for prompting that the first application is prohibited from executing the service in the background when the timing duration reaches the specified duration; an optional item is used for triggering the first application to execute the service in the background;
a detecting unit 405, configured to detect whether the selectable item is selected in the process that the timed duration does not reach the specified duration, and if the selectable item is not selected in the process that the timed duration does not reach the specified duration, trigger the controlling unit 402 to execute an operation that prohibits the first application from executing the service in the background when the timed duration reaches the specified duration.
As an alternative embodiment, the wearable device shown in fig. 5 may further include:
a prompting unit 406, configured to prompt to input information to be verified when the detection unit 405 detects that the selectable item is selected in the process that the timed duration does not reach the specified duration;
the checking unit 407 is configured to check whether the input information to be verified matches the legal unlocking information bound to the first application, and if not, trigger the control unit 402 to execute an operation that prohibits the first application from executing a service in the background when the timed duration reaches a specified duration.
Correspondingly, the control unit 402 is further configured to allow the first application to execute the service in the background when the verification unit 407 verifies that the information to be verified matches the legal unlocking information bound to the first application.
In the wearable device described in fig. 5, the purpose of saving power is achieved by a method of prohibiting the first application from executing the service in the background, that is, the background application is prohibited from holding a CPU lock, and from accessing the network, GPS, WIFI, bluetooth, sensor, audio, camera, and other devices, so that the non-inductive power consumption caused by executing the service after the application is switched to the background is saved, and the purposes of saving power and improving the battery endurance of the wearable device are achieved.
In addition, by not limiting the system application and setting the white list, the core application is allowed to execute the service in the background, and the core function is prevented from being influenced, so that the method and the system are more humanized and have higher feasibility.
In addition, after the application is switched from the background to the foreground, the function of executing the service by the application can be recovered, so that the application is more humanized, and the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a wearable device according to a third embodiment disclosed in the embodiments of the present application. As shown in fig. 6, may include:
memory 601 storing executable program code
A processor 602 coupled to the memory;
the processor 602 calls the executable program code stored in the memory 601 to execute all or part of the steps of the power consumption control method of the wearable device.
It should be noted that, in this embodiment of the application, the wearable device shown in fig. 6 may further include components that are not displayed, such as a speaker module, a display screen, a battery module, a wireless communication module (such as a mobile communication module, a WIFI module, a bluetooth module, etc.), a sensor module (such as a proximity sensor, etc.), an input module (such as a microphone, a key), and a user interface module (such as a charging interface, an external power supply interface, a card slot, a wired headset interface, etc.).
The embodiment of the invention discloses a computer-readable storage medium, which is stored with computer instructions, and when the computer instructions are executed, the computer executes all or part of the steps of the power consumption control method of the wearable device.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The above detailed description is given to the power consumption control method of the wearable device, and the storage medium disclosed in the embodiments of the present invention, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for controlling power consumption of a wearable device, the method comprising:
after a certain first application of the wearable device is switched from a foreground to a background, judging whether the wearable device is in a non-charging state or not, and the first application does not belong to a system application and is not in a preset white list; the white list is used for recording applications allowing the service to be executed in the background;
and if the wearable device is in a non-charging state, the first application does not belong to a system application, and the first application is not in a preset white list, prohibiting the first application from executing a service in a background.
2. The method for controlling power consumption of a wearable device according to claim 1, further comprising:
after a certain second application of the wearable device is switched from a background to a foreground, judging whether the second application is forbidden to execute service in the background, and if so, recovering the function of executing the service by the second application.
3. The method for controlling power consumption of a wearable device according to claim 1 or 2, wherein after determining that the wearable device is in a non-charging state and the first application does not belong to a system application and the first application is not in a preset white list, the method further comprises:
outputting prompt information and starting timing; the prompt information comprises a prompt field and selectable items, wherein the prompt field is used for prompting that the first application is prohibited from executing the service in the background when the timing duration reaches the specified duration; the selectable item is used for triggering the first application to execute the service in the background;
detecting whether the selectable item is selected in the process that the timing duration does not reach the specified duration, if the selectable item is not selected in the process that the timing duration does not reach the specified duration, executing the step of forbidding the first application to execute the service in the background when the timing duration reaches the specified duration.
4. The method of claim 3, wherein the method further comprises:
if the selectable item is detected to be selected in the process that the timed duration does not reach the specified duration, prompting to input information to be verified;
and checking whether the input information to be verified is matched with the legal unlocking information bound by the first application, if not, executing the step of forbidding the first application from executing the service in the background when the timing duration reaches the specified duration.
5. The method of claim 4, wherein the method further comprises:
and if the information to be verified is verified to be matched with the legal unlocking information bound to the first application, allowing the first application to execute the service in the background.
6. A wearable device, comprising:
the first judging unit is used for judging whether the wearable device is in a non-charging state and whether a first application of the wearable device belongs to a system application or not and the first application is not in a preset white list after the first application of the wearable device is switched from a foreground to a background; the white list is used for recording applications allowing the service to be executed in the background;
the control unit is used for prohibiting the first application from executing a service in a background when the first judging unit judges that the wearable device is in a non-charging state and the first application does not belong to a system application and is not in a preset white list.
7. The wearable device of claim 6, further comprising:
the second judging unit is used for judging whether a certain second application of the wearable device is forbidden to execute a service in a background after the second application is switched from the background to the foreground;
the control unit is further configured to resume the function of the second application executing the service when the second determining unit determines that the second application is prohibited from executing the service in the background.
8. The wearable device according to claim 6 or 7, further comprising:
the output timing unit is used for outputting prompt information and starting timing after the first judging unit judges that the wearable device is in a non-charging state and the first application does not belong to a system application and is not in a preset white list; the prompt information comprises a prompt field and selectable items, wherein the prompt field is used for prompting that the first application is prohibited from executing the service in the background when the timing duration reaches the specified duration; the selectable item is used for triggering the first application to execute the service in the background;
the detection unit is used for detecting whether the selectable item is selected in the process that the timing duration does not reach the specified duration, and if the selectable item is not selected in the process that the timing duration does not reach the specified duration, the control unit is triggered to execute the operation of forbidding the first application to execute the service in the background when the timing duration reaches the specified duration.
9. A wearable device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute all or part of the steps of the power consumption control method of the wearable device according to any one of claims 1 to 5.
10. A computer readable storage medium having stored thereon computer instructions, which when executed, cause a computer to perform all or part of the steps of the method for controlling power consumption of a wearable device according to any one of claims 1 to 5.
CN202011354541.6A 2020-11-26 2020-11-26 Power consumption control method of wearable device, wearable device and storage medium Pending CN112486308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011354541.6A CN112486308A (en) 2020-11-26 2020-11-26 Power consumption control method of wearable device, wearable device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011354541.6A CN112486308A (en) 2020-11-26 2020-11-26 Power consumption control method of wearable device, wearable device and storage medium

Publications (1)

Publication Number Publication Date
CN112486308A true CN112486308A (en) 2021-03-12

Family

ID=74935649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011354541.6A Pending CN112486308A (en) 2020-11-26 2020-11-26 Power consumption control method of wearable device, wearable device and storage medium

Country Status (1)

Country Link
CN (1) CN112486308A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744266A (en) * 2022-09-16 2023-09-12 荣耀终端有限公司 Equipment control method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302789A (en) * 2017-06-21 2017-10-27 上海集赫电子商务有限公司 A kind of method and system for improving Android device battery durable ability
CN107526429A (en) * 2017-10-12 2017-12-29 广东小天才科技有限公司 Wearable device control method, wearable device control device and wearable device
CN108121435A (en) * 2018-01-10 2018-06-05 上海展扬通信技术有限公司 Electricity saving of mobile terminal operation method, device and computer readable storage medium
CN110147158A (en) * 2019-04-17 2019-08-20 努比亚技术有限公司 A kind of power consumption control method, wearable device and computer readable storage medium
US20200334071A1 (en) * 2017-10-13 2020-10-22 Huawei Technologies Co., Ltd. Application Management Method and Terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302789A (en) * 2017-06-21 2017-10-27 上海集赫电子商务有限公司 A kind of method and system for improving Android device battery durable ability
CN107526429A (en) * 2017-10-12 2017-12-29 广东小天才科技有限公司 Wearable device control method, wearable device control device and wearable device
US20200334071A1 (en) * 2017-10-13 2020-10-22 Huawei Technologies Co., Ltd. Application Management Method and Terminal
CN108121435A (en) * 2018-01-10 2018-06-05 上海展扬通信技术有限公司 Electricity saving of mobile terminal operation method, device and computer readable storage medium
CN110147158A (en) * 2019-04-17 2019-08-20 努比亚技术有限公司 A kind of power consumption control method, wearable device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744266A (en) * 2022-09-16 2023-09-12 荣耀终端有限公司 Equipment control method, device and storage medium

Similar Documents

Publication Publication Date Title
CN107277266B (en) Mode switching method and device
CN111373348B (en) Application switching method and terminal
EP2116952A1 (en) Information processor having lock function, lock (unlock) method for information processor, and program thereof
US20120191994A1 (en) Electronic device, storage medium and method for saving power of the electronic device
CN104113634A (en) Voice processing method
CN104618568A (en) Method and device for adjusting terminal profiles
CN110992962B (en) Wake-up adjusting method and device for voice equipment, voice equipment and storage medium
CN113946810B (en) Application program running method and electronic equipment
CN110727821A (en) Method, apparatus, system and computer storage medium for preventing device from being awoken by mistake
CN113747552A (en) Power consumption optimization method and electronic equipment
CN114201226A (en) Application starting method and device, electronic equipment and storage medium
CN112486308A (en) Power consumption control method of wearable device, wearable device and storage medium
CN106303015A (en) The processing method and processing device of a kind of communication information, terminal unit
US9338624B2 (en) Cellular telephone and computer program comprising means for generating and sending an alarm message
US10212269B2 (en) Multifactor drive mode determination
CN113163051B (en) Mobile terminal and control method thereof
CN103067581A (en) Implementation method and terminal of terminal alarm clock
CN104469020B (en) A kind of mobile terminal and its control method
CN108012027B (en) Method and device for managing application program
CN111641751B (en) Screen unlocking method and device of terminal equipment, terminal equipment and storage medium
CN105259746A (en) Method and system for reducing power consumption of smart watch
CN103379205A (en) Device and method for driving communication prompt
CN113282361B (en) Window processing method and electronic equipment
US9894193B2 (en) Electronic device and voice controlling method
CN112435441B (en) Sleep detection method and wearable electronic device

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