Home >> Android News >> How can I use execv in NDK

Android News

  Main  |  Simple Headline  

link android-ndk (Google Group) android-ndk (Google Group) (2009/9/8 12:26:26)

feed How can I use execv in NDK (2009/9/8 12:26:26)
I use it like this:

char *exec_args[] = {"echo + >>/sdcard/t", (char *)0};
int ret;
ret = execv("/system/bin/sh", exec_args);

But all the time it fails and make app died.......



execution time : 0.296 sec