|
@@ -29,9 +29,7 @@ class Api {
|
|
|
Thread {
|
|
|
try {
|
|
|
activity.startService(Intent(activity, nuSDKService::class.java))
|
|
|
- while (nuSDKService.getInstance(pass) == null || !nuSDKService.getInstance(pass)
|
|
|
- .bCLMServiceReady()
|
|
|
- ) {
|
|
|
+ while (!nuSDKService.bServiceStarted()) {
|
|
|
Thread.sleep(100)
|
|
|
}
|
|
|
val preferences = activity.getSharedPreferences()
|
|
@@ -54,6 +52,10 @@ class Api {
|
|
|
false,
|
|
|
"202.158.33.26:62823"
|
|
|
)
|
|
|
+ val signature: String =
|
|
|
+ nuSDKService.getInstance(pass).sGetSignature()
|
|
|
+ if ("1,1,1,1,1,1,1,1,1,1,1,1" != signature) nuSDKService.getInstance(pass)
|
|
|
+ .UpdateSignature()
|
|
|
val pin = preferences.optString(key = "pin", default = "")
|
|
|
if (pin.isEmpty()) {
|
|
|
condition = lock.newCondition()
|
|
@@ -115,5 +117,9 @@ class Api {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ fun version(): String {
|
|
|
+ return nuSDKService.getInstance(pass).sGetVersion()
|
|
|
+ }
|
|
|
}
|
|
|
}
|