Si desea probarlo en el emulador o un teléfono real, intente utilizar este código:
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; //
¿Cuál es la forma más fácil de obtener estos datos? –
Obtuve los datos de mis informes de accidentes de Internet (http://code.google.com/p/acra/). Sin embargo, no se puede encontrar un producto de columna allí. Probablemente también pueda obtener los datos a través del código de alguna manera. –
'adb -d shell getprop | producto grep' –