public void rebootDevice() try Process proc = Runtime.getRuntime().exec(new String[] "su", "-c", "reboot" ); proc.waitFor(); catch (Exception ex) ex.printStackTrace();

Insert a toothpick into the to hold down the hidden reset button.