utils

package
v0.0.0-...-e9fdfee Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APKResigner

type APKResigner interface {
	Resign(apk string) error
}

APKResigner is the interface for anything used to resign apks

func NewAPKResigner

func NewAPKResigner(shell Shell) APKResigner

NewAPKResigner creates a new instance of APKResigner

type APKTool

type APKTool interface {
	Decode(apk string, force, nores, nosrc bool) error
	Build(output string, force bool) error
	CopyToDecoded(src, dst string) error
	GetIntermediateDir() string
}

APKTool is an interface for all apktool functionality

func NewAPKTool

func NewAPKTool(fs afero.Fs, shell Shell) (APKTool, error)

NewAPKTool creates a new instance of a command line implementation of APKTool

type NativeLibInjector

type NativeLibInjector interface {
	InjectIntoLibrary(payload string, target string) error
}

NativeLibInjector is the interface for anything that can be used to inject a payload library into another library to make it a dependency

func NewNativeLibInjector

func NewNativeLibInjector(shell Shell) NativeLibInjector

NewNativeLibInjector creates a new instance of NativeLibInjector

type Shell

type Shell interface {
	Exec(name string, arg ...string) ([]byte, error)
}

func NewShell

func NewShell() Shell

NewShell creates a new instance of shellImpl

Jump to

Keyboard shortcuts

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