summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author mrulhania <mrulhania@google.com> 2023-06-05 16:10:15 -0700
committer Manjeet Rulhania <mrulhania@google.com> 2023-07-18 14:32:14 +0000
commit1007f60dbbeb49f2ddff34685d1b54bb75fc0133 (patch)
tree97b592110720c3193800edeede861ecb2bb31a4d
parent3d3673802eea4973df3bd856a72e9c5152857db8 (diff)
Add device support in native APIs
Update native permission APIs and attribution source to support iris. Ignore-AOSP-First: iris changes Bug: 283978089 Test: presubmit && atest CtsAppOpsTestCases Change-Id: Iacc591bd76c003c081fc31de2976d9c8e9fb5b0a
-rw-r--r--libs/permission/aidl/android/content/AttributionSourceState.aidl4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/permission/aidl/android/content/AttributionSourceState.aidl b/libs/permission/aidl/android/content/AttributionSourceState.aidl
index ed1b37dc0b..b3fb7a7719 100644
--- a/libs/permission/aidl/android/content/AttributionSourceState.aidl
+++ b/libs/permission/aidl/android/content/AttributionSourceState.aidl
@@ -27,6 +27,10 @@ parcelable AttributionSourceState {
int pid = -1;
/** The UID that is accessing the permission protected data. */
int uid = -1;
+ /** The default device ID from where the permission protected data is read.
+ * @see Context#DEVICE_ID_DEFAULT
+ */
+ int deviceId = 0;
/** The package that is accessing the permission protected data. */
@nullable @utf8InCpp String packageName;
/** The attribution tag of the app accessing the permission protected data. */