Documentation
¶
Index ¶
- Variables
- func Alias(codename string) (string, error)
- func CodenameToBrand(codename string) (string, error)
- func CodenameToBrandForApi(codename string) (string, error)
- func CodenameToNameCsv(codename string) (string, error)
- func CodenameToNamesCsv(codename string) ([]string, error)
- func CodenamesToModels(codenames []string) ([]string, error)
- func IsCodename(model string) (bool, error)
- func IsSupported(codename string) (bool, error)
- func ModelToCodename(model string) (string, error)
- func ModelToCodenameCandidates(model string) ([]string, error)
- func ModelToCodenameCandidatesForApi(model string) ([]string, error)
- func RecoveryKeyCombination(codename_or_brand string) (string, error)
- func RecoveryPartition(codename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
var AliasYamlMap map[string]string
var CodenameSuffixes []string = []string{"_n", "_f", "_t", "_ds", "_nt", "_u2", "_ud2", "_uds", "_cdma", "_umts", "_udstv", "_umtsds"}
var CodenameToBrandYamlMap map[string]string
var DeviceLookupCsvLines [][]string
var DeviceLookupCsvPath string = "bin/device-lookup.csv"
var ModelToCodenameYamlMap map[string]string
var RecoveryKeyCombinationYamlMap map[string]string
var RecoveryPartitionYamlMap map[string]string
var SupportedYamlMap map[string]string
Functions ¶
func CodenameToBrand ¶
Try to lookup in yaml first and CSV then Resort to the adb prop if unsuccessful
func CodenameToBrandForApi ¶ added in v0.9.8
Try to lookup in yaml first and CSV then Do not resort to the adb prop if unsuccessful
func CodenameToNameCsv ¶
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 CodenamesToModels ¶
func IsCodename ¶
Check if the given model name already is the codename
func IsSupported ¶
Returns true if the support state is unknown
func ModelToCodename ¶
Try to lookup in yaml first and CSV then
func ModelToCodenameCandidates ¶
Returns codename candidates from device lookup CSV (Yaml table is unambiguous and takes precedence anyway)
func ModelToCodenameCandidatesForApi ¶ added in v0.9.8
Returns a slice of codename candidates for a given model The returned slice may contain 0, 1 or more elements
func RecoveryKeyCombination ¶
func RecoveryPartition ¶
Types ¶
This section is empty.