Revert "Add a Log.wtf() on user builds to test Pitot reporting pipeline"

This reverts commit 9161b153b4.

This is targetting mainline release M-2024-09.

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I3d053f8c006eee8c1cbc7918f6fc5e30f5d09375
This commit is contained in:
Maciej Żenczykowski 2024-06-16 03:31:38 -07:00
commit 2a911d6c18

View file

@ -393,7 +393,6 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Random;
import java.util.Set;
import java.util.SortedSet;
import java.util.StringJoiner;
@ -1848,11 +1847,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
// Temporary hack to report netbpfload result.
// TODO: remove in 2024-09 when netbpfload starts loading mainline bpf programs.
mHandler.postDelayed(() -> {
// Test Pitot pipeline, ignore this Log.wtf if it shows up in the logs.
final Random r = new Random();
if (Build.TYPE.equals("user") && r.nextInt(1000) == 0) {
Log.wtf(TAG, "NOT A FAILURE, PLEASE IGNORE! Test Pitot pipeline works correctly");
}
// Did netbpfload create the map?
try {
Os.access("/sys/fs/bpf/net_shared/map_gentle_test", F_OK);