【问题标题】:Android.os.Build data examples, please [closed]Android.os.Build 数据示例,请[关闭]
【发布时间】:2010-06-23 15:44:19
【问题描述】:

请一些 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

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

【问题讨论】:

  • 获取这些数据的最简单方法是什么?
  • 我从我的 acra 崩溃报告 (code.google.com/p/acra) 中获得了数据。但是在那里找不到列产品。您可能还可以通过某种方式通过代码获取数据。
  • adb -d shell getprop | grep product

标签: android


【解决方案1】:

HTC Desire 2.1update1:​​
董事会:布拉沃
品牌:htc_asia_wwe
设备:布拉沃
显示:ERE27
型号:HTC Desire
产品:?

Nexus One,2.2
板:mahimahi
品牌:谷歌
设备:激情
显示:FRF50(这不是 N1 库存版本,而是我加载的更新)
型号:Nexus One
产品:?

编辑:

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

【讨论】:

  • 为什么没有产品?那些是NULL吗?
  • 输出为“?”据我所知。
【解决方案2】:

如果您想在模拟器或真机中测试,请尝试使用此代码:

    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;

【讨论】:

    【解决方案3】:

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

    只需在下拉菜单中选择您的设备,然后选择标签系统即可查看手机信息

    【讨论】:

    • 这很有帮助,但他们似乎并没有将数据发布为设备信息的完整列表,也没有让您能够进行反向查找(即,给定一个 android.os.Build. DEVICE,它来自哪部手机)。有谁知道这些数据的来源?
    • 仅供参考,我进行了谷歌网站搜索以对他们的数据进行反向查找。不完美,但可能会有所帮助:google.com/… - 是 LG Ally google.com/… - 是 Google Nexus One google.com/… - 是 HTC Sensation google.com/… - HTC Evo 4G
    • 我希望有一个包含所有手机、规格(如 xda 中的那个)的 wiki,以及它相关的 android.os 数据,也许还有一个应用程序,使用户能够发送它的数据并更新维基。
    • 看起来该网站已经过重新设计,它们不再显示构建字段。好难过。
    • 死链接(该链接现在重定向到与问题无关的其他站点)
    猜你喜欢
    • 2010-10-17
    • 2012-12-23
    • 2019-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-24
    • 1970-01-01
    • 2014-11-23
    相关资源
    最近更新 更多