Make the KeyChain handled its own grants rather than having
AccountManagerService handle them.
Change-Id: I44d437d5d8100e3c79415862186bc2908cd15537
diff --git a/src/com/android/keychain/KeyChainBroadcastReceiver.java b/src/com/android/keychain/KeyChainBroadcastReceiver.java
new file mode 100644
index 0000000..9726cf8
--- /dev/null
+++ b/src/com/android/keychain/KeyChainBroadcastReceiver.java
@@ -0,0 +1,14 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+package com.android.keychain;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+
+public class KeyChainBroadcastReceiver extends BroadcastReceiver {
+ @Override
+ public void onReceive(final Context context, final Intent intent) {
+ intent.setClass(context, KeyChainService.class);
+ context.startService(intent);
+ }
+}