Fix the simulator.

This commit is contained in:
Marco Nelissen
2009-07-02 15:23:26 -07:00
parent fe11ea5e2d
commit d595c79cdd

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 {