[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 Change-Id: Ida37fec306417b40006dfac5b5ed04f17418b7c8
Loading
-
mentioned in commit 3fcdd728
-
mentioned in commit bf9eafb3
-
mentioned in commit 22f039c5
-
mentioned in commit 7c5bedd6
-
mentioned in commit 6760b8f7
-
mentioned in commit 82518212
-
mentioned in commit 8bcdf2fa
-
mentioned in commit d2b876db
-
mentioned in commit 2de265b1
-
mentioned in commit bc00830c
-
mentioned in commit c3d5c6da
-
mentioned in commit 7b18feb0
-
mentioned in commit 01a1adb4
Please register or sign in to comment