1

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

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:

Application not installed

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!

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

EDIT: 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.

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

4

1 回答 1

3

它只是操作系统中内置的一项安全功能。除非您正在运行 Android 的 userdebug 或 eng 版本,否则所有 APK 都必须使用某些东西(即使它是您的调试密钥)签名才能将它们安装在设备上。

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

于 2012-06-06T16:50:47.133 回答