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
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 @@
private void broadcastStorageChange() {
Intent intent = new Intent(KeyChain.ACTION_STORAGE_CHANGED);
- sendBroadcast(intent);
+ sendBroadcastAsUser(intent, new UserHandle(UserHandle.myUserId()));
}
}