System API call via Cocos2dx, possible ?

For example in Android, can I write NDK C/C++ code to call system API via JNI to hookup a file listening events such as file deletion, downloaded, renamed…etc under Cocos2dx source compile because I still need Cocos2dx GUI components as part of the application ?