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

Commit 9ee7b1cb authored by Piyush Mehrotra's avatar Piyush Mehrotra Committed by Android (Google) Code Review
Browse files

Merge "Remove PM#getPackageInfo call in restoreAtInstall flow" into main

parents ce4ffc40 960efebc
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -4008,21 +4008,11 @@ public class UserBackupManagerService {
    }

    private PackageInfo getPackageInfoForBMMLogging(String packageName) {
        try {
            return mPackageManager.getPackageInfoAsUser(packageName, 0, mUserId);
        } catch (NameNotFoundException e) {
            Slog.w(
                    TAG,
                    addUserIdToLogMessage(
                            mUserId, "Asked to get PackageInfo for BMM logging of nonexistent pkg "
                                    + packageName));

        PackageInfo packageInfo = new PackageInfo();
        packageInfo.packageName = packageName;

        return packageInfo;
    }
    }

    /** Hand off a restore session. */
    public IRestoreSession beginRestoreSession(String packageName, String transport) {