Android: Executing a program on adb shell
问题 I have created an executable using "include $(BUILD_EXECUTABLE)" command in Android.mk . My requirement is to execute the above generated executable over the abd shell. I tried: Below is my C-Code which is compiled using ndk-build command: #include <stdio.h> int main() { printf("\n\nHello World\n\n"); return 0; } Following is my Android.mk file contents: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := HelloExecutable LOCAL_SRC_FILES := hello.c include $(BUILD_EXECUTABLE)