seedvault-app / seedvault

A backup application for the Android Open Source Project.
1.26k stars 74 forks source link

Handle failure to install apps with deprecated target SDK version #676

Open t-m-w opened 3 months ago

t-m-w commented 3 months ago

Some apps, e.g. the old Pebble app for smartwatches, can no longer be installed easily in newer versions of Android due to their old target SDK version. These apps can continue to be used if they were already installed (or if they were installed using an adb flag to override the restriction), and Seedvault backs up these apps, but it fails to install them during a restoration. We should have enough info for Seedvault to display an intelligible error or handle this in some other way.

D ApkInstaller: Received result for com.getpebble.android.basalt: success=false INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 22

theimpulson commented 1 month ago

I think we should always restore all apps bypassing the restriction if possible as even if an app is old, it may be important to the user (such as being a medical app). However, I assume not all OS integrating Seedvault would want this behaviour so we should allow them to override it as well.