{"id":13446813,"url":"https://github.com/SDRausty/docsBuildAPKs","last_synced_at":"2025-03-21T16:32:57.521Z","repository":{"id":87257012,"uuid":"164059957","full_name":"SDRausty/docsBuildAPKs","owner":"SDRausty","description":"docsBuildAPKs https://sdrausty.github.io/docsBuildAPKs/","archived":false,"fork":false,"pushed_at":"2021-10-27T10:50:59.000Z","size":2270,"stargazers_count":19,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T17:23:25.190Z","etag":null,"topics":["android","android-smartphone","animation","apk","apk-signing","eclipse-compiler","java","screenshot","termux","wiki"],"latest_commit_sha":null,"homepage":"https://sdrausty.github.io/docsBuildAPKs/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SDRausty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-01-04T04:58:43.000Z","updated_at":"2024-12-05T09:17:19.000Z","dependencies_parsed_at":"2023-06-10T17:31:15.532Z","dependency_job_id":null,"html_url":"https://github.com/SDRausty/docsBuildAPKs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDRausty%2FdocsBuildAPKs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDRausty%2FdocsBuildAPKs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDRausty%2FdocsBuildAPKs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDRausty%2FdocsBuildAPKs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SDRausty","download_url":"https://codeload.github.com/SDRausty/docsBuildAPKs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244829641,"owners_count":20517349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-smartphone","animation","apk","apk-signing","eclipse-compiler","java","screenshot","termux","wiki"],"created_at":"2024-07-31T05:01:00.588Z","updated_at":"2025-03-21T16:32:57.103Z","avatar_url":"https://github.com/SDRausty.png","language":"HTML","readme":"# [Easily Build Android APKs on Device in Termux](https://BuildAPKs.github.io/docsBuildAPKs/easilyBuildAndroidAPKsOnDevice)\n\nHave 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?\n\n[This repository](https://github.com/BuildAPKs/buildAPKs) of source code is 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.\n\nIn 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. Use `apt` or `packages` to install all of the following required Termux packages:\n\n- `aapt` Android Asset Packaging Tool\n\n- `apksigner` APK signing tool\n\n- `dx` Command which takes in class files and reformulates them for usage on Android\n\n- `ecj` Eclipse Compiler for Java\n\nIf you want to install `aapt`, you will use `packages install aapt`. Before installing any packages, you should use `apt update \u0026\u0026 apt upgrade`. You can install all of them at once by executing:\n\n```\npackages install aapt apksigner dx ecj\n```\n\nFortunately, these commands work in Termux. The popular compilers `jack` and `java` do not work at present. They are stuck in [disabled packages](https://github.com/termux/termux-packages/tree/master/disabled-packages), not in [packages](https://github.com/termux/termux-packages/tree/master/packages) that you can install on the fly. There is active discussion regarding why `jack` is stuck [here](https://github.com/termux/termux-packages/issues?utf8=✓\u0026q=is%3Aissue%20%20jack), and why `java` is stranded [there.](https://github.com/termux/termux-packages/issues?utf8=✓\u0026q=is%3Aissue%20%20java)\n\nYou may be wondering now after installing the necessary packages and downloading the source code:\n\n```\ncd \u0026\u0026 git clone https://github.com/BuildAPKs/buildAPKs\n```\n\nWhat do I do next? How do I use `aapt`, 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, and `ecj`, the Eclipse Compiler for Java?\n\n[This project](https://github.com/BuildAPKs/buildAPKs) has [bash scripts](https://github.com/BuildAPKs/buildAPKs/tree/master/scripts/build) which help immensely in automating work. Make them executable by `chmod 750 script_name` if they are not already. Check to see their permissions with `ls -al`. Then simply run `build.one.bash` in the directory of the program you wish to make by calling it by name. Look for the `AndroidManifest.xml` file. That is where you want to run the [build.one.bash script.](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/scripts/bash/build/build.one.bash) After you are done building the app, install it **from** your `/sdcard/Download/builtAPKs` directory through your file manager in Android.\n\nIf your system does not have a file manager, Open File Manager is available at [F-droid.](https://f-droid.org/packages/com.nexes.manager/) You can download, install and use it. Source code for this APK (Android Package Kit) is available [here](https://github.com/BuildAPKs/buildAPKsApps/tree/master/browsers/Android-File-Manager) at buildAPKsApps, a submodule of buildAPKs. If you prefer [Ghost Commander,](https://f-droid.org/packages/com.ghostsq.commander/) the souce code is available [here.](https://github.com/BuildAPKs/buildAPKsBrowsers/tree/master/ghostcommander-code) Both APKs build beautifully on device (a smartphone) in your pocket with [Termux.](https://termux.com) We should really leave the age of whirling fans and disk drives behind.\n\nEnjoy this project! Inscribe your feedback at either the [wiki,](https://github.com/BuildAPKs/buildAPKs/wiki) the [issues pages](https://github.com/BuildAPKs/buildAPKs/issues) or through [the code itself.](https://github.com/BuildAPKs/buildAPKs/pulls) \n\n#### When you press and momentarily hold the `volumeDown+power` buttons simultaneously on a smartphone, it takes a screenshot much like this one which shows the screen and the [the source code for this page](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/docs/README.md) in [vim](http://www.vim.org/git.php) running on [Termux](./pages/asac) on [Android.](https://source.android.com/)\n\n![Screenshot](./bitpics/README.png)\n\n#### This animation was created with [imagemagick](https://sdrausty.github.io/pages/im.html) in [Termux](https://sdrausty.github.io/pages/asac.html) on an Android smartphone.\n\n![Screenshot Animation](./bitpics/ps1.gif)\n\nIf you're confused by this page try [this link,](http://tldp.org/) or you might want to try [this one.](https://www.debian.org/doc/) Post your what you have found at [the wiki,](https://github.com/sdrausty/buildAPKs/wiki) [donate](https://sdrausty.github.io/pages/donate) and help [this website grow!](https://sdrausty.github.io/)\n\n- [Termux on F-droid!](https://f-droid.org/packages/com.termux/) Please do not mix your installation of Termux between Google Play and F-droid. There are [compatibility issues.](https://github.com/termux/termux-api/issues/53)\n\n[Up One Level](./../)\n\n🛳⛴🛥🚢🚤🚣⛵\n\n\u003c!-- EOM --\u003e\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSDRausty%2FdocsBuildAPKs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSDRausty%2FdocsBuildAPKs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSDRausty%2FdocsBuildAPKs/lists"}