Data access auditing
Stay organized with collections
Save and categorize content based on your preferences.
To provide more transparency into how your app and its dependencies access
private data from users, Android 11 introduces data access
auditing. By having insights from this
process, you can better identify potentially unexpected data access.
Your app can register an instance of
AppOpsManager.OnOpNotedCallback
, which can perform
actions each time one of the following events occurs:
- Your app's code accesses private data. To help you determine which logical
part of your app invoked the event, you can audit data access by attribution
tag.
- Code in a dependent library or SDK accesses private data.
Additional resources
For more information about data access auditing, view the following materials:
Blog posts
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-26 UTC.
[null,null,["Last updated 2025-08-26 UTC."],[],[],null,["To provide more transparency into how your app and its dependencies access\nprivate data from users, Android 11 introduces [data access\nauditing](/guide/topics/data/audit-access). By having insights from this\nprocess, you can better identify potentially unexpected data access.\n\nYour app can register an instance of\n[`AppOpsManager.OnOpNotedCallback`](/reference/android/app/AppOpsManager.OnOpNotedCallback), which can perform\nactions each time one of the following events occurs:\n\n- Your app's code accesses private data. To help you determine which logical part of your app invoked the event, you can audit data access by attribution tag.\n- Code in a dependent library or SDK accesses private data.\n\nAdditional resources\n\nFor more information about data access auditing, view the following materials:\n\nBlog posts\n\n- [New Android 11 tools to make apps more private and\n stable](https://medium.com/androiddevelopers/new-android-11-tools-to-make-apps-more-private-and-stable-c9dcea0af415)"]]