Merge change 6143 into donut

* changes:
  Fix the simulator.
This commit is contained in:
Android (Google) Code Review
2009-07-02 15:24:43 -07:00

View File

@@ -1918,7 +1918,7 @@ class PackageManagerService extends IPackageManager.Stub {
private int performDexOptLI(PackageParser.Package pkg, boolean forceDex) {
boolean performed = false;
if ((pkg.applicationInfo.flags&ApplicationInfo.FLAG_HAS_CODE) != 0) {
if ((pkg.applicationInfo.flags&ApplicationInfo.FLAG_HAS_CODE) != 0 && mInstaller != null) {
String path = pkg.mScanPath;
int ret = 0;
try {