本文整理汇总了Java中android.os.Build.BOOTLOADER属性的典型用法代码示例。如果您正苦于以下问题:Java Build.BOOTLOADER属性的具体用法?Java Build.BOOTLOADER怎么用?Java Build.BOOTLOADER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.os.Build
的用法示例。
在下文中一共展示了Build.BOOTLOADER属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDeviceDetails
public static String getDeviceDetails(Context context) {
return "Device Information\n"
+ "\nDEVICE.ID : " + getDeviceId(context)
+ "\nUSER.ID : " + getUserIdentity(context)
+ "\nAPP.VERSION : " + getAppVersion(context)
+ "\nLAUNCHER.APP : " + getCurrentLauncherApp(context)
+ "\nTIMEZONE : " + timeZone()
+ "\nVERSION.RELEASE : " + Build.VERSION.RELEASE
+ "\nVERSION.INCREMENTAL : " + Build.VERSION.INCREMENTAL
+ "\nVERSION.SDK.NUMBER : " + Build.VERSION.SDK_INT
+ "\nBOARD : " + Build.BOARD
+ "\nBOOTLOADER : " + Build.BOOTLOADER
+ "\nBRAND : " + Build.BRAND
+ "\nCPU_ABI : " + Build.CPU_ABI
+ "\nCPU_ABI2 : " + Build.CPU_ABI2
+ "\nDISPLAY : " + Build.DISPLAY
+ "\nFINGERPRINT : " + Build.FINGERPRINT
+ "\nHARDWARE : " + Build.HARDWARE
+ "\nHOST : " + Build.HOST
+ "\nID : " + Build.ID
+ "\nMANUFACTURER : " + Build.MANUFACTURER
+ "\nMODEL : " + Build.MODEL
+ "\nPRODUCT : " + Build.PRODUCT
+ "\nSERIAL : " + Build.SERIAL
+ "\nTAGS : " + Build.TAGS
+ "\nTIME : " + Build.TIME
+ "\nTYPE : " + Build.TYPE
+ "\nUNKNOWN : " + Build.UNKNOWN
+ "\nUSER : " + Build.USER;
}
示例2: getDeviceInfo
public String getDeviceInfo() {
return "\n" +
"Brand:" +
Build.BRAND +
"\n" +
"Manufacturer:" +
Build.MANUFACTURER +
"\n" +
"Product:" +
Build.PRODUCT +
"\n" +
"Board:" +
Build.BOARD +
"\n" +
"Bootloader:" +
Build.BOOTLOADER +
"\n" +
"CPU_abi:" +
Build.CPU_ABI +
"\n" +
"CPU_abi2:" +
Build.CPU_ABI2 +
"\n" +
"DEVICE:" +
Build.DEVICE +
"\n" +
"Display:" +
Build.DISPLAY +
"\n" +
"Fingerprint:" +
Build.FINGERPRINT +
"\n" +
"Hardware:" +
Build.HARDWARE +
"\n" +
"Host:" +
Build.HOST +
"\n" +
"ID:" +
Build.ID +
"\n" +
"Model:" +
Build.MODEL +
"\n" +
"Time:" +
Build.TIME +
"\n" +
"Type:" +
Build.TYPE +
"\n" +
"User:" +
Build.USER +
"\n" +
"CodeName:" +
Build.VERSION.CODENAME +
"\n" +
"Incremental:" +
Build.VERSION.INCREMENTAL +
"\n" +
"Release:" +
Build.VERSION.RELEASE +
"\n" +
"SDK:" +
Build.VERSION.SDK_INT +
"\n";
}
示例3: getBootloader
public static String getBootloader() {
return Build.BOOTLOADER;
}
示例4: getDeviceBootLoader
/**
* 获取系统启动程序版本号
*
* @return
*/
public static String getDeviceBootLoader() {
return Build.BOOTLOADER;
}