diff options
| author | Kenny Root <kroot@google.com> | 2012-08-16 11:10:58 -0700 |
|---|---|---|
| committer | Kenny Root <kroot@google.com> | 2012-08-16 15:27:55 -0700 |
| commit | 786cbcacd2efbd94476eb05a4d5b77211f20d434 (patch) | |
| tree | 503b514a488b8e5cdb91e198fea752972eb06f25 /core/java/android | |
| parent | d2fb6e99bda1ae607b5dfbb68905030f2133f8e8 (diff) | |
Use Libcore.os.stat instead of FileUtils
PackageManagerService just needed to know the owner for this file, so
just use stat instead so we can remove the old JNI code.
This is the last user of FileUtils#getPermissions so just remove the
FileUtils method as well.
Change-Id: I953057cd6b9de4410f33b6f22e4bddff02fe2988
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/FileUtils.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/java/android/os/FileUtils.java b/core/java/android/os/FileUtils.java index 6c1445df74a0..213e3ae79d40 100644 --- a/core/java/android/os/FileUtils.java +++ b/core/java/android/os/FileUtils.java @@ -28,9 +28,6 @@ import java.util.regex.Pattern; import java.util.zip.CRC32; import java.util.zip.CheckedInputStream; -import libcore.io.Os; -import libcore.io.StructStat; - /** * Tools for managing files. Not for public consumption. * @hide @@ -96,12 +93,6 @@ public class FileUtils { public static native int setPermissions(String file, int mode, int uid, int gid); - /** - * @deprecated use {@link Os#stat(String)} instead. - */ - @Deprecated - public static native int getPermissions(String file, int[] outPermissions); - public static native int setUMask(int mask); /** returns the FAT file system volume ID for the volume mounted |
