Android-cuttlefish cvd tool
|
#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"
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) |
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 | ||
) |
std::string get_user_known_hosts_path | ( | ) |
bool load_known_hosts_from_file | ( | const std::string & | path, |
adb::proto::AdbKnownHosts & | known_hosts | ||
) |
bool SafeReplaceFile | ( | std::string_view | old_file, |
std::string_view | new_file | ||
) |
|
static |
|
static |