Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 393f3b52 authored by Jing Ji's avatar Jing Ji
Browse files

Add bg exemption tracks for foreground only permissions

...by monitoring their app ops.

Previously we're exempting the bg battery usage if certain permissions
are granted. Yet for the foreground only permissions, we should also
check if their app ops are allowed or not - this is evaluated by their
proc state.

Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Test: Manual - launch camera/maps & check dumpsys activity -a
Change-Id: I8fb99e6c9ad054096a889bea4e53230c7361434e
parent 7c722ca4
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