Just wondering is it possible to build CLI app that can be run from adb shell?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes it is possible, with Android NDK using C. You may need to be rooted in order to store the binary somewhere to be executed, note, it will not run off the sdcard, usually /data/local/tmp is one spot that comes to mind. And when you push the binary across to the said location, you will have to set the permission’s execute bit on the binary itself in order to run it. Quite possibly also, the ownership and group owner would have to be changed.
Your mileage will vary depending on the ROM.