机器人 - 下载应用程序机器人、应用程序

2023-09-07 09:57:00 作者:再见我不爱你了

我试图创建我正在写一个应用程序的一个无符号的内部测试版本,而我得到一些奇怪的错误。

I'm attempting to create an unsigned internal test build of an application I'm writing, and I'm getting some strange errors.

我使用的Eclipse的Andr​​oid工具来生成一个未签名的APK,然后将其连接到我们集团维基,此时用户可以点击下载它,并试图安装它,但它一直示数有:

I'm using Eclipse's Android Tools to generate an Unsigned APK, then attach it to our group wiki, at which point a user can click to download it, and attempt to install it, but it keeps erroring with:

未安装应用程序

LogCat中显示:

LogCat reveals:

06-06 11:11:25.532: W/ActivityManager(1401): No content provider found for permission revoke: file:///mnt/sdcard/Download/2012-06-06-02-App-Name.apk
06-06 11:11:25.652: W/ActivityManager(1401): No content provider found for permission revoke: file:///mnt/sdcard/Download/2012-06-06-02-App-Name.apk
06-06 11:11:25.712: E/PackageParser(1401): Package com.site.appname has no certificates at entry res/anim/slide_in_1.xml; ignoring!

我试图删除并重新创建一个XML文件,但无济于事。

I attempted deleting and recreating that XML file, but to no avail.

编辑:同时,我已经试过这在3个不同的开发设备,从安卓2.1至4.0,其中一个定制ROM,所有这些都previous建立,但我逼停/清除数据/卸载它们。此外,我刚刚创建了一个新的模拟器,基于4.0,x86和它做同样的事情。

Also, I have tried this on 3 different development devices, from Android 2.1 to 4.0, one with a custom ROM, all of which had previous builds, but I force stop / clear data / uninstalled them. Additionally I just created a new emulator, based on 4.0, x86, and it does the same thing.

编辑2:使用新的密钥签名它使人们的工作,但我还是想知道为什么它不会工作无符号

EDIT 2: Signing it with a new key made it work, but I'd still like to know why it will not work unsigned.

推荐答案

这仅仅建立在操作系统的安全功能。除非你正在运行的是Android的userdebug或ENG构建,所有的APK必须的东西(即使是调试键),以在设备上安装它们进行签名。

It's simply a security feature built into the OS. Unless you are running a userdebug or eng build of Android, all APKs must be signed with something (even if it is your debug key) in order to install them on a device.

模拟器,在默认情况下,运行的是userdebug构建,这就是为什么你可以安装未签名的APK那里,如果你有previously试过了。

The emulator, by default, is running a userdebug build, which is why you can install unsigned APKs there if you had previously tried that.

 
精彩推荐
图片推荐