How to run a simple C executable on SM-N900P

sansari123

Senior Member
Jan 30, 2013
93
6
0
I need to learn how to compile and run a simple C source file on this platform. I have downloaded different NDKs and I have a copy of the build environment for this platform. What I do not know is as follows:
- Is there a specific folder I need to use in the build environment to put my file in? ( My knowledge of the AOSP and Samsung source build environment is limited, and I do not have a good understanding of what gets compiled at which stage and where does it end up on the final image )
- Is there a validated procedure for building a simple C file, and what is it? All the way from editing the file to where to place it on the phone. I have compiled a simple file, and put it in the /sdcard but I can not run it. Even after I go su, and change the permissions of the file to 775.