An app can call most RootTools APIs without creating a new object:
gotShell = RootTools.checkUtil("dmesg");
RootTools.copyFile("/data/local/tmp/abc", "/system/abc", true, false);
RootTools.remount("/system", "RW");
...
But for deleteFileOrDirectory() it needs to do:
new RootTools().deleteFileOrDirectory("/data/foo", false);
It would be nice if this call was more consistent with the others:
RootTools.deleteFileOrDirectory("/data/foo", false);
Trivial patch attached.
Original issue reported on code.google.com by cerne...@gmail.com on 9 Jul 2013 at 12:21
Original issue reported on code.google.com by
cerne...@gmail.com
on 9 Jul 2013 at 12:21Attachments: