oemlock

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIOemLockServiceGetLockName                  = binder.FirstCallTransaction + 0
	TransactionIOemLockServiceSetOemUnlockAllowedByCarrier = binder.FirstCallTransaction + 1
	TransactionIOemLockServiceIsOemUnlockAllowedByCarrier  = binder.FirstCallTransaction + 2
	TransactionIOemLockServiceSetOemUnlockAllowedByUser    = binder.FirstCallTransaction + 3
	TransactionIOemLockServiceIsOemUnlockAllowedByUser     = binder.FirstCallTransaction + 4
	TransactionIOemLockServiceIsOemUnlockAllowed           = binder.FirstCallTransaction + 5
	TransactionIOemLockServiceIsDeviceOemUnlocked          = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodIOemLockServiceGetLockName                  = "getLockName"
	MethodIOemLockServiceSetOemUnlockAllowedByCarrier = "setOemUnlockAllowedByCarrier"
	MethodIOemLockServiceIsOemUnlockAllowedByCarrier  = "isOemUnlockAllowedByCarrier"
	MethodIOemLockServiceSetOemUnlockAllowedByUser    = "setOemUnlockAllowedByUser"
	MethodIOemLockServiceIsOemUnlockAllowedByUser     = "isOemUnlockAllowedByUser"
	MethodIOemLockServiceIsOemUnlockAllowed           = "isOemUnlockAllowed"
	MethodIOemLockServiceIsDeviceOemUnlocked          = "isDeviceOemUnlocked"
)
View Source
const DescriptorIOemLockService = "android.service.oemlock.IOemLockService"

Variables

This section is empty.

Functions

This section is empty.

Types

type IOemLockService

type IOemLockService interface {
	AsBinder() binder.IBinder
	GetLockName(ctx context.Context) (string, error)
	SetOemUnlockAllowedByCarrier(ctx context.Context, allowed bool, signature []byte) error
	IsOemUnlockAllowedByCarrier(ctx context.Context) (bool, error)
	SetOemUnlockAllowedByUser(ctx context.Context, allowed bool) error
	IsOemUnlockAllowedByUser(ctx context.Context) (bool, error)
	IsOemUnlockAllowed(ctx context.Context) (bool, error)
	IsDeviceOemUnlocked(ctx context.Context) (bool, error)
}

func NewOemLockServiceStub

func NewOemLockServiceStub(
	impl IOemLockServiceServer,
) IOemLockService

NewOemLockServiceStub creates a server-side IOemLockService wrapping the given server implementation. The returned value satisfies IOemLockService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IOemLockServiceServer

type IOemLockServiceServer interface {
	GetLockName(ctx context.Context) (string, error)
	SetOemUnlockAllowedByCarrier(ctx context.Context, allowed bool, signature []byte) error
	IsOemUnlockAllowedByCarrier(ctx context.Context) (bool, error)
	SetOemUnlockAllowedByUser(ctx context.Context, allowed bool) error
	IsOemUnlockAllowedByUser(ctx context.Context) (bool, error)
	IsOemUnlockAllowed(ctx context.Context) (bool, error)
	IsDeviceOemUnlocked(ctx context.Context) (bool, error)
}

IOemLockServiceServer is the server-side interface that user implementations provide to NewOemLockServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type OemLockServiceProxy

type OemLockServiceProxy struct {
	Remote binder.IBinder
}

func GetOemLockService

func GetOemLockService(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*OemLockServiceProxy, error)

GetOemLockService retrieves the OemLockService service and returns a typed proxy.

func NewOemLockServiceProxy

func NewOemLockServiceProxy(
	remote binder.IBinder,
) *OemLockServiceProxy

func (*OemLockServiceProxy) AsBinder

func (p *OemLockServiceProxy) AsBinder() binder.IBinder

func (*OemLockServiceProxy) GetLockName

func (p *OemLockServiceProxy) GetLockName(
	ctx context.Context,
) (string, error)

func (*OemLockServiceProxy) IsDeviceOemUnlocked

func (p *OemLockServiceProxy) IsDeviceOemUnlocked(
	ctx context.Context,
) (bool, error)

func (*OemLockServiceProxy) IsOemUnlockAllowed

func (p *OemLockServiceProxy) IsOemUnlockAllowed(
	ctx context.Context,
) (bool, error)

func (*OemLockServiceProxy) IsOemUnlockAllowedByCarrier

func (p *OemLockServiceProxy) IsOemUnlockAllowedByCarrier(
	ctx context.Context,
) (bool, error)

func (*OemLockServiceProxy) IsOemUnlockAllowedByUser

func (p *OemLockServiceProxy) IsOemUnlockAllowedByUser(
	ctx context.Context,
) (bool, error)

func (*OemLockServiceProxy) SetOemUnlockAllowedByCarrier

func (p *OemLockServiceProxy) SetOemUnlockAllowedByCarrier(
	ctx context.Context,
	allowed bool,
	signature []byte,
) error

func (*OemLockServiceProxy) SetOemUnlockAllowedByUser

func (p *OemLockServiceProxy) SetOemUnlockAllowedByUser(
	ctx context.Context,
	allowed bool,
) error

type OemLockServiceStub

type OemLockServiceStub struct {
	Impl      IOemLockService
	Transport binder.VersionAwareTransport
}

OemLockServiceStub dispatches incoming binder transactions to a typed IOemLockService implementation.

func (*OemLockServiceStub) Descriptor

func (s *OemLockServiceStub) Descriptor() string

func (*OemLockServiceStub) OnTransaction

func (s *OemLockServiceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

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