Custom Cert Manager
class CustomCertManager @JvmOverloads constructor(context: Context, val trustSystemCerts: Boolean = true, var appInForeground: StateFlow<Boolean>?) : X509TrustManager
TrustManager to handle custom certificates.
Initializes Conscrypt when it is first loaded.
Parameters
trust System Certs
whether system certificates will be trusted
app In Foreground
true
: if needed, directly launches TrustCertificateActivity and shows notification (if possible)false
: if needed, shows notification (if possible)null
: non-interactive mode: does not show notification or launch activity