Documentation
¶
Index ¶
- Constants
- type AdbCallbackProxy
- type AdbManagerProxy
- func (p *AdbManagerProxy) AllowDebugging(ctx context.Context, alwaysAllow bool, publicKey string) error
- func (p *AdbManagerProxy) AllowWirelessDebugging(ctx context.Context, alwaysAllow bool, bssid string) error
- func (p *AdbManagerProxy) AsBinder() binder.IBinder
- func (p *AdbManagerProxy) ClearDebuggingKeys(ctx context.Context) error
- func (p *AdbManagerProxy) DenyDebugging(ctx context.Context) error
- func (p *AdbManagerProxy) DenyWirelessDebugging(ctx context.Context) error
- func (p *AdbManagerProxy) DisablePairing(ctx context.Context) error
- func (p *AdbManagerProxy) EnablePairingByPairingCode(ctx context.Context) error
- func (p *AdbManagerProxy) EnablePairingByQrCode(ctx context.Context, serviceName string, password string) error
- func (p *AdbManagerProxy) GetAdbWirelessPort(ctx context.Context) (int32, error)
- func (p *AdbManagerProxy) GetPairedDevices(ctx context.Context) ([]FingerprintAndPairDevice, error)
- func (p *AdbManagerProxy) IsAdbWifiQrSupported(ctx context.Context) (bool, error)
- func (p *AdbManagerProxy) IsAdbWifiSupported(ctx context.Context) (bool, error)
- func (p *AdbManagerProxy) RegisterCallback(ctx context.Context, callback IAdbCallback) error
- func (p *AdbManagerProxy) UnpairDevice(ctx context.Context, fingerprint string) error
- func (p *AdbManagerProxy) UnregisterCallback(ctx context.Context, callback IAdbCallback) error
- type AdbTransportProxy
- type AdbTransportType
- type FingerprintAndPairDevice
- type IAdbCallback
- type IAdbManager
- type IAdbTransport
- type PairDevice
Constants ¶
View Source
const ( TransactionIAdbManagerAllowDebugging = binder.FirstCallTransaction + 0 TransactionIAdbManagerDenyDebugging = binder.FirstCallTransaction + 1 TransactionIAdbManagerClearDebuggingKeys = binder.FirstCallTransaction + 2 TransactionIAdbManagerAllowWirelessDebugging = binder.FirstCallTransaction + 3 TransactionIAdbManagerDenyWirelessDebugging = binder.FirstCallTransaction + 4 TransactionIAdbManagerGetPairedDevices = binder.FirstCallTransaction + 5 TransactionIAdbManagerUnpairDevice = binder.FirstCallTransaction + 6 TransactionIAdbManagerEnablePairingByPairingCode = binder.FirstCallTransaction + 7 TransactionIAdbManagerEnablePairingByQrCode = binder.FirstCallTransaction + 8 TransactionIAdbManagerGetAdbWirelessPort = binder.FirstCallTransaction + 9 TransactionIAdbManagerDisablePairing = binder.FirstCallTransaction + 10 TransactionIAdbManagerIsAdbWifiSupported = binder.FirstCallTransaction + 11 TransactionIAdbManagerIsAdbWifiQrSupported = binder.FirstCallTransaction + 12 TransactionIAdbManagerRegisterCallback = binder.FirstCallTransaction + 13 TransactionIAdbManagerUnregisterCallback = binder.FirstCallTransaction + 14 )
View Source
const DescriptorIAdbCallback = "android.debug.IAdbCallback"
View Source
const DescriptorIAdbManager = "android.debug.IAdbManager"
View Source
const DescriptorIAdbTransport = "android.debug.IAdbTransport"
View Source
const (
TransactionIAdbCallbackOnDebuggingChanged = binder.FirstCallTransaction + 0
)
View Source
const (
TransactionIAdbTransportOnAdbEnabled = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdbCallbackProxy ¶
type AdbCallbackProxy struct {
// contains filtered or unexported fields
}
func NewAdbCallbackProxy ¶
func NewAdbCallbackProxy( remote binder.IBinder, ) *AdbCallbackProxy
func (*AdbCallbackProxy) AsBinder ¶
func (p *AdbCallbackProxy) AsBinder() binder.IBinder
func (*AdbCallbackProxy) OnDebuggingChanged ¶
func (p *AdbCallbackProxy) OnDebuggingChanged( ctx context.Context, enabled bool, type_ AdbTransportType, ) error
type AdbManagerProxy ¶
type AdbManagerProxy struct {
// contains filtered or unexported fields
}
func NewAdbManagerProxy ¶
func NewAdbManagerProxy( remote binder.IBinder, ) *AdbManagerProxy
func (*AdbManagerProxy) AllowDebugging ¶
func (*AdbManagerProxy) AllowWirelessDebugging ¶
func (*AdbManagerProxy) AsBinder ¶
func (p *AdbManagerProxy) AsBinder() binder.IBinder
func (*AdbManagerProxy) ClearDebuggingKeys ¶
func (p *AdbManagerProxy) ClearDebuggingKeys( ctx context.Context, ) error
func (*AdbManagerProxy) DenyDebugging ¶
func (p *AdbManagerProxy) DenyDebugging( ctx context.Context, ) error
func (*AdbManagerProxy) DenyWirelessDebugging ¶
func (p *AdbManagerProxy) DenyWirelessDebugging( ctx context.Context, ) error
func (*AdbManagerProxy) DisablePairing ¶
func (p *AdbManagerProxy) DisablePairing( ctx context.Context, ) error
func (*AdbManagerProxy) EnablePairingByPairingCode ¶
func (p *AdbManagerProxy) EnablePairingByPairingCode( ctx context.Context, ) error
func (*AdbManagerProxy) EnablePairingByQrCode ¶
func (*AdbManagerProxy) GetAdbWirelessPort ¶
func (p *AdbManagerProxy) GetAdbWirelessPort( ctx context.Context, ) (int32, error)
func (*AdbManagerProxy) GetPairedDevices ¶
func (p *AdbManagerProxy) GetPairedDevices( ctx context.Context, ) ([]FingerprintAndPairDevice, error)
func (*AdbManagerProxy) IsAdbWifiQrSupported ¶
func (p *AdbManagerProxy) IsAdbWifiQrSupported( ctx context.Context, ) (bool, error)
func (*AdbManagerProxy) IsAdbWifiSupported ¶
func (p *AdbManagerProxy) IsAdbWifiSupported( ctx context.Context, ) (bool, error)
func (*AdbManagerProxy) RegisterCallback ¶
func (p *AdbManagerProxy) RegisterCallback( ctx context.Context, callback IAdbCallback, ) error
func (*AdbManagerProxy) UnpairDevice ¶
func (p *AdbManagerProxy) UnpairDevice( ctx context.Context, fingerprint string, ) error
func (*AdbManagerProxy) UnregisterCallback ¶
func (p *AdbManagerProxy) UnregisterCallback( ctx context.Context, callback IAdbCallback, ) error
type AdbTransportProxy ¶
type AdbTransportProxy struct {
// contains filtered or unexported fields
}
func NewAdbTransportProxy ¶
func NewAdbTransportProxy( remote binder.IBinder, ) *AdbTransportProxy
func (*AdbTransportProxy) AsBinder ¶
func (p *AdbTransportProxy) AsBinder() binder.IBinder
func (*AdbTransportProxy) OnAdbEnabled ¶
func (p *AdbTransportProxy) OnAdbEnabled( ctx context.Context, enabled bool, type_ AdbTransportType, ) error
type AdbTransportType ¶
type AdbTransportType byte
const ( AdbTransportTypeUSB AdbTransportType = 0 AdbTransportTypeWIFI AdbTransportType = 1 )
type FingerprintAndPairDevice ¶
type FingerprintAndPairDevice struct {
KeyFingerprint string
Device PairDevice
}
func (*FingerprintAndPairDevice) MarshalParcel ¶
func (s *FingerprintAndPairDevice) MarshalParcel( p *parcel.Parcel, ) error
func (*FingerprintAndPairDevice) UnmarshalParcel ¶
func (s *FingerprintAndPairDevice) UnmarshalParcel( p *parcel.Parcel, ) error
type IAdbCallback ¶
type IAdbManager ¶
type IAdbManager interface {
AsBinder() binder.IBinder
AllowDebugging(ctx context.Context, alwaysAllow bool, publicKey string) error
DenyDebugging(ctx context.Context) error
ClearDebuggingKeys(ctx context.Context) error
AllowWirelessDebugging(ctx context.Context, alwaysAllow bool, bssid string) error
DenyWirelessDebugging(ctx context.Context) error
GetPairedDevices(ctx context.Context) ([]FingerprintAndPairDevice, error)
UnpairDevice(ctx context.Context, fingerprint string) error
EnablePairingByPairingCode(ctx context.Context) error
EnablePairingByQrCode(ctx context.Context, serviceName string, password string) error
GetAdbWirelessPort(ctx context.Context) (int32, error)
DisablePairing(ctx context.Context) error
IsAdbWifiSupported(ctx context.Context) (bool, error)
IsAdbWifiQrSupported(ctx context.Context) (bool, error)
RegisterCallback(ctx context.Context, callback IAdbCallback) error
UnregisterCallback(ctx context.Context, callback IAdbCallback) error
}
type IAdbTransport ¶
type PairDevice ¶
func (*PairDevice) MarshalParcel ¶
func (s *PairDevice) MarshalParcel( p *parcel.Parcel, ) error
func (*PairDevice) UnmarshalParcel ¶
func (s *PairDevice) UnmarshalParcel( p *parcel.Parcel, ) error
Click to show internal directories.
Click to hide internal directories.