|
@@ -8,6 +8,9 @@ import android.content.pm.PackageManager.NameNotFoundException;
|
|
|
import android.os.Bundle;
|
|
|
|
|
|
import com.wdkl.callingdoctor.BuildConfig;
|
|
|
+import com.wdkl.callingdoctor.MyApplication;
|
|
|
+import com.wdkl.callingdoctor.R;
|
|
|
+import com.wdkl.callingdoctor.common.Constants;
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
@@ -26,6 +29,8 @@ import java.util.List;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
+import serialporttest.utils.SerialPortUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 类描述:字符串操作工具包
|
|
|
* 创建人:Waderson Shll (TEL:15675117662)<br>
|
|
@@ -71,7 +76,12 @@ public class StringUtils {
|
|
|
}
|
|
|
|
|
|
public static String getAllVersionName() {
|
|
|
- String str = "\r\nAPP版本号:V" + BuildConfig.VERSION_NAME + " 中央服务器系列\r\n发布日期:" + BuildConfig.BUILD_TIME;
|
|
|
+ String str = "\r\nApp名称: " + MyApplication.getAppContext().getString(R.string.app_name)
|
|
|
+ + "\r\nAPP版本号: V" + BuildConfig.VERSION_NAME
|
|
|
+ + "\r\nMCU版本号: " + Constants.MCU_VERSION_NUMBER
|
|
|
+ + "\r\n设备ID: " + SerialPortUtil.KEY_ID
|
|
|
+ + "\r\n中央服务器系列"
|
|
|
+ + "\r\n发布日期:" + BuildConfig.BUILD_TIME;
|
|
|
if (android.os.Build.VERSION.SDK_INT >= 26) { //android8.0 = 26
|
|
|
str = str + " android8.1 , rk3368";// rk3368 android8.1
|
|
|
} else if (android.os.Build.VERSION.SDK_INT >= 24) { //android7.0 = 24
|