gapidapk

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 20 Imported by: 37

Documentation

Overview

Package gapidapk holds functions relating to the GAPID Android APK.

Index

Constants

View Source
const (
	// LibGAPIIName is the name of the GAPII dynamic library file.
	LibGAPIIName = "libgapii.so"

	// LibInterceptorName is the name of the interceptor dynamic library file.
	LibInterceptorName = "libinterceptor.so"

	// GraphicsSpyLayerName is the name of the graphics spy layer.
	GraphicsSpyLayerName = "GraphicsSpy"
)

Variables

This section is empty.

Functions

func LayerName added in v1.6.0

func LayerName(vulkan bool) string

LayerName returns the name of the layer to use for Vulkan vs GLES.

func PackageList

func PackageList(ctx context.Context, d adb.Device, includeIcons bool, iconDensityScale float32) (*pkginfo.PackageList, error)

PackageList returns the list of packages installed on the device.

func PackageName added in v1.6.0

func PackageName(abi *device.ABI) string

PackageName returns the full package name of the GAPID apk for the given ABI.

Types

type APK

type APK struct {
	*android.InstalledPackage
	// contains filtered or unexported fields
}

APK represents the installed GAPIR APK.

func EnsureInstalled

func EnsureInstalled(ctx context.Context, d adb.Device, abi *device.ABI) (*APK, error)

EnsureInstalled ensures that gapid.apk with the specified ABI is installed on d with the same version as the APK on the host, and returns the installed APK. If abi is nil or UnknownABI, all the ABI available on the host will be tried for d, and the preferred ABI of the device will be tried first. Once an ABI is found compatible with the device, the APK of that ABI will be ensured to be installed.

func (APK) LibGAPIIPath

func (a APK) LibGAPIIPath(abi *device.ABI) string

LibGAPIIPath returns the path on the Android device to the GAPII dynamic library file. gapid.apk must be installed for this path to be valid.

func (APK) LibInterceptorPath

func (a APK) LibInterceptorPath(abi *device.ABI) string

LibInterceptorPath returns the path on the Android device to the interceptor dynamic library file. gapid.apk must be installed for this path to be valid.

func (APK) LibsPath

func (a APK) LibsPath(abi *device.ABI) string

LibsPath returns the path on the Android device to the GAPID libs directory. gapid.apk must be installed for this path to be valid.

Directories

Path Synopsis
Package pkginfo contains support for dealing with package manager information.
Package pkginfo contains support for dealing with package manager information.

Jump to

Keyboard shortcuts

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