Merge "Regenerate ApplicationInfo if package suspend state is changed." into nyc-dev am: 0c9c09c

am: b3e7163

* commit 'b3e71637e7167658c6b46e591d0a7addf255b9e6':
  Regenerate ApplicationInfo if package suspend state is changed.

Change-Id: I50f214daf8818529c32358bbb4658bdf4ef41769
This commit is contained in:
Rubin Xu
2016-04-25 10:23:55 +00:00
committed by android-build-merger

View File

@@ -85,6 +85,7 @@ import static android.content.pm.ActivityInfo.RESIZE_MODE_RESIZEABLE;
import static android.content.pm.ActivityInfo.RESIZE_MODE_RESIZEABLE_AND_PIPABLE;
import static android.content.pm.ActivityInfo.RESIZE_MODE_UNRESIZEABLE;
import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
import static android.content.pm.ApplicationInfo.FLAG_SUSPENDED;
import static android.content.pm.ApplicationInfo.PRIVATE_FLAG_RESIZEABLE_ACTIVITIES;
import static android.content.pm.PackageManager.INSTALL_PARSE_FAILED_BAD_MANIFEST;
import static android.content.pm.PackageManager.INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME;
@@ -5288,6 +5289,10 @@ public class PackageParser {
return true;
}
}
boolean suspended = (p.applicationInfo.flags & FLAG_SUSPENDED) != 0;
if (state.suspended != suspended) {
return true;
}
if (!state.installed || state.hidden) {
return true;
}