未对齐的android APK是否与未签名的APK相同?需要生成未签名的发布apk [英] Are unaligned android APK's the same as unsigned APK? need to generate release apk that is unsigned

查看:114
本文介绍了未对齐的android APK是否与未签名的APK相同?需要生成未签名的发布apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在未签名的android studio中生成一个APK.我还看到了其他一些问题.

I need to generate an APK in android studio that is unsigned. I saw a few other questions about this.

从Android中的Gradle项目中导出未签名的apk Studio

我看到的最好的答案是进入gradle任务并执行assembleRelease.这样会在/build/output/apk文件夹中生成两个apk,一个说app-release-unaligned.apk.

The best answer I saw was to go into the gradle tasks an execute assembleRelease. This generates two apks in the /build/output/apk folder one says app-release-unaligned.apk.

未对齐未签名一样吗?

调试构建类型是否与未签名相同?

Is the debug build type the same thing as unsigned?

我还尝试添加第二种构建类型,其中我未指定签名配置,但是IDE只是抱怨t

I also tried adding a second build type where I don't specify a signing config but then the IDE just complains that t

推荐答案

不,不.

未对齐是指APK(zip文件)中数据的结构.名为 zipalign 的实用程序会修改APK,以针对以下情况进行优化:读者.未对齐只会跳过zipalign阶段.它与APK签名无关.

Unaligned refers to how the data is structured within the APK (zip file). A utility called zipalign modifies the APK to align data in a way that is optimised for readers. Unaligned simply skips the zipalign stage. It has nothing to do with APK signing.

调试只是一种模式,其中在您的应用程序中设置了一个标志,以向Android指示可以通过调试器(或由调试器附加)启动您的应用程序.再次,从技术上讲,它与对应用程序进行签名无关,但是通常的做法是使用其他签名密钥来调试应用程序,并且仅使用真实的应用程序签名密钥对最终版本/发行版进行签名(应保持安全)

Debug is simply a mode where a flag is set within your App to indicate to Android that your App can be launched with (or attached to by) a debugger. Again, technically, it has nothing to do with signing your App, but it is common practise to use a different signing key for debugging your App and only signing a final/release build with your real App signing key (which should be kept secure).

这篇关于未对齐的android APK是否与未签名的APK相同?需要生成未签名的发布apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆