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

Commit 871e96ab authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Don't run full backups on stopped packages"

parents 9c1353ee b538d3c0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3862,6 +3862,14 @@ public class BackupManagerService {
                            Slog.d(TAG, "Ignoring non-agent system package " + pkg);
                        }
                        continue;
                    } else if ((info.applicationInfo.flags & ApplicationInfo.FLAG_STOPPED) != 0) {
                        // Cull any packages in the 'stopped' state: they've either just been
                        // installed or have explicitly been force-stopped by the user.  In both
                        // cases we do not want to launch them for backup.
                        if (MORE_DEBUG) {
                            Slog.d(TAG, "Ignoring stopped package " + pkg);
                        }
                        continue;
                    }
                    mPackages.add(info);
                } catch (NameNotFoundException e) {