mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-20 17:53:46 +02:00
Correct a log string (#2519)
This commit is contained in:
@@ -774,10 +774,13 @@ class AppsProvider with ChangeNotifier {
|
||||
int? targetSDK = (await getInstalledInfo(
|
||||
app.id,
|
||||
))?.applicationInfo?.targetSdkVersion;
|
||||
int requiredSDK = osInfo.version.sdkInt - 3;
|
||||
// The APK should target a new enough API
|
||||
// https://developer.android.com/reference/android/content/pm/PackageInstaller.SessionParams#setRequireUserAction(int)
|
||||
if (!(targetSDK != null && targetSDK >= (osInfo.version.sdkInt - 3))) {
|
||||
logs.add('Multiple APK URLs: ${app.id}');
|
||||
if (!(targetSDK != null && targetSDK >= requiredSDK)) {
|
||||
logs.add(
|
||||
'App currently targets API ${targetSDK} which is too low for background updates (requires API ${requiredSDK}): ${app.id}',
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user