1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
use std::fmt::Debug;
use std::path::PathBuf;

use crate::errors::AdbError;
use crate::types::DeviceAddress;

pub type Result<T> = std::result::Result<T, AdbError>;

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
#[repr(transparent)]
pub struct Adb(PathBuf);

pub struct Shell {}

pub struct Client {}

#[allow(dead_code)]
#[derive(Clone, PartialEq, Eq, Hash)]
#[repr(transparent)]
pub struct Device(DeviceAddress);

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct PackageManager<'a> {
	pub(crate) parent: AdbShell<'a>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct ActivityManager<'a> {
	pub(crate) parent: AdbShell<'a>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct AdbClient {
	pub adb: Adb,
	pub device: Device,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct AdbShell<'a> {
	pub(crate) parent: &'a AdbClient,
}

pub mod adb;

pub mod client;

pub mod future;

pub mod macros;

pub mod shell;

pub mod traits;

pub mod types;

pub mod am;

pub mod dump_util;

pub mod errors;

pub mod pm;

#[cfg(feature = "scanner")]
pub mod scanner;

pub mod impls;

mod cmd_ext;
mod debug;
mod tests;