summaryrefslogtreecommitdiffstats
path: root/keystore
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2011-01-20 20:23:59 +0800
committerChia-chi Yeh <chiachi@android.com>2011-01-20 20:23:59 +0800
commit527f01e76d07b45bdf7ba97ffee0e9b358de658c (patch)
tree1310216716a0466a80da49164256ae3ce30a94b6 /keystore
parent0e2de6d7187ef67ec00a2f2544450caa4a239c39 (diff)
downloadframeworks_base-527f01e76d07b45bdf7ba97ffee0e9b358de658c.zip
frameworks_base-527f01e76d07b45bdf7ba97ffee0e9b358de658c.tar.gz
frameworks_base-527f01e76d07b45bdf7ba97ffee0e9b358de658c.tar.bz2
Update the path of the intent to unlock keystore.
Change-Id: Ia81d0c172f2be6d04cba4db6e6798058f321605d
Diffstat (limited to 'keystore')
-rw-r--r--keystore/java/android/security/Credentials.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/keystore/java/android/security/Credentials.java b/keystore/java/android/security/Credentials.java
index ef19579..c650141 100644
--- a/keystore/java/android/security/Credentials.java
+++ b/keystore/java/android/security/Credentials.java
@@ -29,12 +29,8 @@ import java.security.KeyPair;
public class Credentials {
private static final String LOGTAG = "Credentials";
- public static final String UNLOCK_ACTION = "android.credentials.UNLOCK";
-
public static final String INSTALL_ACTION = "android.credentials.INSTALL";
- public static final String SYSTEM_INSTALL_ACTION = "android.credentials.SYSTEM_INSTALL";
-
/** Key prefix for CA certificates. */
public static final String CA_CERTIFICATE = "CACERT_";
@@ -73,7 +69,7 @@ public class Credentials {
public void unlock(Context context) {
try {
- Intent intent = new Intent(UNLOCK_ACTION);
+ Intent intent = new Intent("com.android.credentials.UNLOCK");
context.startActivity(intent);
} catch (ActivityNotFoundException e) {
Log.w(LOGTAG, e.toString());
@@ -107,12 +103,4 @@ public class Credentials {
Log.w(LOGTAG, e.toString());
}
}
-
- public void installFromSdCard(Context context) {
- try {
- context.startActivity(createInstallIntent());
- } catch (ActivityNotFoundException e) {
- Log.w(LOGTAG, e.toString());
- }
- }
}