Documentation
¶
Index ¶
- Variables
- type Device
- func (d *Device) BootRecovery(img_file string, bootloader_timeout int) (string, error)
- func (d *Device) DoUnlock(unlock_data string) error
- func (d *Device) FlashRom(zip_file string, wipe string) error
- func (d *Device) FlashZip(zip_file string) error
- func (d *Device) GetState() string
- func (d *Device) GetUnlockData() (string, error)
- func (d *Device) HandleStateRequest(req_state string)
- func (d *Device) InstallDriversWithZadig() error
- func (d *Device) InstallUniversalDrivers() error
- func (d *Device) Observe()
- func (d *Device) ReadMissingProps()
- func (d *Device) Reboot(target string) (err error)
- func (d *Device) StartOver()
- func (d *Device) Test(model string)
- func (d *Device) Unlock() error
- func (d *Device) UnlockMotorola(unlock_code string) error
- func (d *Device) UnlockSony(unlock_code string) error
- func (d *Device) WriteZadigConfig() error
Constants ¶
This section is empty.
Variables ¶
View Source
var D1 = NewDevice()
View Source
var UnlockableBrands = []string{"sony", "motorola", "samsung", "nvidia", "oneplus"}
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
ObserveMe bool
State string
State_request string
State_reached chan string
States_history []string
Flashing bool
Scanning bool
Model string
Codename string
Codename_ambiguous bool
Brand string
IsBrandUnlockable bool
Name string
Arch string
Imei string
IsAB bool
IsAB_checked bool
IsUnlocked bool
IsSupported bool
IsSupported_checked bool
TwrpVersionConnected string
AdbProps map[string]string
FastbootVars map[string]string
}
func (*Device) BootRecovery ¶
Boot a given recovery image. If a partition name other than "boot" can be looked up, try to flash the image to the looked up partition Returns user instructions to boot recovery after flash (key combination)
func (*Device) FlashRom ¶
Flashes a rom zip file using TWRP and adb sideload. "Clean flash" (formating data) if wipe == "clean"
func (*Device) GetUnlockData ¶
func (*Device) HandleStateRequest ¶
func (*Device) InstallDriversWithZadig ¶ added in v1.0.0
func (*Device) InstallUniversalDrivers ¶ added in v1.0.0
func (*Device) ReadMissingProps ¶
func (d *Device) ReadMissingProps()
func (*Device) UnlockMotorola ¶
func (*Device) UnlockSony ¶
func (*Device) WriteZadigConfig ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.