@@ -41,8 +41,8 @@ object MyUtils {
41
41
*/
42
42
fun getPhoneInfo (): String {
43
43
val map = hashMapOf<String , String >()
44
- map[" VersionName" ] = AppUtils .getVersionName()
45
44
map[" VersionCode" ] = " " + AppUtils .getVersionCode()
45
+ map[" SDKVersionCode" ] = AppUtils .getSDKVersionCode().toString()
46
46
map[" SDKVersionName" ] = " " + AppUtils .getSDKVersionName()
47
47
map[" Manufacturer" ] = " " + AppUtils .getManufacturer()
48
48
map[" Model" ] = AppUtils .getModel()
@@ -55,6 +55,27 @@ object MyUtils {
55
55
return str.toString()
56
56
}
57
57
58
+ /* *
59
+ * 获取手机信息
60
+ */
61
+ fun getPhoneInfo (thread : Thread ): String {
62
+ val map = hashMapOf<String , String >()
63
+ map[" VersionCode" ] = " " + AppUtils .getVersionCode()
64
+ map[" VersionName" ] = " " + AppUtils .getVersionName()
65
+ map[" SDKVersionCode" ] = AppUtils .getSDKVersionCode().toString()
66
+ map[" SDKVersionName" ] = " " + AppUtils .getSDKVersionName()
67
+ map[" Manufacturer" ] = " " + AppUtils .getManufacturer()
68
+ map[" Model" ] = AppUtils .getModel()
69
+ map[" ABI" ] = AppUtils .getABI()
70
+ map[" Thread" ] = thread.name
71
+ val str = StringBuilder (" =" .repeat(20 ) + " PHONE_INFO_HEAD" + " =" .repeat(20 ) + " \n " )
72
+ for (info in map) {
73
+ str.append(info.key).append(" ====> " ).append(info.value).append(" \n " )
74
+ }
75
+ str.append(" =" .repeat(20 ) + " PHONE_INFO_HEAD_END" + " =" .repeat(20 ) + " \n " )
76
+ return str.toString()
77
+ }
78
+
58
79
fun isSpace (string : String? ): Boolean {
59
80
return StringUtils .isSpace(string)
60
81
}
0 commit comments