summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDvTonder <david.vantonder@gmail.com>2014-11-14 09:44:49 -0800
committerSteve Kondik <steve@cyngn.com>2015-10-25 21:49:31 -0700
commit8451a456fcfa23889c79c0ffe8406dde07c95c54 (patch)
tree754a51378c7ca92bd9d8bd531a0a4d7af27d50d9 /core
parentcdd6996ead6a1803f64df0e06300c507d868fcca (diff)
downloadframeworks_base-8451a456fcfa23889c79c0ffe8406dde07c95c54.zip
frameworks_base-8451a456fcfa23889c79c0ffe8406dde07c95c54.tar.gz
frameworks_base-8451a456fcfa23889c79c0ffe8406dde07c95c54.tar.bz2
Power menu customizations [1/2]
power reboot screenshot profile switcher airplane mode user switcher bug reports sound modes [mikeioannina]: Modify for CyanogenMod framework: Add advanced reboot options (2 of 2) This commit is an squash of the commits below and re-adds the reboot logic to CM. I took the liberty to rewrite some of the ShutdownThread code because it had some lingering issues present since I originally wrote this for CM7 (!!). Namely, the reboot reason was being changed when the items are pressed instead of when the user presses the positive button. This made some people add workarounds like handling back button presses and whatnot, these are gone now. commit 588464bea40b92b04c4aeee35c47f7becceeed56 Author: Roman Birg <roman@cyngn.com> Date: Thu Jul 10 14:20:42 2014 -0700 advanced reboot: add soft reboot option Adds a "Soft reboot" option which restarts zygote, as requested in JIRA CYAN-3998 Signed-off-by: Roman Birg <roman@cyngn.com> Conflicts: core/res/res/values/cm_arrays.xml core/res/res/values/cm_strings.xml services/java/com/android/server/power/ShutdownThread.java commit 3e7b92551bbf818ace41cd9b9532473ed7d18f2f Author: Veeti Paananen <veeti.paananen@rojekti.fi> Date: Tue Jul 23 16:34:35 2013 +0300 Show advanced reboot if using an insecure lock screen Enables the advanced reboot menu when locked if the selected lock method is insecure (= slide unlock). Conflicts: services/java/com/android/server/power/ShutdownThread.java commit cf42ed3993d5d05c9b2591883fefb6338fbcdd40 Author: DvTonder <david.vantonder@gmail.com> Date: Thu Feb 21 18:20:01 2013 -0500 Framework: Show the Advanced reboot menu only for the primary user Conflicts: services/java/com/android/server/power/ShutdownThread.java commit 08aa6fd643e0359114b86f50053921dd2d86fc50 Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org> Date: Mon Nov 4 03:37:40 2013 +0000 Framework: Add Advanced reboot (2 of 2) This commit responds to a setting in Development settings for including options in the power menu for rebooting into recovery or bootloader. It is defauled to off. When enabled, the Advanced reboot options will only be available once the device is unlocked. Enhance power menu reboot option * Use our old reboot icon * Set correct dialog title & message when rebooting * Move strings to cm_strings * Add back reboot_download string used by samsung devices * Remove Chinese translations, will be handled through crowdin policy: Remove references of Profiles in android.policy. We can't reference the CMSDK within a jar that is exported in the BOOTCLASSPATH, otherwise we end up overriding the 3rd party applications classloaded jar and causing various issues during runtime. Change-Id: Ia0b7950d17bb7450347b57d8a423c44df982b195
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/Intent.java9
-rw-r--r--core/java/android/provider/Settings.java13
-rw-r--r--core/java/com/android/internal/util/cm/PowerMenuConstants.java50
-rw-r--r--core/res/res/drawable-hdpi/ic_lock_power_reboot_alpha.pngbin1459 -> 1645 bytes
-rw-r--r--core/res/res/drawable-hdpi/ic_lock_profile_alpha.pngbin0 -> 3919 bytes
-rw-r--r--core/res/res/drawable-mdpi/ic_lock_power_reboot_alpha.pngbin1307 -> 3374 bytes
-rw-r--r--core/res/res/drawable-mdpi/ic_lock_profile_alpha.pngbin0 -> 3517 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ic_lock_power_reboot_alpha.pngbin1674 -> 1558 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ic_lock_profile_alpha.pngbin0 -> 4208 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ic_lock_power_reboot_alpha.pngbin1921 -> 17728 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ic_lock_profile_alpha.pngbin0 -> 2019 bytes
-rw-r--r--core/res/res/drawable/ic_lock_lock.xml2
-rw-r--r--core/res/res/drawable/ic_lock_profile.xml19
-rw-r--r--core/res/res/drawable/ic_lock_screenshot.xml27
-rw-r--r--core/res/res/drawable/ic_lock_settings.xml27
-rw-r--r--core/res/res/drawable/ic_lock_user.xml27
-rw-r--r--core/res/res/values-zh-rCN/strings.xml4
-rw-r--r--core/res/res/values/cm_arrays.xml19
-rw-r--r--core/res/res/values/cm_strings.xml33
-rw-r--r--core/res/res/values/strings.xml11
-rwxr-xr-xcore/res/res/values/symbols.xml9
21 files changed, 233 insertions, 17 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 87d52e4..92cf03e 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -1800,6 +1800,15 @@ public class Intent implements Parcelable, Cloneable {
*/
public static final String ACTION_CLOSE_SYSTEM_DIALOGS = "android.intent.action.CLOSE_SYSTEM_DIALOGS";
/**
+ * Broadcast Action: Update preferences for the power menu dialog. This is to provide a
+ * way for the preferences that need to be enabled/disabled to update because they were
+ * toggled elsewhere in the settings (ie profiles, immersive desktop, etc) so we don't have
+ * to do constant lookups while we wait for the menu to be created. Getting the values once
+ * when necessary is enough.
+ *@hide
+ */
+ public static final String UPDATE_POWER_MENU = "android.intent.action.UPDATE_POWER_MENU";
+ /**
* Broadcast Action: Trigger the download and eventual installation
* of a package.
* <p>Input: {@link #getData} is the URI of the package file to download.
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 7882e29..8a80ddd 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -6127,6 +6127,12 @@ public final class Settings {
public static final String LIVE_DISPLAY_COLOR_MATRIX = "live_display_color_matrix";
/**
+ * Whether to include options in power menu for rebooting into recovery or bootloader
+ * @hide
+ */
+ public static final String ADVANCED_REBOOT = "advanced_reboot";
+
+ /**
* This are the settings to be backed up.
*
* NOTE: Settings are backed up and restored in the order they appear
@@ -6182,6 +6188,7 @@ public final class Settings {
MOUNT_UMS_NOTIFY_ENABLED,
SLEEP_TIMEOUT,
DOUBLE_TAP_TO_WAKE,
+ ADVANCED_REBOOT
};
/**
@@ -6588,6 +6595,12 @@ public final class Settings {
public static final String ADB_ENABLED = "adb_enabled";
/**
+ * String to contain power menu actions
+ * @hide
+ */
+ public static final String POWER_MENU_ACTIONS = "power_menu_actions";
+
+ /**
* Whether Views are allowed to save their attribute data.
* @hide
*/
diff --git a/core/java/com/android/internal/util/cm/PowerMenuConstants.java b/core/java/com/android/internal/util/cm/PowerMenuConstants.java
new file mode 100644
index 0000000..3debd09
--- /dev/null
+++ b/core/java/com/android/internal/util/cm/PowerMenuConstants.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2015 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.internal.util.cm;
+
+/* Master list of all actions for the power menu */
+public class PowerMenuConstants {
+ public static final String GLOBAL_ACTION_KEY_POWER = "power";
+ public static final String GLOBAL_ACTION_KEY_REBOOT = "reboot";
+ public static final String GLOBAL_ACTION_KEY_SCREENSHOT = "screenshot";
+ public static final String GLOBAL_ACTION_KEY_AIRPLANE = "airplane";
+ public static final String GLOBAL_ACTION_KEY_USERS = "users";
+ public static final String GLOBAL_ACTION_KEY_SETTINGS = "settings";
+ public static final String GLOBAL_ACTION_KEY_LOCKDOWN = "lockdown";
+ public static final String GLOBAL_ACTION_KEY_BUGREPORT = "bugreport";
+ public static final String GLOBAL_ACTION_KEY_SILENT = "silent";
+ public static final String GLOBAL_ACTION_KEY_VOICEASSIST = "voiceassist";
+ public static final String GLOBAL_ACTION_KEY_ASSIST = "assist";
+
+ private static String[] ALL_ACTIONS = {
+ GLOBAL_ACTION_KEY_POWER,
+ GLOBAL_ACTION_KEY_REBOOT,
+ GLOBAL_ACTION_KEY_SCREENSHOT,
+ GLOBAL_ACTION_KEY_AIRPLANE,
+ GLOBAL_ACTION_KEY_USERS,
+ GLOBAL_ACTION_KEY_SETTINGS,
+ GLOBAL_ACTION_KEY_LOCKDOWN,
+ GLOBAL_ACTION_KEY_BUGREPORT,
+ GLOBAL_ACTION_KEY_SILENT,
+ GLOBAL_ACTION_KEY_VOICEASSIST,
+ GLOBAL_ACTION_KEY_ASSIST
+ };
+
+ public static String[] getAllActions() {
+ return ALL_ACTIONS;
+ }
+}
diff --git a/core/res/res/drawable-hdpi/ic_lock_power_reboot_alpha.png b/core/res/res/drawable-hdpi/ic_lock_power_reboot_alpha.png
index 17b4866..ca00936 100644
--- a/core/res/res/drawable-hdpi/ic_lock_power_reboot_alpha.png
+++ b/core/res/res/drawable-hdpi/ic_lock_power_reboot_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ic_lock_profile_alpha.png b/core/res/res/drawable-hdpi/ic_lock_profile_alpha.png
new file mode 100644
index 0000000..7fc4cec
--- /dev/null
+++ b/core/res/res/drawable-hdpi/ic_lock_profile_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ic_lock_power_reboot_alpha.png b/core/res/res/drawable-mdpi/ic_lock_power_reboot_alpha.png
index 471a41c..2b125b9 100644
--- a/core/res/res/drawable-mdpi/ic_lock_power_reboot_alpha.png
+++ b/core/res/res/drawable-mdpi/ic_lock_power_reboot_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ic_lock_profile_alpha.png b/core/res/res/drawable-mdpi/ic_lock_profile_alpha.png
new file mode 100644
index 0000000..d47ba16
--- /dev/null
+++ b/core/res/res/drawable-mdpi/ic_lock_profile_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ic_lock_power_reboot_alpha.png b/core/res/res/drawable-xhdpi/ic_lock_power_reboot_alpha.png
index a786b40..653970f 100644
--- a/core/res/res/drawable-xhdpi/ic_lock_power_reboot_alpha.png
+++ b/core/res/res/drawable-xhdpi/ic_lock_power_reboot_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ic_lock_profile_alpha.png b/core/res/res/drawable-xhdpi/ic_lock_profile_alpha.png
new file mode 100644
index 0000000..4c9472c
--- /dev/null
+++ b/core/res/res/drawable-xhdpi/ic_lock_profile_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ic_lock_power_reboot_alpha.png b/core/res/res/drawable-xxhdpi/ic_lock_power_reboot_alpha.png
index 6072387..362bf28 100644
--- a/core/res/res/drawable-xxhdpi/ic_lock_power_reboot_alpha.png
+++ b/core/res/res/drawable-xxhdpi/ic_lock_power_reboot_alpha.png
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ic_lock_profile_alpha.png b/core/res/res/drawable-xxhdpi/ic_lock_profile_alpha.png
new file mode 100644
index 0000000..e23c484
--- /dev/null
+++ b/core/res/res/drawable-xxhdpi/ic_lock_profile_alpha.png
Binary files differ
diff --git a/core/res/res/drawable/ic_lock_lock.xml b/core/res/res/drawable/ic_lock_lock.xml
index 39f268a..6c87b42 100644
--- a/core/res/res/drawable/ic_lock_lock.xml
+++ b/core/res/res/drawable/ic_lock_lock.xml
@@ -16,4 +16,4 @@
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/ic_lock_lock_alpha"
- android:tint="?attr/colorControlActivated" />
+ android:tint="?attr/colorControlNormal" />
diff --git a/core/res/res/drawable/ic_lock_profile.xml b/core/res/res/drawable/ic_lock_profile.xml
new file mode 100644
index 0000000..393138b
--- /dev/null
+++ b/core/res/res/drawable/ic_lock_profile.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+ android:src="@drawable/ic_lock_profile_alpha"
+ android:tint="?attr/colorControlNormal" />
diff --git a/core/res/res/drawable/ic_lock_screenshot.xml b/core/res/res/drawable/ic_lock_screenshot.xml
new file mode 100644
index 0000000..b682f92
--- /dev/null
+++ b/core/res/res/drawable/ic_lock_screenshot.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="32dp"
+ android:height="32dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+
+ <path
+ android:fillColor="@color/white"
+ android:pathData="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z" />
+</vector>
diff --git a/core/res/res/drawable/ic_lock_settings.xml b/core/res/res/drawable/ic_lock_settings.xml
new file mode 100644
index 0000000..4c6ded2
--- /dev/null
+++ b/core/res/res/drawable/ic_lock_settings.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="32dp"
+ android:height="32dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+
+ <path
+ android:fillColor="@color/white"
+ android:pathData="M19.4,13.0c0.0,-0.3 0.1,-0.6 0.1,-1.0s0.0,-0.7 -0.1,-1.0l2.1,-1.7c0.2,-0.2 0.2,-0.4 0.1,-0.6l-2.0,-3.5C19.5,5.1 19.3,5.0 19.0,5.1l-2.5,1.0c-0.5,-0.4 -1.1,-0.7 -1.7,-1.0l-0.4,-2.6C14.5,2.2 14.2,2.0 14.0,2.0l-4.0,0.0C9.8,2.0 9.5,2.2 9.5,2.4L9.1,5.1C8.5,5.3 8.0,5.7 7.4,6.1L5.0,5.1C4.7,5.0 4.5,5.1 4.3,5.3l-2.0,3.5C2.2,8.9 2.3,9.2 2.5,9.4L4.6,11.0c0.0,0.3 -0.1,0.6 -0.1,1.0s0.0,0.7 0.1,1.0l-2.1,1.7c-0.2,0.2 -0.2,0.4 -0.1,0.6l2.0,3.5C4.5,18.9 4.7,19.0 5.0,18.9l2.5,-1.0c0.5,0.4 1.1,0.7 1.7,1.0l0.4,2.6c0.0,0.2 0.2,0.4 0.5,0.4l4.0,0.0c0.2,0.0 0.5,-0.2 0.5,-0.4l0.4,-2.6c0.6,-0.3 1.2,-0.6 1.7,-1.0l2.5,1.0c0.2,0.1 0.5,0.0 0.6,-0.2l2.0,-3.5c0.1,-0.2 0.1,-0.5 -0.1,-0.6L19.4,13.0zM12.0,15.5c-1.9,0.0 -3.5,-1.6 -3.5,-3.5s1.6,-3.5 3.5,-3.5s3.5,1.6 3.5,3.5S13.9,15.5 12.0,15.5z" />
+</vector>
diff --git a/core/res/res/drawable/ic_lock_user.xml b/core/res/res/drawable/ic_lock_user.xml
new file mode 100644
index 0000000..e951319
--- /dev/null
+++ b/core/res/res/drawable/ic_lock_user.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="32dp"
+ android:height="32dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+
+ <path
+ android:fillColor="@color/white"
+ android:pathData="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
+</vector>
diff --git a/core/res/res/values-zh-rCN/strings.xml b/core/res/res/values-zh-rCN/strings.xml
index fcfc1ff..5f51235 100644
--- a/core/res/res/values-zh-rCN/strings.xml
+++ b/core/res/res/values-zh-rCN/strings.xml
@@ -201,9 +201,6 @@
<string name="shutdown_confirm_question" msgid="2906544768881136183">"您要关机吗?"</string>
<string name="reboot_safemode_title" msgid="7054509914500140361">"重新启动并进入安全模式"</string>
<string name="reboot_safemode_confirm" msgid="55293944502784668">"您要重新启动并进入安全模式吗?这样会停用您已安装的所有第三方应用。再次重新启动将恢复这些应用。"</string>
- <string name="reboot_title">"重启"</string>
- <string name="reboot_confirm" product="tablet">"您的平板电脑将会重启。"</string>
- <string name="reboot_confirm" product="default">"您的手机将会重启。"</string>
<string name="recent_tasks_title" msgid="3691764623638127888">"近期任务"</string>
<string name="no_recent_tasks" msgid="8794906658732193473">"最近没有运行任何应用"</string>
<string name="global_actions" product="tablet" msgid="408477140088053665">"平板电脑选项"</string>
@@ -211,7 +208,6 @@
<string name="global_actions" product="default" msgid="2406416831541615258">"手机选项"</string>
<string name="global_action_lock" msgid="2844945191792119712">"屏幕锁定"</string>
<string name="global_action_power_off" msgid="4471879440839879722">"关机"</string>
- <string name="global_action_reboot">"重启"</string>
<string name="global_action_bug_report" msgid="7934010578922304799">"错误报告"</string>
<string name="bugreport_title" msgid="2667494803742548533">"提交错误报告"</string>
<string name="bugreport_message" msgid="398447048750350456">"这会收集有关当前设备状态的信息,并以电子邮件的形式进行发送。从开始生成错误报告到准备好发送需要一点时间,请耐心等待。"</string>
diff --git a/core/res/res/values/cm_arrays.xml b/core/res/res/values/cm_arrays.xml
index 2f22539..b78fe37 100644
--- a/core/res/res/values/cm_arrays.xml
+++ b/core/res/res/values/cm_arrays.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright (C) 2013-2014 The CyanogenMod Project
+ Copyright (C) 2013-2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -46,4 +46,21 @@
<item>1</item>
<item>3</item>
</string-array>
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options" translatable="false">
+ <item>@string/reboot_reboot</item>
+ <item>@string/reboot_soft</item>
+ <item>@string/reboot_recovery</item>
+ <item>@string/reboot_bootloader</item>
+ </array>
+
+ <!-- Do not translate. Defines the shutdown actions passed to the kernel.
+ The first item should be empty for regular reboot. -->
+ <string-array name="shutdown_reboot_actions" translatable="false">
+ <item></item>
+ <item>soft_reboot</item>
+ <item>recovery</item>
+ <item>bootloader</item>
+ </string-array>
</resources>
diff --git a/core/res/res/values/cm_strings.xml b/core/res/res/values/cm_strings.xml
index 2589bf4..762e718 100644
--- a/core/res/res/values/cm_strings.xml
+++ b/core/res/res/values/cm_strings.xml
@@ -31,6 +31,9 @@
<string name="live_display_outdoor_summary">Use outdoor settings only</string>
<string name="live_display_hint">LiveDisplay can help reduce eyestrain and help you sleep at night. Click here to try it out!</string>
+ <!-- label for item that screenshots in phone options dialog -->
+ <string name="global_action_screenshot">Screenshot</string>
+
<!-- Title of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permgrouplab_security">Security</string>
<!-- Description of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
@@ -50,4 +53,34 @@
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permdesc_preventpower">Allows an app to override the power key.</string>
+ <!-- label for item that opens the profile choosing dialog -->
+ <string name="global_action_choose_profile">Profile</string>
+
+
+ <!-- label for item that reboots the phone in phone options dialog -->
+ <string name="global_action_reboot">Reboot</string>
+
+ <!-- Reboot menu -->
+ <!-- Button to reboot the phone, within the Reboot Options dialog -->
+ <string name="reboot_reboot">Reboot</string>
+ <!-- Button to reboot the phone into recovery, within the Reboot Options dialog -->
+ <string name="reboot_recovery">Recovery</string>
+ <!-- Button to reboot the phone into bootloader, within the Reboot Options dialog -->
+ <string name="reboot_bootloader">Bootloader</string>
+ <!-- Button to reboot the phone into download, within the Reboot Options dialog -->
+ <string name="reboot_download">Download</string>
+ <!-- Button to soft reboot the device, within the Reboot Options dialog -->
+ <string name="reboot_soft">Soft reboot</string>
+
+ <!-- Title of dialog to confirm rebooting. -->
+ <string name="reboot_title">Reboot</string>
+
+ <!-- Reboot Confirmation Dialog. When the user chooses to reboot the device, there will
+ be a confirmation dialog. This is the message. -->
+ <string name="reboot_confirm" product="tablet">Your tablet will reboot.</string>
+ <string name="reboot_confirm" product="default">Your phone will reboot.</string>
+
+ <!-- Reboot Progress Dialog. This is shown if the user chooses to reboot the phone. -->
+ <string name="reboot_progress">Rebooting\u2026</string>
+
</resources>
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index bec1600..0b73760 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -457,14 +457,6 @@
This will disable all third party applications you have installed.
They will be restored when you reboot again.</string>
- <!-- Title of dialog to confirm rebooting. -->
- <string name="reboot_title">Reboot</string>
-
- <!-- Reboot Confirmation Dialog. When the user chooses to reboot the device, there will
- be a confirmation dialog. This is the message. -->
- <string name="reboot_confirm" product="tablet">Your tablet will reboot.</string>
- <string name="reboot_confirm" product="default">Your phone will reboot.</string>
-
<!-- Recent Tasks dialog: title
TODO: this should move to SystemUI.apk, but the code for the old
recent dialog is still in the framework
@@ -489,9 +481,6 @@
<!-- label for item that turns off power in phone options dialog -->
<string name="global_action_power_off">Power off</string>
- <!-- label for item that reboots the phone in phone options dialog -->
- <string name="global_action_reboot">Reboot</string>
-
<!-- label for item that generates a bug report in the phone options dialog -->
<string name="global_action_bug_report">Bug report</string>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index 7407e60..43b504a 100755
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -822,6 +822,7 @@
<java-symbol type="string" name="reboot_safemode_confirm" />
<java-symbol type="string" name="reboot_safemode_title" />
<java-symbol type="string" name="reboot_title" />
+ <java-symbol type="string" name="reboot_progress" />
<java-symbol type="string" name="relationTypeAssistant" />
<java-symbol type="string" name="relationTypeBrother" />
<java-symbol type="string" name="relationTypeChild" />
@@ -1456,6 +1457,8 @@
<java-symbol type="array" name="config_safeModeEnabledVibePattern" />
<java-symbol type="array" name="config_contextClickVibePattern" />
<java-symbol type="array" name="config_virtualKeyVibePattern" />
+ <java-symbol type="array" name="shutdown_reboot_options" />
+ <java-symbol type="array" name="shutdown_reboot_actions" />
<java-symbol type="attr" name="actionModePopupWindowStyle" />
<java-symbol type="attr" name="dialogCustomTitleDecorLayout" />
<java-symbol type="attr" name="dialogTitleDecorLayout" />
@@ -2397,4 +2400,10 @@
<java-symbol type="array" name="notification_light_package_mapping" />
<java-symbol type="array" name="config_notificationNoAlertsVibePattern" />
+ <!-- Power menu -->
+ <java-symbol type="drawable" name="ic_lock_screenshot" />
+ <java-symbol type="string" name="global_action_screenshot" />
+ <java-symbol type="drawable" name="ic_lock_settings" />
+ <java-symbol type="drawable" name="ic_lock_user" />
+
</resources>