const char *const GetDeviceName() {
// Fetch the device model as name for now
JNIEnv *env = GetEnv();
jclass build_class = env->FindClass("android/os/Build");
jfieldID model_id = env->GetStaticFieldID(build_class, "MODEL", "Ljava/lang/String;");
jstring model_obj = (jstring)env->GetStaticObjectField(build_class, model_id);
const char *deviceName = env->GetStringUTFChars(model_obj, 0);
return deviceName;
}
You can, of course, get any other fields in the Build class, which should have the info you need