user3991417
user3991417

Reputation:

Android Bionic and Libc libraries

I want to create small command interpreter for android (shell). It should perform only few features : 'scanf','printf','cd', 'pwd', 'echo','set', 'unset', 'exit' and should support internal path variables : 'path', 'home', 'status'. Is it possible to fulfil this using Native Android Kit and bionic library. I would be grateful for any help. Thanks in advance.

Upvotes: 1

Views: 976

Answers (1)

Digit
Digit

Reputation: 2113

Yes, you should just create an executable program binary with the NDK (e.g. use 'include $(BUILD_EXECUTABLE)' instead of 'include $(BUILD_SHARED_LIBRARY)')

Upvotes: 0

Related Questions