I do not know why…just learn #LL scripts
I do not know why…just learn #LL scripts
LL.bindClass(‘java.lang.Runtime’);
LL.bindClass(‘java.io.DataInputStream’);
LL.bindClass(‘java.io.DataOutputStream’);
LL.bindClass(‘java.lang.StringBuffer’);
function runAsRoot(cmd){
try{
var process = Runtime.getRuntime().exec(“su”);
var reader = new DataInputStream(process.getInputStream());
var writer = new DataOutputStream(process.getOutputStream());
writer.writeBytes(cmd+’\n’);
writer.flush();
writer.close();
var tmp;
var output = new StringBuffer();
while((tmp = reader.readLine()) != null){
output.append(tmp+’\n’);
}
reader.close();
process.waitFor();
}catch(err){
return err;
}
return output;
}
]]>(Next Post) Hi Jay M did you have this issue ? »