persistentdata

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package persistentdata provides Go bindings for android.service.persistentdata.

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 PersistentDataBlockManager

type PersistentDataBlockManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

PersistentDataBlockManager wraps android.service.persistentdata.PersistentDataBlockManager.

func NewPersistentDataBlockManager

func NewPersistentDataBlockManager(ctx *app.Context) (*PersistentDataBlockManager, error)

NewPersistentDataBlockManager obtains android.service.persistentdata.PersistentDataBlockManager from the Android system service manager.

func (*PersistentDataBlockManager) Close

func (m *PersistentDataBlockManager) Close()

Close releases the global reference to the underlying Java object. After Close, the PersistentDataBlockManager must not be used.

func (*PersistentDataBlockManager) IsFactoryResetProtectionActive

func (m *PersistentDataBlockManager) IsFactoryResetProtectionActive() (bool, error)

IsFactoryResetProtectionActive calls android.service.persistentdata.PersistentDataBlockManager.isFactoryResetProtectionActive.

Jump to

Keyboard shortcuts

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