mirror of
https://github.com/status-im/status-keycard.git
synced 2025-02-19 16:54:19 +00:00
update sdk
This commit is contained in:
parent
44adec536e
commit
86faab3f26
@ -59,7 +59,7 @@ dependencies {
|
|||||||
testCompile(files("../jcardsim/jcardsim-3.0.5-SNAPSHOT.jar"))
|
testCompile(files("../jcardsim/jcardsim-3.0.5-SNAPSHOT.jar"))
|
||||||
testCompile('org.web3j:core:2.3.1')
|
testCompile('org.web3j:core:2.3.1')
|
||||||
testCompile('org.bitcoinj:bitcoinj-core:0.14.5')
|
testCompile('org.bitcoinj:bitcoinj-core:0.14.5')
|
||||||
testCompile('com.github.status-im.status-keycard-java:desktop:15a61e1')
|
testCompile('com.github.status-im.status-keycard-java:desktop:3.1.2')
|
||||||
testCompile('org.bouncycastle:bcprov-jdk15on:1.65')
|
testCompile('org.bouncycastle:bcprov-jdk15on:1.65')
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api:5.1.1")
|
testCompile("org.junit.jupiter:junit-jupiter-api:5.1.1")
|
||||||
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.1")
|
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.1")
|
||||||
|
@ -4,5 +4,5 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.status-im.status-keycard-java:desktop:15a61e1'
|
compile 'com.github.status-im.status-keycard-java:desktop:3.1.2'
|
||||||
}
|
}
|
@ -128,9 +128,9 @@ public class KeycardTest {
|
|||||||
capabilities.add("ndef");
|
capabilities.add("ndef");
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (info.hasFactoryResetCapability()) {
|
if (info.hasFactoryResetCapability()) {
|
||||||
capabilities.add("factoryReset");
|
capabilities.add("factoryReset");
|
||||||
//}
|
}
|
||||||
|
|
||||||
CapabilityCondition.availableCapabilities = capabilities;
|
CapabilityCondition.availableCapabilities = capabilities;
|
||||||
}
|
}
|
||||||
@ -951,7 +951,8 @@ public class KeycardTest {
|
|||||||
APDUResponse response = sdkChannel.send(new APDUCommand(0x80, KeycardApplet.INS_FACTORY_RESET, 0, 0, new byte[0]));
|
APDUResponse response = sdkChannel.send(new APDUCommand(0x80, KeycardApplet.INS_FACTORY_RESET, 0, 0, new byte[0]));
|
||||||
assertEquals(0x6a86, response.getSw());
|
assertEquals(0x6a86, response.getSw());
|
||||||
|
|
||||||
response = sdkChannel.send(new APDUCommand(0x80, KeycardApplet.INS_FACTORY_RESET, 0xAA, 0x55, new byte[0]));
|
// Good case
|
||||||
|
response = cmdSet.factoryReset();
|
||||||
assertEquals(0x9000, response.getSw());
|
assertEquals(0x9000, response.getSw());
|
||||||
|
|
||||||
response = cmdSet.getStatus(KeycardCommandSet.GET_STATUS_P1_KEY_PATH);
|
response = cmdSet.getStatus(KeycardCommandSet.GET_STATUS_P1_KEY_PATH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user