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

Commit fcd615fa authored by Michal Karpinski's avatar Michal Karpinski
Browse files

[RefactoredBMS] Do not perform backup/restore of instant apps

This CL replicates ag/2256021 in RefactoredBMS.

Test: runtest -p com.android.server.backup frameworks-services
Bug: 37973765
Change-Id: Icf615b97025aa09681f9d25b1de3f94e60a45ee4
parent 89c8a9fa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -61,6 +61,11 @@ public class AppBackupUtils {
            return false;
        }

        // 4. it is an "instant" app
        if (app.isInstantApp()) {
            return false;
        }

        // Everything else checks out; the only remaining roadblock would be if the
        // package were disabled
        return !appIsDisabled(app, pm);