commit | aa0e82cfca03d363138c64cf1e732f59569b31e2 | [log] [tgz] |
---|---|---|
author | Chirayu Desai <chirayudesai1@gmail.com> | Mon Oct 09 00:16:15 2023 +0530 |
committer | Chirayu Desai <chirayudesai1@gmail.com> | Mon Oct 09 00:16:15 2023 +0530 |
tree | 7565f5afbc4f90562b0996258a99b3cd7448b392 | |
parent | 1e2d66fcccec319bc33b21161d7572e3b4eea8d3 [diff] |
ApkInstaller: Supress NewApi for * Pre-34, this was marked as @hide and @TestApi * We were using it as a system app with hidden APIs allowed, and having added the framework android.jar to gradle * https://android.googlesource.com/platform/frameworks/base/+/91fa0b12986ac4832568ce2e7280d1da52a959da made it public, so lint now complains. Silence that. Change-Id: I5a1ec9847a25a0798726af3867d7660db1528a00
diff --git a/app/src/main/java/com/stevesoltys/seedvault/restore/install/ApkInstaller.kt b/app/src/main/java/com/stevesoltys/seedvault/restore/install/ApkInstaller.kt index 4e51a29..3fc68d8 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/restore/install/ApkInstaller.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/restore/install/ApkInstaller.kt
@@ -1,5 +1,6 @@ package com.stevesoltys.seedvault.restore.install +import android.annotation.SuppressLint import android.app.PendingIntent import android.app.PendingIntent.FLAG_MUTABLE import android.app.PendingIntent.FLAG_UPDATE_CURRENT @@ -57,6 +58,7 @@ install(cachedApks, installerPackageName) } + @SuppressLint("NewApi") private fun install(cachedApks: List<File>, installerPackageName: String?) { val sessionParams = SessionParams(MODE_FULL_INSTALL).apply { setInstallerPackageName(installerPackageName)