Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: general upgrade and RootShell library instead of jar? #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

WIP: general upgrade and RootShell library instead of jar? #8

wants to merge 6 commits into from

Conversation

juanitobananas
Copy link

Upgrades gradle tools and dependencies.

Also uses RootShell as jitpack.io library, making it F-Droid compatible, as far as I can tell.

You can build an apk with the latest Android Studio. And that's basically it. On my device it crashes immediately. But so did latest release apk too (which was the reason for me to try to build it in the first place).

I think the CommandCapture changes are correct, but maybe you could take a look at those 😄

Just let me know if you'd like me to change something.

Cheers,
Juanito

Juan Garcia Basilio added 6 commits October 2, 2018 07:21
compileSdk and targetSdk to 28.

Like this, modern versions of Android Studio don't cry as much :)
importing jar.

This should make the app F-Droid compliant and solve #5. Also see:
https://gitlab.com/fdroid/rfp/issues/92

Warning: the code is not yet compatible with the new RootShell API!
- override outputCommand(id, line) and not output(id, line) as it
  is now a protected method and the documentation says to do this
  like this. See:
- call super.outputCommand(id, line) from every overriden
  outputCommand as documented:

See:
https://github.com/Stericson/RootShell/wiki/Usage#running-root-commands
CommandCapture doesn't exist anymore but as far as I can see,
it just used to log the output with RootTools.log.

Implement this in overriden commandOutput methods like RootTools
used to do it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant