Hi all,
When I run my app cross compiled by ltib on android command line, I get permission denied error. this scenario is following:
1. I created my app 'helloworld' by ltib compile environment,
2, Then, I copy helloworld to android SD card or android some folder
3. chmod 777 helloworld
4. telnet android, and run #./helloworld (as root access)
and in this case, I get permission denied error.
Could anybody tell me how to run app without permission denied issue? thanks!!
Hao, you can not do changes on the serial console. So place your SD card on yuor host and do the changes there. Also, why are you using LTIB to create an Android app? I have not done any app under Android, but I think you should use Eclipse, and thought it create a apk file, then you install it with adb....
Hi Leonardo,
Thanks for your reply, Now I have a requirement that I want to port existing c app to android platform. and I plan to compile my c app as command line application, then I can call this application by apk file.
Since I am new to Android, Don't I know my solution is right?
Additionally, I want to know how I can create a command line application and run it correctly?
Thanks!
Hi, you have to use Eclipse, as you are a beginner. Add your binary (commandline app) to the assets and call it when you need it.
Keep in mind, that to access some resources you need to be root. Telnet is not the best helper, use ADB (Android Debug Bridge) to make sure you do all correct.
Then check dmesg for any errors your binary can cause.