获取Android Device的信息

zwenkai 2013-12-26

String phoneInfo = "PRODUCT: " + android.os.Build.PRODUCT;
phoneInfo += ", CPU_ABI: " + android.os.Build.CPU_ABI;
phoneInfo += ", TAGS: " + android.os.Build.TAGS;
phoneInfo += ", VERSION_CODES.BASE: " + android.os.Build.VERSION_CODES.BASE;
phoneInfo += ", MODEL: " + android.os.Build.MODEL;
phoneInfo += ", SDK: " + android.os.Build.VERSION.SDK;
phoneInfo += ", VERSION.RELEASE: " + android.os.Build.VERSION.RELEASE;
phoneInfo += ", DEVICE: " + android.os.Build.DEVICE;
phoneInfo += ", DISPLAY: " + android.os.Build.DISPLAY;
phoneInfo += ", BRAND: " + android.os.Build.BRAND;
phoneInfo += ", BOARD: " + android.os.Build.BOARD;
phoneInfo += ", FINGERPRINT: " + android.os.Build.FINGERPRINT;
phoneInfo += ", ID: " + android.os.Build.ID;
phoneInfo += ", MANUFACTURER: " + android.os.Build.MANUFACTURER;
phoneInfo += ", USER: " + android.os.Build.USER;

结果

PRODUCT: soju,
CPU_ABI: armeabi-v7a,
TAGS: release-keys,  
VERSION_CODES.BASE: 1,
MODEL: Nexus S,
SDK: 10,
VERSION.RELEASE: 2.3.6,
DEVICE: crespo,
DISPLAY: GRK39F,
BRAND: google,
BOARD: herring,  
FINGERPRINT: google/soju/crespo:2.3.6/GRK39F/189904:user/release-keys,
ID: GRK39F,
MANUFACTURER: samsung,
USER: android-build

相关推荐