For our product we want to add reboot option in power menu. Currently stock image only display power off and airplane mode. I am not able to proceed in any specific direction as the resources are available for ICS only.
I would be thankful for any pointers...I have tried this method.. @>>> add in frameworks/base/core/res/res/values/strings.xml <!-- Button to turn off the phone, within the Phone Options dialog --> <string name="restart">Restart</string> <!-- Restart Confirmation Dialog. When the user chooses to restart the phone, there will be a confirmation dialog. This is the message. --> <string name="restart_confirm" product="tablet">Your tablet will restart.</string> <!-- label for item that restarts in phone options dialog --> <string name="global_action_restart">Restart</string> <!-- Restart Processing Dialog. This is shown if the user chooses to restart the phone. --> <string name="restart_progress">Restarting tablet....</string> @>>> add in frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java // first: restart mItems.add( new SinglePressAction( com.android.internal.R.drawable.ic_lock_power_off, R.string.global_action_restart) { public void onPress() { // shutdown by making sure radio and power are handled accordingly. ShutdownThread.reboot (mContext, null, false); } public boolean showDuringKeyguard() { return true; } public boolean showBeforeProvisioning() { return true; } }); @>>> modify frameworks/base/core/java/com/android/internal/app/ShutdownThread.java ICS 4.0 /frameworks/base/services/java/com/android/server/power/ShutdownThread.java JB 4.2.2 From: pd.setTitle(context.getText(com.android.internal.R.string.power_off)); pd.setMessage(context.getText(com.android.internal.R.string.shutdown_progress)); To: if (mReboot){// reboot processing pd.setTitle (context.getText (com.android.internal.R.string.global_action_restart)); pd.setMessage (context.getText (com.android.internal.R.string.restart_progress)); }else {// shutdown processing pd.setTitle (context.getText (com.android.internal.R.string.power_off)); pd.setMessage (context.getText (com.android.internal.R.string.shutdown_progress)); } -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.