Skip to content

RootTools 4.0 (Beta)

Pre-release
Pre-release
Compare
Choose a tag to compare
@Stericson Stericson released this 02 Jan 21:16
· 44 commits to master since this release

RootTools 4.0 brings in a number of bug fixes for issues relating to SELINUX within Android.

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. A problem with the early termination of commands was fixed.
  2. Problems with switching context and executing specific commands was fixed.
  3. CommandCapture was removed.
  4. Command is no longer abstract and the three abstract methods are no longer abstract and should be overridden as needed.
  5. When implementing/overriding commandOutput you should now 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 wait a period of time (about 10 seconds) before giving up on waiting for all output to be processed and will mark the command as finished. 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.