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

Skip to content
Commit f2da9c7c authored by Austin Borger's avatar Austin Borger
Browse files

Query the uid process state in opChanged instead of relying on callbacks.

Occasionally, Android may enter a state where onUidStateChanged arrives
late or not at all until another process state change occurs. In some
situations that may mean isUidVisible is (incorrectly) false when the
app is in the foreground. Instead of relying on the onUidStateChanged
callback, query the state directly through activity manager.

The flag protecting this is only needed while data_delivery_permission_checks
is not flipped, and can be removed if that advances first.

Test: CameraPermissionTest
Bug: 378016494
Flag: com.android.internal.camera.flags.query_process_state
Change-Id: Ie609c87f27dc0610f5fe9c735e68b4e9366c510f
parent c618f21c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment