360 how does the Android version of mobile guard bring up a webpage after the uninstallation is complete?

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.