It seems (speculation) that Xamarin does the zip aligning after the signing. In the end, I found that my apk was not properly signed. But after struggling for a few days to get things working, I hope this may help someone avoid losing some hair. This is not a direct answer to the question on how to manually zipalign. p: page align stored shared object files c: check alignment only (does not modify file) Output from windows (extra parameters not in the Docs :O) : Zip alignment utilityĬopyright (C) 2009 The Android Open Source Project c : confirm the alignment of the given file This must always be 4 (which provides 32-bit alignment) or else it effectively does nothing. The alignment is an integer that defines the byte-alignment boundaries. To confirm the alignment of existing.apk: To align infile.apk and save it as outfile.apk: Make sure you have the Android SDK build-Tools installed then check where your SDK is installed mine was at C:\Program Files(x86)\Android\android-sdk\build-tools\23.0.1\zipalign You will find zipAlign in the android build tools then use it like so:Ĭ:\Program Files(x86)\Android\android-sdk\build-tools\23.0.1\zipalign -v 4 infile.apk outfile.apk
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |