lookup

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasYamlMap map[string]string
View Source
var BootloaderKeyCombinationYamlMap map[string]string
View Source
var CodenamePrefixes []string = []string{"omni_"}
View Source
var CodenameSuffixes []string = []string{"_n", "_f", "_t", "_ds", "_nt", "_u2", "_ud2", "_uds", "_cdma", "_umts", "_udstv", "_umtsds"}
View Source
var CodenameToBrandYamlMap map[string]string
View Source
var DeviceLookupCsvLines [][]string
View Source
var DeviceLookupCsvPath string = "bin/device-lookup.csv"
View Source
var ModelToCodenameYamlMap map[string]string
View Source
var RecoveryKeyCombinationYamlMap map[string]string
View Source
var RecoveryPartitionYamlMap map[string]string
View Source
var SupportedYamlMap map[string]string

Functions

func Alias

func Alias(codename string) (string, error)

func BootloaderKeyCombination added in v1.0.0

func BootloaderKeyCombination(codename_or_brand string) (string, error)

func CodenameToBrand

func CodenameToBrand(codename string) (string, error)

Try to lookup in yaml first and CSV then Resort to the adb prop if unsuccessful

func CodenameToBrandForApi added in v0.9.8

func CodenameToBrandForApi(codename string) (string, error)

Try to lookup in yaml first and CSV then Do not resort to the adb prop if unsuccessful

func CodenameToNameCsv

func CodenameToNameCsv(codename string) (string, error)

Tries to return a unique marketing name with a given codename If multiple name candidates result and they all start with one of them then returns the shortest one of them. Ex. "galaxy s5" and "galaxy s5 dual sim" Returns error if ambiguous

func CodenameToNamesCsv

func CodenameToNamesCsv(codename string) ([]string, error)

func CodenamesToModels

func CodenamesToModels(codenames []string) ([]string, error)

func IsCodename

func IsCodename(model string) (bool, error)

Check if the given model name already is the codename

func IsSupported

func IsSupported(codename string) (bool, error)

Returns true if the support state is unknown

func ModelToCodename

func ModelToCodename(model string) (string, error)

Try to lookup in yaml first and CSV then

func ModelToCodenameCandidates

func ModelToCodenameCandidates(model string) ([]string, error)

Returns codename candidates from device lookup CSV (Yaml table is unambiguous and takes precedence anyway)

func ModelToCodenameCandidatesForApi added in v0.9.8

func ModelToCodenameCandidatesForApi(model string) ([]string, error)

Returns a slice of codename candidates for a given model The returned slice may contain 0, 1 or more elements

func RecoveryKeyCombination

func RecoveryKeyCombination(codename_or_brand string) (string, error)

func RecoveryPartition

func RecoveryPartition(codename string) (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