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

Skip to content
Commit f5fbcbad authored by Atneya Nair's avatar Atneya Nair Committed by Android Build Coastguard Worker
Browse files

[RESTRICT AUTOMERGE] Update uid state based on capability field

Use the passed capability field in the to prevent clients from
recording in the background.

To work around existing issues in the implementation, the approach is
 - if we don't hold the capability, simulate an onUidIdle.
 - if we hold the capability, to simulate an onUidActive and then the
   existing behavior (update the AM state).

Only update behavior for apps targetSdk > 34.

Bug: 268724205
Test: OboeTester recording silenced in background for all paths
Test: OboeTester recording permitted after returning to foreground
Test: AGSA works
Test: atest AudioRecordTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7aa76cedc006500e4db1e5084c77b6183d8bac35)
Merged-In: Ida37fec306417b40006dfac5b5ed04f17418b7c8
Change-Id: Ida37fec306417b40006dfac5b5ed04f17418b7c8
parent 2ce16647
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