private void getJIQI() { String str = Build.BOARD +"\n"//(主板) The name of the underlying board, like "goldfish". +Build.BOOTLOADER +"\n"//(boos 版本) The system bootloader version number. +Build.BRAND +"\n"//(android系统定制商) The consumer-visible brand with which the product/hardware will be associated, if any. +Build.TIME +"\n"//(编译时间) +Build.VERSION.SDK_INT +"\n"//(版本号) +Build.MODEL +"\n"//(版本) // +Build.SUPPORTED_ABIS //(cpu指令集) +Build.DEVICE +"\n"//(设备参数) +Build.ID +"\n";//(修订版本列表) Log.d("HHHHHHHH","str="+str);}
private String getInfo() { try { String strInfo = ""; try { strInfo += "PRODUCT:" + android.os.Build.PRODUCT; } catch (Exception e) { } try { strInfo += ", TAGS:" + android.os.Build.TAGS; } catch (Exception e) { } try { strInfo += ", VERSION_CODES.BASE:" + android.os.Build.VERSION_CODES.BASE; } catch (Exception e) { } try { strInfo += ", MODEL:" + android.os.Build.MODEL; } catch (Exception e) { } try { strInfo += ", VERSION.RELEASE:" + android.os.Build.VERSION.RELEASE; } catch (Exception e) { } try { strInfo += ", DEVICE:" + android.os.Build.DEVICE; } catch (Exception e) { } // try { strInfo += ", DISPLAY:" + android.os.Build.DISPLAY; } catch (Exception e) {} try { strInfo += ", BRAND:" + android.os.Build.BRAND; } catch (Exception e) { } try { strInfo += ", BOARD:" + android.os.Build.BOARD; } catch (Exception e) { } try { strInfo += ", FINGERPRINT:" + android.os.Build.FINGERPRINT; } catch (Exception e) { } try { strInfo += ", ID:" + android.os.Build.ID; } catch (Exception e) { } try { strInfo += ", MANUFACTURER:" + android.os.Build.MANUFACTURER; } catch (Exception e) { } try { strInfo += ", USER:" + android.os.Build.USER; } catch (Exception e) { } if (strInfo != null && strInfo.length() > 1000) { // 不大于 1000 个字符 strInfo = strInfo.substring(0, 1000); } return strInfo; } catch (Exception e) { } return ""; }
Android获取硬件设备信息
最新推荐文章于 2022-05-13 11:24:13 发布