omapi

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Overview

Package omapi provides Go bindings for android.se.omapi.

Index

Constants

View Source
const (
	ActionSecureElementStateChanged = consts.ActionSecureElementStateChanged
	ExtraReaderName                 = consts.ExtraReaderName
	ExtraReaderState                = consts.ExtraReaderState
)

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 Channel added in v0.0.4

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

Channel wraps android.se.omapi.Channel.

func (*Channel) Close added in v0.0.4

func (m *Channel) Close() error

Close calls android.se.omapi.Channel.close.

func (*Channel) GetSelectResponse added in v0.0.4

func (m *Channel) GetSelectResponse() (*jni.Object, error)

GetSelectResponse calls android.se.omapi.Channel.getSelectResponse.

func (*Channel) GetSession added in v0.0.4

func (m *Channel) GetSession() (*jni.Object, error)

GetSession calls android.se.omapi.Channel.getSession.

func (*Channel) IsBasicChannel added in v0.0.4

func (m *Channel) IsBasicChannel() (bool, error)

IsBasicChannel calls android.se.omapi.Channel.isBasicChannel.

func (*Channel) IsOpen added in v0.0.4

func (m *Channel) IsOpen() (bool, error)

IsOpen calls android.se.omapi.Channel.isOpen.

func (*Channel) SelectNext added in v0.0.4

func (m *Channel) SelectNext() (bool, error)

SelectNext calls android.se.omapi.Channel.selectNext.

func (*Channel) Transmit added in v0.0.4

func (m *Channel) Transmit(arg0 *jni.Object) (*jni.Object, error)

Transmit calls android.se.omapi.Channel.transmit.

type Reader added in v0.0.4

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

Reader wraps android.se.omapi.Reader.

func (*Reader) CloseSessions added in v0.0.4

func (m *Reader) CloseSessions() error

CloseSessions calls android.se.omapi.Reader.closeSessions.

func (*Reader) GetName added in v0.0.4

func (m *Reader) GetName() (string, error)

GetName calls android.se.omapi.Reader.getName.

func (*Reader) GetSEService added in v0.0.4

func (m *Reader) GetSEService() (*jni.Object, error)

GetSEService calls android.se.omapi.Reader.getSEService.

func (*Reader) IsSecureElementPresent added in v0.0.4

func (m *Reader) IsSecureElementPresent() (bool, error)

IsSecureElementPresent calls android.se.omapi.Reader.isSecureElementPresent.

func (*Reader) OpenSession added in v0.0.4

func (m *Reader) OpenSession() (*jni.Object, error)

OpenSession calls android.se.omapi.Reader.openSession.

type SEService added in v0.0.4

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

SEService wraps android.se.omapi.SEService.

func NewService added in v0.0.4

func NewService(vm *jni.VM) (*SEService, error)

NewService creates a new SEService instance via its no-arg constructor. The SEService(Context, Executor, OnConnectedListener) constructor is required on newer APIs; this uses a simplified no-arg path available in app_process context.

func (*SEService) Close added in v0.0.4

func (m *SEService) Close()

Close releases the global reference to the underlying Java object.

func (*SEService) GetReaders added in v0.0.4

func (m *SEService) GetReaders() (*jni.Object, error)

GetReaders calls android.se.omapi.SEService.getReaders.

func (*SEService) GetUiccReader added in v0.0.4

func (m *SEService) GetUiccReader(arg0 int32) (*jni.Object, error)

GetUiccReader calls android.se.omapi.SEService.getUiccReader.

func (*SEService) GetVersion added in v0.0.4

func (m *SEService) GetVersion() (string, error)

GetVersion calls android.se.omapi.SEService.getVersion.

func (*SEService) IsConnected added in v0.0.4

func (m *SEService) IsConnected() (bool, error)

IsConnected calls android.se.omapi.SEService.isConnected.

func (*SEService) Shutdown added in v0.0.4

func (m *SEService) Shutdown() error

Shutdown calls android.se.omapi.SEService.shutdown.

type Session added in v0.0.4

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

Session wraps android.se.omapi.Session.

func (*Session) Close added in v0.0.4

func (m *Session) Close() error

Close calls android.se.omapi.Session.close.

func (*Session) CloseChannels added in v0.0.4

func (m *Session) CloseChannels() error

CloseChannels calls android.se.omapi.Session.closeChannels.

func (*Session) GetATR added in v0.0.4

func (m *Session) GetATR() (*jni.Object, error)

GetATR calls android.se.omapi.Session.getATR.

func (*Session) GetReader added in v0.0.4

func (m *Session) GetReader() (*jni.Object, error)

GetReader calls android.se.omapi.Session.getReader.

func (*Session) IsClosed added in v0.0.4

func (m *Session) IsClosed() (bool, error)

IsClosed calls android.se.omapi.Session.isClosed.

func (*Session) OpenBasicChannel1 added in v0.0.4

func (m *Session) OpenBasicChannel1(arg0 *jni.Object) (*jni.Object, error)

OpenBasicChannel1 calls android.se.omapi.Session.openBasicChannel.

func (*Session) OpenBasicChannel2_1 added in v0.0.4

func (m *Session) OpenBasicChannel2_1(arg0 *jni.Object, arg1 int8) (*jni.Object, error)

OpenBasicChannel2_1 calls android.se.omapi.Session.openBasicChannel.

func (*Session) OpenLogicalChannel1 added in v0.0.4

func (m *Session) OpenLogicalChannel1(arg0 *jni.Object) (*jni.Object, error)

OpenLogicalChannel1 calls android.se.omapi.Session.openLogicalChannel.

func (*Session) OpenLogicalChannel2_1 added in v0.0.4

func (m *Session) OpenLogicalChannel2_1(arg0 *jni.Object, arg1 int8) (*jni.Object, error)

OpenLogicalChannel2_1 calls android.se.omapi.Session.openLogicalChannel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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