From c17ab48094bec9d5aded0f0fe6e723df860cf583 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Fri, 15 Apr 2016 10:52:44 -0400 Subject: [PATCH] allow scanning vicc configuration with QR code --- ACardEmulator/app/app.iml | 1 + ACardEmulator/app/build.gradle | 1 + .../app/src/main/AndroidManifest.xml | 8 +++ .../acardemulator/SettingsActivity.java | 69 ++++++++++++++++++- .../app/src/main/res/values/strings.xml | 1 + .../app/src/main/res/xml/settings.xml | 6 ++ .../app/SettingsActivity.java | 2 + 7 files changed, 86 insertions(+), 2 deletions(-) diff --git a/ACardEmulator/app/app.iml b/ACardEmulator/app/app.iml index 945a48f..96af714 100644 --- a/ACardEmulator/app/app.iml +++ b/ACardEmulator/app/app.iml @@ -97,6 +97,7 @@ + diff --git a/ACardEmulator/app/build.gradle b/ACardEmulator/app/build.gradle index 7dc25a9..2879faf 100644 --- a/ACardEmulator/app/build.gradle +++ b/ACardEmulator/app/build.gradle @@ -34,5 +34,6 @@ dependencies { compile 'com.android.support:design:23.2.1' compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar' + compile 'com.google.zxing:core:3.2.1' compile group: 'com.madgag.spongycastle', name: 'core', version: '1.51.0.0' } diff --git a/ACardEmulator/app/src/main/AndroidManifest.xml b/ACardEmulator/app/src/main/AndroidManifest.xml index 82f43bb..13bca01 100644 --- a/ACardEmulator/app/src/main/AndroidManifest.xml +++ b/ACardEmulator/app/src/main/AndroidManifest.xml @@ -27,6 +27,14 @@ + + + + + + + If you choose the virtual smart card (VICC) as emulator, you need to start the it on your computer with the `--reversed` flag and configure the connection parameters here accordingly. VICC Port VICC Hostname + vicc diff --git a/ACardEmulator/app/src/main/res/xml/settings.xml b/ACardEmulator/app/src/main/res/xml/settings.xml index 22034c6..ed95cc3 100644 --- a/ACardEmulator/app/src/main/res/xml/settings.xml +++ b/ACardEmulator/app/src/main/res/xml/settings.xml @@ -59,6 +59,12 @@ android:data="https://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html" /> + + +