|
|
@@ -645,6 +645,17 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
Log.i(this.getClass().getSimpleName(), "开始写卡操作,指令: " + command); |
|
|
|
|
|
|
|
try { |
|
|
|
// 确保MethodManager已初始化 |
|
|
|
if (MethodManager.getCls() == null) { |
|
|
|
Log.i(this.getClass().getSimpleName(), "MethodManager未初始化,开始初始化"); |
|
|
|
MethodManager.initData("com.huntersun.vky.obublelib.box.BoxManagers"); |
|
|
|
if (MethodManager.getCls() == null) { |
|
|
|
Log.e(this.getClass().getSimpleName(), "MethodManager初始化失败"); |
|
|
|
throw new RuntimeException("MethodManager初始化失败"); |
|
|
|
} |
|
|
|
Log.i(this.getClass().getSimpleName(), "MethodManager初始化成功"); |
|
|
|
} |
|
|
|
|
|
|
|
// 直接执行单个APDU指令 |
|
|
|
ServiceStatus resp_string = MethodManager.sendApduICC(command); |
|
|
|
String result = resp_string.getServiceInfo(); |