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

Skip to content
Commit 8fd9b5cb authored by Yu-Ting Tseng's avatar Yu-Ting Tseng
Browse files

add a new AppOpsManager.setOnOpNotedCallback API

This change expands the existing setOnOpNotedCallback API and adds an
optional flag parameter that can be used to listen to only sync op noted
events. This addresses the issue where async op noted events are
delivered to every single app process that registeres for op noted
callbacks. An app process can now opt to listen only to sync op noted
events happening within that process, and avoid getting duplicated async
op noted events from other processes in the app.

Flag: android.permission.flags.sync_on_op_noted_api
Change-Id: I572d897bb98408e56389d5af386b1025766317ea
Bug: 327047060
Bug: 372910217
Test: atest AppOpsLoggingTest
parent 46ede929
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