2018-10-21, 20:20
Hi I´ve added this in DialogButtonMenu.xml
<control type="button" id="29">
<description>Reboot fromnand</description>
<width>510</width>
<height>60</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<textwidth>435</textwidth>
<textoffsetx>45</textoffsetx>
<texturefocus colordiffuse="$VAR[HighlightBarColor]" border="35,2,35,2">button_shutdown_focus.png</texturefocus>
<texturenofocus border="35,2,35,2">button_shutdown_nofocus.png</texturenofocus>
<onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
<onclick>Reset()</onclick>
<font>font14</font>
<label>Reboot android</label>
<visible>System.CanReboot</visible>
</control>
and its work good for me but I am not programmer and don´t understand it if it is fully correct or no.
<control type="button" id="29">
<description>Reboot fromnand</description>
<width>510</width>
<height>60</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<textwidth>435</textwidth>
<textoffsetx>45</textoffsetx>
<texturefocus colordiffuse="$VAR[HighlightBarColor]" border="35,2,35,2">button_shutdown_focus.png</texturefocus>
<texturenofocus border="35,2,35,2">button_shutdown_nofocus.png</texturenofocus>
<onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
<onclick>Reset()</onclick>
<font>font14</font>
<label>Reboot android</label>
<visible>System.CanReboot</visible>
</control>
and its work good for me but I am not programmer and don´t understand it if it is fully correct or no.