Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54c6d6c8 authored by Anton Philippov's avatar Anton Philippov
Browse files

Fix restore from higher SDKs in SettingsBackupAgent

Actually skip the backup data for the unsupported key.

Bug: 77867300
Test: manual (adb shell bmgr restore com.android.providers.settings from
a backup set created by sdk 101)

Change-Id: I3d6a97ecbc0b048a3d07329542771f434e7e154d
parent 752cd826
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -253,6 +253,7 @@ public class SettingsBackupAgent extends BackupAgentHelper {
                    && !RESTORE_FROM_HIGHER_SDK_INT_SUPPORTED_KEYS.contains(key)) {
                Log.w(TAG, "Not restoring unrecognized key '"
                        + key + "' from future version " + appVersionCode);
                data.skipEntityData();
                continue;
            }