Comments (3)
I just saw that I can use:
Runtime.getRuntime().exec("su -c \"/path/to/binary\"");
I thought it would be more complicated since RootShell has a lot code to do this.
from roottools.
Hey,
Yep, it's that simple.
RootShell has a lot more code in it because it handles everything. It keeps the shell open, handles processing input and output, as well as making sure commands don't stay running too long and cause a ANR and it also handles keeping a long running process open by setting the command timeout to 0.
Rootshell technically also has support for multiple shells at one time (one root Shell, one normal shell, and one custom shell)
from roottools.
what I did might be interesting for RootTools, too.
I wrote a small binary called syscall_server which runs in the background all time and - as the name might suggest - allows you to execute syscall commands from stdin.
This way I can simply read/write files with custom input and output streams and I don't need to copy files to the app cache anymore.
Here's the C++ part: https://github.com/grub4android/external_syscallserver/blob/master/syscall_server.c
I didn't upload the java part yet, but the usage is as easy as: "new RootOutputStream(file);"
from roottools.
Related Issues (20)
- Install "Aptoide" HOT 1
- Crash when Shell run HOT 3
- Root tool
- [email protected] HOT 1
- New
- is still alive the project?
- RootTools
- Apple
- __Originally posted by @jackiebrewster307 in https://github.com/IdeasOnCanvas/MNDocumentController/issues/1__
- Apple root HOT 1
- Apple root iPhone HOT 1
- save
- Roottools HOT 1
- How to unlock bootloader and on stylo 6???
- Root HOT 1
- Vivo
- Help me HOT 1
- .
- Permission
- I'm using Castify
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roottools.