see I want cp coomand on android, but it is not exciting, so I think cross compile the cp source.
cp
Linux has a cp command, where can I find cp code from?
cp is part of coreutils . There are also various implementations, such as busybox .
It is very strange that there is no cp on the android. Have you carefully studied?
Go to the coreutils website Download the latest archive and go to / src / there you can find the cp.c file (and much more)
http://coreutils.sourcearchive.com/documentation/7.4/cp_8c-source.html
I believe what you want in here
From this foram I can download the source code here
ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz
In the / src directory after extracting it.
and the latest version of core utils can be found here
http://ftp.gnu.org/gnu/coreutils/
It is also missing on my android.
You can work with:
cat source > dest