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

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

Merge "Prevent construction/use of invalid restore session proxies" into jb-dev

parents ae5811c7 f5491fc1
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -145,8 +145,10 @@ public class BackupManager {
            try {
                IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(),
                        null);
                if (binder != null) {
                    session = new RestoreSession(mContext, binder);
                    result = session.restorePackage(mContext.getPackageName(), observer);
                }
            } catch (RemoteException e) {
                Log.w(TAG, "restoreSelf() unable to contact service");
            } finally {
@@ -170,7 +172,9 @@ public class BackupManager {
            try {
                // All packages, current transport
                IRestoreSession binder = sService.beginRestoreSession(null, null);
                if (binder != null) {
                    session = new RestoreSession(mContext, binder);
                }
            } catch (RemoteException e) {
                Log.w(TAG, "beginRestoreSession() couldn't connect");
            }