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