From: http://www.zhihu.com/question/20773194/answer/16136814
Liu Shuai
First, the analysis starts from the android pop-up page.
In Android development, the following code is used to pop up a webpage through the default browser:
Startactivity (new intent (intent. action_view, Uri. parse ("http://www.baidu.com ")));
That is to say, 360 mobile guard can execute the above Code during the uninstallation process to bring up a webpage. Then, how does it know that it has been uninstalled?
We know that when you uninstall an application, the android system will send a system broadcast, but you can't receive the broadcast if you uninstall it yourself (or you cannot receive the broadcast too late, at that time, both the process and the thread will be killed), and the Android system does not give developers The right to do something when the application is uninstalled. However, we can useMonitor logs output by Android systemTo determine whether you are detaching ".
This is the most common method I know. When your application (including any other application) is uninstalled, the android activitymanager prints a line of log, which is probably removing: Your package name. This log is output instantly after you click "OK" on the application unload interface. Although this moment is very short, it is enough to be captured by the uninstalled application. When the log is captured, the above code can be called to bring up a webpage after uninstallation.
This is just a personal idea. For details about how to capture the system log, refer to the information on your own.