修改了电话监听结束失效的问题.
authorTrillGates <williamtrillgates@gmail.com>
Sat, 26 Feb 2022 10:04:51 +0000 (18:04 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Sat, 26 Feb 2022 10:04:51 +0000 (18:04 +0800)
app/release/ICSer_V1044_2201221723_release.apk [moved from app/release/ICSer_V1020_2201221500_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/service/PhoneCallListener.java
app/src/main/java/com/enqualcomm/support/utils/TimeUtil.java
app/version_code.properties
local.properties

similarity index 77%
rename from app/release/ICSer_V1020_2201221500_release.apk
rename to app/release/ICSer_V1044_2201221723_release.apk
index 9d03c92..a812154 100644 (file)
Binary files a/app/release/ICSer_V1020_2201221500_release.apk and b/app/release/ICSer_V1044_2201221723_release.apk differ
index 7edd41c..1bd6b95 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1020,"versionName":"2201221500","enabled":true,"outputFile":"ICSer_V1020_2201221500_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1020_2201221500_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1044,"versionName":"2201221723","enabled":true,"outputFile":"ICSer_V1044_2201221723_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1044_2201221723_release.apk","properties":{}}]
\ No newline at end of file
index 9c1096a..84e7a56 100644 (file)
@@ -46,7 +46,7 @@ public class PhoneCallListener {
                         //延时修改
                         Util.setSystemProperties("persist.sys.call.monitor", "false");
                         ICLogger.d("persist.sys.call.monitor ==>  " + Util.getSystemProperties("persist.sys.call.monitor"));
-                    });
+                    }).start();
                     updateVolume(100);
                 }
             }
index 1121c29..ae95e04 100644 (file)
@@ -341,6 +341,7 @@ public class TimeUtil {
         } else {
             timezone_name = String.format("GMT-%1$02d:00", Math.abs(timezone));
         }
+        ICLogger.d("timezone_name ==> " + timezone_name);
         TimeZone tz = TimeZone.getTimeZone(timezone_name);
         ICLogger.i("====set timezone " + tz.getDisplayName());
 
@@ -357,12 +358,13 @@ public class TimeUtil {
             c.setTimeZone(tz);
         }
 
-//    alarmManager.setTimeZone();
+        //alarmManager.setTimeZone();
         long when = c.getTimeInMillis();
         if (when / 1000 < Integer.MAX_VALUE) {
             //SystemClock.setCurrentTimeMillis(when);
             alarmManager.setTime(when);
         }
+        alarmManager.setTimeZone(timezone_name);
 
         Calendar d = Calendar.getInstance();
         long now = d.getTimeInMillis();
index 6ef54e8..61acde9 100644 (file)
@@ -1,2 +1,2 @@
-#Tue Jan 18 10:17:29 CST 2022\r
-VERSION_CODE=1043\r
+#Sat Jan 22 17:23:01 CST 2022\r
+VERSION_CODE=1044\r
index 55611eb..a4f85ff 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
-#Tue Nov 23 16:39:34 CST 2021\r
-sdk.dir=D\:\\android\\Android\\sdk\r
+#Sat Jan 22 17:09:33 CST 2022\r
+sdk.dir=E\:\\Android\\Sdk\r