fastboot

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nosudo bool = false
View Source
var Sudopw string = ""

Functions

func ActiveSlot

func ActiveSlot() (string, error)

func ActiveSlotFromVarMap

func ActiveSlotFromVarMap(m map[string]string) string

func BootRecovery

func BootRecovery(brand string, img_file string) error

func Cmd

func Cmd(args ...string) (stdout string, err error)

Returns the non-empty or longer one of stdout and stderr for a given fastboot command

func FlashRecovery

func FlashRecovery(brand string, img_file string, partition string) error
func FlashStartupLogo(logo_file string) error

func GetUnlockData

func GetUnlockData(brand string) (string, error)

Retrieves the needed data to unlock the bootloader returns an "unlocked" error if already unlocked

func GetUnlockDataFairphone added in v1.2.0

func GetUnlockDataFairphone() (string, error)

func GetUnlockDataMotorola

func GetUnlockDataMotorola() (string, error)

func GetUnlockDataSony

func GetUnlockDataSony() (string, error)

func GetVar

func GetVar(v string) (string, error)

func GetVarMap

func GetVarMap() (map[string]string, error)

func Imei

func Imei() (string, error)

func ImeiFromVarMap

func ImeiFromVarMap(m map[string]string) string

func IsAB

func IsAB() (bool, error)

func IsABFromVarMap

func IsABFromVarMap(m map[string]string) bool

func IsUnlockDataMotorolaParsable

func IsUnlockDataMotorolaParsable(data string) bool

func IsUnlocked

func IsUnlocked() (bool, error)

In doubt, returns false

func IsUnlockedFromVarMap

func IsUnlockedFromVarMap(m map[string]string) bool

func Model

func Model() (string, error)

func ModelFromVarMap

func ModelFromVarMap(m map[string]string) string

func Reboot

func Reboot(target string) error

func SerialNumber added in v1.2.0

func SerialNumber() (string, error)

func SerialNumberFromVarMap added in v1.2.0

func SerialNumberFromVarMap(m map[string]string) string

func State

func State() string

func Unlock

func Unlock(brand string, unlock_code string) error

func UnlockFairphone added in v1.2.0

func UnlockFairphone() error

func UnlockGeneric

func UnlockGeneric() error

func UnlockMotorola

func UnlockMotorola(unlock_code string) error

func UnlockNvidia

func UnlockNvidia() error

func UnlockOneplus

func UnlockOneplus() error

func UnlockSony

func UnlockSony(unlock_code string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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