From 739620f26f012863494ef6cf3345a69cebdeed05 Mon Sep 17 00:00:00 2001 From: Alexander Zlatin Date: Wed, 18 Nov 2020 23:11:28 +0000 Subject: [PATCH] Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag. Bug: 143923100 Change-Id: I1a4f75d7e3fff538d418a956b8eead79bc0b3e55 --- core/java/android/os/strictmode/UntaggedSocketViolation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/os/strictmode/UntaggedSocketViolation.java b/core/java/android/os/strictmode/UntaggedSocketViolation.java index 3b1ef253b2d28..c34d6e821f7a7 100644 --- a/core/java/android/os/strictmode/UntaggedSocketViolation.java +++ b/core/java/android/os/strictmode/UntaggedSocketViolation.java @@ -18,7 +18,7 @@ package android.os.strictmode; public final class UntaggedSocketViolation extends Violation { /** @hide */ public UntaggedSocketViolation() { - super("Untagged socket detected; use TrafficStats.setThreadSocketTag() to " + super("Untagged socket detected; use TrafficStats.setTrafficStatsTag() to " + "track all network usage"); } }