removed static call to TorService logging
This commit is contained in:
parent
d64cdde3a6
commit
0e5b24e6d9
|
@ -48,22 +48,22 @@ public class TorServiceUtils implements TorServiceConstants {
|
||||||
int exitCode = TorServiceUtils.doShellCommand(cmd, log, false, true);
|
int exitCode = TorServiceUtils.doShellCommand(cmd, log, false, true);
|
||||||
|
|
||||||
if (exitCode == 0) {
|
if (exitCode == 0) {
|
||||||
TorService.logMessage("root exists, but not sure about permissions");
|
Log.d(TorConstants.TAG,"root exists, but not sure about permissions");
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
//this means that there is no root to be had (normally) so we won't log anything
|
//this means that there is no root to be had (normally) so we won't log anything
|
||||||
TorService.logException("Error checking for root access",e);
|
Log.e(TorConstants.TAG,"Error checking for root access",e);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
TorService.logException("Error checking for root access",e);
|
Log.e(TorConstants.TAG,"Error checking for root access",e);
|
||||||
//this means that there is no root to be had (normally)
|
//this means that there is no root to be had (normally)
|
||||||
}
|
}
|
||||||
|
|
||||||
TorService.logMessage("Could not acquire root permissions");
|
Log.e(TorConstants.TAG,"Could not acquire root permissions");
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -125,7 +125,7 @@ public class TorServiceUtils implements TorServiceConstants {
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
TorService.logException("unable to parse process pid: " + line,e);
|
Log.e("TorServiceUtils","unable to parse process pid: " + line,e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ public class TorServiceUtils implements TorServiceConstants {
|
||||||
|
|
||||||
for (int i = 0; i < cmds.length; i++)
|
for (int i = 0; i < cmds.length; i++)
|
||||||
{
|
{
|
||||||
TorService.logMessage("executing shell cmd: " + cmds[i] + "; runAsRoot=" + runAsRoot + ";waitFor=" + waitFor);
|
// TorService.logMessage("executing shell cmd: " + cmds[i] + "; runAsRoot=" + runAsRoot + ";waitFor=" + waitFor);
|
||||||
|
|
||||||
out.write(cmds[i]);
|
out.write(cmds[i]);
|
||||||
out.write("\n");
|
out.write("\n");
|
||||||
|
|
Loading…
Reference in New Issue