Skip to content

BuildAPKs/docsBuildAPKs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

48 Commits

Repository files navigation

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?

Screenshot_20210621-051340-101

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. Useaptorpackagesto install all of the following required Termux packages:

  • aaptAndroid Asset Packaging Tool

  • apksignerAPK signing tool

  • dxCommand which takes in class files and reformulates them for usage on Android

  • ecjEclipse Compiler for Java

If you want to installaaptyou 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 compilersjackandjavado not work at present. They are stuck indisabled packages,not inpackagesthat you can install on the fly. There is active discussion regarding whyjackis stuckhere,and whyjavais 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.shif they are not already. Check to see their permissions withls -al.Then simply runbuild.one.bashin the directory of the program you wish to make by calling it by name. Look for theAndroidManifest.xmlfile. That is where you want to run thebash script.After you are done building the app, install itfromyour/sdcard/Download/builtAPKsdirectory 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+powerbuttons simultaneously on a smartphone, it takes a screenshot much like this one which shows the screen and thethe source code for this pageinvimrunning onTermuxonAndroid.

Screenshot

This animation was created withimagemagickinTermuxon an Android smartphone.

Screenshot Animation

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!

Up One Level

🛳⛴🛥🚢🚤🚣⛵