diff options
author | Kenny Root <kroot@google.com> | 2012-08-17 08:45:55 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2012-08-20 12:24:05 -0700 |
commit | 4c74f8c1713fa82904b10beec4da9ad8ebb97375 (patch) | |
tree | 08ef3089b5599e410f066f894d75835793c7cfe2 /core/jni | |
parent | e00245737cc4844b77f95538e0728a4166b856a0 (diff) | |
download | frameworks_base-4c74f8c1713fa82904b10beec4da9ad8ebb97375.zip frameworks_base-4c74f8c1713fa82904b10beec4da9ad8ebb97375.tar.gz frameworks_base-4c74f8c1713fa82904b10beec4da9ad8ebb97375.tar.bz2 |
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
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_os_FileUtils.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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}, }; |