@@ -41,8 +41,8 @@ object MyUtils {
4141 */
4242 fun getPhoneInfo (): String {
4343 val map = hashMapOf<String , String >()
44- map[" VersionName" ] = AppUtils .getVersionName()
4544 map[" VersionCode" ] = " " + AppUtils .getVersionCode()
45+ map[" SDKVersionCode" ] = AppUtils .getSDKVersionCode().toString()
4646 map[" SDKVersionName" ] = " " + AppUtils .getSDKVersionName()
4747 map[" Manufacturer" ] = " " + AppUtils .getManufacturer()
4848 map[" Model" ] = AppUtils .getModel()
@@ -55,6 +55,27 @@ object MyUtils {
5555 return str.toString()
5656 }
5757
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+
5879 fun isSpace (string : String? ): Boolean {
5980 return StringUtils .isSpace(string)
6081 }
0 commit comments