2010-06-23 40 views
18

có thể một số chủ sở hữu thiết bị Android hãy quay về phía trước và công bố các dữ liệu mà điện thoại của họ cung cấp như:Android.os.Build ví dụ dữ liệu, xin vui lòng

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

Tôi tự hỏi kết hợp xác định tốt nhất là gì, tìm kiếm số liệu thống kê. Cảm ơn trước.

+0

cách dễ nhất để lấy dữ liệu này là gì? –

+0

Tôi nhận được dữ liệu từ báo cáo sự cố acra (http://code.google.com/p/acra/). Tuy nhiên, không thể tìm thấy sản phẩm cột trong đó. Bạn cũng có thể lấy dữ liệu qua mã bằng cách nào đó. –

+6

'adb -d shell getprop | grep product' –

Trả lời

18

tôi đã phát hiện ra điều này gần đây: http://www.glbenchmark.com/phonedetails.jsp?benchmark=glpro11&D=Samsung+SGH-I997+Infuse+4G&testgroup=system

Chỉ cần chọn thiết bị của bạn về sự sụt giảm sau đó chọn hệ thống tab để xem thông tin điện thoại

+0

Vâng, đó là khá nhiều. –

+0

điều này hữu ích, nhưng chúng dường như không xuất bản dữ liệu dưới dạng danh sách đầy đủ thông tin thiết bị hoặc cung cấp cho bạn khả năng thực hiện tra cứu ngược (ví dụ: android.os.Build.DEVICE, điện thoại nào từ đó). Có ai biết một nguồn cho dữ liệu này không? –

+0

FYI, tôi đã tìm kiếm trang web của Google để thực hiện tra cứu ngược trên dữ liệu của họ. Không hoàn hảo, nhưng có thể hữu ích: https://www.google.com/#q=site%3Ahttp%3A%2F%2Fwww.glbenchmark.com%20android.os.Build.DEVICE%09aloha - là LG Ally https://www.google.com/#q=site%3Ahttp%3A%2F%2Fwww.glbenchmark.com%20android.os.Build.DEVICE%09passion - là Google Nexus One https: // www. google.com/#q=site%3Ahttp%3A%2F%2Fwww.glbenchmark.com%20android.os.Build.DEVICE%09pyramid - là HTC Sensation https://www.google.com/#q=site % 3Ahttp% 3A% 2F% 2Fwww.glbenchmark.com% 20android.os.Build.DEVICE% 09supersonic - HTC Evo 4G –

22

HTC Desire 2.1update1:
Ban: bravo
Nhãn hiệu: htc_asia_wwe
thiết bị: bravo
display: ERE27
mô hình: HTC Desire
sản phẩm:

Nexus One, 2.2
board: mahimahi
thương hiệu: google
thiết bị: niềm đam mê
display: FRF50 (đây không phải là phiên bản cổ N1, nhưng cập nhật tôi nạp vào nó)
mô hình: Nexus One
sản phẩm:?

EDIT:

Samsung Galaxy S, 2.1update1
board: GT-I9000
thương hiệu: Samsung
thiết bị: GT-I9000
display: Eclair
mô hình: GT -I9000
sản phẩm:?

+0

Tuyệt vời, cảm ơn. –

+0

Tại sao không có sản phẩm? Có NULL không? – malhal

+0

Đầu ra là "?" càng xa tôi càng nhớ. –

15

Nếu bạn muốn thử nghiệm nó trong giả lập hoặc điện thoại Real, hãy thử sử dụng mã này:

String ANDROID   = android.os.Build.VERSION.RELEASE;  //The current development codename, or the string "REL" if this is a release build. 
    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;    //The name of the instruction set (CPU type + ABI convention) of native code. 
    String CPU_ABI2  = android.os.Build.CPU_ABI2;    // The name of the second instruction set (CPU type + ABI convention) of native code. 
    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   = android.os.Build.RADIO;     //The radio firmware version number. 
    String TAGS   = android.os.Build.TAGS;     //Comma-separated tags describing the build, like "unsigned,debug". 
    String TYPE   = android.os.Build.TYPE;     //The type of build, like "user" or "eng". 
    String USER   = android.os.Build.USER;     // 
Các vấn đề liên quan