Releasing method and device for awakening locks
A technology for releasing devices and wake-up locks, which is applied in the field of release methods and devices for wake-up locks, which can solve the problems of waste of terminal power, not being released immediately, and increased power consumption of standby batteries, so as to save power, improve battery life, reduce The effect of power consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] This embodiment will be described from the perspective of the device for releasing the wake lock. The device can be integrated into a terminal. electronic equipment.
[0053] see figure 1 , figure 1 It is a schematic flowchart of a method for releasing a wake-up lock provided in Embodiment 1 of the present invention. The method for releasing a wake-up lock in this embodiment includes:
[0054] Step S101, when closing the application process, release the wake lock held by the application process.
[0055] Specifically, a closing instruction from the user may be received, the instruction including identification information of the application process, and according to the above closing instruction, the application process is closed and the wake lock held by the application process is released at the same time.
[0056]In the embodiment of the present invention, after closing the application process and before releasing the wake lock of the application process, the abov...
Embodiment 2
[0078] This embodiment will further introduce the processing method of the present invention on the basis of the method described in Embodiment 1, refer to figure 2 , the release method of the wake lock provided by the embodiment of the present invention includes:
[0079] Step S201, releasing the wake lock held by the application process when closing the application process.
[0080] Step S202, acquiring user identification information in the closed application process.
[0081] Specifically, the uid of the application process can be obtained. Taking the terminal based on the android system as an example, in order to realize data sharing, android almost assigns a different uid to each application. Generally, different processes of the same business use the same uid. Yes, attribute information of the application process may be acquired, wherein the above attribute information includes the uid of the application process.
[0082] Step S203, searching for processes with the s...
Embodiment 3
[0103] This embodiment will take a smart phone as an example, the above-mentioned wake-up lock is a cpu lock, and describe the specific implementation steps of this solution in practical applications, please refer to image 3 , including the following steps:
[0104] Step S301, when the smart phone closes the application process, release the cpu lock held by the application process.
[0105] For example, when application A is closed, the system will find the cpu lock corresponding to A in the working state in the background, and release the cpu lock.
[0106] Step S302, the smart phone acquires the uid in the closed application process;
[0107] Step S303, the smart phone searches the system for processes with the same uid;
[0108] In step S304, the smart phone determines that the process is an associated application process.
[0109] For example, if the same uid is used in the process of application process A and application process B, after application A is closed, the u...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 