Power consumption control methods for wearable devices and wearable devices and storage media
By prohibiting third-party applications from performing services in the background in wearable devices, the problem of short battery life is solved, achieving the effect of saving unconscious power consumption and improving battery life.
Patent Information
- Application Number
- CN202011354541.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2040-11-26
AI Technical Summary
The battery life of wearable devices is short, especially due to the unsensed power consumption caused by third-party applications performing services in the background.
After an application on a wearable device switches from the foreground to the background, it is determined whether the device is in a non-charging state and the application does not belong to the system application and is not in the default whitelist. If the conditions are met, the application is prohibited from performing services in the background.
By prohibiting third-party applications from executing services in the background, unconscious power consumption is saved and the battery life of wearable devices is improved.
Smart Images

Figure CN112486308B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wearable devices, and in particular to a power consumption control method for a wearable device, a wearable device, and a storage medium. Background Art
[0002] Currently, wearable devices (such as smart phones and watches) are increasingly widely used, but the short battery life of wearable devices has always been an unavoidable pain point. In particular, as the functions of wearable devices become more and more abundant, more and more third-party applications are introduced into wearable devices. Many third-party applications will still perform business without the user's perception even if they are switched to the background (such as holding the CPU lock, accessing GPS, WIFI, Bluetooth, sensor and other devices, etc.), which makes the battery life of wearable devices more prominent. Summary of the invention
[0003] The embodiment of the present application discloses a power consumption control method for a wearable device, a wearable device, and a storage medium, which can save the imperceptible power consumption caused by third-party applications executing services in the background and improve the battery life of the wearable device.
[0004] A first aspect of an embodiment of the present application discloses a power consumption control method for a wearable device, the method comprising:
[0005] After a first application of the wearable device is switched from the foreground to the background, determining whether the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist; the whitelist is used to record applications that are allowed to execute services in the background;
[0006] If the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist, the first application is prohibited from executing services in the background.
[0007] A second aspect of an embodiment of the present application discloses a wearable device, characterized in that it includes:
[0008] A first judging unit is used to judge whether the wearable device is in a non-charging state and the first application is not a system application and is not in a preset whitelist after a first application of the wearable device is switched from the foreground to the background; the whitelist is used to record applications that are allowed to execute services in the background;
[0009] A control unit is used to prohibit the first application from executing services in the background when the first judgment unit determines that 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 whitelist.
[0010] A third aspect of an embodiment of the present application discloses a wearable device, including:
[0011] A memory storing executable program code;
[0012] a processor coupled to the memory;
[0013] 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.
[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which computer instructions are stored. When the computer instructions are executed, the computer executes all or part of the steps of the power consumption control method for the wearable device disclosed in the first aspect of the embodiment of the present application.
[0015] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0016] In an embodiment of the present application, after a first application of the wearable device is switched from the foreground to the background, 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 whitelist, the first application can be prohibited from executing services in the background (such as prohibiting the first application from holding a CPU lock in the background, prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices), thereby saving the imperceptible power consumption caused by third-party applications executing services in the background and improving the battery life of the wearable device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flowchart of a first embodiment of a power consumption control method for a wearable device disclosed in an embodiment of the present application;
[0019] Figure 2 is a flow chart of a second embodiment of the power consumption control method for a wearable device disclosed in an embodiment of the present application;
[0020] Figure 3 is a flow chart of a third embodiment of the power consumption control method for a wearable device disclosed in an embodiment of the present application;
[0021] Figure 4 is a schematic structural diagram of a first embodiment of a wearable device disclosed in an embodiment of the present application;
[0022] Figure 5 is a structural schematic diagram of a second embodiment of the wearable device disclosed in the embodiments of the present application;
[0023] Figure 6 It is a structural diagram of the third embodiment of the wearable device disclosed in the embodiments of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] It should be noted that the terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] The embodiment of the present application discloses a power consumption control method for a wearable device, a wearable device, and a storage medium, which can save the imperceptible power consumption caused by a third-party application executing a service in the background and improve the battery life of the wearable device. The following is a detailed description with reference to the accompanying drawings.
[0027] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of the first embodiment of the power consumption control method for a wearable device disclosed in the embodiment of the present application. The wearable device may include a smart phone watch and other wearable electronic devices that can install third-party applications, which is not limited in the embodiment of the present application. Figure 1 As shown, the power consumption control method of the wearable device may include the following steps:
[0028] 101. After a first application of the wearable device is switched from the foreground to the background, the wearable device determines 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 whitelist; wherein the whitelist is used to record applications that are allowed to execute business logic in the background; if yes, if 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 the preset whitelist, execute step 102; otherwise, execute step 103.
[0029] In the embodiment of the present application, the first application can be any application running in the foreground of the wearable device, such as any third-party application, any system application, etc., which is not limited in the embodiment of the present application.
[0030] As an optional implementation, the wearable device may further perform the following steps before performing step 101:
[0031] The wearable device detects whether the wearer of the wearable device enters a sleep state. If the wearer of the wearable device enters a sleep state, the first application currently running in the foreground of the wearable device is controlled to switch 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 a sleep state, thereby improving the battery life of the wearable device.
[0032] Furthermore, after the wearable device detects that the wearer of the wearable device enters a sleep state, it can also detect the available battery life of the wearable device and determine whether the pre-counted average sleep time of the wearer of the wearable device exceeds the available battery life of the wearable device. If so, the first application currently running in the foreground of the wearable device is controlled to switch to the background. This not only can automatically trigger the power consumption control of the wearable device when the wearer of the wearable device enters a sleep state, thereby improving the battery life of the wearable device, but also can reduce the occurrence of users waking up to find that the wearable device is out of power.
[0033] Furthermore, if it is determined that the pre-counted average sleep duration of the wearer of the wearable device does not exceed the available battery life of the wearable device, the wearable device can identify whether the power consumption speed of the first application exceeds a specified speed threshold. If so, the first application currently running in the foreground of the wearable device is controlled to switch to the background, thereby providing the user with as much available power as possible after waking up.
[0034] For example, the wearable device can have both a heart rate sensor and a posture sensor built in. Accordingly, the wearable device can detect the heart rate data of the wearer through the heart rate sensor, and when determining that the wearer is in a sleeping state by analyzing the heart rate data, the wearable device can further detect whether the wearer's exercise amount has not changed within a specified time (such as 15 minutes) through the posture sensor. If so, it is determined that the wearer is in a sleeping state. Obviously, this embodiment can significantly improve the accuracy of determining that the user wearing the wearable device is in a sleeping state.
[0035] As another optional implementation, the wearable device may further perform the following steps before performing step 101:
[0036] When the wearable device detects that the login account (such as a social account) of the first application currently running in the foreground of the wearable device has logged in on the same application on other devices, the first application currently running in the foreground of the wearable device is controlled to switch to the background, so that the 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 on other devices, thereby improving the battery life of the wearable device.
[0037] Furthermore, when the wearable device detects that the login account (such as a social account) of the first application currently running in the foreground is logged in on the same application on other devices, the wearable device can further detect whether information synchronization is set for the login account. If information synchronization is not set, the wearable device controls the first application currently running in the foreground of the wearable device to switch to the background.
[0038] 102. The wearable device prohibits the first application from executing services in the background and ends this process.
[0039] For example, the wearable device can prohibit the first application from holding a CPU lock in the background, prohibit the first application from accessing network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices in the background, etc.
[0040] 103. The wearable device allows the first application to execute the service in the background and ends the present process.
[0041] Exemplarily, if the wearable device is in a charging state, and / or the first application is a system application, and / or the first application is in a preset whitelist, the wearable device allows the first application to execute services in the background, thereby ensuring that core business functions are not affected, such as system updates, background downloads of system update packages, etc., that is, while saving power, it does not affect the normal use of core business functions, making the embodiments of the present application more user-friendly and more feasible.
[0042] exist Figure 1In the described method, the purpose of power saving is achieved by prohibiting the first application from executing business in the background, that is, prohibiting the background application from holding the CPU lock and prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices, so as to save the imperceptible power consumption caused by the application switching to the background to execute business, thereby achieving the purpose of saving power and improving the battery life of wearable devices.
[0043] In addition, by not restricting system applications and setting a whitelist, core applications are allowed to perform business in the background to avoid affecting core functions, making this application more user-friendly and more feasible.
[0044] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a second embodiment of the power consumption control method for a wearable device disclosed in an embodiment of the present application. The wearable device may include a smart phone watch and other wearable electronic devices that can install third-party applications, which is not limited in the embodiment of the present application. Figure 2 As shown, the power consumption control method of the wearable device may include the following steps:
[0045] 201. After a first application of the wearable device is switched from the foreground to the background, the wearable device determines 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 whitelist; wherein the whitelist is used to record applications that are allowed to execute services in the background; if yes, if 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 the preset whitelist, execute step 202; otherwise, execute step 203.
[0046] 202 . The wearable device prohibits the first application from executing services in the background, and executes step 204 .
[0047] 203 . The wearable device allows the first application to execute services in the background, and executes step 204 .
[0048] Exemplarily, if the wearable device is in a charging state, and / or the first application is a system application, and / or the first application is in a preset whitelist, the wearable device allows the first application to execute services in the background, thereby ensuring that core business functions are not affected, such as system updates, background downloads of system update packages, etc., that is, while saving power, it does not affect the normal use of core business functions, making the embodiments of the present application more user-friendly and more feasible.
[0049] 204. After a second application of the wearable device is switched from the background to the foreground, the wearable device determines whether the second application is prohibited from executing services in the background. If not, the process ends; if so, executing step 205.
[0050] In the embodiment of the present application, the second application can be any application running in the background of the wearable device, such as any third-party application, any system application, etc., which is not limited in the embodiment of the present application.
[0051] 205. The wearable device resumes the function of the second application executing the service.
[0052] For example, the wearable device may allow the second application to hold a CPU lock, allow the second application to access network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices in the background, and so on.
[0053] exist Figure 2 In the described method, the purpose of power saving is achieved by prohibiting the first application from executing business in the background, that is, prohibiting the background application from holding the CPU lock and prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices, so as to save the imperceptible power consumption caused by the application switching to the background to execute business, thereby achieving the purpose of saving power and improving the battery life of wearable devices.
[0054] In addition, by not restricting system applications and setting a whitelist, core applications are allowed to perform business in the background to avoid affecting core functions, making this application more user-friendly and more feasible.
[0055] In addition, after the application is switched from the background to the foreground, the application's business execution function can be restored, making the application more user-friendly and improving the user experience.
[0056] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of the third embodiment of the power consumption control method for a wearable device disclosed in the embodiment of the present application. The wearable device may include a smart phone watch and other wearable electronic devices that can install third-party applications, which is not limited in the embodiment of the present application. Figure 3 As shown, the power consumption control method of the wearable device may include the following steps:
[0057] 301. After a first application of the wearable device is switched from the foreground to the background, the wearable device determines whether 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 whitelist; wherein the whitelist is used to record applications that are allowed to execute services in the background; if the wearable device is in a non-charging state and the first application does not belong to a system application and is not in the preset whitelist, execute steps 302 to 303; otherwise, execute step 307.
[0058] 302. The wearable device outputs a prompt message and starts timing. The prompt message includes a prompt field and an optional item. The prompt field is used to prompt that when the timing duration reaches a specified duration, the first application will be prohibited from executing services in the background. The optional item is used to trigger the permission for the first application to execute services in the background.
[0059] 303. The wearable device detects whether an optional item is selected when the timing duration does not reach the specified duration. If the optional item is not selected when the timing duration does not reach the specified duration, step 306 is executed when the timing duration reaches the specified duration; if the optional item is selected when the timing duration does not reach the specified duration, steps 304 to 305 are executed.
[0060] 304. The wearable device prompts the user to input the information to be verified.
[0061] 305. The wearable device verifies whether the input information to be verified matches the legal unlocking information bound to the first application. If not, when the timing duration reaches the specified duration, step 306 is executed; if matching, step 307 is executed.
[0062] Among them, implementing steps 302 to 303 can improve the accuracy of prohibiting the first application from executing services in the background or allowing the first application to execute services in the background, and prevent illegal users from arbitrarily prohibiting the first application from executing services in the background or arbitrarily allowing the first application to execute services in the background.
[0063] As an optional implementation, after executing step 304, the wearable device may further execute the following steps:
[0064] 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;
[0065] The wearable device outputs a face-to-face content interface of the group, where the face-to-face content interface includes conversation voices posted by multiple different social users;
[0066] The wearable device detects any two conversation voices selected by the wearer from the conversation voices posted by multiple different social users, and splices the selected two conversation voices into a voice sentence, which is used as the input information to be verified; in the voice sentence, the conversation voice with an earlier selection time is placed in the front, and the conversation voice with a later selection time is placed in the back;
[0067] Accordingly, the implementation of step 305 may be:
[0068] The wearable device verifies whether the users to which the arbitrary two conversation voices belong are the same as the legal user pair included in the legal unlocking information bound to the first application. If they are the same, the wearable device verifies whether the content of the voice sentence is the same as the content of the conversation combined voice of the legal user included in the legal unlocking information bound to the first application. If they are the same, the wearable device determines that the input information to be verified matches the legal unlocking information bound to the first application; otherwise, the wearable device determines that the input information to be verified does not match the legal unlocking information bound to the first application.
[0069] 306 . The wearable device prohibits the first application from executing services in the background, and executes step 308 .
[0070] 307 . The wearable device allows the first application to execute services in the background, and executes step 308 .
[0071] Exemplarily, if the wearable device is in a charging state, and / or the first application is a system application, and / or the first application is in a preset whitelist, the wearable device allows the first application to execute services in the background, thereby ensuring that core business functions are not affected, such as system updates, background downloads of system update packages, etc., that is, while saving power, it does not affect the normal use of core business functions, making the embodiments of the present application more user-friendly and more feasible.
[0072] 308. After a second application of the wearable device is switched from the background to the foreground, the wearable device determines whether the second application is prohibited from executing services in the background. If not, the process ends; if so, step 309 is executed.
[0073] In the embodiment of the present application, the second application can be any application running in the background of the wearable device, such as any third-party application, any system application, etc., which is not limited in the embodiment of the present application.
[0074] 309. The wearable device resumes the function of the second application executing the service.
[0075] For example, the wearable device may allow the second application to hold a CPU lock, allow the second application to access network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices in the background, and so on.
[0076] exist Figure 3 In the described method, the purpose of power saving is achieved by prohibiting the first application from executing business in the background, that is, prohibiting the background application from holding the CPU lock and prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices, so as to save the imperceptible power consumption caused by the application switching to the background to execute business, thereby achieving the purpose of saving power and improving the battery life of wearable devices.
[0077] In addition, by not restricting system applications and setting a whitelist, core applications are allowed to perform business in the background to avoid affecting core functions, making this application more user-friendly and more feasible.
[0078] In addition, after the application is switched from the background to the foreground, the application's business execution function can be restored, making the application more user-friendly and improving the user experience.
[0079] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of the first embodiment of the wearable device disclosed in the embodiment of the present application. The wearable device may include a smart phone watch and other wearable electronic devices that can install third-party applications, which is not limited in the embodiment of the present application. Figure 4 As shown, the wearable device may include:
[0080] The first judgment unit 401 is used to judge whether the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist after a first application of the wearable device is switched from the foreground to the background; the whitelist is used to record applications that are allowed to execute services in the background;
[0081] The control unit 402 is used to prohibit the first application from executing services in the background when the first judgment unit 401 determines that the wearable device is in a non-charging state, the first application does not belong to the system application, and the first application is not in the preset whitelist.
[0082] As an optional implementation, Figure 4 The wearable device shown may also include:
[0083] The second determination unit 403 is used to determine whether a second application of the wearable device is prohibited from executing services in the background after the second application is switched from the background to the foreground;
[0084] Correspondingly, the control unit 402 is further configured to restore 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.
[0085] exist Figure 4 In the described wearable device, the purpose of power saving is achieved by prohibiting the first application from executing business in the background, that is, prohibiting the background application from holding the CPU lock and prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices, so as to save the imperceptible power consumption caused by the application switching to the background to execute business, thereby achieving the purpose of saving power and improving the battery life of the wearable device.
[0086] In addition, by not restricting system applications and setting a whitelist, core applications are allowed to perform business in the background to avoid affecting core functions, making this application more user-friendly and more feasible.
[0087] In addition, after the application is switched from the background to the foreground, the application's business execution function can be restored, making the application more user-friendly and improving the user experience.
[0088] See also Figure 5 , Figure 5 is a schematic diagram of the structure of the second embodiment of the wearable device disclosed in the embodiment of the present application. Figure 5 The wearable device shown is made of Figure 4 The wearable device shown is optimized. Figure 4 Compared to the wearable devices shown, Figure 5 The wearable device shown may also include:
[0089] The output timing unit 404 is used to output a prompt message and start timing after the first judgment unit 401 judges that the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist; the prompt message includes a prompt field and an optional item, the prompt field is used to prompt that when the timing duration reaches a specified duration, the first application will be prohibited from executing the service in the background; the optional item is used to trigger the permission for the first application to execute the service in the background;
[0090] The detection unit 405 is used to detect whether an optional item is selected when the timing duration has not reached the specified duration. If the optional item is not selected when the timing duration has not reached the specified duration, then when the timing duration reaches the specified duration, the control unit 402 is triggered to execute an operation of prohibiting the first application from executing services in the background.
[0091] As an optional implementation, Figure 5 The wearable device shown may also include:
[0092] The prompting unit 406 is used to prompt the user to input the information to be verified when the detecting unit 405 detects that the optional item is selected during the process that the timing duration does not reach the specified duration;
[0093] The verification unit 407 is used to verify whether the input information to be verified matches the legal unlocking information bound to the first application. If not, when the timing duration reaches the specified duration, the control unit 402 is triggered to execute the operation of prohibiting the first application from executing services in the background.
[0094] Correspondingly, the control unit 402 is further configured to allow the first application to execute services 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.
[0095] exist Figure 5 In the described wearable device, the purpose of power saving is achieved by prohibiting the first application from executing business in the background, that is, prohibiting the background application from holding the CPU lock and prohibiting access to network, GPS, WIFI, Bluetooth, sensor, audio, camera and other devices, so as to save the imperceptible power consumption caused by the application switching to the background to execute business, thereby achieving the purpose of saving power and improving the battery life of the wearable device.
[0096] In addition, by not restricting system applications and setting a whitelist, core applications are allowed to perform business in the background to avoid affecting core functions, making this application more user-friendly and more feasible.
[0097] In addition, after the application is switched from the background to the foreground, the application's business execution function can be restored, making the application more user-friendly and improving the user experience.
[0098] See also Figure 6 , Figure 6 is a schematic diagram of the structure of the third embodiment of the wearable device disclosed in the embodiments of the present application. Figure 6 As shown, it may include:
[0099] Memory 601 storing executable program code
[0100] a processor 602 coupled to a memory;
[0101] 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.
[0102] It should be noted that in the embodiments of the present application, Figure 6 The wearable device shown may also include components not shown, 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 button), and a user interface module (such as a charging interface, an external power supply interface, a card slot, a wired headphone interface, etc.).
[0103] An embodiment of the present invention discloses a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed, the computer executes all or part of the steps of the power consumption control method for the wearable device.
[0104] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0105] The power consumption control method of a wearable device, a wearable device, and a storage medium disclosed in an embodiment of the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for controlling power consumption of a wearable device, characterized in that: The method comprises: After a first application of the wearable device is switched from the foreground to the background, determining whether the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist; the whitelist is used to record applications that are allowed to execute services in the background; If the wearable device is in a non-charging state and the first application is not a system application and the first application is not in a preset whitelist, a prompt message is output and timing is started; the prompt message includes a prompt field and an optional item, the prompt field is used to prompt that when the timing duration reaches a specified duration, the first application will be prohibited from executing services in the background; the optional item is used to trigger the permission for the first application to execute services in the background; detecting whether the optional item is selected when the timing duration does not reach the specified duration, and if the optional item is not selected when the timing duration does not reach the specified duration, executing the step of prohibiting the first application from executing services in the background when the timing duration reaches the specified duration; If it is detected that the optional item is selected during the timer duration that does not reach the specified time duration, prompting the user to input the information to be verified; And, check whether the input information to be verified matches the legal unlocking information bound to the first application. If not, when the timing reaches the specified time, execute the step of prohibiting the first application from executing business in the background.
2. The power consumption control method of a wearable device according to claim 1, characterized in that: The method further comprises: After a second application of the wearable device is switched from the background to the foreground, it is determined whether the second application is prohibited from executing services in the background, and if so, the function of executing services by the second application is restored.
3. The power consumption control method of a wearable device according to claim 1, characterized in that: The method further comprises: If it is verified that the information to be verified matches the legal unlocking information bound to the first application, the first application is allowed to execute services in the background.
4. A wearable device, characterized in that: include: A first judging unit, configured to judge, after a first application of the wearable device is switched from the foreground to the background, whether the wearable device is in a non-charging state and the first application is not a system application and is not in a preset whitelist; The whitelist is used to record applications that are allowed to execute services in the background; an output timing unit, configured to output a prompt message and start timing after the first judgment unit determines that 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 whitelist; the prompt message includes a prompt field and an optional item, the prompt field is used to prompt that when the timing duration reaches a specified duration, the first application will be prohibited from executing services in the background; the optional item is used to trigger the permission for the first application to execute services in the background; a detection unit, configured to detect whether the optional item is selected when the timing duration does not reach the specified duration, and if the optional item is not selected when the timing duration does not reach the specified duration, triggering the control unit to execute an operation of prohibiting the first application from executing services in the background when the timing duration reaches the specified duration; A control unit, configured to prohibit the first application from executing a service in the background when the first determination unit determines 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 whitelist; a prompting unit, configured to prompt input of information to be verified when the optional item is selected during the process in which the detection unit detects that the timing duration has not reached the specified duration; A verification unit is used to verify whether the input information to be verified matches the legal unlocking information bound to the first application. If not, when the timing reaches a specified time, the control unit is triggered to execute an operation of prohibiting the first application from executing business in the background.
5. The wearable device according to claim 4, characterized in that: Also includes: A second judging unit is used to judge whether a second application of the wearable device is prohibited from executing services in the background after the second application of the wearable device is switched from the background to the foreground; The control unit is further configured to restore the function of the second application to execute services when the second determination unit determines that the second application is prohibited from executing services in the background.
6. A wearable device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute all steps of the power consumption control method of the wearable device according to any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the computer executes all steps of the power consumption control method for the wearable device according to any one of claims 1 to 4.
Citation Information
Patent Citations
Mobile terminal power saving running method and device and computer readable storage medium
CN108121435A