diff options
| author | Glenn Kasten <gkasten@google.com> | 2014-03-26 19:59:48 +0000 |
|---|---|---|
| committer | Glenn Kasten <gkasten@google.com> | 2014-03-26 19:59:48 +0000 |
| commit | 7629a18a3f190368e6268d3f2827824905683268 (patch) | |
| tree | 392b2bde32c959d39d7a37bc0f3c46d7fbe3a55b /core/java/android/app/ApplicationPackageManager.java | |
| parent | ab8a501f255b272af887acb0e66eb71cdf24c755 (diff) | |
| download | frameworks_base-7629a18a3f190368e6268d3f2827824905683268.zip frameworks_base-7629a18a3f190368e6268d3f2827824905683268.tar.gz frameworks_base-7629a18a3f190368e6268d3f2827824905683268.tar.bz2 | |
Revert "Expand install observer semantics"
This reverts commit ab8a501f255b272af887acb0e66eb71cdf24c755.
Change-Id: I4ab4ae1a96efa2adf9d5a513793d8b84eef38b4e
Diffstat (limited to 'core/java/android/app/ApplicationPackageManager.java')
| -rw-r--r-- | core/java/android/app/ApplicationPackageManager.java | 49 |
1 files changed, 5 insertions, 44 deletions
diff --git a/core/java/android/app/ApplicationPackageManager.java b/core/java/android/app/ApplicationPackageManager.java index 39f91e6..8165fa1 100644 --- a/core/java/android/app/ApplicationPackageManager.java +++ b/core/java/android/app/ApplicationPackageManager.java @@ -29,7 +29,6 @@ import android.content.pm.FeatureInfo; import android.content.pm.IPackageDataObserver; import android.content.pm.IPackageDeleteObserver; import android.content.pm.IPackageInstallObserver; -import android.content.pm.IPackageInstallObserver2; import android.content.pm.IPackageManager; import android.content.pm.IPackageMoveObserver; import android.content.pm.IPackageStatsObserver; @@ -1074,7 +1073,7 @@ final class ApplicationPackageManager extends PackageManager { public void installPackage(Uri packageURI, IPackageInstallObserver observer, int flags, String installerPackageName) { try { - mPM.installPackageEtc(packageURI, observer, null, flags, installerPackageName); + mPM.installPackage(packageURI, observer, flags, installerPackageName); } catch (RemoteException e) { // Should never happen! } @@ -1085,8 +1084,8 @@ final class ApplicationPackageManager extends PackageManager { int flags, String installerPackageName, Uri verificationURI, ManifestDigest manifestDigest, ContainerEncryptionParams encryptionParams) { try { - mPM.installPackageWithVerificationEtc(packageURI, observer, null, flags, - installerPackageName, verificationURI, manifestDigest, encryptionParams); + mPM.installPackageWithVerification(packageURI, observer, flags, installerPackageName, + verificationURI, manifestDigest, encryptionParams); } catch (RemoteException e) { // Should never happen! } @@ -1097,46 +1096,8 @@ final class ApplicationPackageManager extends PackageManager { IPackageInstallObserver observer, int flags, String installerPackageName, VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) { try { - mPM.installPackageWithVerificationAndEncryptionEtc(packageURI, observer, null, - flags, installerPackageName, verificationParams, encryptionParams); - } catch (RemoteException e) { - // Should never happen! - } - } - - // Expanded observer-API versions - @Override - public void installPackage(Uri packageURI, PackageInstallObserver observer, - int flags, String installerPackageName) { - try { - mPM.installPackageEtc(packageURI, null, observer.mObserver, - flags, installerPackageName); - } catch (RemoteException e) { - // Should never happen! - } - } - - @Override - public void installPackageWithVerification(Uri packageURI, - PackageInstallObserver observer, int flags, String installerPackageName, - Uri verificationURI, ManifestDigest manifestDigest, - ContainerEncryptionParams encryptionParams) { - try { - mPM.installPackageWithVerificationEtc(packageURI, null, observer.mObserver, flags, - installerPackageName, verificationURI, manifestDigest, encryptionParams); - } catch (RemoteException e) { - // Should never happen! - } - } - - @Override - public void installPackageWithVerificationAndEncryption(Uri packageURI, - PackageInstallObserver observer, int flags, String installerPackageName, - VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) { - try { - mPM.installPackageWithVerificationAndEncryptionEtc(packageURI, null, - observer.mObserver, flags, installerPackageName, verificationParams, - encryptionParams); + mPM.installPackageWithVerificationAndEncryption(packageURI, observer, flags, + installerPackageName, verificationParams, encryptionParams); } catch (RemoteException e) { // Should never happen! } |
