问题描述
问题
我正在开发一个Android应用程序,并出于某种原因想我的Android设备上安装包时,我有未安装应用程序的错误。该应用已经previously安装成功。
ProblemI am developing an Android app and for some reason I have the "App not installed" error when trying to install the package on my Android device. This application has already previously been installed successfully.
要调查,我去的基本知识:
To investigate, I went for the basics:
- 从设备上删除我的应用程序
- 确保安全>来源不明被检查
- 创建的HelloWorld应用随机包名称,并试图安装在设备上:成功
- 创建了相同的包名称的应用程序的HelloWorld作为我的问题的项目:失败
所以我的猜测是,我的包名指向一些东西,这不是正确卸载。
So my guess is that my package name is pointing to some stuff that was not uninstalled correctly.
问
有没有一种方法,以确保所有相关的包名在Android设备上的数据被删除?
QuestionIs there a way to make sure that all the data on an Android device related to a package name is deleted?
上下文
- 与AIDE的android应用程序开发直接。没有获得任何一台电脑的时候,因为我旅行。
设备:
- 三星Galaxy票据2014年10
- Android 4.3的(不根植)
Context- Developing directly in android with the AIDE app. No access to any computer at the time since I am travelling.Device:- Samsung Galaxy Notes 10 2014- Android 4.3 (not rooted)
推荐答案
一个原因,为什么这可能发生的情况是因为上次卸载过程中,并非所有相关的应用程序文件已被删除。我不知道为什么会这样,但我知道,它确实时有发生。
One reason why this could happen is because during the last uninstall, not all relevant application files have been removed. I don't know why this happens, but i know that it does sometimes happen.
有可能是遗留下来的文件是由不再分配给应用程序的用户/组ID所拥有。
现在,当您使用相同的包名安装一个应用程序,它会得到一个新的用户/组,因为它不是一个更新,但是一个新的安装。
当您的应用程序仍然具有相同的包名就是了创建相同的文件,但不能因为一个或多个文件/显示目录仍从previous存在安装,因为它缺乏它不能覆盖/删除权限,因为是由不同的用户/组ID所拥有。
There might be files left over that are owned by a user/group id that is no longer assigned to an application.When you now install an app with the same packagename, it will get a new user/group because it is not an update, but a fresh install.As your app still has the same package name it wants to create the same files, but it can't because one or more files/dirs still exists from the previous install and it can't overwrite/delete them as it lacks the permission because the are owned by different user/group ids.
您可以检查与您的包名的文件/显示目录下面的位置,但我怀疑你将能够做很多没有root权限。
You could check the following location for files/dirs relating to your packagename, but i doubt you will able to do much without root access.
- /数据/数据
- /数据/应用程序
- /数据/应用程序,ASEC
- /数据/应用-LIB
- /数据/达尔维克缓存
- /数据/本地/ tmp目录
- 的/ mnt / ASEC
- 的/ mnt / OBB
- 的/ mnt / SD卡/ Android版/ OBB
的(全面披露:这是我的应用程序)的
通过根的CorpseFinder功能将检查最常见的位置(参见设置),以便这个问题。
With root, the "CorpseFinder" feature of SD Maid will check the most common locations (see settings) for this issue.
这篇关于具体包名Android应用程序无法安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!