merge in jb-mr1.1-release history after reset to jb-mr1.1-dev
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index dfc1a6d..de11795 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -10,6 +10,7 @@
     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.MANAGE_USERS" />
     <application android:label="@string/app_name"
             android:allowBackup="false"
             android:theme="@android:style/Theme.DeviceDefault.DialogWhenLarge.NoActionBar">
diff --git a/src/com/android/packageinstaller/UninstallerActivity.java b/src/com/android/packageinstaller/UninstallerActivity.java
index 93e096e..1b9bdce 100755
--- a/src/com/android/packageinstaller/UninstallerActivity.java
+++ b/src/com/android/packageinstaller/UninstallerActivity.java
@@ -20,6 +20,7 @@
 import android.app.AlertDialog;
 import android.app.Dialog;
 import android.content.ComponentName;
+import android.content.Context;
 import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.pm.ActivityInfo;
@@ -30,6 +31,7 @@
 import android.graphics.drawable.Drawable;
 import android.net.Uri;
 import android.os.Bundle;
+import android.os.UserManager;
 import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
@@ -161,7 +163,8 @@
                 confirm.setText(R.string.uninstall_update_text);
             } else {
                 setTitle(R.string.uninstall_application_title);
-                if (mAllUsers) {
+                if (mAllUsers && ((UserManager)getSystemService(
+                        Context.USER_SERVICE)).getUsers().size() >= 2) {
                     confirm.setText(R.string.uninstall_application_text_all_users);
                 } else {
                     confirm.setText(R.string.uninstall_application_text);