Hello There Everyone!,

To clarify the title...

Is there a way to change, modify, convert, etc... an App Installer (.apk) to a Flashable Installer (.zip).

I'm not referring to just creating a zip to simply copy the apk file to its desired directory but, to either install the app as a new app and/or upgrade an existing one in the same/similar fashion as would an apk itself would be installed.

I tried to search around and the results aren't specific to what I'm asking and reflects the copying of the apk file rather than the installing of it.

I hope that I had explained this okay via text... :-)

Thank you very much for your time and understanding with this question!


  • 1
    Copying it to the appropriate directory in /data/app does install it on next boot. Unfortunately "appropriate directory" isn't always easy to figure out. – Andy Yan May 22 '18 at 16:02
  • Installing APK Files just copies them to data and sets up the working directory for it in data/data ... It would be exactly the same as making a zip that copies the apk to desired location, except you'd need to create the folders under data/data in the flashable zip.. mkdir /data/data/com.example.app – Gadget Guru May 22 '18 at 21:34
  • Tested and confirmed working on LOS 14.1: installing e.g. OctoDroid is simply a matter of creating the com.gh4a-1 directory (name comes from the app's package name plus the -1 suffix) under /data/app, uid/gid == 1000, mode == 755. Then, drop the app's APK inside that directory, rename it to base.apk, set uid/gid to 1000 and mode to 644. Finally, reboot and Android will handle lib extraction, app uid/gid creation and so on. If it works for you, I'll make it an answer. – Death Mask Salesman May 22 '18 at 21:51
  • The above would only work for <= Android 7.1. Android 8+ hashed the folder names. – Andy Yan May 23 '18 at 1:28
  • @AndyYan Could you make an example? – Death Mask Salesman May 23 '18 at 12:29

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.