image

package
v0.0.6 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 (
	TransactionIDynamicSystemServiceStartInstallation       = binder.FirstCallTransaction + 0
	TransactionIDynamicSystemServiceCreatePartition         = binder.FirstCallTransaction + 1
	TransactionIDynamicSystemServiceClosePartition          = binder.FirstCallTransaction + 2
	TransactionIDynamicSystemServiceFinishInstallation      = binder.FirstCallTransaction + 3
	TransactionIDynamicSystemServiceGetInstallationProgress = binder.FirstCallTransaction + 4
	TransactionIDynamicSystemServiceAbort                   = binder.FirstCallTransaction + 5
	TransactionIDynamicSystemServiceIsInUse                 = binder.FirstCallTransaction + 6
	TransactionIDynamicSystemServiceIsInstalled             = binder.FirstCallTransaction + 7
	TransactionIDynamicSystemServiceIsEnabled               = binder.FirstCallTransaction + 8
	TransactionIDynamicSystemServiceRemove                  = binder.FirstCallTransaction + 9
	TransactionIDynamicSystemServiceSetEnable               = binder.FirstCallTransaction + 10
	TransactionIDynamicSystemServiceSetAshmem               = binder.FirstCallTransaction + 11
	TransactionIDynamicSystemServiceSubmitFromAshmem        = binder.FirstCallTransaction + 12
	TransactionIDynamicSystemServiceGetAvbPublicKey         = binder.FirstCallTransaction + 13
	TransactionIDynamicSystemServiceSuggestScratchSize      = binder.FirstCallTransaction + 14
	TransactionIDynamicSystemServiceGetActiveDsuSlot        = binder.FirstCallTransaction + 15
)
View Source
const (
	MethodIDynamicSystemServiceStartInstallation       = "startInstallation"
	MethodIDynamicSystemServiceCreatePartition         = "createPartition"
	MethodIDynamicSystemServiceClosePartition          = "closePartition"
	MethodIDynamicSystemServiceFinishInstallation      = "finishInstallation"
	MethodIDynamicSystemServiceGetInstallationProgress = "getInstallationProgress"
	MethodIDynamicSystemServiceAbort                   = "abort"
	MethodIDynamicSystemServiceIsInUse                 = "isInUse"
	MethodIDynamicSystemServiceIsInstalled             = "isInstalled"
	MethodIDynamicSystemServiceIsEnabled               = "isEnabled"
	MethodIDynamicSystemServiceRemove                  = "remove"
	MethodIDynamicSystemServiceSetEnable               = "setEnable"
	MethodIDynamicSystemServiceSetAshmem               = "setAshmem"
	MethodIDynamicSystemServiceSubmitFromAshmem        = "submitFromAshmem"
	MethodIDynamicSystemServiceGetAvbPublicKey         = "getAvbPublicKey"
	MethodIDynamicSystemServiceSuggestScratchSize      = "suggestScratchSize"
	MethodIDynamicSystemServiceGetActiveDsuSlot        = "getActiveDsuSlot"
)
View Source
const DescriptorIDynamicSystemService = "android.os.image.IDynamicSystemService"

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicSystemServiceProxy

type DynamicSystemServiceProxy struct {
	Remote binder.IBinder
}

func GetDynamicSystemService

func GetDynamicSystemService(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*DynamicSystemServiceProxy, error)

GetDynamicSystemService retrieves the DynamicSystemService service and returns a typed proxy.

func NewDynamicSystemServiceProxy

func NewDynamicSystemServiceProxy(
	remote binder.IBinder,
) *DynamicSystemServiceProxy

func (*DynamicSystemServiceProxy) Abort

func (p *DynamicSystemServiceProxy) Abort(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) AsBinder

func (*DynamicSystemServiceProxy) ClosePartition

func (p *DynamicSystemServiceProxy) ClosePartition(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) CreatePartition

func (p *DynamicSystemServiceProxy) CreatePartition(
	ctx context.Context,
	name string,
	size int64,
	readOnly bool,
) (int32, error)

func (*DynamicSystemServiceProxy) FinishInstallation

func (p *DynamicSystemServiceProxy) FinishInstallation(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) GetActiveDsuSlot

func (p *DynamicSystemServiceProxy) GetActiveDsuSlot(
	ctx context.Context,
) (string, error)

func (*DynamicSystemServiceProxy) GetAvbPublicKey

func (p *DynamicSystemServiceProxy) GetAvbPublicKey(
	ctx context.Context,
	dst any,
) (bool, error)

func (*DynamicSystemServiceProxy) GetInstallationProgress

func (p *DynamicSystemServiceProxy) GetInstallationProgress(
	ctx context.Context,
) (any, error)

func (*DynamicSystemServiceProxy) IsEnabled

func (p *DynamicSystemServiceProxy) IsEnabled(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) IsInUse

func (p *DynamicSystemServiceProxy) IsInUse(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) IsInstalled

func (p *DynamicSystemServiceProxy) IsInstalled(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) Remove

func (p *DynamicSystemServiceProxy) Remove(
	ctx context.Context,
) (bool, error)

func (*DynamicSystemServiceProxy) SetAshmem

func (p *DynamicSystemServiceProxy) SetAshmem(
	ctx context.Context,
	fd int32,
	size int64,
) (bool, error)

func (*DynamicSystemServiceProxy) SetEnable

func (p *DynamicSystemServiceProxy) SetEnable(
	ctx context.Context,
	enable bool,
	oneShot bool,
) (bool, error)

func (*DynamicSystemServiceProxy) StartInstallation

func (p *DynamicSystemServiceProxy) StartInstallation(
	ctx context.Context,
	dsuSlot string,
) (bool, error)

func (*DynamicSystemServiceProxy) SubmitFromAshmem

func (p *DynamicSystemServiceProxy) SubmitFromAshmem(
	ctx context.Context,
	bytes int64,
) (bool, error)

func (*DynamicSystemServiceProxy) SuggestScratchSize

func (p *DynamicSystemServiceProxy) SuggestScratchSize(
	ctx context.Context,
) (int64, error)

type DynamicSystemServiceStub

type DynamicSystemServiceStub struct {
	Impl      IDynamicSystemService
	Transport binder.VersionAwareTransport
}

DynamicSystemServiceStub dispatches incoming binder transactions to a typed IDynamicSystemService implementation.

func (*DynamicSystemServiceStub) Descriptor

func (s *DynamicSystemServiceStub) Descriptor() string

func (*DynamicSystemServiceStub) OnTransaction

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

type IDynamicSystemService

type IDynamicSystemService interface {
	AsBinder() binder.IBinder
	StartInstallation(ctx context.Context, dsuSlot string) (bool, error)
	CreatePartition(ctx context.Context, name string, size int64, readOnly bool) (int32, error)
	ClosePartition(ctx context.Context) (bool, error)
	FinishInstallation(ctx context.Context) (bool, error)
	GetInstallationProgress(ctx context.Context) (any, error)
	Abort(ctx context.Context) (bool, error)
	IsInUse(ctx context.Context) (bool, error)
	IsInstalled(ctx context.Context) (bool, error)
	IsEnabled(ctx context.Context) (bool, error)
	Remove(ctx context.Context) (bool, error)
	SetEnable(ctx context.Context, enable bool, oneShot bool) (bool, error)
	SetAshmem(ctx context.Context, fd int32, size int64) (bool, error)
	SubmitFromAshmem(ctx context.Context, bytes int64) (bool, error)
	GetAvbPublicKey(ctx context.Context, dst any) (bool, error)
	SuggestScratchSize(ctx context.Context) (int64, error)
	GetActiveDsuSlot(ctx context.Context) (string, error)
}

func NewDynamicSystemServiceStub

func NewDynamicSystemServiceStub(
	impl IDynamicSystemServiceServer,
) IDynamicSystemService

NewDynamicSystemServiceStub creates a server-side IDynamicSystemService wrapping the given server implementation. The returned value satisfies IDynamicSystemService 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 IDynamicSystemServiceServer

type IDynamicSystemServiceServer interface {
	StartInstallation(ctx context.Context, dsuSlot string) (bool, error)
	CreatePartition(ctx context.Context, name string, size int64, readOnly bool) (int32, error)
	ClosePartition(ctx context.Context) (bool, error)
	FinishInstallation(ctx context.Context) (bool, error)
	GetInstallationProgress(ctx context.Context) (any, error)
	Abort(ctx context.Context) (bool, error)
	IsInUse(ctx context.Context) (bool, error)
	IsInstalled(ctx context.Context) (bool, error)
	IsEnabled(ctx context.Context) (bool, error)
	Remove(ctx context.Context) (bool, error)
	SetEnable(ctx context.Context, enable bool, oneShot bool) (bool, error)
	SetAshmem(ctx context.Context, fd int32, size int64) (bool, error)
	SubmitFromAshmem(ctx context.Context, bytes int64) (bool, error)
	GetAvbPublicKey(ctx context.Context, dst any) (bool, error)
	SuggestScratchSize(ctx context.Context) (int64, error)
	GetActiveDsuSlot(ctx context.Context) (string, error)
}

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

Jump to

Keyboard shortcuts

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