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