Android-cuttlefish cvd tool
Classes | Functions
adb_wifi.cpp File Reference
#include "adb_wifi.h"
#include <fstream>
#include <random>
#include <thread>
#include <type_traits>
#include <adb/crypto/key.h>
#include <adb/crypto/x509_generator.h>
#include <android-base/file.h>
#include <android-base/parsenetaddress.h>
#include "client/pairing/pairing_client.h"
#include "adb_auth.h"
#include "adb_known_hosts.pb.h"
#include "adb_mdns.h"
#include "adb_utils.h"
#include "client/adb_client.h"
#include "sysdeps.h"
Include dependency graph for adb_wifi.cpp:

Classes

struct  PairingResultWaiter
 

Functions

static std::vector< uint8_t > stringToUint8 (const std::string &str)
 
bool SafeReplaceFile (std::string_view old_file, std::string_view new_file)
 
std::string get_user_known_hosts_path ()
 
bool load_known_hosts_from_file (const std::string &path, adb::proto::AdbKnownHosts &known_hosts)
 
static bool write_known_host_to_file (std::string &known_host)
 
bool adb_wifi_is_known_host (const std::string &host)
 
void adb_wifi_pair_device (const std::string &host, const std::string &password, std::string &response)
 

Function Documentation

◆ adb_wifi_is_known_host()

bool adb_wifi_is_known_host ( const std::string &  host)

◆ adb_wifi_pair_device()

void adb_wifi_pair_device ( const std::string &  host,
const std::string &  password,
std::string &  response 
)

◆ get_user_known_hosts_path()

std::string get_user_known_hosts_path ( )

◆ load_known_hosts_from_file()

bool load_known_hosts_from_file ( const std::string &  path,
adb::proto::AdbKnownHosts &  known_hosts 
)

◆ SafeReplaceFile()

bool SafeReplaceFile ( std::string_view  old_file,
std::string_view  new_file 
)

◆ stringToUint8()

static std::vector< uint8_t > stringToUint8 ( const std::string &  str)
static

◆ write_known_host_to_file()

static bool write_known_host_to_file ( std::string &  known_host)
static