adb library
Helpers for playing a simulation on an Android emulator with adb emu geo fix.
Pure functions only (no dart:io); the route_simulator:emulator command uses them.
Classes
- AdbDevice
-
A line of
adb devicesoutput.
Functions
-
geoFixArguments(
String serial, SimulatedLocation location) → List< String> -
Arguments for
adb -s <serial> emu geo fix <longitude> <latitude> <altitude>. -
parseAdbDevices(
String output) → List< AdbDevice> -
Parses the output of
adb devices. -
selectEmulator(
List< AdbDevice> devices, {String? requested}) → AdbDevice - Picks the emulator to send fixes to, or throws StateError with a message to show the user.