euicc

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: 6 Imported by: 1

Documentation

Overview

Package euicc provides Go bindings for android.telephony.euicc.

Index

Constants

View Source
const (
	Creator                                   = consts.Creator
	EmbeddedSubscriptionResultError           = consts.EmbeddedSubscriptionResultError
	EmbeddedSubscriptionResultOk              = consts.EmbeddedSubscriptionResultOk
	EmbeddedSubscriptionResultResolvableError = consts.EmbeddedSubscriptionResultResolvableError
	ErrorAddressMissing                       = consts.ErrorAddressMissing
	ErrorCarrierLocked                        = consts.ErrorCarrierLocked
	ErrorCertificateError                     = consts.ErrorCertificateError
	ErrorConnectionError                      = consts.ErrorConnectionError
	ErrorDisallowedByPpr                      = consts.ErrorDisallowedByPpr
	ErrorEuiccInsufficientMemory              = consts.ErrorEuiccInsufficientMemory
	ErrorEuiccMissing                         = consts.ErrorEuiccMissing
	ErrorIncompatibleCarrier                  = consts.ErrorIncompatibleCarrier
	ErrorInstallProfile                       = consts.ErrorInstallProfile
	ErrorInvalidActivationCode                = consts.ErrorInvalidActivationCode
	ErrorInvalidConfirmationCode              = consts.ErrorInvalidConfirmationCode
	ErrorInvalidPort                          = consts.ErrorInvalidPort
	ErrorInvalidResponse                      = consts.ErrorInvalidResponse
	ErrorNoProfilesAvailable                  = consts.ErrorNoProfilesAvailable
	ErrorOperationBusy                        = consts.ErrorOperationBusy
	ErrorSimMissing                           = consts.ErrorSimMissing
	ErrorTimeOut                              = consts.ErrorTimeOut
	ErrorUnsupportedVersion                   = consts.ErrorUnsupportedVersion
	OperationApdu                             = consts.OperationApdu
	OperationDownload                         = consts.OperationDownload
	OperationEuiccCard                        = consts.OperationEuiccCard
	OperationEuiccGsma                        = consts.OperationEuiccGsma
	OperationHttp                             = consts.OperationHttp
	OperationMetadata                         = consts.OperationMetadata
	OperationSimSlot                          = consts.OperationSimSlot
	OperationSmdx                             = consts.OperationSmdx
	OperationSmdxSubjectReasonCode            = consts.OperationSmdxSubjectReasonCode
	OperationSwitch                           = consts.OperationSwitch
	OperationSystem                           = consts.OperationSystem
)
View Source
const (
	ActionManageEmbeddedSubscriptions                 = consts.ActionManageEmbeddedSubscriptions
	ActionNotifyCarrierSetupIncomplete                = consts.ActionNotifyCarrierSetupIncomplete
	ActionStartEuiccActivation                        = consts.ActionStartEuiccActivation
	ExtraEmbeddedSubscriptionDetailedCode             = consts.ExtraEmbeddedSubscriptionDetailedCode
	ExtraEmbeddedSubscriptionDownloadableSubscription = consts.ExtraEmbeddedSubscriptionDownloadableSubscription
	ExtraEmbeddedSubscriptionErrorCode                = consts.ExtraEmbeddedSubscriptionErrorCode
	ExtraEmbeddedSubscriptionOperationCode            = consts.ExtraEmbeddedSubscriptionOperationCode
	ExtraEmbeddedSubscriptionSmdxReasonCode           = consts.ExtraEmbeddedSubscriptionSmdxReasonCode
	ExtraEmbeddedSubscriptionSmdxSubjectCode          = consts.ExtraEmbeddedSubscriptionSmdxSubjectCode
	ExtraUseQrScanner                                 = consts.ExtraUseQrScanner
	MetaDataCarrierIcon                               = consts.MetaDataCarrierIcon
)
View Source
const (
	EuiccMemoryFieldUnavailable = consts.EuiccMemoryFieldUnavailable
)

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 DownloadableSubscription

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

DownloadableSubscription wraps android.telephony.euicc.DownloadableSubscription.

func (*DownloadableSubscription) DescribeContents

func (m *DownloadableSubscription) DescribeContents() (int32, error)

DescribeContents calls android.telephony.euicc.DownloadableSubscription.describeContents.

func (*DownloadableSubscription) ForActivationCode

func (m *DownloadableSubscription) ForActivationCode(arg0 string) (*jni.Object, error)

ForActivationCode calls android.telephony.euicc.DownloadableSubscription.forActivationCode.

func (*DownloadableSubscription) GetConfirmationCode

func (m *DownloadableSubscription) GetConfirmationCode() (string, error)

GetConfirmationCode calls android.telephony.euicc.DownloadableSubscription.getConfirmationCode.

func (*DownloadableSubscription) GetEncodedActivationCode

func (m *DownloadableSubscription) GetEncodedActivationCode() (string, error)

GetEncodedActivationCode calls android.telephony.euicc.DownloadableSubscription.getEncodedActivationCode.

func (*DownloadableSubscription) ToString added in v0.0.8

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

ToString calls android.telephony.euicc.DownloadableSubscription.toString.

func (*DownloadableSubscription) WriteToParcel

func (m *DownloadableSubscription) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.euicc.DownloadableSubscription.writeToParcel.

type DownloadableSubscriptionBuilder

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

DownloadableSubscriptionBuilder wraps android.telephony.euicc.DownloadableSubscription$Builder.

func (*DownloadableSubscriptionBuilder) Build

Build calls android.telephony.euicc.DownloadableSubscription$Builder.build.

func (*DownloadableSubscriptionBuilder) SetConfirmationCode

func (m *DownloadableSubscriptionBuilder) SetConfirmationCode(arg0 string) (*jni.Object, error)

SetConfirmationCode calls android.telephony.euicc.DownloadableSubscription$Builder.setConfirmationCode.

func (*DownloadableSubscriptionBuilder) SetEncodedActivationCode

func (m *DownloadableSubscriptionBuilder) SetEncodedActivationCode(arg0 string) (*jni.Object, error)

SetEncodedActivationCode calls android.telephony.euicc.DownloadableSubscription$Builder.setEncodedActivationCode.

func (*DownloadableSubscriptionBuilder) ToString added in v0.0.8

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

ToString calls android.telephony.euicc.DownloadableSubscription$Builder.toString.

type Info

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

Info wraps android.telephony.euicc.EuiccInfo.

func NewInfo

func NewInfo(vm *jni.VM, arg0 string) (*Info, error)

NewInfo creates a new android.telephony.euicc.EuiccInfo instance.

func (*Info) DescribeContents

func (m *Info) DescribeContents() (int32, error)

DescribeContents calls android.telephony.euicc.EuiccInfo.describeContents.

func (*Info) GetOsVersion

func (m *Info) GetOsVersion() (string, error)

GetOsVersion calls android.telephony.euicc.EuiccInfo.getOsVersion.

func (*Info) ToString added in v0.0.8

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

ToString calls android.telephony.euicc.EuiccInfo.toString.

func (*Info) WriteToParcel

func (m *Info) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.euicc.EuiccInfo.writeToParcel.

type Manager

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

Manager wraps android.telephony.euicc.EuiccManager.

func NewManager

func NewManager(ctx *app.Context) (*Manager, error)

NewManager obtains android.telephony.euicc.EuiccManager from the Android system service manager.

func (*Manager) Close

func (m *Manager) Close()

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

func (*Manager) CreateForCardId

func (m *Manager) CreateForCardId(arg0 int32) (*jni.Object, error)

CreateForCardId calls android.telephony.euicc.EuiccManager.createForCardId.

func (*Manager) DeleteSubscription

func (m *Manager) DeleteSubscription(arg0 int32, arg1 *jni.Object) error

DeleteSubscription calls android.telephony.euicc.EuiccManager.deleteSubscription.

func (*Manager) DownloadSubscription

func (m *Manager) DownloadSubscription(
	arg0 *jni.Object,
	arg1 bool,
	arg2 *jni.Object,
) error

DownloadSubscription calls android.telephony.euicc.EuiccManager.downloadSubscription.

func (*Manager) GetAvailableMemoryInBytes

func (m *Manager) GetAvailableMemoryInBytes() (int64, error)

GetAvailableMemoryInBytes calls android.telephony.euicc.EuiccManager.getAvailableMemoryInBytes.

func (*Manager) GetEid

func (m *Manager) GetEid() (string, error)

GetEid calls android.telephony.euicc.EuiccManager.getEid.

func (*Manager) GetEuiccInfo

func (m *Manager) GetEuiccInfo() (*jni.Object, error)

GetEuiccInfo calls android.telephony.euicc.EuiccManager.getEuiccInfo.

func (*Manager) IsEnabled

func (m *Manager) IsEnabled() (bool, error)

IsEnabled calls android.telephony.euicc.EuiccManager.isEnabled.

func (*Manager) IsSimPortAvailable

func (m *Manager) IsSimPortAvailable(arg0 int32) (bool, error)

IsSimPortAvailable calls android.telephony.euicc.EuiccManager.isSimPortAvailable.

func (*Manager) StartResolutionActivity

func (m *Manager) StartResolutionActivity(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
	arg3 *jni.Object,
) error

StartResolutionActivity calls android.telephony.euicc.EuiccManager.startResolutionActivity.

func (*Manager) SwitchToSubscription2

func (m *Manager) SwitchToSubscription2(arg0 int32, arg1 *jni.Object) error

SwitchToSubscription2 calls android.telephony.euicc.EuiccManager.switchToSubscription.

func (*Manager) SwitchToSubscription3_1

func (m *Manager) SwitchToSubscription3_1(
	arg0 int32,
	arg1 int32,
	arg2 *jni.Object,
) error

SwitchToSubscription3_1 calls android.telephony.euicc.EuiccManager.switchToSubscription.

func (*Manager) ToString added in v0.0.8

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

ToString calls android.telephony.euicc.EuiccManager.toString.

func (*Manager) UpdateSubscriptionNickname

func (m *Manager) UpdateSubscriptionNickname(
	arg0 int32,
	arg1 string,
	arg2 *jni.Object,
) error

UpdateSubscriptionNickname calls android.telephony.euicc.EuiccManager.updateSubscriptionNickname.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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