lxxgreat / roottools

Automatically exported from code.google.com/p/roottools
0 stars 0 forks source link

Option to use for standard commands as well #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would first off like to thank you for making this library, I had been 
searching for something like this for quite some time.

I do have a suggestion though...

It would be nice to be able to run standard commands through this framework as 
well. 

I changed the source around so the Executer.sendShell function asks for a 
"useRoot" boolean parameter.

Then inside it where it declares the process, I put this:
process = Runtime.getRuntime().exec(useRoot ? "su" : "sh");

Cheers,
Corey

Original issue reported on code.google.com by CZua...@gmail.com on 27 Jun 2011 at 1:53

GoogleCodeExporter commented 8 years ago
Upload your amended code, or extra methods and I will be glad to add them in :)

I can easily add an overloaded method to accomplish what you would like to see.

Original comment by Stericso...@gmail.com on 28 Jul 2011 at 4:24

GoogleCodeExporter commented 8 years ago
Done

Original comment by Stericso...@gmail.com on 14 Nov 2011 at 7:45