How to prevent the toasting process

When I execute this code

  try {
         process = Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot bootloader"});
         process.waitFor();
      } catch (Exception e) {
         e.printStackTrace();
      }

      

it creates a Toast " reload bootloader "

I believe SuperSU is showing toast.

how can i prevent it.

+3


source to share





All Articles