Skip to content

RootTools 4.2

Compare
Choose a tag to compare
@Stericson Stericson released this 12 Jan 22:01
· 42 commits to master since this release

RootTools 4.2 brings in a number of additional bug fixes from RootTools 4.1

The Core of RootTools has been separated from RootTools and given it's own repository which you can find here:

https://github.com/Stericson/RootShell

This allows RootTools to be a set of Tools for rooted applications and allows RootShell to provide the most basic functionality required for a rooted application. In many cases, as a developer, you may find the additional functionality provided by RootTools useful but there may be cases where you don't want that additional functionality in which case RootShell would be a more ideal choice.

Along with the separation of the Core of RootTools and the introduction of RootShell a number of bug fixes where implemented as well.

Changes

  1. Support for commands that execute indefinitely, such as top or something else. Simply pass 0 in as the timeout. You can finish or terminate the command by calling cmd.finish() or cmd.terminate() as needed.
  2. Recompiled against JDK 1.7, should fix some issues with those not running Java 1.8 yet.

Important Note!

When implementing/overriding commandOutput you must make a call to the super method as the last statement in the method. This helps RootTools know that all output has been processed by your application and that it should mark the command as finished. RootShell will terminate the command if all output is not marked as being processed by the time that the command timeout is hit. Making the final call to the super method will help RootShell ensure that all of the output by the command you've executed is processed and will keep your application moving quickly. If you don't want RootShell waiting on you to process the output then just make the super call the first thing in the method.