-
Notifications
You must be signed in to change notification settings - Fork 3
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
Busybox download utility #35
Comments
Any Android build should have the basics such as ls, cp, rm, which is all the app really needs. Sometimes the arguments differ. Detecting busybox is relatively easy. The latest RootTools repo from stericson has some simple methods for doing just that. |
The app uses several commands above and beyond the basics. Some of those are exclusive to the priviliged console, and some are used by both. I want to allow the user to download the full list of required commands to the appropriate system files, which would help out a lot of rooted oem phone users. A full list of used commands can be found here: https://github.com/bkensey/Backbone/blob/gradle-test/res/xml/command_list.xml |
I should add that the problem isn't recognizing the existence of those commands. That is something the app already does, and if they are not present it will fall back to the java console from the various flavors of the shell console. We need the download utility to ensure that non-ROM users can use the shell console. |
Ok, so I'm thinking we can offer a simple download/install of busybox when we find that it's not installed. Upon confirmation, we:
The only concern I have is symlinking all of the functions to busybox. I'm not sure if we should try doing that, as that may be out of the scope of our app. Also, I think we explicitly call busybox when needed (i.e. "busybox stat -f "). |
Actually, it looks like "uname -m" gives a much better result than /proc/cpuinfo. |
Would there be any way to just download the needed commands instead of relying on the busybox package? These being the required commands: |
Sure, but that would ultimately be a messier way to do it. Also, I'm pretty sure Backbone looks for BusyBox specifically. |
I see what you mean when you say it might be outside the scope of our app. I guess the question comes down to whether we're stepping on any other app's toes if we do all of that for the user, and whether any other apps even make use of that full set of commands like we do. |
For when the user's phone is rooted but does not come pre-built with the standard xbin commands like those found in CM. The utility should only prompt the user to download busybox if the user enters root mode. I have no idea what the app currently does on non CM devices. Either crash or default to its internal Java operations console.
The text was updated successfully, but these errors were encountered: