I can't modify init.rc or init.target.rc, so I want to start or execute an EXECUTABLE app(under like system/bin/) from Java apk or ndk. So how to do it? Is there any API available?
Asked
Active
Viewed 220 times
1
-
[Building executables for Android shell](https://stackoverflow.com/a/35275134/3290339) – Onik Sep 16 '17 at 00:56
1 Answers
1
Runtime.exec()
is a common way to start child process from java. In native code you may use system()
or combination of fork()
and exec()
.

Sergio
- 8,099
- 2
- 26
- 52