skip to alarm page of ic.
authorTrillGates <williamtrillgates@gmail.com>
Wed, 16 Jun 2021 13:12:03 +0000 (21:12 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Wed, 16 Jun 2021 13:12:03 +0000 (21:12 +0800)
app/release/ICSer_V792_2106162110_release.apk [moved from app/release/ICSer_V791_2106111704_release.apk with 78% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/service/SilentManager.java
app/src/main/java/com/enqualcomm/support/utils/DBHelper.java
app/version_code.properties
local.properties

similarity index 78%
rename from app/release/ICSer_V791_2106111704_release.apk
rename to app/release/ICSer_V792_2106162110_release.apk
index ec4a50a..b8ec9c0 100644 (file)
Binary files a/app/release/ICSer_V791_2106111704_release.apk and b/app/release/ICSer_V792_2106162110_release.apk differ
index 2227567..b4c0741 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":791,"versionName":"2106111704","enabled":true,"outputFile":"ICSer_V791_2106111704_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V791_2106111704_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":792,"versionName":"2106162110","enabled":true,"outputFile":"ICSer_V792_2106162110_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V792_2106162110_release.apk","properties":{}}]
\ No newline at end of file
index 2001eae..28e349c 100644 (file)
@@ -851,7 +851,8 @@ public class SilentManager extends AbstractInvokeHandlerService {
 
             if (this.isIdle(this.mContext)) {
                 try {
-                    Intent targetIntent = new Intent("com.enqualcomm.icare.ALARM", Uri.parse(alarmTime));
+                    Intent targetIntent = new Intent("com.ic.alarm.action.ALARM_RING",
+                            Uri.parse(alarmTime));
                     targetIntent.putExtra("closeAlarm", 0);
                     targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                     this.mContext.startActivity(targetIntent);
index ff09820..316e717 100644 (file)
@@ -1054,9 +1054,9 @@ public class DBHelper {
         return raw_contactID;
     }
 
-    public void updateCMDRecordForUD2(int flag,StringMessage msg) {
+    public void updateCMDRecordForUD2(int flag, StringMessage msg) {
         String WhereClause = null;
-        if(msg!=null) {
+        if (msg != null) {
             int id = msg.getIndex();
             String topic = msg.cmd();
             if (id >= 0 && topic.equals("UD")) {
@@ -1074,12 +1074,13 @@ public class DBHelper {
                     ICLogger.e("genMissedUD2Msg failed, skip gen UD2 msg");
                 }
             } else {
-                ICLogger.e("not UD("+topic+") or id("+id+") <0 , skip gen UD2 msg ");
+                ICLogger.e("not UD(" + topic + ") or id(" + id + ") <0 , skip gen UD2 msg ");
             }
-        }else{
+        } else {
             ICLogger.e("msg is null , skip gen UD2 msg");
         }
     }
+
     public void updateCMDRecord(int id, int flag) {
         String WhereClause = null;
         if (id >= 0) {
@@ -1111,7 +1112,7 @@ public class DBHelper {
         Uri table = ICContentProvider.PROTOCOL_CMD_RECORDS_URI;
         StringBuilder where = new StringBuilder();
         where.append("FLAG=0 and ( TOPIC='AL' or TOPIC='AP10' ) ");
-        ICLogger.i("Query1 cmdRecords "+where);
+        ICLogger.i("Query1 cmdRecords " + where);
         Cursor cmdrecords = pcr.query(table, null, where.toString(), null, null);
         StringMessage msg = null;
         if (cmdrecords != null) {
@@ -1134,11 +1135,11 @@ public class DBHelper {
 
                 }
                 cmdrecords.close();
-            }else{ //没有警报,就查询 UD 消息发送 //当前数据优先于 UD2数据
+            } else { //没有警报,就查询 UD 消息发送 //当前数据优先于 UD2数据
                 cmdrecords.close();
-                where  = new StringBuilder("FLAG=0 and TOPIC='UD' ");
+                where = new StringBuilder("FLAG=0 and TOPIC='UD' ");
                 cmdrecords = pcr.query(table, null, where.toString(), null, null);
-                ICLogger.i("Query2 cmdRecords "+where);
+                ICLogger.i("Query2 cmdRecords " + where);
                 msg = null;
                 if (cmdrecords != null) {
                     score = 0;
@@ -1159,11 +1160,11 @@ public class DBHelper {
                         }
                         cmdrecords.close();
 
-                    }else{  //最后轮到 除了 AL,AP10,UD 以外的其他缓存数据
+                    } else {  //最后轮到 除了 AL,AP10,UD 以外的其他缓存数据
                         cmdrecords.close();
-                        where  = new StringBuilder("FLAG=0");
+                        where = new StringBuilder("FLAG=0");
                         cmdrecords = pcr.query(table, null, where.toString(), null, null);
-                        ICLogger.i("Query3 cmdRecords "+where);
+                        ICLogger.i("Query3 cmdRecords " + where);
                         msg = null;
                         if (cmdrecords != null) {
                             score = 0;
index 474ff2b..974bfc3 100644 (file)
@@ -1,2 +1,2 @@
-#Fri Jun 11 17:04:07 CST 2021
-VERSION_CODE=791
\ No newline at end of file
+#Wed Jun 16 21:10:23 CST 2021
+VERSION_CODE=792
index 2bff067..310b4c8 100644 (file)
@@ -4,5 +4,5 @@
 # Location of the SDK. This is only used by Gradle.\r
 # For customization when using a Version Control System, please read the\r
 # header note.\r
-#Fri Jun 11 20:26:03 CST 2021\r
-sdk.dir=C\:\\Users\\incar\\AppData\\Local\\Android\\Sdk\r
+#Wed Jun 16 20:35:12 CST 2021\r
+sdk.dir=E\:\\Android\\Sdk\r