summaryrefslogtreecommitdiffstats
path: root/keystore/java
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2014-06-17 22:12:28 +0000
committerRobin Lee <rgl@google.com>2014-06-17 22:12:28 +0000
commit2b5e917026fe4e6dec8712ee24bdffee8d62ab33 (patch)
tree2393e00fba108510fbaaec68285481419d843bbd /keystore/java
parent837304f6f6ae37dc475fa6e0e620f1c2321f2e11 (diff)
downloadframeworks_base-2b5e917026fe4e6dec8712ee24bdffee8d62ab33.zip
frameworks_base-2b5e917026fe4e6dec8712ee24bdffee8d62ab33.tar.gz
frameworks_base-2b5e917026fe4e6dec8712ee24bdffee8d62ab33.tar.bz2
Revert "Publish DevicePolicyManager CA certificate APIs"
This reverts commit 5260bf69946563dc47c17e7441b352adfce384c5. Change-Id: I5e44fdac8a7375576b25171f58e31a1fa0e3c569
Diffstat (limited to 'keystore/java')
-rw-r--r--keystore/java/android/security/KeyChain.java17
1 files changed, 3 insertions, 14 deletions
diff --git a/keystore/java/android/security/KeyChain.java b/keystore/java/android/security/KeyChain.java
index 0da2b99..9d6d76e 100644
--- a/keystore/java/android/security/KeyChain.java
+++ b/keystore/java/android/security/KeyChain.java
@@ -23,9 +23,7 @@ import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.Looper;
-import android.os.Process;
import android.os.RemoteException;
-import android.os.UserHandle;
import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.security.InvalidKeyException;
@@ -439,14 +437,6 @@ public final class KeyChain {
* Caller should call unbindService on the result when finished.
*/
public static KeyChainConnection bind(Context context) throws InterruptedException {
- return bindAsUser(context, Process.myUserHandle());
- }
-
- /**
- * @hide
- */
- public static KeyChainConnection bindAsUser(Context context, UserHandle user)
- throws InterruptedException {
if (context == null) {
throw new NullPointerException("context == null");
}
@@ -469,10 +459,9 @@ public final class KeyChain {
Intent intent = new Intent(IKeyChainService.class.getName());
ComponentName comp = intent.resolveSystemService(context.getPackageManager(), 0);
intent.setComponent(comp);
- boolean isBound = context.bindServiceAsUser(intent,
- keyChainServiceConnection,
- Context.BIND_AUTO_CREATE,
- user);
+ boolean isBound = context.bindService(intent,
+ keyChainServiceConnection,
+ Context.BIND_AUTO_CREATE);
if (!isBound) {
throw new AssertionError("could not bind to KeyChainService");
}