Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abe998c5 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Remove dead code.

Android no longer supports a security manager.
System.getSecurityManager() always returns null.

Change-Id: Id44ae8e100da901f2e3054dab905376423a8ff5b
parent b4653373
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -108,13 +108,6 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
    public static ParcelFileDescriptor open(File file, int mode)
            throws FileNotFoundException {
        String path = file.getPath();
        SecurityManager security = System.getSecurityManager();
        if (security != null) {
            security.checkRead(path);
            if ((mode&MODE_WRITE_ONLY) != 0) {
                security.checkWrite(path);
            }
        }

        if ((mode&MODE_READ_WRITE) == 0) {
            throw new IllegalArgumentException(