strictmode

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package strictmode provides Go bindings for android.os.strictmode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type CleartextNetworkViolation added in v0.0.8

type CleartextNetworkViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CleartextNetworkViolation wraps android.os.strictmode.CleartextNetworkViolation.

func (*CleartextNetworkViolation) ToString added in v0.0.8

func (m *CleartextNetworkViolation) ToString() (string, error)

ToString calls android.os.strictmode.CleartextNetworkViolation.toString.

type ContentUriWithoutPermissionViolation added in v0.0.8

type ContentUriWithoutPermissionViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ContentUriWithoutPermissionViolation wraps android.os.strictmode.ContentUriWithoutPermissionViolation.

func (*ContentUriWithoutPermissionViolation) ToString added in v0.0.8

ToString calls android.os.strictmode.ContentUriWithoutPermissionViolation.toString.

type CredentialProtectedWhileLockedViolation added in v0.0.8

type CredentialProtectedWhileLockedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CredentialProtectedWhileLockedViolation wraps android.os.strictmode.CredentialProtectedWhileLockedViolation.

func (*CredentialProtectedWhileLockedViolation) ToString added in v0.0.8

ToString calls android.os.strictmode.CredentialProtectedWhileLockedViolation.toString.

type CustomViolation added in v0.0.8

type CustomViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CustomViolation wraps android.os.strictmode.CustomViolation.

func (*CustomViolation) ToString added in v0.0.8

func (m *CustomViolation) ToString() (string, error)

ToString calls android.os.strictmode.CustomViolation.toString.

type DiskReadViolation added in v0.0.8

type DiskReadViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DiskReadViolation wraps android.os.strictmode.DiskReadViolation.

func (*DiskReadViolation) ToString added in v0.0.8

func (m *DiskReadViolation) ToString() (string, error)

ToString calls android.os.strictmode.DiskReadViolation.toString.

type DiskWriteViolation added in v0.0.8

type DiskWriteViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DiskWriteViolation wraps android.os.strictmode.DiskWriteViolation.

func (*DiskWriteViolation) ToString added in v0.0.8

func (m *DiskWriteViolation) ToString() (string, error)

ToString calls android.os.strictmode.DiskWriteViolation.toString.

type ExplicitGcViolation added in v0.0.8

type ExplicitGcViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ExplicitGcViolation wraps android.os.strictmode.ExplicitGcViolation.

func (*ExplicitGcViolation) ToString added in v0.0.8

func (m *ExplicitGcViolation) ToString() (string, error)

ToString calls android.os.strictmode.ExplicitGcViolation.toString.

type FileUriExposedViolation added in v0.0.8

type FileUriExposedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

FileUriExposedViolation wraps android.os.strictmode.FileUriExposedViolation.

func (*FileUriExposedViolation) ToString added in v0.0.8

func (m *FileUriExposedViolation) ToString() (string, error)

ToString calls android.os.strictmode.FileUriExposedViolation.toString.

type ImplicitDirectBootViolation added in v0.0.8

type ImplicitDirectBootViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ImplicitDirectBootViolation wraps android.os.strictmode.ImplicitDirectBootViolation.

func (*ImplicitDirectBootViolation) ToString added in v0.0.8

func (m *ImplicitDirectBootViolation) ToString() (string, error)

ToString calls android.os.strictmode.ImplicitDirectBootViolation.toString.

type IncorrectContextUseViolation

type IncorrectContextUseViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IncorrectContextUseViolation wraps android.os.strictmode.IncorrectContextUseViolation.

func NewIncorrectContextUseViolation

func NewIncorrectContextUseViolation(vm *jni.VM, arg0 string, arg1 *jni.Object) (*IncorrectContextUseViolation, error)

NewIncorrectContextUseViolation creates a new android.os.strictmode.IncorrectContextUseViolation instance.

func (*IncorrectContextUseViolation) ToString added in v0.0.8

func (m *IncorrectContextUseViolation) ToString() (string, error)

ToString calls android.os.strictmode.IncorrectContextUseViolation.toString.

type InstanceCountViolation

type InstanceCountViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

InstanceCountViolation wraps android.os.strictmode.InstanceCountViolation.

func (*InstanceCountViolation) GetNumberOfInstances

func (m *InstanceCountViolation) GetNumberOfInstances() (int64, error)

GetNumberOfInstances calls android.os.strictmode.InstanceCountViolation.getNumberOfInstances.

func (*InstanceCountViolation) ToString added in v0.0.8

func (m *InstanceCountViolation) ToString() (string, error)

ToString calls android.os.strictmode.InstanceCountViolation.toString.

type IntentReceiverLeakedViolation added in v0.0.8

type IntentReceiverLeakedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IntentReceiverLeakedViolation wraps android.os.strictmode.IntentReceiverLeakedViolation.

func (*IntentReceiverLeakedViolation) ToString added in v0.0.8

func (m *IntentReceiverLeakedViolation) ToString() (string, error)

ToString calls android.os.strictmode.IntentReceiverLeakedViolation.toString.

type LeakedClosableViolation added in v0.0.8

type LeakedClosableViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LeakedClosableViolation wraps android.os.strictmode.LeakedClosableViolation.

func (*LeakedClosableViolation) ToString added in v0.0.8

func (m *LeakedClosableViolation) ToString() (string, error)

ToString calls android.os.strictmode.LeakedClosableViolation.toString.

type NetworkViolation added in v0.0.8

type NetworkViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

NetworkViolation wraps android.os.strictmode.NetworkViolation.

func (*NetworkViolation) ToString added in v0.0.8

func (m *NetworkViolation) ToString() (string, error)

ToString calls android.os.strictmode.NetworkViolation.toString.

type NonSdkApiUsedViolation added in v0.0.8

type NonSdkApiUsedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

NonSdkApiUsedViolation wraps android.os.strictmode.NonSdkApiUsedViolation.

func (*NonSdkApiUsedViolation) ToString added in v0.0.8

func (m *NonSdkApiUsedViolation) ToString() (string, error)

ToString calls android.os.strictmode.NonSdkApiUsedViolation.toString.

type ResourceMismatchViolation added in v0.0.8

type ResourceMismatchViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ResourceMismatchViolation wraps android.os.strictmode.ResourceMismatchViolation.

func (*ResourceMismatchViolation) ToString added in v0.0.8

func (m *ResourceMismatchViolation) ToString() (string, error)

ToString calls android.os.strictmode.ResourceMismatchViolation.toString.

type ServiceConnectionLeakedViolation added in v0.0.8

type ServiceConnectionLeakedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ServiceConnectionLeakedViolation wraps android.os.strictmode.ServiceConnectionLeakedViolation.

func (*ServiceConnectionLeakedViolation) ToString added in v0.0.8

ToString calls android.os.strictmode.ServiceConnectionLeakedViolation.toString.

type SqliteObjectLeakedViolation added in v0.0.8

type SqliteObjectLeakedViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SqliteObjectLeakedViolation wraps android.os.strictmode.SqliteObjectLeakedViolation.

func (*SqliteObjectLeakedViolation) ToString added in v0.0.8

func (m *SqliteObjectLeakedViolation) ToString() (string, error)

ToString calls android.os.strictmode.SqliteObjectLeakedViolation.toString.

type UnbufferedIoViolation added in v0.0.8

type UnbufferedIoViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

UnbufferedIoViolation wraps android.os.strictmode.UnbufferedIoViolation.

func (*UnbufferedIoViolation) ToString added in v0.0.8

func (m *UnbufferedIoViolation) ToString() (string, error)

ToString calls android.os.strictmode.UnbufferedIoViolation.toString.

type UnsafeIntentLaunchViolation

type UnsafeIntentLaunchViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

UnsafeIntentLaunchViolation wraps android.os.strictmode.UnsafeIntentLaunchViolation.

func NewUnsafeIntentLaunchViolation

func NewUnsafeIntentLaunchViolation(vm *jni.VM, arg0 *jni.Object) (*UnsafeIntentLaunchViolation, error)

NewUnsafeIntentLaunchViolation creates a new android.os.strictmode.UnsafeIntentLaunchViolation instance.

func (*UnsafeIntentLaunchViolation) GetIntent

func (m *UnsafeIntentLaunchViolation) GetIntent() (*jni.Object, error)

GetIntent calls android.os.strictmode.UnsafeIntentLaunchViolation.getIntent.

func (*UnsafeIntentLaunchViolation) ToString added in v0.0.8

func (m *UnsafeIntentLaunchViolation) ToString() (string, error)

ToString calls android.os.strictmode.UnsafeIntentLaunchViolation.toString.

type UntaggedSocketViolation added in v0.0.8

type UntaggedSocketViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

UntaggedSocketViolation wraps android.os.strictmode.UntaggedSocketViolation.

func (*UntaggedSocketViolation) ToString added in v0.0.8

func (m *UntaggedSocketViolation) ToString() (string, error)

ToString calls android.os.strictmode.UntaggedSocketViolation.toString.

type Violation

type Violation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Violation wraps android.os.strictmode.Violation.

func (*Violation) HashCode

func (m *Violation) HashCode() (int32, error)

HashCode calls android.os.strictmode.Violation.hashCode.

func (*Violation) SetStackTrace

func (m *Violation) SetStackTrace(arg0 *jni.Object) error

SetStackTrace calls android.os.strictmode.Violation.setStackTrace.

func (*Violation) ToString added in v0.0.8

func (m *Violation) ToString() (string, error)

ToString calls android.os.strictmode.Violation.toString.

type WebViewMethodCalledOnWrongThreadViolation added in v0.0.8

type WebViewMethodCalledOnWrongThreadViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

WebViewMethodCalledOnWrongThreadViolation wraps android.os.strictmode.WebViewMethodCalledOnWrongThreadViolation.

func (*WebViewMethodCalledOnWrongThreadViolation) ToString added in v0.0.8

ToString calls android.os.strictmode.WebViewMethodCalledOnWrongThreadViolation.toString.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL