geoFixArguments function

List<String> geoFixArguments(
  1. String serial,
  2. SimulatedLocation location
)

Arguments for adb -s <serial> emu geo fix <longitude> <latitude> <altitude>.

Note the emulator console takes longitude first.

Implementation

List<String> geoFixArguments(String serial, SimulatedLocation location) => [
  '-s',
  serial,
  'emu',
  'geo',
  'fix',
  location.longitude.toStringAsFixed(7),
  location.latitude.toStringAsFixed(7),
  location.altitude.toStringAsFixed(1),
];