From 1f00eaf6936421542f139f1066bd4656af3a8b11 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Thu, 16 Oct 2014 16:27:02 +0100 Subject: Only send storage_changed intent to current user Stops the "Calling a method in the system process without a qualified user" warning we get due to KeyChain running under the system's uid. Bug: 18028613 Change-Id: I4d0c61a8423f81cb35b1cf41d96ed235edb9ce65 --- src/com/android/keychain/KeyChainService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/keychain/KeyChainService.java b/src/com/android/keychain/KeyChainService.java index 6923a40..f67b25f 100644 --- a/src/com/android/keychain/KeyChainService.java +++ b/src/com/android/keychain/KeyChainService.java @@ -427,7 +427,7 @@ public class KeyChainService extends IntentService { private void broadcastStorageChange() { Intent intent = new Intent(KeyChain.ACTION_STORAGE_CHANGED); - sendBroadcast(intent); + sendBroadcastAsUser(intent, new UserHandle(UserHandle.myUserId())); } } -- cgit v1.2.3