- const char* language = env->GetStringUTFChars(languageObj, NULL);
- dmStrlCpy(lang, language, sizeof(lang));
- env->ReleaseStringUTFChars(languageObj, language);
- }
- if (countryObj) {
- dmStrlCat(lang, "_", sizeof(lang));
- const char* country = env->GetStringUTFChars(countryObj, NULL);
- dmStrlCat(lang, country, sizeof(lang));
- env->ReleaseStringUTFChars(countryObj, country);
- }
- FillLanguageTerritory(lang, info);
- FillTimeZone(info);
-
- jclass build_class = env->FindClass("android/os/Build");
- jstring manufacturerObj = (jstring) env->GetStaticObjectField(build_class, env->GetStaticFieldID(build_class, "MANUFACTURER", "Ljava/lang/String;"));
- jstring modelObj = (jstring) env->GetStaticObjectField(build_class, env->GetStaticFieldID(build_class, "MODEL", "Ljava/lang/String;"));
-
- jclass build_version_class = env->FindClass("android/os/Build$VERSION");
- jstring releaseObj = (jstring) env->GetStaticObjectField(build_version_class, env->GetStaticFieldID(build_version_class, "RELEASE", "Ljava/lang/String;"));
- jint sdkint = (jint) env->GetStaticIntField(build_version_class, env->GetStaticFieldID(build_version_class, "SDK_INT", "I")); // supported from api level 4
-