Press and hold the Power key to eject the Shutdown menu, click the Close Opportunity pop-up box, click Restart No prompt box to confirm direct access to restart status, add confirmation Prompt box

Source: Internet
Author: User

Tag:sc7715    Add restart confirmation box    

---a/idh.code/frameworks/base/core/res/res/values-es/strings.xml+++ b/idh.code/frameworks/base/core/res/res/ values-es/strings.xml@@ -1710,5 +1710,5 @@ <string name= "station_state_connected" > "Stación%1 $ s esta conectada" & lt;/string> <string name= "station_state_disconnected" > "Stación%1 $ s esta desconectada" </string> &lt ; string name= "Station_state_msg" > "%1 $ s Conectada,%2$s bloquada" </string>-+ <string name= "reboot_confirm "product=" Default ">usted teléfono Voluntad de reiniciar</string> </resources>\ No newline at end of Filedi FF--git A/idh.code/frameworks/base/core/res/res/values-pt/strings.xml b/idh.code/frameworks/base/core/res/res/ Values-pt/strings.xmlold mode 100644new mode 100755index aab0837. 43234B7---a/idh.code/frameworks/base/core/res/res/values-pt/strings.xml+++ b/idh.code/frameworks/base/core/res/ res/values-pt/strings.xml@@ -1736,5 +1736,5 @@ <string name= "station_state_connected" > "Estação%1$séligadA "</string> <string name=" station_state_disconnected ">" Estação%1$sédesligada "</string> <st Ring name= "Station_state_msg" > "%1 $ s Ligada,%2$s bloqueada" </string>-+ <string name= "reboot_conf IRM "product=" default ">vocêtelefone iráreiniciar</string> </resources>\ No newline at end of Filediff--g It a/idh.code/frameworks/base/core/res/res/values-zh-rcn/strings.xml b/idh.code/frameworks/base/core/res/res/ Values-zh-rcn/striindex 24d8bf9. 2f37d7b 100755---a/idh.code/frameworks/base/core/res/res/values-zh-rcn/strings.xml+++ b/idh.code/frameworks/base /core/res/res/values-zh-rcn/strings.xml@@ -1782,5 +1782,5 @@ <string name= "Media_shared_" > "The current computer is using a storage device. "</string> <string name=" Media_unknown_state_ ">" Storage is in an unknown state. "</string> <!--@}-->-+ <string name=" reboot_confirm "product=" Default "> your phone will restart. </string> </resources>diff--git A/idh.code/frameworks/basE/core/res/res/values-zh-rhk/strings.xml b/idh.code/frameworks/base/core/res/res/values-zh-rhk/striold Mode 100644new mode 100755index 268b391. 514b21c---a/idh.code/frameworks/base/core/res/res/values-zh-rhk/strings.xml+++ b/idh.code/frameworks/base/core/ res/res/values-zh-rhk/strings.xml@@ -1662,4 +1662,5 @@ </plurals> <string name= "Restr_pin_try_later" msgid= "973144472490532377" > "Try later" </string> <string name= "immersive_mode_confirmation" msgid= " 7227416894979047467 ">" move from the top to the full screen. "</string>+ <string name=" reboot_confirm "product=" Default "> Your phone will be restarted. </string> </resources>diff--git a/idh.code/frameworks/base/core/res/res/values-zh-rtw/strings.xml b/ Idh.code/frameworks/base/core/res/res/values-zh-rtw/striold mode 100644new mode 100755index 799de85. 6D94E52---a/idh.code/frameworks/base/core/res/res/values-zh-rtw/strings.xml+++ b/idh.code/frameworks/base/core/ res/res/values-zh-rtw/strings.xml@@ -1776,5 +1776,5 @@ <stRing name= "Media_shared_" > "Computer is currently using the storage device. "</string> <string name=" Media_unknown_state_ ">" Storage status Unknown. "</string> <!--@}-->-+ <string name=" reboot_confirm "product=" Default "> Your phone will be restarted. </string> </resources>diff--git a/idh.code/frameworks/base/core/res/res/values/strings.xml B/idh.code /frameworks/base/core/res/res/values/strings.xmlindex 1310e9b. FCB23E1 100755---a/idh.code/frameworks/base/core/res/res/values/strings.xml+++ b/idh.code/frameworks/base/core/ res/res/values/strings.xml@@ -4674,5 +4674,5 @@ OT running any application, the service would also collect such data</st ring> <string name= "station_state_disconnected" >station%1 $ s is disconnected</string> <string na Me= "Station_state_msg" >%1$s connected,%2$s blocked</string> <!--@}-->-+ <string nam E= "reboot_confirm" product= "default" >your phone would reboot.</string> </resources>diff--gitA/idh.code/frameworks/base/core/res/res/values/symbols.xml b/idh.code/frameworks/base/core/res/res/values/ Symbols.xmlold mode 100644new mode 100755index 7cae969. f349b0d---a/idh.code/frameworks/base/core/res/res/values/symbols.xml+++ b/idh.code/frameworks/base/core/res/res /values/symbols.xml@@ -1833,4 +1833,5 @@ <!--sprd:293759, modify restart service process---<java-symbol t Ype= "integer" name= "Config_restartserviceinterval"/> <java-symbol type= "integer" Name= "Config_ Restartappserviceinterval "/>+ <java-symbol type=" string "name=" Reboot_confirm "/> </resources>diff-- Git A/idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/globalactions.java b/idh.code/ Frameworks/base/policy/index 1f9e243. a48ca5f 100755---a/idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/globalactions.java+++ b/ idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/globalactions.java@@ -300,7 +300,8 @@ class GlobalactionsImplements Dialoginterface.ondismisslistener, DIALOGINTERFAC//shutdown by making sure Radio and Powe                     R is handled accordingly.                     Mwindowmanagerfuncs.shutdown (TRUE); Shutdownthread.reboot (Final context context, String reason, Boolean confirm)-Mwindowmanagerfuncs.reb Oot (false); +//mwindowmanagerfuncs.reboot (false); + Mwindowmanagerfuncs.reboot (true); Modify by Yang.liu in 2014-12-02} public boolean onlongpress () {diff--git a/idh.code/ Frameworks/base/services/java/com/android/server/power/shutdownthread.java b/idh.code/frameworks/base/services/ Jaold mode 100644new mode 100755index fa8a293. 455ce79---a/idh.code/frameworks/base/services/java/com/android/server/power/shutdownthread.java+++ b/idh.code/ frameworks/base/services/java/com/android/server/power/shutdownthread.java@@ -139,7 +139,9 @@ Public final class Shutdownthread extends ThRead {? com.android.internal.r.string.reboot_safemode_confirm: (Longpressbehavior = = 2 ? com.android.internal.r.string.shutdown_confirm_question-: Com.android.internal.r.string.shutdown_c onfirm); +: (Mreboot +? com.android.internal.r.string.reboot_conf          irm+: com.android.internal.r.string.shutdown_confirm)); LOG.D (TAG, "notifying thread to start shutdown longpressbehavior=" + longpressbehavior); @@ -151,7 +153,9 @@ -151,7 final class Shutdownthread extends Thread {sconfirmdialog = new Alertdialog.builde R (Context). Settitle (Mrebootsafemode? com.android.internal.r.string.reboo t_safemode_title-: Com.android.internal.r.string.power_off) +: (mRe Boot +? Com.android.internal.r.string.global_action_reboot+: Com.android.internal.r.string.power_off) ). Setmessage (ResourceId). Setpositivebutton (Com.android.internal.r.string.yes, NE W Dialoginterface.onclicklistener () {public void OnClick (Dialoginterface dialog, int which) {

Press and hold the Power key to eject the Shutdown menu, click the Close Opportunity pop-up box, click Restart No prompt box to confirm direct access to restart status, add confirmation Prompt box

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.