Documentation
¶
Index ¶
- Variables
- func ScrapeURLs(build string) error
- type Board
- type Device
- type DeviceQuery
- type Devices
- func (ds Devices) GetDeviceForName(name string) (string, Device, error)
- func (ds Devices) GetDevicesForSDK(sdk string) (*Devices, error)
- func (ds Devices) GetDevicesForType(typ string) (*Devices, error)
- func (ds Devices) GetProductForModel(model string) (string, error)
- func (ds Devices) LookupDevice(prod string) (Device, error)
- func (ds Devices) Query(q *DeviceQuery) *Devices
- type Info
- func (i *Info) GetAppOsDmg() (string, error)
- func (i *Info) GetCPU(board string) string
- func (i *Info) GetDevices(devs *Devices) error
- func (i *Info) GetDevicesForKernelCache(kc string) []string
- func (i *Info) GetDevicesFromMap(dmap *types.DeviceMap, devs *Devices) error
- func (i *Info) GetExclaveOSDmg() (string, error)
- func (i *Info) GetFileSystemOsDmg() (string, error)
- func (i *Info) GetFolder(device ...string) (string, error)
- func (i *Info) GetFolderForFile(fileName string) (string, error)
- func (i *Info) GetFolders() ([]string, error)
- func (i *Info) GetKernelCacheFileName(kc string) string
- func (i *Info) GetKernelCacheFolders(kc string) ([]string, error)
- func (i *Info) GetKernelCacheForDevice(device string) []string
- func (i *Info) GetRestoreRamDiskDmgByIdent(ident string) (string, error)
- func (i *Info) GetRestoreRamDiskDmgs() ([]string, error)
- func (i *Info) GetSystemOsDmg() (string, error)
- func (i *Info) IsMacOS() bool
- func (i *Info) String() string
- func (i *Info) ToJSON() InfoJSON
- type InfoJSON
- type ProcessorDB
- type Processors
Constants ¶
This section is empty.
Variables ¶
var ErrorCryptexNotFound = errors.New("cryptex not found")
Functions ¶
func ScrapeURLs ¶
ScrapeURLs will scrape the iPhone Wiki for beta firmwares
Types ¶
type Board ¶
type Board struct {
CPU string `json:"cpu,omitempty"`
Platform string `json:"platform,omitempty"`
PlatformName string `json:"platform_name,omitempty"`
ChipID string `json:"cpuid,omitempty"`
Arch string `json:"arch,omitempty"`
CpuISA string `json:"cpuisa,omitempty"`
BoardID string `json:"board_id,omitempty"`
BasebandChipID string `json:"bbid,omitempty"`
KernelCacheType string `json:"kc_type,omitempty"`
ResearchSupported bool `json:"research_support,omitempty"`
}
type Device ¶
type Device struct {
Name string `json:"name,omitempty"`
Product string `json:"product,omitempty"`
Description string `json:"desc,omitempty"`
Boards map[string]Board `json:"boards,omitempty"`
MemClass uint64 `json:"mem_class,omitempty"`
SDKPlatform string `json:"sdk,omitempty"`
Type string `json:"type,omitempty"`
}
type DeviceQuery ¶
type Devices ¶
func (Devices) GetDeviceForName ¶
func (Devices) GetDevicesForType ¶
func (Devices) GetProductForModel ¶
func (Devices) Query ¶
func (ds Devices) Query(q *DeviceQuery) *Devices
type Info ¶
type Info struct {
Plists *plist.Plists
DeviceTrees map[string]*devicetree.DeviceTree
}
Info in the info object
func ParseZipFiles ¶
ParseZipFiles parses plist files and devicetree in a remote zip file
func (*Info) GetAppOsDmg ¶
GetAppOsDmg returns the name of the AppOS dmg
func (*Info) GetDevices ¶
func (*Info) GetDevicesForKernelCache ¶
GetDevicesForKernelCache returns a sorted array of devices that support the kernelcache
func (*Info) GetDevicesFromMap ¶
func (*Info) GetExclaveOSDmg ¶
func (*Info) GetFileSystemOsDmg ¶
GetFileSystemOsDmg returns the name of the file system dmg
func (*Info) GetFolderForFile ¶
GetFolderForFile returns a list of the IPSW name folders for a given file
func (*Info) GetFolders ¶
GetFolders returns a list of the IPSW name folders
func (*Info) GetKernelCacheFileName ¶
GetKernelCacheFileName returns a short new kernelcache name including all the supported devices
func (*Info) GetKernelCacheFolders ¶
GetKernelCacheFolders returns the folders belonging to a KernelCache
func (*Info) GetKernelCacheForDevice ¶
GetKernelCacheForDevice returns the kernelcache path(s) for a given device ProductType (e.g., "Mac16,8", "iPhone17,1")
func (*Info) GetRestoreRamDiskDmgByIdent ¶
GetRestoreRamDiskDmgByIdent returns the RestoreRamDisk DMG path matching a given identity hint. The ident string is a substring of Info.Variant (e.g. "Customer Erase", "Customer Upgrade") [case-insensitive]
func (*Info) GetRestoreRamDiskDmgs ¶
GetRestoreRamDiskDmgs returns the name of the RestoreRamDisk dmg
func (*Info) GetSystemOsDmg ¶
GetSystemOsDmg returns the name of the SystemOS dmg (the one with the dyld_shared_cache(s))
type ProcessorDB ¶
type ProcessorDB []processors
func GetProcessorDB ¶
func GetProcessorDB() (*ProcessorDB, error)
func (*ProcessorDB) GetProcessor ¶
func (p *ProcessorDB) GetProcessor(cpuid string) (*processors, error)