-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn’t support Android 12 data access auditing #763
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
Android 12 data access auditing is not supported by this Library.
Expected
According to the documentation system creates
null
tags if no tags are declared in the manifest file, but everything is setup properly, so the right Attribution Tag should be used in every log-message:2022-02-04 10:30:38.994 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:coarse_location
Attribution Tag:locationAccessExample
Stack Trace:
android.app.AppOpsManager.noteProxyOpNoThrow(AppOpsManager.java:8389)
androidx.core.app.AppOpsManagerCompat.noteProxyOpNoThrow(AppOpsManagerCompat.java:177)
androidx.core.content.PermissionChecker.checkPermission(PermissionChecker.java:114)
androidx.core.content.PermissionChecker.checkSelfPermission(PermissionChecker.java:134)
permissions.dispatcher.PermissionUtils.hasSelfPermission(PermissionUtils.java:99)
permissions.dispatcher.PermissionUtils.hasSelfPermissions(PermissionUtils.java:79)
2022-02-04 10:30:38.996 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:fine_location
Attribution Tag:locationAccessExample
Stack Trace:
android.app.AppOpsManager.noteProxyOpNoThrow(AppOpsManager.java:8389)
androidx.core.app.AppOpsManagerCompat.noteProxyOpNoThrow(AppOpsManagerCompat.java:177)
androidx.core.content.PermissionChecker.checkPermission(PermissionChecker.java:114)
androidx.core.content.PermissionChecker.checkSelfPermission(PermissionChecker.java:134)
permissions.dispatcher.PermissionUtils.hasSelfPermission(PermissionUtils.java:99)
permissions.dispatcher.PermissionUtils.hasSelfPermissions(PermissionUtils.java:79)
2022-02-04 10:30:40.674 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:fine_location
Attribution Tag:locationAccessExample
Stack Trace:
android.app.AppOpsManager.noteOpNoThrow(AppOpsManager.java:8256)
vqe.j(:com.google.android.gms@[email protected] (190400-414534850):0)
akkc.j(:com.google.android.gms@[email protected] (190400-414534850):24)
akjm.apply(:com.google.android.gms@[email protected] (190400-414534850):0)
akkf.j(:com.google.android.gms@[email protected] (190400-414534850):24)
akil.j(:com.google.android.gms@[email protected] (190400-414534850):0)
akiz.j(:com.google.android.gms@[email protected] (190400-414534850):1)
akil.j(:com.google.android.gms@[email protected] (190400-414534850):0)
Actual
Instead the Attribution Tag is
null
when using this library:2022-02-04 10:30:38.994 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:coarse_location
Attribution Tag:null
Stack Trace:
android.app.AppOpsManager.noteProxyOpNoThrow(AppOpsManager.java:8389)
androidx.core.app.AppOpsManagerCompat.noteProxyOpNoThrow(AppOpsManagerCompat.java:177)
androidx.core.content.PermissionChecker.checkPermission(PermissionChecker.java:114)
androidx.core.content.PermissionChecker.checkSelfPermission(PermissionChecker.java:134)
permissions.dispatcher.PermissionUtils.hasSelfPermission(PermissionUtils.java:99)
permissions.dispatcher.PermissionUtils.hasSelfPermissions(PermissionUtils.java:79)
2022-02-04 10:30:38.996 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:fine_location
Attribution Tag:null
Stack Trace:
android.app.AppOpsManager.noteProxyOpNoThrow(AppOpsManager.java:8389)
androidx.core.app.AppOpsManagerCompat.noteProxyOpNoThrow(AppOpsManagerCompat.java:177)
androidx.core.content.PermissionChecker.checkPermission(PermissionChecker.java:114)
androidx.core.content.PermissionChecker.checkSelfPermission(PermissionChecker.java:134)
permissions.dispatcher.PermissionUtils.hasSelfPermission(PermissionUtils.java:99)
permissions.dispatcher.PermissionUtils.hasSelfPermissions(PermissionUtils.java:79)
2022-02-04 10:30:40.674 5773-5773/de.alex.example I/ExampleApplication$1[logPrivateDataAccess] - 103: Private data accessed. Operation: android:fine_location
Attribution Tag:locationAccessExample
Stack Trace:
android.app.AppOpsManager.noteOpNoThrow(AppOpsManager.java:8256)
vqe.j(:com.google.android.gms@[email protected] (190400-414534850):0)
akkc.j(:com.google.android.gms@[email protected] (190400-414534850):24)
akjm.apply(:com.google.android.gms@[email protected] (190400-414534850):0)
akkf.j(:com.google.android.gms@[email protected] (190400-414534850):24)
akil.j(:com.google.android.gms@[email protected] (190400-414534850):0)
akiz.j(:com.google.android.gms@[email protected] (190400-414534850):1)
akil.j(:com.google.android.gms@[email protected] (190400-414534850):0)
Environment
Reproducible steps
Issue can be reproduced on any small example app following the short documentation and the usage guide of this library.
The text was updated successfully, but these errors were encountered: