-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1017,"versionName":"2112071047","enabled":true,"outputFile":"ICSer_V1017_2112071047_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1017_2112071047_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1018,"versionName":"2112142040","enabled":true,"outputFile":"ICSer_V1018_2112142040_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1018_2112142040_release.apk","properties":{}}]
\ No newline at end of file
//add by TrillGates=================end
+ //add by TrillGates===========
+ public static boolean sIsRecording = false;
+ //防止重复录音指令
+ //add by TrillGates end===============
+
//定位是否使用wifi的配置。
public static boolean disableWiFiScan = false;
mConfigurationChangedHandlerHashMap.put(key, sparseArray);\r
ICLogger.i("setConfigurationChangedHandler: " + key);\r
}\r
+\r
}\r
return true;
} else if ("StartMonitor".equals(paramStringMessage.cmd())) {
-
String recordfilepath = Util.getRecordfilePath(mRuntime, TimeUtil.getSystemTime3());
int recordtime = Integer.parseInt(paramStringMessage.isFromCache().trim());
try { //尝试拦截录音错误,不让程序挂掉
// 把voiceContent拆解成1024的分包
Util.parseToVoicePacketSent(voiceContent, 1024);
//trigger 分包发送
- if (CoreService.getInstance().getConnection() != null)
+ if (CoreService.getInstance().getConnection() != null) {
CoreService.getInstance().getConnection().DeliverCMDMessageToSystem("SentVoicePacket", "");
+ }
+ Config.sIsRecording = false;
}, recordtime * 1000);
} catch (Exception e) {
ICLogger.e(e.getMessage(), e);
tmp = tmp.replace(CMDEND, "").trim();
if (tmp.isEmpty()) tmp = "15";
- connection.send(APDH(id, cdd));
+ if (Config.sIsRecording) {
+ ICLogger.d("正在录音中,请不要重复发指令.");
+ connection.send(APDH(id, "0"));
+ return;
+ } else {
+ connection.send(APDH(id, "1"));
+ ICLogger.d("指令下发成功,准备去录音");
+ }
if (cdd.equals("1")) {
+ Config.sIsRecording = true;
//delay 启动
// Context context = mRuntime.getContextProxy().context.getApplicationContext();
CoreService.getInstance().DevliverStringMessage("StartMonitor", tmp);
private StringMessage APMC(String index, boolean responseValue) {
return genStringMessage(cmdMap.get(CMD_TYPE.APMC),
new StringBuffer(CMDHEADER).append(cmdMap.get(CMD_TYPE.APMC))
- .append(CMDSPLIT).append(index)
- .append(CMDSPLIT).append(responseValue)
- .append(CMDEND).toString());
+ .append(CMDSPLIT).append(index)
+ .append(CMDSPLIT).append(responseValue)
+ .append(CMDEND).toString());
}
/**
-#Tue Dec 07 10:47:17 CST 2021\r
-VERSION_CODE=1017\r
+#Tue Dec 14 20:40:52 CST 2021\r
+VERSION_CODE=1018\r