Documentation
¶
Index ¶
- Variables
- func Alias(codename string) (string, error)
- func CodenameToBrand(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 RecoveryKeyCombination(codename_or_brand string) (string, error)
- func RecoveryPartition(codename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AliasYamlMap map[string]string
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 CodenameToBrand ¶
Try to lookup in yaml first and CSV then 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 RecoveryKeyCombination ¶
func RecoveryPartition ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.