Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# android.os.strictmode

*** ** * ** ***

## Classes

|---|---|
| [CleartextNetworkViolation](https://developer.android.com/reference/android/os/strictmode/CleartextNetworkViolation) |   |
| [ContentUriWithoutPermissionViolation](https://developer.android.com/reference/android/os/strictmode/ContentUriWithoutPermissionViolation) |   |
| [CredentialProtectedWhileLockedViolation](https://developer.android.com/reference/android/os/strictmode/CredentialProtectedWhileLockedViolation) | Subclass of `Violation` that is used when a process accesses filesystem paths stored in credential protected storage areas while the user is locked. |
| [CustomViolation](https://developer.android.com/reference/android/os/strictmode/CustomViolation) |   |
| [DiskReadViolation](https://developer.android.com/reference/android/os/strictmode/DiskReadViolation) |   |
| [DiskWriteViolation](https://developer.android.com/reference/android/os/strictmode/DiskWriteViolation) |   |
| [ExplicitGcViolation](https://developer.android.com/reference/android/os/strictmode/ExplicitGcViolation) | See #`https://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder#detectExplicitGc()`. |
| [FileUriExposedViolation](https://developer.android.com/reference/android/os/strictmode/FileUriExposedViolation) |   |
| [ImplicitDirectBootViolation](https://developer.android.com/reference/android/os/strictmode/ImplicitDirectBootViolation) | Subclass of `Violation` that is used when a process implicitly relies on automatic Direct Boot filtering. |
| [IncorrectContextUseViolation](https://developer.android.com/reference/android/os/strictmode/IncorrectContextUseViolation) | Incorrect usage of `https://developer.android.com/reference/android/content/Context`, such as obtaining a UI service from non-UI `https://developer.android.com/reference/android/content/Context` instance. |
| [InstanceCountViolation](https://developer.android.com/reference/android/os/strictmode/InstanceCountViolation) |   |
| [IntentReceiverLeakedViolation](https://developer.android.com/reference/android/os/strictmode/IntentReceiverLeakedViolation) |   |
| [LeakedClosableViolation](https://developer.android.com/reference/android/os/strictmode/LeakedClosableViolation) |   |
| [NetworkViolation](https://developer.android.com/reference/android/os/strictmode/NetworkViolation) |   |
| [NonSdkApiUsedViolation](https://developer.android.com/reference/android/os/strictmode/NonSdkApiUsedViolation) | Subclass of `Violation` that is used when a process accesses a non SDK API. |
| [ResourceMismatchViolation](https://developer.android.com/reference/android/os/strictmode/ResourceMismatchViolation) |   |
| [ServiceConnectionLeakedViolation](https://developer.android.com/reference/android/os/strictmode/ServiceConnectionLeakedViolation) |   |
| [SqliteObjectLeakedViolation](https://developer.android.com/reference/android/os/strictmode/SqliteObjectLeakedViolation) |   |
| [UnbufferedIoViolation](https://developer.android.com/reference/android/os/strictmode/UnbufferedIoViolation) | See #`https://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder#detectUnbufferedIo()` |
| [UnsafeIntentLaunchViolation](https://developer.android.com/reference/android/os/strictmode/UnsafeIntentLaunchViolation) | Violation raised when your app launches an `https://developer.android.com/reference/android/content/Intent` which originated from outside your app. |
| [UntaggedSocketViolation](https://developer.android.com/reference/android/os/strictmode/UntaggedSocketViolation) |   |
| [Violation](https://developer.android.com/reference/android/os/strictmode/Violation) | Root class for all StrictMode violations. |
| [WebViewMethodCalledOnWrongThreadViolation](https://developer.android.com/reference/android/os/strictmode/WebViewMethodCalledOnWrongThreadViolation) |   |

-

  ## Classes

  - [CleartextNetworkViolation](https://developer.android.com/reference/android/os/strictmode/CleartextNetworkViolation)
  - [ContentUriWithoutPermissionViolation](https://developer.android.com/reference/android/os/strictmode/ContentUriWithoutPermissionViolation)
  - [CredentialProtectedWhileLockedViolation](https://developer.android.com/reference/android/os/strictmode/CredentialProtectedWhileLockedViolation)
  - [CustomViolation](https://developer.android.com/reference/android/os/strictmode/CustomViolation)
  - [DiskReadViolation](https://developer.android.com/reference/android/os/strictmode/DiskReadViolation)
  - [DiskWriteViolation](https://developer.android.com/reference/android/os/strictmode/DiskWriteViolation)
  - [ExplicitGcViolation](https://developer.android.com/reference/android/os/strictmode/ExplicitGcViolation)
  - [FileUriExposedViolation](https://developer.android.com/reference/android/os/strictmode/FileUriExposedViolation)
  - [ImplicitDirectBootViolation](https://developer.android.com/reference/android/os/strictmode/ImplicitDirectBootViolation)
  - [IncorrectContextUseViolation](https://developer.android.com/reference/android/os/strictmode/IncorrectContextUseViolation)
  - [InstanceCountViolation](https://developer.android.com/reference/android/os/strictmode/InstanceCountViolation)
  - [IntentReceiverLeakedViolation](https://developer.android.com/reference/android/os/strictmode/IntentReceiverLeakedViolation)
  - [LeakedClosableViolation](https://developer.android.com/reference/android/os/strictmode/LeakedClosableViolation)
  - [NetworkViolation](https://developer.android.com/reference/android/os/strictmode/NetworkViolation)
  - [NonSdkApiUsedViolation](https://developer.android.com/reference/android/os/strictmode/NonSdkApiUsedViolation)
  - [ResourceMismatchViolation](https://developer.android.com/reference/android/os/strictmode/ResourceMismatchViolation)
  - [ServiceConnectionLeakedViolation](https://developer.android.com/reference/android/os/strictmode/ServiceConnectionLeakedViolation)
  - [SqliteObjectLeakedViolation](https://developer.android.com/reference/android/os/strictmode/SqliteObjectLeakedViolation)
  - [UnbufferedIoViolation](https://developer.android.com/reference/android/os/strictmode/UnbufferedIoViolation)
  - [UnsafeIntentLaunchViolation](https://developer.android.com/reference/android/os/strictmode/UnsafeIntentLaunchViolation)
  - [UntaggedSocketViolation](https://developer.android.com/reference/android/os/strictmode/UntaggedSocketViolation)
  - [Violation](https://developer.android.com/reference/android/os/strictmode/Violation)
  - [WebViewMethodCalledOnWrongThreadViolation](https://developer.android.com/reference/android/os/strictmode/WebViewMethodCalledOnWrongThreadViolation)