Apps like AIDE, SketchWare, and AppBuilder can build APK files directly on Android devices.

How do those apps do it?

  • Sorry for the mistake, I'll post somewhere else. The documentation doesn't cover this topic btw – Ivano Da Milano Jul 22 at 13:12
  • Sorry, I misread the title as "Android Studio" and reopened the question to give a chance to clarify. Note that since this community focuses on end-users instead of developers, we could probably provide an overview of what those apps do to generate an APK. However, if you want the detail on how to do it on your own app, take note that development-related questions are off-topic. – Andrew T. Jul 22 at 13:15
  • Yes, thanks a lot. This would be just enough – Ivano Da Milano Jul 22 at 13:18
  • The tools for compiling and building an Android APK are open source. Therefore you can compile them for e.g. arm and build an Android development environment on-device. It looks like AIDE works this way. I have seen tools like aapt and aidl in the AIDE apk file and it contains a lot of sample Android apps in source code form (Gradle project). Using e.g Termux app it should also be possible to compile Android projects via gradle on command-line. – Robert Jul 22 at 13:48
  • 1
    There are still programs that do more or less the same job, but nearly every tool in the Android build chain has been replaced in the last years. This schema diagram is a bit newer: tools.android.com/tech-docs/new-build-system/build-workflow – Robert Jul 22 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.