Skip to content
Commit 7ca7ab73 authored by Matías Hernández's avatar Matías Hernández
Browse files

Acquire WakeLocks for posting notifications

The WakeLock is acquired by the system (with Binder.clearCallingIdentity()) because packages that post notification may not have (and should not need) the WAKE_LOCK permission, but we use the WorkSource so that the battery impact is counted as coming from them.

Bug: 275044361
Flag: WAKE_LOCK_FOR_POSTING_NOTIFICATION
Test: atest NotificationManagerServiceTest
Change-Id: Ide41df01dec38631bbdacbd268415d471fed6a3d
parent a9868f63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment