A tool in the Android SDK Build Tools which allows you to create and confirm APK signatures
Questions tagged [apksigner]
67 questions
52
votes
8 answers
Can't find 'apksigner' executable to manually sign APK
Following the Sign Your App Manually guide,
You can sign your app from the command line using standard tools from the Android SDK and the JDK
I should have apksigner somewhere to run
$ apksigner sign --ks my-release-key.jks my-app.apk
Where is…

ScottyC
- 1,467
- 1
- 15
- 22
18
votes
4 answers
Android signing error: trusted certificate entries are not password-protected
Got a certificate to sign the android unsigned release apk files,
So I imported the cer using command:
keytool -import -alias alias_name -file cer_name.cer -storepass changeit -keystore my_keystore.keystore
But when signing the app with android…

Sanjay Singh
- 231
- 1
- 3
- 11
12
votes
1 answer
What is the difference between Jar signer and Apk signer?
As ApkSigner is available in revision 24.0.3 and higher of the Android SDK Build Tools, I have a question: What is the difference between ApkSigner and JarSigner? Why do we need ApkSigner?
Can I sign Apk in the command line for both signers?

Krunal Kapadiya
- 2,853
- 3
- 16
- 37
9
votes
4 answers
How to Add Pre-built App (System App) in AOSP source code
I was trying to add an APK in AOSP version 10 as system application. I have followed the procedure mentioned in almost different links which is here Add apk in AOSP but nothing worked. The process mentioned in this link and the steps I followed…

semw
- 137
- 1
- 1
- 10
7
votes
2 answers
Apk signer entry does not contain a key
I am trying to sign an APK manually using APK signer using this code
apksigner sign --ks D:\Android\SDK\keystores\release.keystore --ks-key-alias uploadcertificate --out app-release.apk app.apk
but it's giving me an error saying that
Failed to…

B0rn2C0de
- 585
- 1
- 7
- 22
6
votes
2 answers
Apksigner does not verify signature
i was trying to verify the signature of the latest Gmail App (Version 8.11.25.224) with apksigner and it failed.
I used:
apksigner verifiy --verbose --print-certs
The result was:
DOES NOT VERIFY
ERROR: APK Signature Scheme v2 signer #1…

Xes Raw
- 61
- 1
- 1
- 2
6
votes
4 answers
Visual Studio's AndroidApkSigner does not find key in keystore
I am getting this error when creating an APK within Visual Studio:
Failed to load signer "signer #1": C:\...\googleplay.keystore entry "googleplay" does not contain a key
I am a longtime ASP.NET developer who is familiar with Visual Studio but…

Eric
- 654
- 5
- 16
5
votes
2 answers
apksigner: command not found
Specifications:
Android Studio Version: Android Bumblebee
Android Build SDK Build-Tool : 30.0.3
Android SDK Command-line Tools: 7.0
I am trying to sign apk using apksigner. I am using this command in my Android Studio Terminal
apksigner sign --ks…

Rohit Singh
- 16,950
- 7
- 90
- 88
5
votes
1 answer
Signature error msg when uploading new APK version (SHA1 not supported in API level 8)
I have published an app in 2010. Back then, I had created a local keystore and one key, which I have never changed and used for all my (about 30) versions of this app which I have published since then.
I never had any issues with this, it always…

Nemax
- 381
- 2
- 10
5
votes
1 answer
"APK Signature Scheme v2" is supported only by "apksigner" not by "jarsigner"
We use HSM for APK signing and in order to support new "APK Signature Scheme v2" do we need to use apksigner going forward to support both Scheme 1 & 2?
jarsigner - supports only "APK Signature Scheme v1" (JAR-based signing scheme)
apksigner -…

Ananth Ramasamy Meenachi
- 785
- 1
- 9
- 26
5
votes
2 answers
Can I specify digest algorithm apksigner uses?
Due to recent SHA1-collision news, I want to ensure that SHA1 is no longer used in my apk signing. However I cannot find a parameter in apksigner.
Is there a way to specify (either direct or indirect) the digest algorithm apksigner uses?
(Before SDK…

Jokester
- 5,501
- 3
- 31
- 39
4
votes
2 answers
Signing apk works from Android Studio but why the same keystore do not work on command line?
My key for signing Android app was generated using Android Studio. It is working fine when I try to generate signed APK from Android Studio.
However the same key is not working when I try to sign using apksigner tool. Here is the command I am…

Nagarjun
- 2,346
- 19
- 28
3
votes
0 answers
How to Enable v3 & v4 App Support for Android APK File
I have pasted the below command in the Terminal / Command Prompt and found the output from the below image file. So how do I enable or set v3 & v4 Signature Scheme to true which is currently getting false
java…

Parth Bhayani
- 1,894
- 3
- 17
- 35
3
votes
1 answer
"AndroidApkSigner" task was not given a value for the required parameter "KeyPass"
Archiving fails, and the error message I get is:
The "AndroidApkSigner" task was not given a value for the required parameter "KeyPass".
I've never had this problem before. So this happens before I even get to the "Distribute" option.

Pointo Senshi
- 541
- 5
- 17
2
votes
0 answers
apk seen as non-system when signing it with 2 platform keys with apksigner
When I sign my .apk with 2 platform keys (2 pairs of .pem & .pk8 files for 2 different platforms) with apksigner, the app itself is not seen anymore as a system-app on either of the 2 platforms I signed it for.
But when I try to sign it using just…

Ioan
- 43
- 5