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
Loading
Please register or sign in to comment