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

Commit 99abeed2 authored by Rubin Xu's avatar Rubin Xu
Browse files

Perform post installation operations directly if backup manager is disabled

bug: 19312753

Change-Id: I4acdd1e3af6a6be0c51affc42de167993c736b2f
parent 07c745b5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8636,7 +8636,11 @@ public class PackageManagerService extends IPackageManager.Stub {
                        if (DEBUG_INSTALL) Log.v(TAG, "token " + token
                                + " to BM for possible restore");
                        try {
                            if (bm.isBackupServiceActive(UserHandle.USER_OWNER)) {
                                bm.restoreAtInstall(res.pkg.applicationInfo.packageName, token);
                            } else {
                                doRestore = false;
                            }
                        } catch (RemoteException e) {
                            // can't happen; the backup manager is local
                        } catch (Exception e) {