Я получаю сообщение об ошибке при выполнении команды fastboot
в java:
try
{ Process p2=Runtime.getRuntime().exec("fastboot oem get_identifier_token");
p2.waitFor();
BufferedReader reader2=new BufferedReader(
new InputStreamReader(p2.getInputStream())
);
String line2;
while((line2 = reader2.readLine()) != null)
{
System.out.println(line2);
output2.append("\n Brand : "+line2+"\n" );
}
}
catch(IOException e1) {e1.printStackTrace();}
catch(InterruptedException e2) {e2.printStackTrace();}
System.out.println("Done");
}
Но когда я запускаю ее в cmd
, я получаю следующие выходные данные:
fastboot oem get_identifier_token
...
FAILED (remote: Command not allowed)
finished. total time: 0.011s
Я не хочу получать эту ошибку в моем текстовом поле