java语法不支持非循环头的标签符 label295
要去掉它.请你参考下面的代码
public static boolean init()
{
boolean bool = false; // add by w_sale
while (true)
{
try //#1
{
if (os != null) {
// break label295; //屏蔽label295
bool = true;
break ;
}
//SLF.v("ProcessUtil init");
bool = false;
try //#2
{
suProcess = Runtime.getRuntime().exec("su\n");
os = new DataOutputStream(suProcess.getOutputStream());
is = new BufferedReader(new putStreamReadersuProcess.getInputStream()));
String str;
long l;
if ((os != null) && (is != null))
{
os.writeBytes("id\n");
os.flush();
str = null;
l = System.currentTimeMillis();
if (!is.ready())
continue;
if (is.ready())
str = is.readLine();
i = 0;
if (str != null)
continue;
bool = false;
i = 1;
//SLF.d("Can't get Root Access or Root Access denied by user");
if (i != 0)
{
os.writeBytes("exit\n");
os.flush();
os = null;
}
}
return bool;
Thread.sleep(100L);
if (System.currentTimeMillis() - l <= 10000L)
continue;
continue;
if (str.contains("uid=0"))
{
bool = true;
//SLF.d("Root Access Granted");
continue;
}
} // end try #2
catch (Exception localException)
{
os = null;
bool = false;
//SLF.d("Root access rejected [" + localException.getClass().getName() + "] : " + localException.getMessage());
continue;
}
} // end try #1
finally
{
}
// boolean bool = false;
bool = false;
int i = 1;
SLF.d("Root Access Rejected: " + is.readLine());
continue;
// label295: bool = true;
} // end while (true)
renturn bool ; // add by w_sale
}
浙公网安备 33010602011771号