_go

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	APK_SIGNATURE_SCHEME_V2_BLOCK_ID = 0x7109871a
	APK_CHANNEL_BLOCK_ID             = 0x71777777
)

Variables

This section is empty.

Functions

func NewApk

func NewApk(path string) (*apk, error)
Example
apk, err := _go.NewApk("../test.apk")
if err != nil {
	panic(err)
}
fmt.Println(apk.Path())
fmt.Println(apk.Channel())
fmt.Println(apk.Extras())
newApk, err := apk.PutChannel("rrrr", "")
if err != nil {
	fmt.Println(err)
	return
}
fmt.Println(newApk.Path())
fmt.Println(newApk.Channel())
fmt.Println(newApk.Extras())
Output:

../test.apk
rock
map[package_name:com.battery.cdyj version_code:10012]
../test-rrrr.apk
rrrr
map[package_name:com.battery.cdyj version_code:10012]

Types

This section is empty.

Jump to

Keyboard shortcuts

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