Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2e7f698ac | ||
|
|
0801636e78 | ||
|
|
5975f1d02d | ||
|
|
83b418d73f | ||
|
|
086cc77f67 | ||
|
|
5ea1a2397b |
@@ -1,11 +1,3 @@
|
||||
# Keycard Installer for Android
|
||||
|
||||
This is an Android application to install the [keycard applet](https://github.com/status-im/status-keycard) to a
|
||||
smartcard via NFC. The compiled cap file of the applet is bundled in the application. Currently, version 2.0 of the
|
||||
applet is installed.
|
||||
|
||||
If you work with the Status Keycard this is a quick utility to reinstall the applet.
|
||||
|
||||
[Download APK](https://github.com/status-im/keycard-installer-android/releases/download/2.0.0/keycard-installer-debug.apk)
|
||||
|
||||

|
||||
discountinued - use [https://github.com/status-im/keycard-cli](https://github.com/status-im/keycard-cli)
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ android {
|
||||
applicationId "im.status.keycard_installer.installer"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 27
|
||||
versionCode 200
|
||||
versionName "2.0.0"
|
||||
versionCode 220
|
||||
versionName "2.2.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
@@ -22,7 +22,7 @@ dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation 'com.android.support:appcompat-v7:27.1.1'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
|
||||
implementation 'com.github.status-im.status-keycard-java:android:2.0.0'
|
||||
implementation 'com.github.status-im.status-keycard-java:android:7ce0136'
|
||||
implementation 'de.cotech:nfc-sweetspot:1.1'
|
||||
|
||||
testImplementation 'junit:junit:4.12'
|
||||
|
||||
Binary file not shown.
@@ -55,14 +55,16 @@ public class Installer {
|
||||
Logger.i("installing Keycard applet...");
|
||||
cmdSet.installKeycardApplet().checkOK();
|
||||
|
||||
this.personalizeApplet();
|
||||
if (testSecrets) {
|
||||
this.personalizeApplet();
|
||||
}
|
||||
|
||||
long duration = System.currentTimeMillis() - startTime;
|
||||
Logger.i(String.format("\n\ninstallation completed in %d seconds", duration / 1000));
|
||||
}
|
||||
|
||||
private void personalizeApplet() throws NoSuchAlgorithmException, InvalidKeySpecException, APDUException, IOException {
|
||||
Secrets secrets = testSecrets ? Secrets.testSecrets() : Secrets.generate();
|
||||
Secrets secrets = Secrets.testSecrets();
|
||||
|
||||
KeycardCommandSet cmdSet = new KeycardCommandSet(this.plainChannel);
|
||||
cmdSet.select().checkOK();
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
android:id="@+id/buttonInstall"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Install Secure"/>
|
||||
android:text="Install w/o INIT"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/buttonInstallTest"
|
||||
|
||||
Reference in New Issue
Block a user