Questions tagged [zipalign]

zipalign is an archive alignment tool that provides important optimization to Android application (.apk) files.

The purpose is to ensure that all uncompressed data starts with a particular alignment relative to the start of the file. Specifically, it causes all uncompressed data within the .apk, such as images or raw files, to be aligned on 4-byte boundaries.

93 questions
2
votes
1 answer

Generated signed Android APK (Cordova)

I am trying to build a signed apk for Android platform using cordova. I have already created unsigned apk using cordova --release android. But i am unable to sign usejarsigner and zipalign. kindly help.
Apurva Pathak
  • 692
  • 1
  • 9
  • 22
2
votes
1 answer

zipalign not installed with Java SDK / JRE

I need to zip-align an APK file after I re-signed it with a specific cert. Everything worked fine with keytool and jarsigner. However, the zipalign tool was not installed with Java SDK 8 Update 92 (inlcuding JRE in same version). I am running…
Nils
  • 94
  • 1
  • 5
2
votes
0 answers

error while loading shared libraries while Zipalign

I am getting this problem all the time when trying to zipalign my apk even after the installation of libc++ and others required according to different post on this.How to solve this problem.Currently I am using Ubuntu 14.04 64-bit. zipalign: error…
baldraider
  • 1,049
  • 2
  • 18
  • 48
1
vote
1 answer

zipalign.exe does not work on Windows for apks that are larger than 2GB

I found zipalign reports error when I use the command 'zipalign -p -f -v 4 in.apk out.apk' on Windows, the in.apk is larger than 2GB. But the tool zipalign works fine on MacOS and Linux. I don't know what happened on Windows. I am also wondering how…
Yang Liu
  • 11
  • 2
1
vote
4 answers

dlopen failed for privileged app when upgrade gradle build tools from 3.6.1 to 4.1.0

I have an app which locate in /system/priv-app/MyTestApp. The android source code environment is Android P (API 28). At first, the MyTestApp.apk was build with gradle build tools 3.6.1. Then I upgrade it to 4.1.0 and build a new MyTestApp.apk and…
bitristan
  • 631
  • 8
  • 16
1
vote
1 answer

Zipalign not working Catalina Mac OS , Bad CPU type in executable

After the install of Catalina Mac Os I starting to see this error when I run zipalign /usr/local/bin/zipalign: line 3: /usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.1/zipalign: Bad CPU type in executable /usr/local/bin/zipalign: line 3:…
lks
  • 21
  • 1
  • 6
1
vote
1 answer

Mac 10.15 Catalina: “Zipalign” cannot be opened because the developer cannot be verified

As part of my project, I ship ‘Zipalign’ file along with other files and executes the zipalign command like below while generating the apk file. zipalign -f 4 /app-debug.apk /aligned-app-debug.apk It was working fine until MacOS version…
1
vote
1 answer

Qt 5.12.6 Android: How to change zipalign apk name

I changed my application apk name from build.gradle (gradle version 4.6) with these lines of code: android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "App.apk" } } But if i build the apk in release…
Fausto01
  • 171
  • 14
1
vote
1 answer

App keeps stopping (only on apk from Azure DevOps)?

We are deploying our Xamarin android app inhouse using Azure DevOps. The App builds, deploys, and runs smoothly from VS2019. We are also able to sign our apk using the Android Package Signing option. Building, signing, and placing the .apk from…
jtth
  • 876
  • 1
  • 12
  • 40
1
vote
1 answer

How to get the error from zipalign (Android)

I try this one: zipalign.exe -c -v 4 android-debug.apk Output is : Verification succesful But when i try this: zipalign.exe -f -v 4 android-debug.apk android-debug-aligned.apk I get this output Verifying alignment of android-debug-aligned.apk…
J. Dean
  • 13
  • 3
1
vote
1 answer

Zipaligner not found in Visual Studio 2017

According to this page https://learn.microsoft.com/en-us/xamarin/android/deploy-test/signing/manually-signing-the-apk zipaligner is supposed to come with Android SDK, but it is not there. Is my Visual Studio bugged, or I need to install it manually?…
Eugene
  • 41
  • 3
1
vote
2 answers

"zipalign.exe" exited with code 1. (Xamarin.Android)

After update my vs2017 to 16.6.5, and update google sdk-build-tools to 27.0.3, my project got a problem with debugging for my tablet. My project type is xamarin.android, I check it for xamarin.forms but debugging for my (not emulator) tablet is…
HamidEbr
  • 405
  • 1
  • 7
  • 19
1
vote
0 answers

How to verify apk has compress with zopfli or not

I use buildToolsVersion 26.0.3 with android studio 3.0.1 to generate signed apk how to verify that the apk is compress with zopfli or not ? how to disable zopfli compress when execute zipalign in android studio ?
steven274
  • 3,321
  • 2
  • 10
  • 11
1
vote
0 answers

Can not disable zipalign

I have used these config in android studio 3.0.1 com.android.tools.build:gradle:3.0.1 compileSdkVersion 26 targetSdkVersion 26 buildToolsVersion 26.0.3 buildTypes { release { debuggable false minifyEnabled…
steven274
  • 3,321
  • 2
  • 10
  • 11
1
vote
1 answer

How to Sign apk programmatically in java / by using command line

I am working on phonegap project. I have one apk file which is working fine and installing properly on android device, but I want to do some modification in that apk file, for that what i am doing is, just renaming it's extention from apk to zip and…