From 4c74f8c1713fa82904b10beec4da9ad8ebb97375 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 17 Aug 2012 08:45:55 -0700 Subject: Use Libcore.os.umask for setting umask Libcore.os now provides a umask method call, so just use that since it's available. Change-Id: I8826fa40bcab3d61a424ff98a8050d3e44f7ec34 --- core/jni/android_os_FileUtils.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core/jni') diff --git a/core/jni/android_os_FileUtils.cpp b/core/jni/android_os_FileUtils.cpp index 82bfc36..a07f5b7 100644 --- a/core/jni/android_os_FileUtils.cpp +++ b/core/jni/android_os_FileUtils.cpp @@ -55,11 +55,6 @@ jint android_os_FileUtils_setPermissions(JNIEnv* env, jobject clazz, return chmod(file8.string(), mode) == 0 ? 0 : errno; } -jint android_os_FileUtils_setUMask(JNIEnv* env, jobject clazz, jint mask) -{ - return umask(mask); -} - jint android_os_FileUtils_getFatVolumeId(JNIEnv* env, jobject clazz, jstring path) { if (path == NULL) { @@ -83,7 +78,6 @@ jint android_os_FileUtils_getFatVolumeId(JNIEnv* env, jobject clazz, jstring pat static const JNINativeMethod methods[] = { {"setPermissions", "(Ljava/lang/String;III)I", (void*)android_os_FileUtils_setPermissions}, - {"setUMask", "(I)I", (void*)android_os_FileUtils_setUMask}, {"getFatVolumeId", "(Ljava/lang/String;)I", (void*)android_os_FileUtils_getFatVolumeId}, }; -- cgit v1.1