commit | 7ca7ab73e8e1e7ce33b1c608475811967ca4e048 | [log] [tgz] |
---|---|---|
author | Matías Hernández <matiashe@google.com> | Thu Jun 01 18:47:01 2023 +0200 |
committer | Matías Hernández <matiashe@google.com> | Fri Jun 02 14:03:50 2023 +0200 |
tree | 022d2c9f8ba1bb0ded968db9007a2ef146221c4e | |
parent | a9868f633eb64a23de96b216013e8ec275ceecca [diff] |
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