release V859
authorSnickerSun <scy@incartech.cn>
Sat, 26 Jun 2021 07:54:27 +0000 (15:54 +0800)
committerSnickerSun <scy@incartech.cn>
Sat, 26 Jun 2021 07:54:27 +0000 (15:54 +0800)
修复 上传APVR 版本号

app/release/ICSer_V859_2106261553_release.apk [moved from app/release/ICSer_V857_2106261303_release.apk with 78% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/CoreService.java
app/src/main/java/com/enqualcomm/support/MainActivity.java
app/src/main/java/com/enqualcomm/support/service/KeepAlive.java
app/version_code.properties
local.properties

similarity index 78%
rename from app/release/ICSer_V857_2106261303_release.apk
rename to app/release/ICSer_V859_2106261553_release.apk
index 9790893..b43cb69 100644 (file)
Binary files a/app/release/ICSer_V857_2106261303_release.apk and b/app/release/ICSer_V859_2106261553_release.apk differ
index 175929c..d943abc 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":857,"versionName":"2106261303","enabled":true,"outputFile":"ICSer_V857_2106261303_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V857_2106261303_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":859,"versionName":"2106261553","enabled":true,"outputFile":"ICSer_V859_2106261553_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V859_2106261553_release.apk","properties":{}}]
\ No newline at end of file
index b06d3c8..b2ea009 100644 (file)
@@ -216,19 +216,21 @@ public class CoreService extends Service {
             stringBuilder2.append("broadcastReceiver  action==");
             stringBuilder2.append(param1Intent.getAction());
             ICLogger.i(stringBuilder2.toString());
+            boolean needHRSTestOnSOS = Util.getSystemProperties("persist.sys.needHRSOnSOS", "false").equals("true");
 
             if (ACTION_SEND_EMEGENCY_LOCATION_START.equals(param1Intent.getAction())) {
                 runtime.getLocationInstance().setWorkingMod(EMERGNECY_MOD);
                 //runtime.setPpgTestCycle(1);
                 setLocationAlarm(runtime.getLocationInstance().getWorkingMod());
-                //触发一次心率检测
-                ICLogger.d("ACTION_SEND_EMEGENCY_LOCATION_START == > setHeartRateDetectAlarm ");
-                setHeartRateDetectAlarm(1);
+                if (needHRSTestOnSOS) {
+                    //触发一次心率检测
+                    ICLogger.d("ACTION_SEND_EMEGENCY_LOCATION_START == > setHeartRateDetectAlarm ");
+                    setHeartRateDetectAlarm(1);
+                }
                 setEmegencyLocationSTOPAlarm(5);
             } else if (ACTION_LOCAL_SOS_ACTION.endsWith(param1Intent.getAction())) {
                 VibrateUtil.getInstance(runtime.getContextProxy().context).vibrateOn(true);
 //               if( param1Intent.getIntExtra("type", 1) == 1) {
-                boolean needHRSTestOnSOS = Util.getSystemProperties("persist.sys.needHRSOnSOS", "false").equals("true");
                 if (needHRSTestOnSOS) {
                     //触发一次心率检测
                     ICLogger.d("needHRSTestOnSOS =}}= > setHeartRateDetectAlarm ");
index 73cae47..332328d 100644 (file)
@@ -15,6 +15,7 @@ import android.widget.Button;
 import android.widget.TextView;
 
 import com.enqualcomm.support.adapter.BTHelper;
+import com.enqualcomm.support.utils.AESCipher;
 import com.enqualcomm.support.utils.DeviceInfoUtil;
 import com.enqualcomm.support.utils.IBeaconUtil;
 import com.enqualcomm.support.utils.ICLogger;
@@ -39,8 +40,6 @@ public class MainActivity extends Activity {
     Handler handler=new Handler(new Handler.Callback() {
         @Override
         public boolean handleMessage(Message message) {
-
-
             StringBuilder sb=new StringBuilder();
             try {
 
@@ -117,6 +116,8 @@ public class MainActivity extends Activity {
         TextView tv_version=(TextView)findViewById(R.id.textViewVersion);
         tv_version.setText(DeviceInfoUtil.getVersionCode(this)+"-"+DeviceInfoUtil.getVersionName(this));
 //        testpic();
+        AESCipher.test2();
+
     }
 
 
@@ -125,7 +126,6 @@ public class MainActivity extends Activity {
                     @Override
                     public void OnScanFinished(ArrayList<IBeaconUtil.iBeacon> btBeaconScanResult, ArrayList<String> btNewScanResult) {
 
-
 //                        ICLogger.i("BT Pared "+btPairedScanResult.size());
 //                        for ( String i :btPairedScanResult){
 //                            ICLogger.i(i);
index 9377eb0..d6fa200 100644 (file)
@@ -361,8 +361,11 @@ public class KeepAlive extends AbstractConnectionService {
                 CoreService.getInstance().setLocationAlarm(paramRuntime.getLocationInstance().getWorkingMod());
             }
         } else if (paramStringMessage.cmd().equals("login")) {
+
             //广播服务器连接成功的消息
             paramRuntime.getContextProxy().sendBroadcastServerConnectionChanged(true);
+            //login成功后,上传当前版本号
+            paramConnection.send(protocolAPIHelper.getDeviceVersion(paramRuntime));
             //登录包收到就停止重链接服务器
             CoreService.getInstance().stopConnectionRetryTimer();
             is_login_send_success = true;
index 2b774cc..d9042ad 100644 (file)
@@ -1,5 +1,5 @@
-#Sat Jun 26 13:03:54 CST 2021\r
+#Sat Jun 26 15:53:09 CST 2021\r
 >>>>>>>=b405d1184f3616d4e894d199cee0eb91613a68db\r
-VERSION_CODE=857\r
+VERSION_CODE=859\r
 =\=\=\=\=\=\=\r
 <<<<<<<=HEAD\r
index 70301e1..0cdc2a6 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
-#Sat Jun 19 18:18:09 CST 2021\r
-sdk.dir=E\:\\Android\\Sdk\r
+#Sat Jun 26 13:03:49 CST 2021\r
+sdk.dir=C\:\\Users\\incar\\AppData\\Local\\Android\\Sdk\r