From 8eea30b6f1f0a95cb77943791f1e3dfbc5005f2c Mon Sep 17 00:00:00 2001
From: Almaz Mingaleev <mingaleev@google.com>
Date: Mon, 13 Mar 2023 10:05:10 +0000
Subject: [PATCH] Do not preload java.util.ImmutableCollections.

It has static int field SALT which is responsible for randomization
of iterator order.

Bug: n/a
Test: device boots
Change-Id: I3f1f4b4d56f37495914be1967cf83bd138354e2f
---
 config/preloaded-classes          | 1 -
 config/preloaded-classes-denylist | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/preloaded-classes b/config/preloaded-classes
index 95070bd07fb4..09ec2206ecc7 100644
--- a/config/preloaded-classes
+++ b/config/preloaded-classes
@@ -14799,7 +14799,6 @@ java.util.ImmutableCollections$MapN
 java.util.ImmutableCollections$Set12
 java.util.ImmutableCollections$SetN
 java.util.ImmutableCollections$SubList
-java.util.ImmutableCollections
 java.util.InputMismatchException
 java.util.Iterator
 java.util.JumboEnumSet$EnumSetIterator
diff --git a/config/preloaded-classes-denylist b/config/preloaded-classes-denylist
index 502d8c6dadb1..a413bbd68f60 100644
--- a/config/preloaded-classes-denylist
+++ b/config/preloaded-classes-denylist
@@ -9,4 +9,5 @@ android.net.rtp.AudioGroup
 android.net.rtp.AudioStream
 android.net.rtp.RtpStream
 java.util.concurrent.ThreadLocalRandom
+java.util.ImmutableCollections
 com.android.internal.jank.InteractionJankMonitor$InstanceHolder
-- 
GitLab