Documentation ¶
Index ¶
- Variables
- func AdbDriver() error
- func AospExtended(codename string) (string, error)
- func AospExtendedLatestAvailableFileName(codename string) (string, error)
- func AospExtendedLatestAvailableHref(codename string) (string, error)
- func AospExtendedParseAndroidVersion(romversion string) (string, error)
- func ArchiveLatestAvailableFileNamesMap(codename string) (map[string]string, error)
- func ArchiveLatestAvailableHrefMap(codename string) (map[string]string, error)
- func Binaries() error
- func CalyxOsParseAndroidVersion(romversion string) (string, error)
- func Carbonrom(codename string) (string, error)
- func CarbonromLatestAvailableFileName(codename string) (string, error)
- func CarbonromLatestAvailableHref(codename string) (string, error)
- func CarbonromParseAndroidVersion(romversion string) (string, error)
- func CarbonromParseVersion(filename string) (string, error)
- func CopyPartitionsZip() (string, error)
- func CopyPartitionsZipLatestAvailableHref() (string, error)
- func CrDroid(codename string) (string, error)
- func CrDroidLatestAvailableFileName(codename string) (string, error)
- func CrDroidLatestAvailableHref(codename string) (string, error)
- func CrDroidParseAndroidVersion(filename string) (string, error)
- func CrDroidParseVersion(filename string) (string, error)
- func Divestos(codename string) (string, error)
- func DivestosLatestAvailableFileName(codename string) (string, error)
- func DivestosLatestAvailableHref(codename string) (string, error)
- func DivestosParseAndroidVersion(romversion string) (string, error)
- func DownloadAndOverwriteFile(file_path string, url string, checksum_url_suffix string) (err error)
- func DownloadFile(file_path string, url string, checksum_url_suffix string) (err error)
- func EOS(codename string) (string, error)
- func EOSLatestAvailableFileName(codename string) (string, error)
- func EOSLatestAvailableHref(codename string) (string, error)
- func EOSParseAndroidVersion(romversion string) (string, error)
- func EOSParseVersion(filename string) (string, error)
- func EvolutionXParseAndroidVersion(romversion string) (string, error)
- func FromArchive(codename string, what string) (string, error)
- func GrapheneOsParseAndroidVersion(romversion string) (string, error)
- func GuessRomNameAndAndroidVersion(filename string) (name string, av string, err error)
- func Lineageos(codename string) (string, error)
- func LineageosLatestAvailableFileName(codename string) (string, error)
- func LineageosLatestAvailableHref(codename string) (string, error)
- func LineageosMicrog(codename string) (string, error)
- func LineageosMicrogLatestAvailableFileName(codename string) (string, error)
- func LineageosMicrogLatestAvailableHref(codename string) (string, error)
- func LineageosMicrogParseAndroidVersion(losversion string) (string, error)
- func LineageosMicrogParseVersion(filename string) (string, error)
- func LineageosParseAndroidVersion(losversion string) (string, error)
- func LineageosParseVersion(filename string) (string, error)
- func Magisk() (string, error)
- func MagiskLatestAvailableFileName() (string, error)
- func MagiskLatestAvailableHref() (string, error)
- func MagiskParseVersion(filename string) (string, error)
- func Micro5kMicroG(which string) (string, error)
- func Micro5kMicroGLatestAvailableFull() (map[string]string, error)
- func Micro5kMicroGLatestAvailableGsync() (map[string]string, error)
- func Micro5kMicroGLatestAvailableHref(which string) (string, error)
- func Micro5kMicroGLatestAvailableOSS() (map[string]string, error)
- func MinMicroG(variant string) (string, error)
- func MinMicroGLatestAvailableHref(variant string) (string, error)
- func MinMicroGLatestAvailableVariants() (map[string]*Item, error)
- func MokeeParseAndroidVersion(romversion string) (string, error)
- func NanoDroid(which string) (string, error)
- func NanoDroidLatestAvailableFileName(which string) (string, error)
- func NanoDroidLatestAvailableHref(which string) (string, error)
- func NanoDroidParseVersion(filename string) (string, error)
- func OmniromParseAndroidVersion(romversion string) (string, error)
- func OpenGapps(arch string, android_version string, variant string) (string, error)
- func OpenGappsAvailableForAndroidVersions(arch string) ([]string, error)
- func OpenGappsAvailableVariants(arch string, android_version string) ([]string, error)
- func OpenGappsIndexOfVariant(arch string, android_version string, variant_wish string) (int, error)
- func OpenGappsLatestAvailableFileName(arch string, android_version string, variant string) (string, error)
- func OpenGappsLatestAvailableHref(arch string, android_version string, variant string) (string, error)
- func OpenGappsPopulateAvailablesStruct() error
- func PixelExperienceParseAndroidVersion(romversion string) (string, error)
- func ResurrectionRemix(codename string) (string, error)
- func ResurrectionRemixLatestAvailableFileName(codename string) (string, error)
- func ResurrectionRemixLatestAvailableHref(codename string) (string, error)
- func ResurrectionRemixParseAndroidVersion(romversion string) (string, error)
- func ResurrectionRemixParseVersion(filename string) (string, error)
- func StatusCode(url string) (code string, err error)
- func TwrpImg(codename string) (string, error)
- func TwrpImgLatestAvailableHref(codename string) (string, error)
- func TwrpImgParseVersion(filename string) (string, error)
- func TwrpZip(codename string) (string, error)
- func TwrpZipLatestAvailableHref(codename string) (string, error)
- func TwrpZipParseVersion(filename string) (string, error)
- func VerifyIntegrity(file_path string, url string, suffix string) (isCorrect bool, err error)
- func Zadig() error
- type AospExtendedApiResponse
- type Api
- type Arch
- type Archive
- type Available
- type DivestosApiResponse
- type Item
- type OpenGappsJson
- type RetrievalError
- type Twrp
- type Upstream
- type User
- type Variant
Constants ¶
This section is empty.
Variables ¶
var A1 = NewAvailable()
Functions ¶
func AospExtended ¶
Download latest AospExtended zip into flash folder and return the file name
func AospExtendedLatestAvailableFileName ¶
Returns file name of the latest available AospExtended zip
func AospExtendedLatestAvailableHref ¶
Returns download link of the latest available AospExtended zip
func CarbonromLatestAvailableFileName ¶
Returns file name of the latest available Carbonrom zip
func CarbonromLatestAvailableHref ¶
Returns download link of the latest available Carbonrom zip
func CarbonromParseVersion ¶
func CopyPartitionsZip ¶
Download latest Magisk zip into flash folder and return the file name
func CopyPartitionsZipLatestAvailableHref ¶
Returns download link of the latest available Magisk zip
func CrDroidLatestAvailableFileName ¶
Returns file name of the latest available CrDroid zip
func CrDroidLatestAvailableHref ¶
Returns download link of the latest available CrDroid zip
func CrDroidParseVersion ¶
func Divestos ¶ added in v1.1.0
Download latest Divestos zip into flash folder and return the file name
func DivestosLatestAvailableFileName ¶ added in v1.1.0
Returns file name of the latest available Divestos zip
func DivestosLatestAvailableHref ¶ added in v1.1.0
Returns download link of the latest available Divestos zip
func DivestosParseAndroidVersion ¶ added in v1.1.0
func DownloadAndOverwriteFile ¶
Does not redownload if the checksum (still) matches with upstream
func DownloadFile ¶
Assume we have the correct file if it already exists
func EOSLatestAvailableFileName ¶
Returns file name of the latest available EOS zip
func EOSLatestAvailableHref ¶
Returns download link of the latest available EOS zip
func EOSParseAndroidVersion ¶
func EOSParseVersion ¶
func LineageosLatestAvailableFileName ¶
Returns file name of the latest available LineageOS zip
func LineageosLatestAvailableHref ¶
Returns download link of the latest available LineageOS zip
func LineageosMicrog ¶
Download latest LineageOS for MicroG zip into flash folder and return the file name
func LineageosMicrogLatestAvailableFileName ¶
Returns file name of the latest available LineageOS for MicroG zip
func LineageosMicrogLatestAvailableHref ¶
Returns download link of the latest available LineageOS for MicroG zip
func LineageosParseVersion ¶
func MagiskLatestAvailableFileName ¶
Returns file name of the latest available Magisk zip
func MagiskLatestAvailableHref ¶
Returns download link of the latest available Magisk zip
func MagiskParseVersion ¶
func Micro5kMicroG ¶ added in v1.4.1
Download latest Micro5k unofficial microG installer zip into flash folder and return the file name
func Micro5kMicroGLatestAvailableFull ¶ added in v1.4.1
func Micro5kMicroGLatestAvailableGsync ¶ added in v1.4.1
func Micro5kMicroGLatestAvailableHref ¶ added in v1.4.1
Returns variants of the latest available Micro5kMicroG zip
func Micro5kMicroGLatestAvailableOSS ¶ added in v1.4.1
func MinMicroG ¶ added in v1.3.0
Download latest MinMicroG zip into flash folder and return the file name
func MinMicroGLatestAvailableHref ¶ added in v1.3.0
Returns download link of the latest available MinMicroG zip
func MinMicroGLatestAvailableVariants ¶ added in v1.3.0
Returns variants of the latest available MinMicroG zip
func NanoDroid ¶
Download latest NanoDroid zip into flash folder and return the file name which can be one of "full", "fdroid", "microg" or "patcher"
func NanoDroidLatestAvailableFileName ¶
Returns file name of the latest available NanoDroid zip
func NanoDroidLatestAvailableHref ¶
Returns download link of the latest available NanoDroid zip
func NanoDroidParseVersion ¶
func OpenGappsIndexOfVariant ¶
func OpenGappsLatestAvailableFileName ¶
func OpenGappsLatestAvailableFileName(arch string, android_version string, variant string) (string, error)
Returns file name of the latest available OpenGapps zip
func OpenGappsLatestAvailableHref ¶
func OpenGappsLatestAvailableHref(arch string, android_version string, variant string) (string, error)
Returns download link of the latest available OpenGapps zip for the given architecture and Android version arch must be one of "arm", "arm64", "x86" and "x86_64" android_version must be in the form of "X.Y"
func OpenGappsPopulateAvailablesStruct ¶
func OpenGappsPopulateAvailablesStruct() error
func ResurrectionRemix ¶
Download latest ResurrectionRemix zip into flash folder and return the file name
func ResurrectionRemixLatestAvailableFileName ¶
Returns file name of the latest available ResurrectionRemix zip
func ResurrectionRemixLatestAvailableHref ¶
Returns download link of the latest available ResurrectionRemix zip
func StatusCode ¶
func TwrpImgLatestAvailableHref ¶
Returns file name of the latest available TWRP image
func TwrpImgParseVersion ¶
func TwrpZipLatestAvailableHref ¶
Returns file name of the latest available TWRP zip
func TwrpZipParseVersion ¶
func VerifyIntegrity ¶
Return false only on explicit verification failure Return true if the checksum file could not be downloaded
Types ¶
type AospExtendedApiResponse ¶
type AospExtendedApiResponse struct { Error bool `json:"error"` Filename string `json:"filename"` Md5 string `json:"md5"` Url string `json:"url"` }
var ParsedAospExtendedApiResponse AospExtendedApiResponse
func AospExtendedParseApiResponse ¶
func AospExtendedParseApiResponse(codename string) (AospExtendedApiResponse, error)
type Available ¶
type Available struct { Reloading bool Mutex *sync.Mutex Upstream *Upstream Archive *Archive User *User }
func NewAvailable ¶
func NewAvailable() *Available
func (*Available) PopulateArchive ¶ added in v0.9.7
func (*Available) PopulateForApi ¶ added in v0.9.7
type DivestosApiResponse ¶ added in v1.1.0
type DivestosApiResponse struct { Filename string `json:"filename"` Version string `json:"version"` Url string `json:"url"` }
var ParsedDivestosApiResponse DivestosApiResponse
func DivestosParseApiResponse ¶ added in v1.1.0
func DivestosParseApiResponse(codename string) (DivestosApiResponse, error)
type OpenGappsJson ¶
Structs for parsing the OpenGapps JSON
var ParsedOpenGappsJson OpenGappsJson
func OpenGappsParseJson ¶
func OpenGappsParseJson() (OpenGappsJson, error)