summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDianne Hackborn2011-10-19 15:42:36 -0700
committerDianne Hackborn2011-10-19 15:43:05 -0700
commit86bf6d8ac38de74b1bead64ac26fe5130dfffbf5 (patch)
tree55df49f2df515fc547dadc2a6b32eae125e83fd8
parentf31b933a8aebf07e3feb512ac650c5691c8c5e0f (diff)
Maybe fix issue #5483324: full builds getting stuck on black screen
Provisioning app should just finish, not kill itself. This does not impact the normal device image, which does not include this app. Change-Id: I483289d140efa8772b0566f065b31cdd2810d7a9
-rw-r--r--src/com/android/provision/DefaultActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/provision/DefaultActivity.java b/src/com/android/provision/DefaultActivity.java
index 0cc5d34..e3be993 100644
--- a/src/com/android/provision/DefaultActivity.java
+++ b/src/com/android/provision/DefaultActivity.java
@@ -37,7 +37,8 @@ public class DefaultActivity extends Activity {
// remove this activity from the package manager.
PackageManager pm = getPackageManager();
ComponentName name = new ComponentName(this, DefaultActivity.class);
- pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
+ pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
+ PackageManager.DONT_KILL_APP);
// terminate the activity.
finish();