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

Commit ab63aa87 authored by Christopher Tate's avatar Christopher Tate
Browse files

Use the new INSTALL_FROM_ADB Package Manager flag...

...when installing an apk in the course of an 'adb restore' operation.

Fixes bug 5374597.

Change-Id: I8ddce0e015e3bab79432e82709d841887667c346
parent 52edaa9c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3380,7 +3380,8 @@ class BackupManagerService extends IBackupManager.Stub {
                Uri packageUri = Uri.fromFile(apkFile);
                mInstallObserver.reset();
                mPackageManager.installPackage(packageUri, mInstallObserver,
                        PackageManager.INSTALL_REPLACE_EXISTING, installerPackage);
                        PackageManager.INSTALL_REPLACE_EXISTING | PackageManager.INSTALL_FROM_ADB,
                        installerPackage);
                mInstallObserver.waitForCompletion();

                if (mInstallObserver.getResult() != PackageManager.INSTALL_SUCCEEDED) {