Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a difference between typical a ZIP file and an APK file?

Tags:

android

apk

zip

I know a typical APK file would have AndroidManifest.xml but that's not the aspect I ask for. I'm asking in terms of ZIP structure and headers, i.e. at a lower level perspective.

like image 677
kolistivra Avatar asked Apr 10 '13 19:04

kolistivra


People also ask

Is APK the same as ZIP?

Any APK file is a valid ZIP file. There's more to it than that - files that must be present, the fact that zipalign is normally used to align data structures within the file - but it's all valid ZIP.

Why is APK downloading as ZIP?

By default the APK blob that was uploaded had content type of application/zip and the same content type reflected in the reposnse header causing the downloaded file to get a . zip extension on Android OS when download was finished.

Can you change ZIP to APK?

To convert your offline web content to an APK, you need to open Web App Template on AppsGeyser, submit a ZIP archive with HTML files to the form. Move to the next step to name the app and upload the icon. It takes up to 5 minutes to build a web app.

What kind of file is APK?

An APK (Android Package Kit) is the file format for applications used on the Android operating system. APK files are compiled with Android Studio, which is the official integrated development environment (IDE) for building Android software. An APK file includes all of the software program's code and assets.


2 Answers

Any APK file is a valid ZIP file. There's more to it than that - files that must be present, the fact that zipalign is normally used to align data structures within the file - but it's all valid ZIP.

like image 154
j__m Avatar answered Oct 03 '22 17:10

j__m


AFAIK, it is a completely standard ZIP file. I have had no problems working with an APK as a ZIP file using any tool I have tried.

Note that, as with regular ZIP files, not all entries will be compressed (varies by file type).

like image 31
CommonsWare Avatar answered Oct 03 '22 16:10

CommonsWare