What is the differences between `export signed` and `unsigned` .apk file? [duplicate]

梦想与她 提交于 2019-12-12 07:39:39

问题


I'm building .apk file for my Android application using Android tools - Export... as guided here

My question is what are signed and unsigned .apk file?

How can we use usngined .apk file? (I tried to export an unsigned one but I cannot install it for my Galaxy Nexus)


回答1:


Signing Android apps is just like signing any other application; it provides the user with some level of assurance that the code hasn't been tampered with since you released it.

Unsigned apps should be usable generally but do require lowering the security level. A quick Google search found a number of articles that explained that all you have to do is check the Unknown Sources box in Settings->Security.




回答2:


Export Unsigned apk means you will get the unsigned apk that is not signed by any keystore. A keystore is a binary file that contains a set of private keys. The app will need to be signed with a keystore to be used or installed using the Google Play App Store.

Export Signed apk means you get the apk and it will provide the option to make the sign apk with existing keystore.

Android requires that all apps be digitally signed with a certificate before they can be installed. Android uses this certificate to identify the author of an app, and the certificate does not need to be signed by a certificate authority. Android apps often use self-signed certificates. The app developer holds the certificate's private key. More info here.




回答3:


A signed apk is an android package file that has been digitally singed with a certificate for which the developer holds the private key. When you are doing developing your application a special debug key is created by the dev tools.

http://developer.android.com/tools/publishing/app-signing.html

Devices require that all applications be signed, so that is why you can't install an unsigned apk.

There are sonme instructions here on self signing

I hope this helps.




回答4:


It is explained in details in this blog: http://www.nowherenearithaca.com/2011/12/difference-between-signed-and-unsigned.html

Basically the difference is:

The signed apk is simply the unsigned apk that has been signed via the JDK jarsigner tool.

FYI, the APK must be signed in order to be installed on an Android device, you can get more details on the signatures in the Android documentation: http://developer.android.com/tools/publishing/app-signing.html



来源:https://stackoverflow.com/questions/18397498/what-is-the-differences-between-export-signed-and-unsigned-apk-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!