Have you ever wanted to build your own application for Android on Android? Your own app, APK! Something that you can distribute over the Internet, and can be used on Android smartphones worldwide. Would you dare to try to spend some time learning something new to do so?
This projectis designed just for this purpose. Source code is the way software is written in an understandable human language for applications to compile into machine code, and then to be run as programs on a device. The applications in this collection are showcased because they have been tested and passed. They were successfully built and installed on device, yes all of it on a smartphone.
In order to build these apps, the following programs need to be used. After finishing the complex process of compiling, the finished product, the APK file, should be installable on any compliant Android device. Useapt
orpackages
to install all of the following required Termux packages:
-
aapt
Android Asset Packaging Tool -
apksigner
APK signing tool -
dx
Command which takes in class files and reformulates them for usage on Android -
ecj
Eclipse Compiler for Java
If you want to installaapt
you will usepackages install aapt
.Before installing any packages, you should useapt update && apt upgrade
.You can install all of them at once by executing:
packages install aapt apksigner dx ecj
Fortunately, these commands work in Termux. The popular compilersjack
andjava
do not work at present. They are stuck indisabled packages,not inpackagesthat you can install on the fly. There is active discussion regarding whyjack
is stuckhere,and whyjava
is strandedthere.
You may be wondering now after installing the necessary packages and downloading the source code:
cd && git clone https://github.com/sdrausty/buildAPKs
What do I do next? How do I useaapt
,the Android Asset Packaging Tool,apksigner
,the APK signing tool,dx
,the command which takes in class files and reformulates them for usage on Android andecj
,the Eclipse Compiler for Java?
This projecthasbash scriptswhich help immensely in automating work. Make them executable bychmod 750 script.sh
if they are not already. Check to see their permissions withls -al
.Then simply runbuild.one.bash
in the directory of the program you wish to make by calling it by name. Look for theAndroidManifest.xml
file. That is where you want to run thebash script.After you are done building the app, install itfromyour/sdcard/Download/builtAPKs
directory through your file manager in Android.
If your system does not have a file manager, Open File Manager is available atF-droid.You can download, install and use it. Source code for this APK (Android Package Kit) is availablehereat buildAPKsApps, a submodule of buildAPKs. If you preferGhost Commander,the souce code is availablehere.Both APKs build beautifully on device (a smartphone) in your pocket withTermux.We should really leave the age of whirling fans and disk drives behind.
Enjoy this project! Inscribe your feedback at thewiki,theissues pagesand throughthe code itself.
When you press and momentarily hold thevolumeDown+power
buttons simultaneously on a smartphone, it takes a screenshot much like this one which shows the screen and thethe source code for this pageinvimrunning onTermuxonAndroid.
This animation was created withimagemagickinTermuxon an Android smartphone.
If you're confused by this page trythis link,or you might want to trythis one.Post your what you have found atthe wiki,donateand helpthis website grow!
- Termux on F-droid!Please do not mix your installation of Termux between Google Play and F-droid. There arecompatibility issues.
🛳⛴🛥🚢🚤🚣⛵