motologo

package
v0.0.0-...-c585f73 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MOTOLOGO_FILE_LIST = [...]string{"logo_boot", "logo_battery", "logo_unlocked",
	"logo_lowpower", "logo_charge", "ic_unlocked_bootloader",
	"arrows", "yes", "wififlash", "switchconsole", "qcom", "factory",
	"droid_operation", "bptools", "barcodes", "start", "restartbootloader",
	"recoverymode", "poweroff", "bootloaderlogs", "bg", "red_fastboot",
	"orange_continue", "yellow_continue", "Switch_tools_mode", "yellow",
	"orange", "red"}
View Source
var MOTOLOGO_FILE_LIST_LEN = len(MOTOLOGO_FILE_LIST)

Functions

func EncodeMotologo(f *os.File, m Motologo) error

EncodeMotologo write the motologo structure to f

func Extract

func Extract(m Motologo, destDir string) error

Extract create BMP file from Motologo file archive in destDir.

Types

type Motologo struct {
	Header         MotologoHeader
	MotorunMetaSet []MotorunMeta

	MotorunSet []bytes.Buffer
	// contains filtered or unexported fields
}

func Create

func Create(srcDir string) (Motologo, error)

Create a motologo structure from the content of srcDir

func DecodeMotologoFile

func DecodeMotologoFile(f *os.File) (Motologo, error)

DecodeMotologoFile return a motologo structure according to the content of f

type MotologoHeader

type MotologoHeader struct {
	Signature [9]byte
	ItemCount uint32
}

type MotorunMeta

type MotorunMeta struct {
	Name   [24]byte
	Offset uint32
	Size   uint32
}

Jump to

Keyboard shortcuts

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