Android.os.Build 数据示例,请

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3103196/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:42:23  来源:igfitidea点击:

Android.os.Build data examples, please

android

提问by Seva Alekseyev

can some owners of Android devices please come forward and publish the data that their phones provide as:

能否请一些 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
  • os.android.Build.BOARD
  • os.android.Build.BRAND
  • os.android.Build.DEVICE
  • os.android.Build.DISPLAY
  • os.android.Build.MODEL
  • os.android.Build.PRODUCT

I'm wondering what's the best identifying combination, looking for stats. Thanks in advance.

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

采纳答案by Pedro Rainho

I've discovered this recently: http://www.glbenchmark.com/phonedetails.jsp?benchmark=glpro11&D=Samsung+SGH-I997+Infuse+4G&testgroup=system

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

Just choose your device on the drop then choose tab system to view phone info

只需选择您的设备,然后选择标签系统即可查看手机信息

回答by Mathias Conradt

HTC Desire 2.1update1:
Board:bravo
Brand:htc_asia_wwe
device:bravo
display:ERE27
model:HTC Desire
product: ?

Nexus One, 2.2
board:mahimahi
brand:google
device:passion
display:FRF50 (this is not the N1 stock version, but update I loaded onto it)
model:Nexus One
product: ?

HTC Desire 2.1update1:
主板:bravo
品牌:htc_asia_wwe
设备:bravo
显示:ERE27
型号:HTC Desire
产品:?

Nexus One,2.2
板:mahimahi
品牌:google
device:passion
display:FRF50(这不是 N1 股票版本,但我加载了更新)
型号:Nexus One
产品:?

EDIT:

编辑:

Samsung Galaxy S, 2.1update1
board:GT-I9000
brand:Samsung
device:GT-I9000
display:ECLAIR
model:GT-I9000
product: ?

三星 Galaxy S,2.1update1
主板:GT-I9000
品牌:三星
设备:GT-I9000
显示器:ECLAIR
型号:GT-I9000
产品:?

回答by Martin Solac

If you want to test it in the emulator or Real phone, try using this code:

如果你想在模拟器或真实手机中测试它,请尝试使用以下代码:

    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;