锁定Android应用程序。想法? [英] Locking down an android application. Ideas?

查看:116
本文介绍了锁定Android应用程序。想法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我玩弄与周围的想法,在理论上,父母将安装手机上,他的应用程序/她给他/她的孩子。所以,主要的问题是,我如何能够prevent从刚刚卸载应用程序的孩子呢?任何想法如何解决此问题?我真的很怀疑这样的事情存在,但认为在这里问了一个很好的方式,以找出是否有任何技巧。

I'm toying around with an idea for an app that, in theory, a parent would install on a phone he/she gives to his/her child. So, main problem is, how would I be able to prevent the child from just uninstalling the application? Any ideas on how to solve this? I'm really doubtful something like this exists but thought asking here was a good way to find out if there were any tricks.

编辑:

如果没有情况发生的方法prevent这一点;这个怎么样:在卸载,做一些事情(例如发送电子邮件至previously配置的电子邮件地址)。这可以作为一个不利因素为孩子卸载该应用程序作为父能找到它。当然,一个勤劳的恶棍也只是打开飞行模式,然后卸载,但我只是在这一点上捕鱼的想法。

If there's no way to prevent this from happening; how about this: upon uninstall, do something (e.g. send an email to a previously configured email address). This could serve as a disincentive for the child to uninstall the app as the parent could find out about it. Of course, an industrious miscreant would just turn on airplane mode and then uninstall but I'm just fishing for ideas at this point.

推荐答案

您已经有了现在的问题是,当作为申请父母描述的监视他们的孩子你想要什么声音良性的,从不同角度来看这听起来有点像恶意软件,只要你想一个应用程序:

The problem you've got is that when described as application for parent to monitor their child what you want sounds benign, viewed differently it sounds a bit like malware, as you want an application that:


  • 无法卸载

  • 电子邮件家里没有告知用户

正如人们所说的,你将无法prevent卸载没有Android的定制版本。 有这是一个应用程序的卸载发送,但这些都不能活动由应用程序截获被删除。 (所以,我想你可以安装应用程序和一个看门狗应用程序,互相监督拆除,但如果孩子没有信号变为地方,并同时删除那么他们将声息,因为他们不能没有互联网连接打电话回家。)

As has been said, you won't be able to prevent uninstallation without a custom build of Android. There are events which are sent on the uninstall of an application but these cannot be intercepted by the app being removed. (So I guess you could install your application and a watchdog application which monitor each other for removal, but if the child goes somewhere with no signal and removes both then they will disappear silently since they can't call home with no internet access.)

另一个问题是发送电子邮件。在Android的发送邮件的常用方法是通过使用意图切换到与地址和内容填写的电子邮件应用程序,但这需要确认从用户发送,这将不利于你和孩子可能只是拒绝发送警告电子邮件。

Another problem is sending email. The usual way to send an email in Android is through using an Intent to switch to an Email application with address and content filled in, but this requires confirmation from the user to send, which won't help you and the child could just decline to send the warning email.

因此​​,而不是给家里打电话时,应用程序被删除,你打算要做的就是打电话回家,每天当一切都很好;如果应用程序的的中然后在父呼叫知道有一个问题。你可以写一个 服务 这是电话回家,并通过的 AlarmManager

So instead of calling home when the application is removed, what you're going to have to do is call home every day when all is well; if the application doesn't call in then the parent knows there is a problem. You could write a Service which is calls home and and is started daily by an AlarmManager.

有关调用你要么将不得不通过HTTP连接到一个URL或自己写code发送使用SMTP邮件,因为你不能发送电子邮件默默的开箱即用。我会使用前如果可能的话,否则,你就必须存储自己的SMTP配置,你无法从其他申请借用这一点。

For calling in you're either going to have to connect to a URL via HTTP or write your own code to send emails using SMTP, since you can't send emails silently out of the box. I'd use the former if possible, otherwise you'll have to store your own SMTP configuration as you can't "borrow" this from another appl.

您可以显示电子邮件应用程序中的每一天,让孩子送全是孔的电子邮件,但问题还有,孩子很容易被手各重建电子邮件和不运行,除非你的应用程序发送只要进行签名和验证每个电子邮件去了。

You could display the email application each day and get the child to send the all-is-well email, but the problem there is that the child could easily recreate the email by hand each and send it without the application running unless you went so far as to cryptographically sign and verify each email.

这篇关于锁定Android应用程序。想法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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