Os

Class of android.system · Os.java · Android's reference

public final class Os

System calls, on the JDK's file API.

Methods

public static StructStat stat(String path) throws ErrnoException source
public static StructStat lstat(String path) throws ErrnoException source
public static FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException source

a second descriptor of the same open file

public static long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException source

the descriptor's offset moved: through its channel, which shares the host's offset

public static StructStat fstat(FileDescriptor fd) throws ErrnoException source
public static void remove(String path) throws ErrnoException source
public static void rename(String oldPath, String newPath) throws ErrnoException source
public static void mkdir(String path, int mode) throws ErrnoException source
public static boolean access(String path, int mode) throws ErrnoException source
public static void chmod(String path, int mode) empty body source
public static long sysconf(int name) source
public static int getpid() source
public static int gettid() source
public static int getuid() source
public static String getenv(String name) source
public static void setenv(String name, String value, boolean overwrite) empty body source
public static void fsync(FileDescriptor fd) throws ErrnoException source
public static void close(FileDescriptor fd) empty body source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.