eason
eason

Reputation: 55

how to start or execute an EXECUTABLE app from Java apk or ndk

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

Answers (1)

Sergio
Sergio

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

Related Questions