获得手机硬件信息-创新互联

关键类:android.os.Build.*

为颍泉等地区用户提供了全套网页设计制作服务,及颍泉网站建设行业解决方案。主营业务为成都做网站、成都网站建设、颍泉网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

如果需要针对不同手机品牌做适配,可以通过手机厂商(Manufacturer)信息做代码控制,更精确一些可以使用型号(Model),Model可以更精确指向一款手机。

下面记录我手里的几台手机的信息:
可见Product和Device获取的信息也不太稳定,如红米3得到的都是ido。

魅蓝Note5

ID:              NRD90M
DISPLAY:         Flyme 6.3.0.2A
PRODUCT:         meizu_M5 Note
DEVICE:          M5Note
BOARD:           M5 Note
MANUFACTURER:    Meizu
BRAND:           Meizu
MODEL:           M5 Note
HARDWARE:        mt6755
SERIAL:          
RELEASE:         7.0
SDK_INT:         24
SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]
SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]
SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

一加5T

ID:              OPR6.170623.013
DISPLAY:         ONEPLUS A5010_43_180315
PRODUCT:         OnePlus5T
DEVICE:          OnePlus5T
BOARD:           msm8998
MANUFACTURER:    OnePlus
BRAND:           OnePlus
MODEL:           ONEPLUS A5010
HARDWARE:        qcom
SERIAL:          
RELEASE:         8.0.0
SDK_INT:         26
SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]
SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]
SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

红米3

ID:              LMY47V
DISPLAY:         LMY47V
PRODUCT:         ido
DEVICE:          ido
BOARD:           msm8916
MANUFACTURER:    Xiaomi
BRAND:           Xiaomi
MODEL:           Redmi 3
HARDWARE:        qcom
SERIAL:          
RELEASE:         5.1.1
SDK_INT:         22
SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]
SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]
SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

红米note2

ID:              LRX22G
DISPLAY:         LRX22G
PRODUCT:         hermes
DEVICE:          hermes
BOARD:           unknown
MANUFACTURER:    Xiaomi
BRAND:           Xiaomi
MODEL:           Redmi Note 2
HARDWARE:        mt6795
SERIAL:          
RELEASE:         5.0.2
SDK_INT:         21
SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]
SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]
SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

Samsung Galaxy Core Prime(SM-G3608)

ID:              KTU84P
DISPLAY:         KTU84P.G3608ZMU1AOH2
PRODUCT:         rossaltezm
DEVICE:          rossalte
BOARD:           MSM8916
MANUFACTURER:    samsung
BRAND:           samsung
MODEL:           SM-G3608
HARDWARE:        qcom
SERIAL:          
RELEASE:         4.4.4
SDK_INT:         19
Log.i(TAG, "ID:              " + Build.ID);
Log.i(TAG, "DISPLAY:         " + Build.DISPLAY);
Log.i(TAG, "PRODUCT:         " + Build.PRODUCT);
Log.i(TAG, "DEVICE:          " + Build.DEVICE);
Log.i(TAG, "BOARD:           " + Build.BOARD);
Log.i(TAG, "MANUFACTURER:    " + Build.MANUFACTURER);
Log.i(TAG, "BRAND:           " + Build.BRAND);
Log.i(TAG, "MODEL:           " + Build.MODEL);
Log.i(TAG, "HARDWARE:        " + Build.HARDWARE);
Log.i(TAG, "SERIAL:          " + Build.SERIAL);
Log.i(TAG, "RELEASE:         " + Build.VERSION.RELEASE);
Log.i(TAG, "SDK_INT:         " + Build.VERSION.SDK_INT);
Log.i(TAG, "SUPPORTED_ABIS:         " + Arrays.asList(Build.SUPPORTED_ABIS));
Log.i(TAG, "SUPPORTED_32_BIT_ABIS:  " + Arrays.asList(Build.SUPPORTED_32_BIT_ABIS));
Log.i(TAG, "SUPPORTED_64_BIT_ABIS:  " + Arrays.asList(Build.SUPPORTED_64_BIT_ABIS));
@Override
    protected void onStart() {
        super.onStart();
        EventBus.getDefault().register(this);
    }

    @Override
    protected void onStop() {
        super.onStop();
        EventBus.getDefault().unregister(this);
    }

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前名称:获得手机硬件信息-创新互联
文章链接:http://myzitong.com/article/cojdog.html