Android Build类属性详解

20220804,截至到现在的所有Build属性

HashMap<String, String> map = new HashMap<>();
        LogUtils.logError(TAG, "ID: " + Build.ID);
        LogUtils.logError(TAG, "DISPLAY: " + Build.DISPLAY);
        LogUtils.logError(TAG, "PRODUCT: " + Build.PRODUCT);
        LogUtils.logError(TAG, "DEVICE: " + Build.DEVICE);
        LogUtils.logError(TAG, "BOARD: " + Build.BOARD);
        LogUtils.logError(TAG, "CPU_ABI: " + Build.CPU_ABI);
        LogUtils.logError(TAG, "CPU_ABI2: " + Build.CPU_ABI2);
        for (String supportedAbi : Build.SUPPORTED_ABIS) {
            LogUtils.logError(TAG, "SUPPORTED_ABIS singleValue: " + supportedAbi);
        }
        LogUtils.logError(TAG, "MANUFACTURER: " + Build.MANUFACTURER);
        LogUtils.logError(TAG, "BRAND: " + Build.BRAND);
        LogUtils.logError(TAG, "MODEL: " + Build.MODEL);

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
            LogUtils.logError(TAG, "SOC_MANUFACTURER: " + Build.SOC_MANUFACTURER);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
            LogUtils.logError(TAG, "SOC_MODEL: " + Build.SOC_MODEL);
        }
        LogUtils.logError(TAG, "BOOTLOADER: " + Build.BOOTLOADER);
        LogUtils.logError(TAG, "RADIO: " + Build.RADIO);
        LogUtils.logError(TAG, "getRadioVersion: " + Build.getRadioVersion());
        LogUtils.logError(TAG, "HARDWARE: " + Build.HARDWARE);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
            LogUtils.logError(TAG, "SKU: " + Build.SKU);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
            LogUtils.logError(TAG, "ODM_SKU: " + Build.ODM_SKU);
        }
//        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//            // 需要权限 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
//            LogUtils.logError(TAG, "getSerial : " + Build.getSerial());
//        }
        for (String supported32BitAbi : Build.SUPPORTED_32_BIT_ABIS) {
            LogUtils.logError(TAG, "SUPPORTED_32_BIT_ABIS : " + supported32BitAbi);
        }
        for (String supported64BitAbi : Build.SUPPORTED_64_BIT_ABIS) {
            LogUtils.logError(TAG, "SUPPORTED_64_BIT_ABIS : " + supported64BitAbi);
        }

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        LogUtils.logError(TAG, "VERSION.INCREMENTAL : " + Build.VERSION.INCREMENTAL);
        LogUtils.logError(TAG, "VERSION.RELEASE : " + Build.VERSION.RELEASE);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
            LogUtils.logError(TAG, "VERSION.RELEASE_OR_CODENAME : " + Build.VERSION.RELEASE_OR_CODENAME);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            LogUtils.logError(TAG, "VERSION.BASE_OS : " + Build.VERSION.BASE_OS);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            LogUtils.logError(TAG, "VERSION.SECURITY_PATCH : " + Build.VERSION.SECURITY_PATCH);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
            LogUtils.logError(TAG, "VERSION.MEDIA_PERFORMANCE_CLASS : " + Build.VERSION.MEDIA_PERFORMANCE_CLASS);
        }
        LogUtils.logError(TAG, "VERSION.SDK : " + Build.VERSION.SDK);
        LogUtils.logError(TAG, "VERSION.SDK_INT : " + Build.VERSION.SDK_INT);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            LogUtils.logError(TAG, "VERSION.PREVIEW_SDK_INT : " + Build.VERSION.PREVIEW_SDK_INT);
        }
        LogUtils.logError(TAG, "TYPE : " + Build.TYPE);
        LogUtils.logError(TAG, "TAGS : " + Build.TAGS);
        LogUtils.logError(TAG, "FINGERPRINT : " + Build.FINGERPRINT);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            LogUtils.logError(TAG, "Partition.PARTITION_NAME_SYSTEM : " + Build.Partition.PARTITION_NAME_SYSTEM);
        }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            for (Build.Partition fingerprintedPartition : Build.getFingerprintedPartitions()) {
                LogUtils.logError(TAG, "Partition.getFingerprintedPartitions-----name: " + fingerprintedPartition.getName()
                        + " getFingerprint:"+ fingerprintedPartition.getFingerprint()
                        + " getBuildTimeMillis:"+ fingerprintedPartition.getBuildTimeMillis());
            }
        }

值如下:

2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: ID: OPR1.170623.032
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: DISPLAY: OPR1.170623.032
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: PRODUCT: capricorn
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: DEVICE: capricorn
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: BOARD: QC_Reference_Phone
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: CPU_ABI: arm64-v8a
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: CPU_ABI2: 
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: SUPPORTED_ABIS singleValue: arm64-v8a
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: SUPPORTED_ABIS singleValue: armeabi-v7a
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: SUPPORTED_ABIS singleValue: armeabi
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: MANUFACTURER: Xiaomi
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: BRAND: Xiaomi
2022-08-04 12:02:48.749 16304-16304/cn.jj.test E/world: MODEL: MI 5s
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: BOOTLOADER: unknown
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: RADIO: unknown
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: getRadioVersion: TH20c1.9-1023_0524_8e1bfb2
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: HARDWARE: qcom
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: SUPPORTED_32_BIT_ABIS : armeabi-v7a
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: SUPPORTED_32_BIT_ABIS : armeabi
2022-08-04 12:02:49.750 16304-16304/cn.jj.test E/world: SUPPORTED_64_BIT_ABIS : arm64-v8a
2022-08-04 12:02:50.750 16304-16304/cn.jj.test E/world: VERSION.INCREMENTAL : V11.0.2.0.OAGCNXM
2022-08-04 12:02:50.750 16304-16304/cn.jj.test E/world: VERSION.RELEASE : 8.0.0
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: VERSION.BASE_OS : 
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: VERSION.SECURITY_PATCH : 2018-10-01
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: VERSION.SDK : 26
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: VERSION.SDK_INT : 26
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: VERSION.PREVIEW_SDK_INT : 0
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: TYPE : user
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: TAGS : release-keys
2022-08-04 12:02:50.751 16304-16304/cn.jj.test E/world: FINGERPRINT : Xiaomi/capricorn/capricorn:8.0.0/OPR1.170623.032/V11.0.2.0.OAGCNXM:user/release-keys
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: ID: OPR1.170623.032
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: DISPLAY: OPR1.170623.032
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: PRODUCT: capricorn
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: DEVICE: capricorn
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: BOARD: QC_Reference_Phone
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: CPU_ABI: arm64-v8a
2022-08-04 12:02:58.431 16420-16420/cn.jj.test E/world: CPU_ABI2: 
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: SUPPORTED_ABIS singleValue: arm64-v8a
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: SUPPORTED_ABIS singleValue: armeabi-v7a
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: SUPPORTED_ABIS singleValue: armeabi
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: MANUFACTURER: Xiaomi
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: BRAND: Xiaomi
2022-08-04 12:02:58.432 16420-16420/cn.jj.test E/world: MODEL: MI 5s
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: BOOTLOADER: unknown
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: RADIO: unknown
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: getRadioVersion: TH20c1.9-1023_0524_8e1bfb2
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: HARDWARE: qcom
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: SUPPORTED_32_BIT_ABIS : armeabi-v7a
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: SUPPORTED_32_BIT_ABIS : armeabi
2022-08-04 12:02:59.432 16420-16420/cn.jj.test E/world: SUPPORTED_64_BIT_ABIS : arm64-v8a
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.INCREMENTAL : V11.0.2.0.OAGCNXM
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.RELEASE : 8.0.0
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.BASE_OS : 
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.SECURITY_PATCH : 2018-10-01
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.SDK : 26
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.SDK_INT : 26
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: VERSION.PREVIEW_SDK_INT : 0
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: TYPE : user
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: TAGS : release-keys
2022-08-04 12:03:00.433 16420-16420/cn.jj.test E/world: FINGERPRINT : Xiaomi/capricorn/capricorn:8.0.0/OPR1.170623.032/V11.0.2.0.OAGCNXM:user/release-keys

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

学知识拯救世界

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值