通过密码验证安装和卸载Android应用程序 [英] install and uninstall android app by password authentication

查看:282
本文介绍了通过密码验证安装和卸载Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在制作与安全相关的Android应用程序。其中

我想限制用户通过密码卸载android应用程序,

在安装应用程序时我想从用户那里获取输入密码,在卸载期间用户必须输入相同的密码将其卸载。

如果没有输入密码,他就不应该卸载应用程序。



我通过互联网搜索并询问了很多Android开发人员,但没有人可以解决它。

这种类型的安全性存在于快速治疗应用程序(快速治愈移动设备的防病毒),所以它是可能的。

有人说它用普通的android SDK无法实现,它需要管理API。

有人说不可能。



建议我如果有人有解决方案。



我通过广播接收器尝试了包裹观察者,几乎达到了我的目标。

但当时卸载两个软件包安装程序生成,一个是默认(隐式),一个是由我创建的(显式)。

当用户选择我的软件包安装程序时,他会提示输入密码,一切都按照需要进行,但是当用户选择默认软件包安装程序时,应用程序在没有要求输入密码的情况下获得卸载。



这里有人来解决这个问题吗?

Hello everyone,

I am making a security related android app. In which
I want to restrict user to uninstall the android app by password,
at the time of app installation I want to get input password from user and during uninstallation user must enter the same password to uninstall it.
Without entering that password he should not uninstall the app.

I searched over internet and asked many android developers but nobody can sort it out.
This type of security exist in quick heal app (quick heal antivirus for mobile), so it is possible.
Some says it can't be possible with normal android SDK, it requires administrative API.
Some says it can't possible.

Please suggest me if anyone have solution.

I tried out package watcher through broadcast receiver and reached almost near by to my goal.
But at the time of uninstallation two package installer generates, one is the default (implicit) and one is created by me (explicit).
When user select "my package installer" then he prompt for password and everything goes as desired but when user selects default package installer then the app got uninstall without asking for password.

Anyone here to solve this issue?

推荐答案

类似帖子:

http://stackoverflow.com/questions/1221534/require-a-password-to- uninstall-remove-application [ ^ ]



-KR
Similar thread :
http://stackoverflow.com/questions/1221534/require-a-password-to-uninstall-remove-application[^]

-KR


这篇关于通过密码验证安装和卸载Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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