Reputation: 55
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?
Upvotes: 1
Views: 244
Reputation: 8209
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()
.
Upvotes: 1