I want to sign an apk file using keytool , I have a public certificate .cer file and a private key .pem I used to use the android studio wizard to sign apk , now I have no idea how to do it.
Sign an apk using keytool
3.9k Views Asked by Anass Boukalane At
1
There are 1 best solutions below
Related Questions in ANDROID-STUDIO
- how do i submit a pastebin or pastee from an android app and get the url back
- Getresource id Error
- Call special fragment in Navigation Drawer Activity from separate Activity
- Debug native code in Android Studio
- How to introduce in this AlertDialog a onBackButtonPressed method?
- Android Studio : All of a sudden cannot resolve symbol 'ActionBarActivity'
- Error connecting to Google Play Games
- Android Studio - Illegal character 8204 error
- Android Studio unable to run the project
- How do I know what is available in minSdkVersion in Android Studio?
- Android Studio update (version 1.2.1.1) - Cannot resolve symbol 'TintCheckBox'
- How to accept cookies when using a webservice - Android?
- How can I always show Android Studios Preview?
- Android Studio cannot recognize "setAdapter()" method
- Error inflating class Android support design
Related Questions in KEYTOOL
- How to create CSR with SANs using keytool
- keytool command successful on command line but not via ProcessBuilder
- Finding the version of Java that generated a keystore file?
- Create java keystore from private key and CA certificate bundle
- keytool SHA256 (android keystore) not generating
- Savon connecting to SoapUI SSL Mock Service
- JBOSS SSL configuration ERR_SSL_VERSION_OR_CIPHER_MISMATCH
- Extract one alias from pkcs12 keystore in pkcs12 format
- Using keytool from Java code rather than command line
- Self-signed Certificate and Client Keystore for SSL Authentication
- keytool error: java.io.IOException: Illegal header: -----BEGIN CERTIFICATE-----
- Can't generate a keystore to sign, what is the difference between keystool and oppen
- Java keytool error on keystore directory
- SAML trusted certificate
- Using keytool to list secret key
Related Questions in JAR-SIGNING
- What does the "verify" parameter to java.util.jar.JarFile mean, precisely?
- java.lang.SecurityException: invalid SHA1 signature file digest for org/bouncycastle/tsp/TimeStampTokenInfo.class
- Xamarin Android manual sign apk
- OpenSSL - Sign the certificate with own CA
- XMLBeans jar can't be signed when imported from custom class
- Which elliptic curves does jarsigner support?
- New <updateManifestEntries> entries of webstart-maven-plugin breaks the application
- WebSphere 8.5.5 not returning JAR signers
- Signing JAR but file still does not work as a Java Web Start Application
- Signing APK for Kindle Fire causes Crash
- Installation failed since the device has an application with the same package but a different signature
- How to prohibit the site to ask to certify the java (after updating it) once its certified
- Cordova build and signing error when I try to upload to google play store, no v2 signature
- Running a signed midlet on the emulator produces a SecurityException
- Why won't signed java applet connect to external server?
Related Questions in APKSIGNER
- Signing apk works from Android Studio but why the same keystore do not work on command line?
- Android SHA256 signature algorythm with certificate having a SHA1 algorythm
- Fetching the certificate fingerprint if an apk is signed with only v2 Signing Scheme
- apksigner - Invalid keystore format
- How to print certificates of APK using apksigner
- How to reverse engineer an apk without changing its siging information
- Generate CERT.RSA for an APK without jarsigner / apksigner or any java tool
- Is it possible to add a new signature to an existing app?
- How to sign .apk with SHA256 algorithm
- Recompile apk using original certificate
- The apk rebuild by apktool can not be installed even after zipalign and sign
- Sign an apk using keytool
- "ZIP End of Central Directory record not found" error using Apksigner
- ApkSigner fails to sign APK after AGP update to 4.1.0
- Changing method of signing application on Android Studio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can't sign an APK with
keytool.You can use
jarsigner(doc) orapksigner(doc).I highly recommend you sign with the latter (apksigner), since it has additional protections, is faster and is the recommended approach by the Android team.
apksigneris distributed via the SDK Build tools which you can download using the SDK Manager.Then, the command line is:
where:
You'll be prompted to enter the key alias from the keystore, then the password of the keystore and the password of the key. You can also enter those values on the command line if need be, e.g.