SOS添加时长
authorTrillGates <williamtrillgates@gmail.com>
Thu, 28 Oct 2021 07:35:58 +0000 (15:35 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Thu, 28 Oct 2021 07:35:58 +0000 (15:35 +0800)
app/release/ICSer_V1002_2110281527_release.apk [moved from app/release/ICSer_V1001_2110281156_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/CoreService.java
app/src/main/java/com/ic/protocols/protocol_s123.java
app/version_code.properties

similarity index 77%
rename from app/release/ICSer_V1001_2110281156_release.apk
rename to app/release/ICSer_V1002_2110281527_release.apk
index c29ae6a..d63298e 100644 (file)
Binary files a/app/release/ICSer_V1001_2110281156_release.apk and b/app/release/ICSer_V1002_2110281527_release.apk differ
index 60227e5..d4a9c28 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1001,"versionName":"2110281156","enabled":true,"outputFile":"ICSer_V1001_2110281156_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1001_2110281156_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1002,"versionName":"2110281527","enabled":true,"outputFile":"ICSer_V1002_2110281527_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1002_2110281527_release.apk","properties":{}}]
\ No newline at end of file
index c7e6169..5553dea 100644 (file)
@@ -1299,18 +1299,12 @@ public class CoreService extends Service {
             stringBuilder.append(" paramInt2=");
             stringBuilder.append(paramInt2);
             ICLogger.i(stringBuilder.toString());
-//            if (ACTION_ALARM.equals(paramIntent.getAction())) {
 
             if (HEARTBEAT_ALARM.equals(paramIntent.getAction())) {
                 //发送心跳间隔广播给其他应用
                 this.runtime.getContextProxy().sendBroadcast(ACTION_EQC_ALARM, this.runtime);
                 this.connectionServiceChain.processAlarmClock(this.connection, this.runtime);
                 this.invokeHandlerServiceChain.processAlarmClock(this.connection, this.runtime);
-//                if (SystemClock.elapsedRealtime() - this.mWeatherTime > 60000L && this.mHaveSetWeatherAlarm) {
-//                    setWeatherAlarm();
-//                    this.mHaveSetWeatherAlarm = false;
-//                    return Service.START_NOT_STICKY;
-//                }
 
                 locationClient.updateStepCount();
                 updateSleepDate(); //检查睡眠
@@ -1325,13 +1319,9 @@ public class CoreService extends Service {
                         locationClient.triggerBLEProcess();//每次心跳检测一次BLE
                         Deliver.triggerSendThread();
                     } else {
-                        // if (this.mKeepAlive.is_retry_time_above_limit()) {
                         ICLogger.i("check 发送心跳包时,如果发现服务器没有响应,或者socket连接,则重新尝试连接服务器!");
                         connection.disconnectServer();
                         this.startConnectionRetryTimer();
-                        // }else{
-                        //      ICLogger.i("");
-                        //  }
                     }
                 }
                 //检测电池电量 并上报低电报警
index a268e47..3ab480c 100644 (file)
@@ -11,6 +11,7 @@ import android.net.Uri;
 import android.os.Environment;
 import android.os.Handler;
 import android.os.HandlerThread;
+import android.os.SystemProperties;
 import android.telephony.CellInfo;
 import android.telephony.CellInfoCdma;
 import android.telephony.CellInfoGsm;
@@ -1228,6 +1229,15 @@ public class protocol_s123 {
             contentValues3.put(ICDatabaseHelper.fPhoneNum, phNum3);
             resolver.insert(Uri.parse(ICMembersProvider.MEMBERS), contentValues3);
             ICLogger.d("inset sos data okay...");
+
+            try {
+                String duration = cmdList[6];
+                ICLogger.d("duration ==> " + duration);
+                //设置到prop里
+                SystemProperties.set("persist.sys.sos.time", duration);
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
         } else {
             ICLogger.i(" BP12 format error!");
         }
index 4133261..c3bb0fc 100644 (file)
@@ -1,2 +1,2 @@
-#Thu Oct 28 11:56:21 CST 2021\r
-VERSION_CODE=1001\r
+#Thu Oct 28 15:27:36 CST 2021\r
+VERSION_CODE=1002\r