#include <sys/system_properties.h> //for __system_property_get
char devicever[PROP_VALUE_MAX+1];
__system_property_get("ro.product.name", devicever);
LOGI("============= devicever= %s ", devicever);
查看当前设备的所有属性:
$adb shell
$getprop
#include <sys/system_properties.h> //for __system_property_get
char devicever[PROP_VALUE_MAX+1];
__system_property_get("ro.product.name", devicever);
LOGI("============= devicever= %s ", devicever);
查看当前设备的所有属性:
$adb shell
$getprop