首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Android.os.Build数据示例,请

Android.os.Build数据示例,请
EN

Stack Overflow用户
提问于 2010-06-23 23:44:19
回答 3查看 41.2K关注 0票数 27

请一些Android设备的用户站出来,将他们的手机提供的数据发布为:

  • os.android.Build.BOARD
  • os.android.Build.BRAND
  • os.android.Build.DEVICE
  • os.android.Build.DISPLAY
  • os.android.Build.MODEL
  • os.android.Build.PRODUCT

我想知道什么是最好的识别组合,寻找统计数据。提前谢谢。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2011-11-09 04:51:27

我最近发现了这个:http://www.glbenchmark.com/phonedetails.jsp?benchmark=glpro11&D=Samsung+SGH-I997+Infuse+4G&testgroup=system

只需在下拉列表中选择您的设备,然后选择选项卡系统即可查看电话信息

票数 19
EN

Stack Overflow用户

发布于 2010-06-23 23:57:48

HTC Desire 2.1更新1:

冲浪板:bravo

Brand:htc_asia_wwe

设备:bravo

显示:ERE27

型号:HTC Desire

产品:?

Nexus One,2.2

冲浪板:mahimahi

品牌:谷歌

设备:激情

显示:FRF50(这不是N1的库存版本,但我加载了更新)

型号:Nexus One

产品:?

编辑:

三星Galaxy S,2.1更新1

主板:GT-I9000

品牌:三星

设备:GT-i9000

显示:ECLAIR

型号:GT-I9000

产品:?

票数 31
EN

Stack Overflow用户

发布于 2011-03-16 19:13:36

如果您想在模拟器或Real phone中测试它,请尝试使用以下代码:

代码语言:javascript
复制
    String  ANDROID         =   android.os.Build.VERSION.RELEASE;       //The current development codename, or the string "REL" if this is a release build.
    int     SDK             =   android.os.Build.VERSION.SDK_INT;       //The SDK version of the software currently running on this hardware device.

    String  BOARD           =   android.os.Build.BOARD;                 //The name of the underlying board, like "goldfish".
    String  BOOTLOADER      =   android.os.Build.BOOTLOADER;            //  The system bootloader version number.
    String  BRAND           =   android.os.Build.BRAND;                 //The brand (e.g., carrier) the software is customized for, if any.
    String  CPU_ABI         =   android.os.Build.CPU_ABI;               // [API >= 4] The name of the instruction set (CPU type + ABI convention) of native code.
    String  CPU_ABI2        =   android.os.Build.CPU_ABI2;              // [API >= 8] The name of the second instruction set (CPU type + ABI convention) of native code.
    String[]CPU_ABIS        =   android.os.Build.SUPPORTED_ABIS;        // [API >= 21] An ordered list of ABIs supported by this device.
    String  DEVICE          =   android.os.Build.DEVICE;                //The name of the industrial design.
    String  DISPLAY         =   android.os.Build.DISPLAY;               //A build ID string meant for displaying to the user
    String  FINGERPRINT     =   android.os.Build.FINGERPRINT;           //A string that uniquely identifies this build.
    String  HARDWARE        =   android.os.Build.HARDWARE;              //The name of the hardware (from the kernel command line or /proc).
    String  HOST            =   android.os.Build.HOST;
    String  ID              =   android.os.Build.ID;                    //Either a changelist number, or a label like "M4-rc20".
    String  MANUFACTURER    =   android.os.Build.MANUFACTURER;          //The manufacturer of the product/hardware.
    String  MODEL           =   android.os.Build.MODEL;                 //The end-user-visible name for the end product.
    String  PRODUCT         =   android.os.Build.PRODUCT;               //The name of the overall product.
    String  RADIO_VERSION   =   android.os.Build.getRadioVersion();     //The radio firmware version number.
    String  SERIAL_NEW      =   android.os.Build.getSerial();           // [API >= 26] Gets the hardware serial number, if available.
    String  SERIAL_OLD      =   android.os.Build.SERIAL;                /* [API >= 9] A hardware serial number, if available. Alphanumeric only, case-insensitive.
                                                                        This field is always set to Build#UNKNOWN. */
    String  TAGS            =   android.os.Build.TAGS;                  //Comma-separated tags describing the build, like "unsigned,debug".
    long    TIME            =   android.os.Build.TIME;                  //The time at which the build was produced, given in milliseconds since the UNIX epoch.
    String  TYPE            =   android.os.Build.TYPE;                  //The type of build, like "user" or "eng".
    String  USER            =   android.os.Build.USER;
票数 25
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3103196

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档