It is necessary somehow in the android application to make sure that when you call void, the phone turns off (completely, not the screen). How to do it? Tell me please)

    1 answer 1

    Firstly, the device must be rooted, and the command:

    void shotdown() throws IOException { Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot -p"}); }