summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Austin Borger <borgera@google.com> 2024-11-11 07:37:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-11-11 07:37:36 +0000
commitd5fcadbbf293d1facb26c4968e46131a6f1deb30 (patch)
tree6a3d821c5211b395f037cf835cf7d57bff7a7edf
parentd3fe479d7865605cac8ba9202006a380c55caeba (diff)
parentbe9c148b6b72e5c71b2ed5fd0274722979b1a46f (diff)
Merge "Replace use_context_attribution_source / check_full_attribution_source_chain flags with read-only flag" into main
-rw-r--r--core/java/android/hardware/camera2/CameraManager.java2
-rw-r--r--core/jni/android_hardware_Camera.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/hardware/camera2/CameraManager.java b/core/java/android/hardware/camera2/CameraManager.java
index b7856303fc05..75e20582b7b4 100644
--- a/core/java/android/hardware/camera2/CameraManager.java
+++ b/core/java/android/hardware/camera2/CameraManager.java
@@ -994,7 +994,7 @@ public final class CameraManager {
AttributionSourceState contextAttributionSourceState =
contextAttributionSource.asState();
- if (Flags.useContextAttributionSource() && useContextAttributionSource) {
+ if (Flags.dataDeliveryPermissionChecks() && useContextAttributionSource) {
return contextAttributionSourceState;
} else {
AttributionSourceState clientAttribution =
diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp
index 50252c11ffb1..42406147b2f0 100644
--- a/core/jni/android_hardware_Camera.cpp
+++ b/core/jni/android_hardware_Camera.cpp
@@ -538,7 +538,7 @@ static bool attributionSourceStateForJavaParcel(JNIEnv *env, jobject jClientAttr
return false;
}
- if (!(useContextAttributionSource && flags::use_context_attribution_source())) {
+ if (!(useContextAttributionSource && flags::data_delivery_permission_checks())) {
clientAttribution.uid = Camera::USE_CALLING_UID;
clientAttribution.pid = Camera::USE_CALLING_PID;
}