Android View Wakelock

Source: Internet
Author: User

Android Wakelock is divided into two tiers

Linux Layer and Application layer


1. View the Linux Waklock

# Cat/sys/power/wake_lock
Powermanagerservice.display

Powermanagerservice.wakelocks

Powermanagerservice.display : This is the powermanagerservice of the Linux layer on the screen open Wakelock

Powermanagerservice.wakelocks: This is the wakelock of the application layer, so the wakelock of the application is represented in the Linux layer as this Wakelock

Powermanagerservice maintains a wakelock table for all applications and, when not empty, sets powermanagerservice.wakelocksto the Linux layer, Cancel this wakelock when empty


2. View the application's Waklock


# Dumpsys Power


Wake locks:size=2
Partial_wake_lock ' Audiomix ' (uid=1013, pid=236, ws=worksource{10018})
Partial_wake_lock ' Android.media.MediaPlayer ' On_after_release (uid=10018, pid=24023, Ws=null)


Android View Wakelock

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.