Warn users of Telechips devices that app will crash with their broken libc
This commit is contained in:
@@ -803,3 +803,13 @@ int SDLCALL SDL_ANDROID_GetScreenKeyboardTextInput(char * textBuf, int textBufSi
|
||||
return 1;
|
||||
};
|
||||
|
||||
// That's probably not the right file to put this func
|
||||
JNIEXPORT jint JNICALL
|
||||
JAVA_EXPORT_NAME(Settings_nativeChmod) ( JNIEnv* env, jobject thiz, jstring j_name, jint mode )
|
||||
{
|
||||
jboolean iscopy;
|
||||
const char *name = (*env)->GetStringUTFChars(env, j_name, &iscopy);
|
||||
int ret = chmod(name, mode);
|
||||
(*env)->ReleaseStringUTFChars(env, j_name, name);
|
||||
return (ret == 0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user