Tiefkuehlpizze / oandbackupx

backup manager for android
GNU Affero General Public License v3.0
5 stars 0 forks source link

Are there devices with Android 7+ without staging directory /data/local/tmp? #2

Closed Tiefkuehlpizze closed 4 years ago

Tiefkuehlpizze commented 4 years ago

Are there devices with Android 7+ without staging directory /data/local/tmp?

There are codepaths in restore procedure, that define installation from different paths to for restoring apks. The expected way to restore apks is to use the staging directory /data/local/tmp because this is the only path the package manager accepts to install apks from (alternatively stream the apk contents like adb install does).

The second way is used, when the staging directory does not exist and the backup directory is oandbackupx's own data directory. (I don't know how to configure oandbackupx to use this as backup path. Backup location is always on the external storage). The strategy is to copy the apk to the external storage and install it then. With the definition from above, that package manager would refuse to install from another path than the /dat/local/tmp this would fail on recent Android versions. This might be a relict that works on older, unsupported versions. I would suggest to drop this and see if anybody reports issues when restoring. Maybe a niche vendor uses a broken Android configuration that would need this.

Third way is to install the backup from the location where it is. I would assume this would happen more likely than the second way and then there is a chance that it would succeed.

Without having it tested, it might make sense to always use apk streaming.

Tiefkuehlpizze commented 4 years ago

Android 7 has been dropped. Please use old and reliable backup solution even if they are not FOSS and proprietary :confused: