Stay organized with collections
Save and categorize content based on your preferences.
android.system
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# android.system\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nandroid.system\n==============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/system/package-summary \"View this page in Kotlin\") \\|Java\n\nClasses\n-------\n\n|--------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Int64Ref](/reference/android/system/Int64Ref) | A signed 64bit integer reference suitable for passing to lower-level system calls. |\n| [Os](/reference/android/system/Os) | Access to low-level system functionality. |\n| [OsConstants](/reference/android/system/OsConstants) | Constants and helper functions for use with [Os](/reference/android/system/Os). |\n| [StructCmsghdr](/reference/android/system/StructCmsghdr) | Corresponds to C's `struct cmsghdr`. |\n| [StructDlInfo](/reference/android/system/StructDlInfo) | Corresponds to C's `struct Dl_info`. |\n| [StructMsghdr](/reference/android/system/StructMsghdr) | Corresponds to C's `struct msghdr` |\n| [StructPollfd](/reference/android/system/StructPollfd) | Used as an in/out parameter to [Os.poll](/reference/android/system/Os#poll(android.system.StructPollfd[],%20int)). |\n| [StructStat](/reference/android/system/StructStat) | File information returned by [Os.fstat](/reference/android/system/Os#fstat(java.io.FileDescriptor)), [Os.lstat](/reference/android/system/Os#lstat(java.lang.String)), and [Os.stat](/reference/android/system/Os#stat(java.lang.String)). |\n| [StructStatVfs](/reference/android/system/StructStatVfs) | File information returned by [Os.fstatvfs](/reference/android/system/Os#fstatvfs(java.io.FileDescriptor)) and [Os.statvfs](/reference/android/system/Os#statvfs(java.lang.String)). |\n| [StructTimespec](/reference/android/system/StructTimespec) | Corresponds to C's `struct timespec` from `\u003ctime.h\u003e`. |\n| [StructTimeval](/reference/android/system/StructTimeval) | Corresponds to C's `struct timeval` from `sys/time.h`. |\n| [StructUtsname](/reference/android/system/StructUtsname) | Information returned by [Os.uname](/reference/android/system/Os#uname()). |\n| [SystemCleaner](/reference/android/system/SystemCleaner) | Java.lang.ref.Cleaner encourages each library to create a Cleaner, with an associated thread, to process Cleaner Runnables for that library's registered cleaning actions. |\n| [VmSocketAddress](/reference/android/system/VmSocketAddress) | A virtio-vsock address [VmSocketAddress](/reference/android/system/VmSocketAddress). |\n\nExceptions\n----------\n\n|------------------------------------------------------------|----------------------------------------------------------------------------------|\n| [ErrnoException](/reference/android/system/ErrnoException) | A checked exception thrown when [Os](/reference/android/system/Os) methods fail. |\n\n-\n\n Classes\n -------\n\n - [Int64Ref](/reference/android/system/Int64Ref)\n - [Os](/reference/android/system/Os)\n - [OsConstants](/reference/android/system/OsConstants)\n - [StructCmsghdr](/reference/android/system/StructCmsghdr)\n - [StructDlInfo](/reference/android/system/StructDlInfo)\n - [StructMsghdr](/reference/android/system/StructMsghdr)\n - [StructPollfd](/reference/android/system/StructPollfd)\n - [StructStat](/reference/android/system/StructStat)\n - [StructStatVfs](/reference/android/system/StructStatVfs)\n - [StructTimespec](/reference/android/system/StructTimespec)\n - [StructTimeval](/reference/android/system/StructTimeval)\n - [StructUtsname](/reference/android/system/StructUtsname)\n - [SystemCleaner](/reference/android/system/SystemCleaner)\n - [VmSocketAddress](/reference/android/system/VmSocketAddress)\n-\n\n Exceptions\n ----------\n\n - [ErrnoException](/reference/android/system/ErrnoException)"]]