Documentation
¶
Index ¶
- Constants
- func NewXZReader(r io.Reader) (io.ReadCloser, error)
- func Parse(payload *zip.File, folder, extractPattern string) (bool, string, error)
- func RemoteExtract(zr *zip.Reader, extractPattern, destPath string, shouldStop func(string) bool) ([]string, error)
- func RemoteList(zr *zip.Reader) ([]os.FileInfo, error)
- type AA
- type Config
- type File
- func (f *File) Base() string
- func (f *File) IsDir() bool
- func (f *File) ModTime() time.Time
- func (f *File) Mode() fs.FileMode
- func (f *File) Name() string
- func (f *File) Open(decomp bool) (io.ReadCloser, error)
- func (f *File) Size() int64
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Sys() any
- func (f *File) Type() fs.FileMode
- type Reader
- func (r *Reader) ExtractCryptex(cryptex, output string) (string, error)
- func (r *Reader) ExtractFromCryptexes(pattern, output string) ([]string, error)
- func (r *Reader) Files() []*File
- func (r *Reader) GetPayloadFiles(pattern, payloadRange, output string) error
- func (r *Reader) Open(name string, decomp bool) (fs.File, error)
- func (r *Reader) OpenInPayload(name string) (fs.File, error)
- func (r *Reader) PayloadFiles(pattern string, json bool) error
- func (r *Reader) PostFiles() []fs.FileInfo
Constants ¶
View Source
const HeaderLen = 12
HeaderLen provides the length of the xz file header.
View Source
const (
MagicYaa1Header = 0x31414159 // "YAA1"
)
Variables ¶
This section is empty.
Functions ¶
func NewXZReader ¶
func NewXZReader(r io.Reader) (io.ReadCloser, error)
NewXZReader uses the xz command to extract the Apple Archives (xz streams) or falls back to the pure Golang xz decompression lib
Types ¶
type AA ¶
type AA struct {
Reader
// contains filtered or unexported fields
}
func Open ¶
Open opens an OTA file with optional configuration If conf is nil, default configuration is used (automatic key lookup)
type Config ¶
type Config struct {
// SymmetricKey is the base64-encoded AEA symmetric encryption key
SymmetricKey string
// Proxy to use when fetching AEA keys
Proxy string
// Insecure allows insecure connections when fetching AEA keys
Insecure bool
}
Config holds optional configuration for opening OTA files
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
A Reader serves content from a Apple Archive.
func (*Reader) ExtractCryptex ¶
func (*Reader) ExtractFromCryptexes ¶
func (*Reader) GetPayloadFiles ¶
Click to show internal directories.
Click to hide internal directories.