setBiometricEnrolled method

Future<String?> setBiometricEnrolled(
  1. String udid,
  2. bool enrolled
)

Enrols or unenrols Face ID / Touch ID (one flag covers both), then posts the change so running apps see it.

Implementation

Future<String?> setBiometricEnrolled(String udid, bool enrolled) async =>
    await _run(['spawn', udid, 'notifyutil', '-s', _enrollmentKey, enrolled ? '1' : '0']) ??
    await _run(['spawn', udid, 'notifyutil', '-p', _enrollmentKey]);