-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":917,"versionName":"2108251543","enabled":true,"outputFile":"ICProtocol8.1_V917_2108251543_release.apk","fullName":"release","baseName":"release"},"path":"ICProtocol8.1_V917_2108251543_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":918,"versionName":"2108251623","enabled":true,"outputFile":"ICProtocol8.1_V918_2108251623_release.apk","fullName":"release","baseName":"release"},"path":"ICProtocol8.1_V918_2108251623_release.apk","properties":{}}]
\ No newline at end of file
AlarmWakeUp.isNeedWakeUpAlarm(runtime);
}
};
- private BroadcastReceiver broadcastSOSReceiver = new BroadcastReceiver() {
+ private final BroadcastReceiver broadcastSOSReceiver = new BroadcastReceiver() {
public void onReceive(Context param1Context, Intent param1Intent) {
StringBuilder stringBuilder2 = new StringBuilder();
}
setEmegencyLocationSTOPAlarm(5);
} else if (ACTION_LOCAL_SOS_ACTION.endsWith(param1Intent.getAction())) {
+ //判断SOS是否需要,W100的开关
+ boolean disableSos = false;
+ //默认是需要的
+ Cursor query = getContentResolver().query(Uri.parse(SETTINGS),
+ new String[]{"s_value"}, "s_key=?", new String[]{"SOSON"}, null);
+ if (query != null) {
+ if (query.moveToNext()) {
+ String value = query.getString(0);
+ ICLogger.d("sos on value ==> " + value);
+ disableSos = "1".equals(value);
+ }
+ query.close();
+ }
+ if (disableSos) {
+ ICLogger.d("disable sos...");
+ return;
+ }
VibrateUtil.getInstance(runtime.getContextProxy().context).vibrateOn(true);
//if( param1Intent.getIntExtra("type", 1) == 1) {
if (needHRSTestOnSOS) {
UNKNOWN_CMD,
MESSAGE/*文字消息*/,
profile,//情景模式
+ SOSON,//w100SOS 报警开关
}
public static HashMap<CMD_TYPE, String> cmdMap = null;
cmdMap.put(CMD_TYPE.AGTALK, "AGTALK");
cmdMap.put(CMD_TYPE.CALLING, "CALLING");
cmdMap.put(CMD_TYPE.RESET, "RESET");
+ cmdMap.put(CMD_TYPE.SOSON, "SOSON");
}
private Connection mConnection = null;
ICLogger.d("收到好友列表...");
handlerPPQ(data, mRuntime);
break;
+ case SOSON:
+ ICLogger.d("收到服务器设置的SOS开发消息..");
+ handleSettings(type, data, mRuntime);
+ break;
}
return ret;
}
*/
private void handleSettings(CMD_TYPE cmd, String data, Runtime mRuntime) {
ICLogger.d(cmd + " trigger setting --> " + data);
+ ICLogger.d("cmd==> " + cmd);
ContentResolver resolver = mRuntime.getContextProxy().getResolver();
ContentValues values = new ContentValues();
values.put(ICDatabaseHelper.sKey, cmdMap.get(cmd));
-#Wed Aug 25 15:43:24 CST 2021\r
-VERSION_CODE=917\r
+#Wed Aug 25 16:23:34 CST 2021\r
+VERSION_CODE=918\r