Get Phone hardware information

Source: Internet
Author: User
Tags eventbus

Key class: Android.os.build.*

If you need to adapt to different phone brands, you can use the phone manufacturer (manufacturer) information to do code control, more accurate some of the models can be used, model can be more accurate to a mobile phone.

The following is a record of some of my mobile phone information:
The information obtained by product and device is also less stable, such as red Rice 3 is ido.

Charm Blue Note5

ID:              NRD90MDISPLAY:         Flyme 6.3.0.2APRODUCT:         meizu_M5 NoteDEVICE:          M5NoteBOARD:           M5 NoteMANUFACTURER:    MeizuBRAND:           MeizuMODEL:           M5 NoteHARDWARE:        mt6755SERIAL:          RELEASE:         7.0SDK_INT:         24SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

One plus 5T

ID:              OPR6.170623.013DISPLAY:         ONEPLUS A5010_43_180315PRODUCT:         OnePlus5TDEVICE:          OnePlus5TBOARD:           msm8998MANUFACTURER:    OnePlusBRAND:           OnePlusMODEL:           ONEPLUS A5010HARDWARE:        qcomSERIAL:          RELEASE:         8.0.0SDK_INT:         26SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

Red Rice 3

ID:              LMY47VDISPLAY:         LMY47VPRODUCT:         idoDEVICE:          idoBOARD:           msm8916MANUFACTURER:    XiaomiBRAND:           XiaomiMODEL:           Redmi 3HARDWARE:        qcomSERIAL:          RELEASE:         5.1.1SDK_INT:         22SUPPORTED_ABIS:         [arm64-v8a, armeabi-v7a, armeabi]SUPPORTED_32_BIT_ABIS:  [armeabi-v7a, armeabi]SUPPORTED_64_BIT_ABIS:  [arm64-v8a]

Red Rice Note2

ID:              LRX22GDISPLAY:         LRX22GPRODUCT:         hermesDEVICE:          hermesBOARD:           unknownMANUFACTURER:    XiaomiBRAND:           XiaomiMODEL:           Redmi Note 2HARDWARE:        mt6795SERIAL:          RELEASE:         5.0.2SDK_INT:         21SUPPORTED_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:              KTU84PDISPLAY:         KTU84P.G3608ZMU1AOH2PRODUCT:         rossaltezmDEVICE:          rossalteBOARD:           MSM8916MANUFACTURER:    samsungBRAND:           samsungMODEL:           SM-G3608HARDWARE:        qcomSERIAL:          RELEASE:         4.4.4SDK_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);    }

Get Phone hardware information

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.