From: snickersun Date: Thu, 10 Sep 2020 10:32:15 +0000 (+0800) Subject: release ICL02Workservice V56 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=b31ad971c1edd0165f1b4625556a82cee2e447da;p=icworkservice.git release ICL02Workservice V56 解决同时兼容AK和A9的blood检测问题 --- diff --git a/app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk b/app/IcL02WorkService/release/IcL02WorkService_V55_202009081509_release.apk deleted file mode 100644 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 index 0000000..4723f6b Binary files /dev/null and b/app/IcL02WorkService/release/IcL02WorkService_V56_202009101829_release.apk differ diff --git a/app/src/main/java/com/ic/work/process/AkProcess.java b/app/src/main/java/com/ic/work/process/AkProcess.java index 3712b4d..101f265 100644 --- a/app/src/main/java/com/ic/work/process/AkProcess.java +++ b/app/src/main/java/com/ic/work/process/AkProcess.java @@ -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)); } } diff --git a/app/version_code.properties b/app/version_code.properties index 570ba17..7e97ebf 100644 --- a/app/version_code.properties +++ b/app/version_code.properties @@ -1,2 +1,2 @@ #Thu Jul 16 16:46:05 CST 2020 -VERSION_CODE=55 +VERSION_CODE=56