18 lines
544 B
Kotlin
18 lines
544 B
Kotlin
/*
|
|
* Copyright © 2017-2023 WireGuard LLC. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
package com.wireguard.android.util
|
|
|
|
import android.content.RestrictionsManager
|
|
import androidx.core.content.getSystemService
|
|
import com.wireguard.android.Application
|
|
|
|
object AdminKnobs {
|
|
private val restrictions: RestrictionsManager? = Application.get().getSystemService()
|
|
val disableConfigExport: Boolean
|
|
get() = restrictions?.applicationRestrictions?.getBoolean("disable_config_export", false)
|
|
?: false
|
|
}
|