INSTALL_FAILED_UPDATE_INCOMPATIBLE示出了即使在原来完全除去 [英] INSTALL_FAILED_UPDATE_INCOMPATIBLE shows up even after the original is completely removed

查看:193
本文介绍了INSTALL_FAILED_UPDATE_INCOMPATIBLE示出了即使在原来完全除去的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装一个修改的apk文件到我的Nook简单的触摸。我修改了Reader.apk程序,重新编译它,并用我自己的密钥签名吧。

I am trying to install a modified apk file onto my Nook Simple Touch. I modified the Reader.apk program, recompiled it, and signed it with my own key.

我知道,如果签名密钥都不同,你不能在当前的应​​用程序安装应用程序。不过,我得到错误 INSTALL_FAILED_UPDATE_INCOMPATIBLE 即使完全卸载原来的Reader.apk应用程序。

I know that you cannot install an app over a current app if the signing keys are different. However, I am getting the error INSTALL_FAILED_UPDATE_INCOMPATIBLE even after completely uninstalling the original Reader.apk app.

检查packages.xml文件将之后,我删除了旧Reader.apk应用程序的条目。我仍然收到此错误。应用程序是完全卸载了,我无法安装我的修改版本。

After checking the packages.xml file, I removed the entry for the old Reader.apk app. And I am still getting this error. The app is completely uninstalled, and I cannot install my modified version.

即使签订与我的新关键原因这个错误的原始资料上来(所以它无关,与我实际做出的更改)。

Even signing the original sources with my new key causes this error to come up (so it has nothing to do with the actual changes I made).

推荐答案

解决的办法是修改的Andr​​oidManifest.xml 文件。您需要删除 sharedUserId 属性在第二行。

The solution is to modify the AndroidManifest.xml file. You need to remove the sharedUserId attribute in the second line.

的Reader.apk文件是系统应用程序,它是由制造商设备本身,谁也作了若干其他应用程序进行。由于这一点,他们能够设置sharedUserId标志,它允许所有他们的应用程序的彼此进行交互。作为安全性的设计,要求所有的应用程序具有相同的签名密钥。当我试图安装修改后的应用程序,安装失败,因为它试图同时缺乏适当的签名密钥与其他应用分享用户ID。

The Reader.apk file is a system app, and it is made by the manufacturers of the device itself, who also made several other apps. Due to this, they were able to set the sharedUserId flag, which allows all of their apps to interact with each other. As a security design, all the apps are required to have the same signing key. When I tried to install the modified app, it failed to install because it was trying to share the user id with the other apps while lacking the proper signing key.

通过在XML删除标志,就可以成功安装应用程序修改。更改从这个的Andr​​oidManifest.xml 文件中有如下一行:

By removing the flag in the xml, you can successfully install the modified app. Change the following line in the AndroidManifest.xml file from this:

<表明机器人:sharedUserId =android.media安卓版code =1机器人:=的versionName1.0包=com.bn.nook.reader。活动
  的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android>

这样:

<清单安卓版code =1机器人:=的versionName1.0包=com.bn.nook.reader.activities
  的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android>

请参阅有关详细信息,这XDA帖子。 (全面披露:我写的文章)

See this xda post for more details. (Full Disclosure: I wrote that post.)

这篇关于INSTALL_FAILED_UPDATE_INCOMPATIBLE示出了即使在原来完全除去的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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