amICompromised method

  1. @override
Future<bool?> amICompromised()
override

Implementation

@override
Future<bool?> amICompromised() async {
  final compromised = await methodChannel.invokeMethod<bool>('runprog');

  if (compromised == false && Platform.isAndroid) {
    final magisk = await methodChannel.invokeMethod<bool>('runprog4');
    return magisk;
  } else {
    return compromised;
  }
}