PackageUtil: Suppress deprecation warning for install perm check

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-07-29 14:19:29 +07:00
parent 4f6c9c4020
commit b7b11fcccc

View File

@@ -159,6 +159,7 @@ object PackageUtil {
return if (isOAndAbove()) {
context.packageManager.canRequestPackageInstalls()
} else {
@Suppress("DEPRECATION")
val secureResult = Settings.Secure.getInt(
context.contentResolver,
Settings.Secure.INSTALL_NON_MARKET_APPS, 0