release ICL02Workservice V56
authorsnickersun <scy@incartech.cn>
Thu, 10 Sep 2020 10:32:15 +0000 (18:32 +0800)
committersnickersun <scy@incartech.cn>
Thu, 10 Sep 2020 10:32:15 +0000 (18:32 +0800)
解决同时兼容AK和A9的blood检测问题

app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk [deleted file]
app/IcL02WorkService/release/IcL02WorkService_V56_202009101829_release.apk [new file with mode: 0644]
app/src/main/java/com/ic/work/process/AkProcess.java
app/version_code.properties

diff --git a/app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk b/app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk
deleted file mode 100644 (file)
index 92fadc5..0000000
Binary files a/app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk and /dev/null differ
diff --git a/app/IcL02WorkService/release/IcL02WorkService_V56_202009101829_release.apk b/app/IcL02WorkService/release/IcL02WorkService_V56_202009101829_release.apk
new file mode 100644 (file)
index 0000000..4723f6b
Binary files /dev/null and b/app/IcL02WorkService/release/IcL02WorkService_V56_202009101829_release.apk differ
index 3712b4d..101f265 100644 (file)
@@ -9,6 +9,7 @@ import com.ic.aidl.ak.IAkRemoteService;
 import com.ic.work.BuildConfig;
 import com.ic.work.event.ThreadPoolEvent;
 import com.ic.work.utils.IcLog;
+import com.ic.work.utils.IcSystemProperty;
 
 import org.greenrobot.eventbus.EventBus;
 
@@ -39,16 +40,15 @@ public class AkProcess {
 
         @Override
         public void startCheckBlood() throws RemoteException {
-            int type = BuildConfig.productType;
-            switch (type){
-                case 1001:
-                    //ak
-                    EventBus.getDefault().post(new ThreadPoolEvent(8));
-                    break;
-                case 1002:
-                    //a9
-                    EventBus.getDefault().post(new ThreadPoolEvent(7));
-                    break;
+
+            String CUSTOM_NAME= IcSystemProperty.getSystemProperties("persist.sys.customname","");
+
+            if (CUSTOM_NAME.equals("AK")) {
+                //ak
+                EventBus.getDefault().post(new ThreadPoolEvent(8));
+            }else{
+                //a9
+                EventBus.getDefault().post(new ThreadPoolEvent(7));
             }
         }
 
index 570ba17..7e97ebf 100644 (file)
@@ -1,2 +1,2 @@
 #Thu Jul 16 16:46:05 CST 2020
-VERSION_CODE=55
+VERSION_CODE=56