summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/ApplicationPackageManager.java
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-03-26 20:00:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-26 20:00:11 +0000
commit1ee4eb074c2d85148658e93e865a18834bdced72 (patch)
tree9ac244717091a290c8c06a3de80b4eeb8d97679b /core/java/android/app/ApplicationPackageManager.java
parent460572b22fe8fe5880ad099090b38765e2f8a2f6 (diff)
parent7629a18a3f190368e6268d3f2827824905683268 (diff)
downloadframeworks_base-1ee4eb074c2d85148658e93e865a18834bdced72.zip
frameworks_base-1ee4eb074c2d85148658e93e865a18834bdced72.tar.gz
frameworks_base-1ee4eb074c2d85148658e93e865a18834bdced72.tar.bz2
Merge "Revert "Expand install observer semantics""
Diffstat (limited to 'core/java/android/app/ApplicationPackageManager.java')
-rw-r--r--core/java/android/app/ApplicationPackageManager.java49
1 files changed, 5 insertions, 44 deletions
diff --git a/core/java/android/app/ApplicationPackageManager.java b/core/java/android/app/ApplicationPackageManager.java
index 6ca5244..0615bd9 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!
}