E:\GitHub\ndk_tutorial\android_build_c_exec\gcc_app>adb push main_exec /sdcard/
1528
KB/s (
6260
bytes in
0
.004s)
E:\GitHub\ndk_tutorial\android_build_c_exec\gcc_app>adb shell
shell
@mako
:/ $ cp /sdcard/main_exec /data/local/
cp /sdcard/main_exec /data/local/
cp: /data/local/main_exec: Permission denied
1
|shell
@mako
:/ $ cp /sdcard/main_exec /data/local/tmp
cp /sdcard/main_exec /data/local/tmp
shell
@mako
:/ $ cd /data/local/
cd /data/local/
shell
@mako
:/data/local $ cd tmp
cd tmp
shell
@mako
:/data/local/tmp $ ls -l main_exec
ls -l main_exec
-rwxr-x--x shell shell
6260
2014
-
06
-
06
16
:
30
main_exec
shell
@mako
:/data/local/tmp $ chmod
751
main_exec
chmod
751
main_exec
shell
@mako
:/data/local/tmp $ ./main_exec
./main_exec
hello world