clearSystemProxy static method

Future<bool> clearSystemProxy()

Clears the system proxy on Android

This requires root access or ADB permissions Returns true if successful, false otherwise

Implementation

static Future<bool> clearSystemProxy() async {
  if (!isSupported) {
    return false;
  }

  try {
    final result = await _channel.invokeMethod('clearSystemProxy');
    return result == true;
  } catch (e) {
    if (kDebugMode) {
      print('Error clearing system proxy: $e');
    }
    return false;
  }
}