From 79d37cbcddf4b35dbaa345916fe405d081973866 Mon Sep 17 00:00:00 2001 From: dcashman Date: Mon, 27 Apr 2015 10:42:22 -0700 Subject: [PATCH] Remove static modifier from KeySetManagerService issuedIds. There is no notion of shared issuedIds across instances of KeySetManagerService, of which there should only ever be one on the system. This is particularly troublesome for unit tests which rely on a clean slate for each KeySetManagerService invocation. Bug: 19530120 Change-Id: I41fbd5424650a74426c5aa1128ddfa6a230dcfa3 --- .../core/java/com/android/server/pm/KeySetManagerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/pm/KeySetManagerService.java b/services/core/java/com/android/server/pm/KeySetManagerService.java index c8e5c3a08d087..753140381cc2f 100644 --- a/services/core/java/com/android/server/pm/KeySetManagerService.java +++ b/services/core/java/com/android/server/pm/KeySetManagerService.java @@ -58,9 +58,9 @@ public class KeySetManagerService { private final ArrayMap mPackages; - private static long lastIssuedKeySetId = 0; + private long lastIssuedKeySetId = 0; - private static long lastIssuedKeyId = 0; + private long lastIssuedKeyId = 0; class PublicKeyHandle { private final PublicKey mKey;