Class of android.system · Os.java · Android's reference
public final class Os
System calls, on the JDK's file API.
public static StructStat stat(String path) throws ErrnoException sourcepublic static StructStat lstat(String path) throws ErrnoException sourcepublic static FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException sourcea second descriptor of the same open file
public static long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException sourcethe descriptor's offset moved: through its channel, which shares the host's offset
public static StructStat fstat(FileDescriptor fd) throws ErrnoException sourcepublic static void remove(String path) throws ErrnoException sourcepublic static void rename(String oldPath, String newPath) throws ErrnoException sourcepublic static void mkdir(String path, int mode) throws ErrnoException sourcepublic static void symlink(String oldPath, String newPath) throws ErrnoException sourcepublic static String readlink(String path) throws ErrnoException sourcepublic static boolean access(String path, int mode) throws ErrnoException sourcepublic static void chmod(String path, int mode) empty body sourcepublic static long sysconf(int name) sourcepublic static int getpid() sourcepublic static int gettid() sourcepublic static int getuid() sourcepublic static String getenv(String name) sourcepublic static void setenv(String name, String value, boolean overwrite) empty body sourcepublic static void fsync(FileDescriptor fd) throws ErrnoException sourcepublic static void close(FileDescriptor fd) empty body sourceMade 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.