代码之家  ›  专栏  ›  技术社区  ›  Seva Alekseyev

Android.os.构建数据示例,请[关闭]

  •  21
  • Seva Alekseyev  · 技术社区  · 14 年前

    一些Android设备的拥有者能否站出来发布他们手机提供的数据:

    • os.android.Build.BOARD版
    • os.android.Build.DISPLAY操作系统

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

    3 回复  |  直到 14 年前
        1
  •  19
  •   Pedro Rainho    13 年前

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

    只需在下拉列表中选择您的设备,然后选择标签系统来查看电话信息

        2
  •  31
  •   Mathias Conradt    14 年前

    HTC Desire 2.1更新1:

    Brand:htc_asia_wwe
    device:bravo
    display:ERE27
    model:HTC Desire


    Nexus一号,2.2
    board:mahimahi

    device:passion
    display:FRF50 (这不是N1库存版本,而是我加载到它上的更新)
    model:Nexus One
    产品:?

    编辑:

    三星Galaxy S,2.1更新1
    board:GT-I9000
    brand:Samsung
    device:GT-I9000
    display:ECLAIR

    产品:?

        3
  •  24
  •   cmak Morrison Chang    5 年前

    如果要在仿真器或真实手机中进行测试,请尝试使用以下代码:

        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;