summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorandroid-build SharedAccount <android-build@sekiwake.mtv.corp.google.com>2010-02-16 12:53:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-02-16 12:53:04 -0800
commitf8bb2a9ad096071fb7d45c769d031b2e1853317e (patch)
treeac6db61749e4e403f3e70356dabecaae4556471f /services
parent58d6a20cfaa55ebe269ac0736999b90c3227b0c1 (diff)
parent5d72a8dda22cdb0c8e1ded1ca5e5122b0c25bcc7 (diff)
downloadframeworks_base-f8bb2a9ad096071fb7d45c769d031b2e1853317e.zip
frameworks_base-f8bb2a9ad096071fb7d45c769d031b2e1853317e.tar.gz
frameworks_base-f8bb2a9ad096071fb7d45c769d031b2e1853317e.tar.bz2
am 5d72a8dd: cherry pick d60e29009c1049a9776e6630e9489e1ef3f83491
Merge commit '5d72a8dda22cdb0c8e1ded1ca5e5122b0c25bcc7' into eclair-plus-aosp * commit '5d72a8dda22cdb0c8e1ded1ca5e5122b0c25bcc7': cherry pick d60e29009c1049a9776e6630e9489e1ef3f83491
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/PackageManagerService.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java
index 6df9f2b..86504a0 100644
--- a/services/java/com/android/server/PackageManagerService.java
+++ b/services/java/com/android/server/PackageManagerService.java
@@ -1977,12 +1977,6 @@ class PackageManagerService extends IPackageManager.Stub {
}
PackageParser.Package pkg = scanPackageLI(file, file, resFile,
flags|PackageParser.PARSE_MUST_BE_APK, scanMode);
- // Don't mess around with apps in system partition.
- if (pkg == null && (flags & PackageParser.PARSE_IS_SYSTEM) == 0) {
- // Delete the apk
- Log.w(TAG, "Cleaning up failed install of " + file);
- file.delete();
- }
}
}
@@ -2177,13 +2171,6 @@ class PackageManagerService extends IPackageManager.Stub {
File scanFile, File destCodeFile, File destResourceFile,
PackageParser.Package pkg, int parseFlags, int scanMode) {
- if (scanFile == null || destCodeFile == null ||
- destResourceFile == null) {
- // Bail out. The resource and code paths haven't been set.
- Log.w(TAG, " Code and resource paths haven't been set correctly");
- mLastScanError = PackageManager.INSTALL_FAILED_INVALID_APK;
- return null;
- }
mScanningPath = scanFile;
if (pkg == null) {
mLastScanError = PackageManager.INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME;