Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const Debug + const Error + const Fatal + const Info + const Verbose + const Warning + var ErrProcessNotFound = fmt.Errorf("Process not found") + func SetupLayers(ctx context.Context, d Device, appPkg string, layerPkgs []string, ...) (app.Cleanup, error) + func SupportsVulkanLayersViaSystemSettings(d Device) bool + type ActionExtra interface + Flags func() []string + type ActivityAction struct + Activity string + Name string + Package *InstalledPackage + func (a *ActivityAction) Component() string + func (a *ActivityAction) String() string + type ActivityActions []*ActivityAction + func (l ActivityActions) FindByName(action, activity string) *ActivityAction + type BoolExtra struct + Key string + Value bool + func (e BoolExtra) Flags() []string + type CustomExtras []string + func (e CustomExtras) Flags() []string + type Device interface + DeleteSystemSetting func(ctx context.Context, namespace, key string) error + ForceStop func(ctx context.Context, pkg string) error + GetScreenDimensions func(ctx context.Context) (orientation, width, height int, ok bool) + GetTouchDimensions func(ctx context.Context) (deviceID, minX, maxX, minY, maxY int, ok bool) + InstallAPK func(ctx context.Context, path string, reinstall bool, grantPermissions bool) error + InstalledPackage func(ctx context.Context, name string) (*InstalledPackage, error) + InstalledPackages func(ctx context.Context) (InstalledPackages, error) + KeyEvent func(ctx context.Context, key KeyCode) error + Logcat func(ctx context.Context, msgs chan<- LogcatMessage) error + NativeBridgeABI func(ctx context.Context, abi *device.ABI) *device.ABI + Pull func(ctx context.Context, remote, local string) error + Push func(ctx context.Context, local, remote string) error + SELinuxEnforcing func(ctx context.Context) (bool, error) + SendEvent func(ctx context.Context, deviceID, eventType, eventCode, value int) error + SendTouch func(ctx context.Context, deviceID, x, y int, pressed bool) + SetSELinuxEnforcing func(ctx context.Context, enforce bool) error + SetSystemProperty func(ctx context.Context, name, value string) error + SetSystemSetting func(ctx context.Context, namespace, key, value string) error + StartActivity func(ctx context.Context, a ActivityAction, extras ...ActionExtra) error + StartActivityForDebug func(ctx context.Context, a ActivityAction, extras ...ActionExtra) error + StartPerfettoTrace func(ctx context.Context, config *perfetto_pb.TraceConfig, out string, ...) error + StartService func(ctx context.Context, a ServiceAction, extras ...ActionExtra) error + SystemProperty func(ctx context.Context, name string) (string, error) + SystemSetting func(ctx context.Context, namespace, key string) (string, error) + UnlockScreen func(ctx context.Context) (bool, error) + type FloatExtra struct + Key string + Value float32 + func (e FloatExtra) Flags() []string + type InstalledPackage struct + ABI *device.ABI + ActivityActions ActivityActions + Debuggable bool + Device Device + MinSDK int + Name string + ServiceActions ServiceActions + TargetSdk int + VersionCode int + VersionName string + func (p *InstalledPackage) AppDir(ctx context.Context) (string, error) + func (p *InstalledPackage) ClearCache(ctx context.Context) error + func (p *InstalledPackage) FileDir(ctx context.Context) (string, error) + func (p *InstalledPackage) GrantExternalStorageRW(ctx context.Context) error + func (p *InstalledPackage) OBBExists(ctx context.Context) bool + func (p *InstalledPackage) Path(ctx context.Context) (string, error) + func (p *InstalledPackage) Pid(ctx context.Context) (int, error) + func (p *InstalledPackage) Pull(ctx context.Context, target string) error + func (p *InstalledPackage) PullOBB(ctx context.Context, target string) error + func (p *InstalledPackage) PushOBB(ctx context.Context, obbPath string) error + func (p *InstalledPackage) RemoveOBB(ctx context.Context) error + func (p *InstalledPackage) SetWrapProperties(ctx context.Context, props ...string) error + func (p *InstalledPackage) Stop(ctx context.Context) error + func (p *InstalledPackage) String() string + func (p *InstalledPackage) Uninstall(ctx context.Context) error + func (p *InstalledPackage) WrapProperties(ctx context.Context) ([]string, error) + type InstalledPackages []*InstalledPackage + func (l InstalledPackages) FindByName(s string) *InstalledPackage + func (l InstalledPackages) FindByPartialName(s string) InstalledPackages + func (l InstalledPackages) FindSingleByPartialName(s string) (*InstalledPackage, error) + func (l InstalledPackages) Len() int + func (l InstalledPackages) Less(i, j int) bool + func (l InstalledPackages) Swap(i, j int) + type IntExtra struct + Key string + Value int + func (e IntExtra) Flags() []string + type LogcatMessage struct + Message string + Priority LogcatPriority + ProcessID int + Tag string + ThreadID int + Timestamp time.Time + func (m LogcatMessage) Log(ctx context.Context) + type LogcatPriority int + func (p LogcatPriority) Severity() log.Severity + type LongExtra struct + Key string + Value int + func (e LongExtra) Flags() []string + type ServiceAction struct + Name string + Package *InstalledPackage + Service string + func (a *ServiceAction) Component() string + func (a *ServiceAction) String() string + type ServiceActions []*ServiceAction + func (l ServiceActions) FindByName(action, service string) *ServiceAction + type StringExtra struct + Key string + Value string + func (e StringExtra) Flags() []string + type URIExtra struct + Key string + Value string + func (e URIExtra) Flags() []string Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021