I am trying to run a simple c++ code on my mobile phone. My application idea is to run a local server on my android phone and connect to this server with a browser or an android application.
To do this, I have compiled a simple main.c code to see if I run a c code on the Android platform with using NDK. I think it has compiled correctly and it is ready to run on my mobile phone.
Then to send the executable file to my mobile phone I have used adb
command on my Linux shell like;
adb push test /storage/self/primary/Android/data
adb shell chmod 777 /storage/self/primary/Android/data/test
Then when I connect to my phone I am using adb shell /storage/self/primary/Android/data/test
command, it returns me can't execute: Permission denied
output.
Actually, I have a few steps to finish my project. For example, I want to run this executable file without using the terminal.
Anyway, How can I run this executable file on my mobile phone?