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
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 @@
// 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();