diff options
author | 2023-06-07 10:12:07 +0000 | |
---|---|---|
committer | 2023-06-07 10:12:07 +0000 | |
commit | 0c1b3509f45ba897b7ce6b0ff55010e24fb772f8 (patch) | |
tree | 58e841c50396a2e367d9c05d8c92f04e1ba23b26 | |
parent | 95aa83ebeeb36d678aa786b8e74b721e97fb2d13 (diff) | |
parent | 69d54da0d6159edc0e6880e52fd8dfb0b1cb0097 (diff) |
Merge "Revert "Add attribution tags for VCN and VPN"" am: fe8c8bec9d am: 69d54da0d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2619369
Change-Id: I9c0a840aebb74ea231492c272031063c4c2a6600
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | services/core/java/com/android/server/VcnManagementService.java | 6 | ||||
-rw-r--r-- | services/core/java/com/android/server/VpnManagerService.java | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/VcnManagementService.java b/services/core/java/com/android/server/VcnManagementService.java index 5f8b441e3031..e8c85ce68f22 100644 --- a/services/core/java/com/android/server/VcnManagementService.java +++ b/services/core/java/com/android/server/VcnManagementService.java @@ -162,8 +162,6 @@ import java.util.concurrent.TimeUnit; // TODO(b/180451994): ensure all incoming + outgoing calls have a cleared calling identity public class VcnManagementService extends IVcnManagementService.Stub { @NonNull private static final String TAG = VcnManagementService.class.getSimpleName(); - @NonNull private static final String CONTEXT_ATTRIBUTION_TAG = "VCN"; - private static final long DUMP_TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(5); private static final int LOCAL_LOG_LINE_COUNT = 512; @@ -225,9 +223,7 @@ public class VcnManagementService extends IVcnManagementService.Stub { @VisibleForTesting(visibility = Visibility.PRIVATE) VcnManagementService(@NonNull Context context, @NonNull Dependencies deps) { - mContext = - requireNonNull(context, "Missing context") - .createAttributionContext(CONTEXT_ATTRIBUTION_TAG); + mContext = requireNonNull(context, "Missing context"); mDeps = requireNonNull(deps, "Missing dependencies"); mLooper = mDeps.getLooper(); diff --git a/services/core/java/com/android/server/VpnManagerService.java b/services/core/java/com/android/server/VpnManagerService.java index 0d423d8a0a62..9b4f9683d550 100644 --- a/services/core/java/com/android/server/VpnManagerService.java +++ b/services/core/java/com/android/server/VpnManagerService.java @@ -80,7 +80,6 @@ import java.util.List; */ public class VpnManagerService extends IVpnManager.Stub { private static final String TAG = VpnManagerService.class.getSimpleName(); - private static final String CONTEXT_ATTRIBUTION_TAG = "VPN_MANAGER"; @VisibleForTesting protected final HandlerThread mHandlerThread; @@ -158,7 +157,7 @@ public class VpnManagerService extends IVpnManager.Stub { } public VpnManagerService(Context context, Dependencies deps) { - mContext = context.createAttributionContext(CONTEXT_ATTRIBUTION_TAG); + mContext = context; mDeps = deps; mHandlerThread = mDeps.makeHandlerThread(); mHandlerThread.start(); |