root method

Future<void> root({
  1. bool debug = false,
})

Roots the connection with the device.

Implementation

Future<void> root({bool debug = false}) async {
  if (await isRooted(debug: debug)) {
    return;
  }
  return await _bridge.executor.root(_connection.arguments, debug: debug);
}