如何在用户卸载App应用程序之前启动活动或服务?

Gau*_*wal 17 android

为什么再次提出同样的问题

关于SO,这个问题已被问过大约100次.我再次问它,因为所有答案都说,this is not possible但至少市场上的一个应用程序正在这样做NQ Mobile Security.在类似问题上我开始获得100分的赏金,但没有得到足够的重视.如果社区不接受我将删除该问题.

应用程序正在做什么

当用户尝试卸载它时,该应用会显示一项活动

在此输入图像描述

并在卸载之前进行一些处理

在此输入图像描述

我的问题是什么?

如何在早先在其设备上安装应用程序的用户卸载应用程序之前ActivityIntentService之前启动?

Gau*_*wal 2

正如 @CommonsWare 所说,The techniques used by NQ Mobile Security have been reported to the Android Security group, and they are working on a fix to stop this behavior from occurring.并向 Google 提出了功能请求,希望他们能够听取。

http://code.google.com/p/android/issues/detail?can=2&q=33315&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&id=33315