integrity

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIAppIntegrityManagerUpdateRuleSet               = binder.FirstCallTransaction + 0
	TransactionIAppIntegrityManagerGetCurrentRuleSetVersion    = binder.FirstCallTransaction + 1
	TransactionIAppIntegrityManagerGetCurrentRuleSetProvider   = binder.FirstCallTransaction + 2
	TransactionIAppIntegrityManagerGetCurrentRules             = binder.FirstCallTransaction + 3
	TransactionIAppIntegrityManagerGetWhitelistedRuleProviders = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIAppIntegrityManagerUpdateRuleSet               = "updateRuleSet"
	MethodIAppIntegrityManagerGetCurrentRuleSetVersion    = "getCurrentRuleSetVersion"
	MethodIAppIntegrityManagerGetCurrentRuleSetProvider   = "getCurrentRuleSetProvider"
	MethodIAppIntegrityManagerGetCurrentRules             = "getCurrentRules"
	MethodIAppIntegrityManagerGetWhitelistedRuleProviders = "getWhitelistedRuleProviders"
)
View Source
const DescriptorIAppIntegrityManager = "android.content.integrity.IAppIntegrityManager"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppIntegrityManagerProxy

type AppIntegrityManagerProxy struct {
	Remote binder.IBinder
}

func GetAppIntegrityManager

func GetAppIntegrityManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*AppIntegrityManagerProxy, error)

GetAppIntegrityManager retrieves the AppIntegrityService service and returns a typed proxy.

func NewAppIntegrityManagerProxy

func NewAppIntegrityManagerProxy(
	remote binder.IBinder,
) *AppIntegrityManagerProxy

func (*AppIntegrityManagerProxy) AsBinder

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

func (*AppIntegrityManagerProxy) GetCurrentRuleSetProvider

func (p *AppIntegrityManagerProxy) GetCurrentRuleSetProvider(
	ctx context.Context,
) (string, error)

func (*AppIntegrityManagerProxy) GetCurrentRuleSetVersion

func (p *AppIntegrityManagerProxy) GetCurrentRuleSetVersion(
	ctx context.Context,
) (string, error)

func (*AppIntegrityManagerProxy) GetCurrentRules

func (p *AppIntegrityManagerProxy) GetCurrentRules(
	ctx context.Context,
) (pm.ParceledListSlice, error)

func (*AppIntegrityManagerProxy) GetWhitelistedRuleProviders

func (p *AppIntegrityManagerProxy) GetWhitelistedRuleProviders(
	ctx context.Context,
) ([]string, error)

func (*AppIntegrityManagerProxy) UpdateRuleSet

func (p *AppIntegrityManagerProxy) UpdateRuleSet(
	ctx context.Context,
	version string,
	rules pm.ParceledListSlice,
	statusReceiver content.IntentSender,
) error

type AppIntegrityManagerStub

type AppIntegrityManagerStub struct {
	Impl      IAppIntegrityManager
	Transport binder.VersionAwareTransport
}

AppIntegrityManagerStub dispatches incoming binder transactions to a typed IAppIntegrityManager implementation.

func (*AppIntegrityManagerStub) Descriptor

func (s *AppIntegrityManagerStub) Descriptor() string

func (*AppIntegrityManagerStub) OnTransaction

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

type IAppIntegrityManager

type IAppIntegrityManager interface {
	AsBinder() binder.IBinder
	UpdateRuleSet(ctx context.Context, version string, rules pm.ParceledListSlice, statusReceiver content.IntentSender) error
	GetCurrentRuleSetVersion(ctx context.Context) (string, error)
	GetCurrentRuleSetProvider(ctx context.Context) (string, error)
	GetCurrentRules(ctx context.Context) (pm.ParceledListSlice, error)
	GetWhitelistedRuleProviders(ctx context.Context) ([]string, error)
}

func NewAppIntegrityManagerStub

func NewAppIntegrityManagerStub(
	impl IAppIntegrityManagerServer,
) IAppIntegrityManager

NewAppIntegrityManagerStub creates a server-side IAppIntegrityManager wrapping the given server implementation. The returned value satisfies IAppIntegrityManager 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 IAppIntegrityManagerServer

type IAppIntegrityManagerServer interface {
	UpdateRuleSet(ctx context.Context, version string, rules pm.ParceledListSlice, statusReceiver content.IntentSender) error
	GetCurrentRuleSetVersion(ctx context.Context) (string, error)
	GetCurrentRuleSetProvider(ctx context.Context) (string, error)
	GetCurrentRules(ctx context.Context) (pm.ParceledListSlice, error)
	GetWhitelistedRuleProviders(ctx context.Context) ([]string, error)
}

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

type Rule

type Rule struct {
	Effect int32
}

func (*Rule) MarshalParcel

func (s *Rule) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Rule) UnmarshalParcel

func (s *Rule) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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