Fix BG update OS requirement

This commit is contained in:
Imran Remtulla
2023-08-30 21:40:05 -04:00
parent 4b63c124bb
commit 370ec1432e

View File

@@ -393,7 +393,7 @@ class AppsProvider with ChangeNotifier {
(await getInstalledInfo(app.id))?.applicationInfo?.targetSdkVersion;
// The OS must also be new enough and the APK should target a new enough API
return osInfo.version.sdkInt >= 30 &&
return osInfo.version.sdkInt >= 31 &&
targetSDK != null &&
targetSDK >= // https://developer.android.com/reference/android/content/pm/PackageInstaller.SessionParams#setRequireUserAction(int)
(osInfo.version.sdkInt - 3);