isRootAvailable method

  1. @override
Future<bool> isRootAvailable()
override

Whether this device exposes a usable su binary.

Different from a successfully started root server: this is a pre-flight check that never prompts for authorization.

Implementation

@override
Future<bool> isRootAvailable() async =>
    await methodChannel.invokeMethod<bool>('isRootAvailable') ?? false;