RootTools 4.0 (Beta)
Pre-releaseRootTools 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
- A problem with the early termination of commands was fixed.
- Problems with switching context and executing specific commands was fixed.
- CommandCapture was removed.
- Command is no longer abstract and the three abstract methods are no longer abstract and should be overridden as needed.
- 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.