Documentation ¶
Overview ¶
Package gapidapk holds functions relating to the GAPID Android APK.
Index ¶
Constants ¶
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 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
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 ¶
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 ¶
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 ¶
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.