class AdbShellImpl
Defined at line 54 of file ../../src/developer/adb/bin/adb-shell/adb-shell.h
Class containing context of each shell instance.
Public Methods
void AdbShellImpl (fidl::UnownedClientEnd<fuchsia_io::Directory> svc, async_dispatcher_t * dispatcher)
Defined at line 56 of file ../../src/developer/adb/bin/adb-shell/adb-shell.h
zx_status_t Start (zx::socket adb, std::string moniker, std::optional<std::string> args, fit::callback<void (AdbShellImpl *)> on_dead)
Starts a dash shell with the help of dash launcher service. |moniker| is configured during
build time and is "./bootstrap/console-launcher" by default which provides a shell similar to
serial console. When the |adb| socket closes or when the user exits the shell, the dash
launcher will terminate the dash instance and sends an OnTerminate event which will eventually
result in dtor of AdbShellImpl getting called.
Defined at line 87 of file ../../src/developer/adb/bin/adb-shell/adb-shell.cc
void OnTerminated (fidl::WireEvent<fuchsia_dash::Launcher::OnTerminated> * event)
fuchsia_dash::Launcher event.
Defined at line 130 of file ../../src/developer/adb/bin/adb-shell/adb-shell.cc