Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With the growing number of Android devices in all sorts of different form factors (dev boards like Raspberry Pi/ODroid, Android-on-a-stick, etc), it seems like it would be great to be able to actually do development work on Android and not just simply for Android. For example, having the standard Linux build tools available would let me easily run a server.

share|improve this question
This is off-topic, please read the FAQ. – t0mm13b Jan 25 '13 at 15:15
@t0mm13b strictly spoken, this is not a development question as such, but rather a "how-to-setup-an-environment" issue. It might be "grey zone" or "border-line" -- but I'd say we shouldn't be more Catholic than the Pope :) – Izzy Jan 25 '13 at 16:11
up vote 4 down vote accepted

In case you only need a cross compiling environment with the standard Linux build tools there is an easy solution already included in the Android-NDK:

In the subdirectory build/tools of the NDK you find a scrip named using the parameter --install-dir= you can specify a path where to create the standalone-toolkit - for example as shown inthis call:

build/tools/ --install-dir=/tmp/android-stanalone-toolchain

Adding the bin directory of the created toolkit allows you to use the standard build process for compiling projects. Just make sure that you call the configure script properly for cross compiling:

./configure  --target=arm-linux-androideabi  --host=arm-linux-androideabi

Afterwards you can simply call make and then pray that the application you want to compile is compatible with ARM/Android platform.

share|improve this answer

I'd suggest you take a look at Terminal IDE:

Terminal IDE is an expandable terminal application, with a full Java / HTML / Android development kit, that runs on your Android device.

It uses the command line, with many powerful and robust open-source applications, plus a custom ASCII on-screen 'soft' keyboard that works well (You must ENABLE it in your device's main Keyboard Settings).. and also has an extensive generic external 'hard' keyboard key mapper. This way CTRL / ALT / ESC etc.. should all be accessible.

javac, java, dx, proguard, aapt, apkbuilder, signer, ssh, sshd, telnetd, bash 4.2, busybox 1.19.2, vim 7.3, nano 2.2.6, midnight commander 4.8, htop 1.0, TMUX 1.5, rsync 3.0.8, git 1.7.8, BitchX 1.1 and a nice terminal emulator are all available.

Guess this should do for your purpose?

share|improve this answer

Easy way to get GNU build tools :

  1. C4droid - C/C++ compiler & IDE (install gcc in internal memory)
  2. Shell and tools for C4droid
share|improve this answer

If your Android can run x86_64 applications, you can build toolchain yourself on desktop computer running Gentoo Linux, then move the compiled code onto device.

Set of .ebuild script that compiles toolchain: GitHub x86_64-pc-linux-android toolchain

Disclaimer: I am the one who created the .ebuilds

share|improve this answer
Please edit your post to mention that you're affiliated to the product and have a look at community guidelines on promotion – Manubhargav Dec 25 '15 at 7:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.