Android programs can be prevented from being killed by 360 or the system

Source: Internet
Author: User

Regarding the problem of preventing android programs from being restarted after 360kill, we certainly have searched a lot of methods, which are difficult to solve. Right? What are the permissions and process priorities, these things are not controllable, so is there any very safe way to automatically restart the program after it is killed.

We didn't find it. When we used 360 for program cleaning, some applications started quickly. How did they implement it? In fact, we have never seen their source code, and it is hard to say how to implement it.

I will provide you with some ideas below, which may help you:

 

There are a lot of rogue software and viruses on windows, and sometimes you can't even kill them, unless you unplug the power, you can't let them continue playing rogue games. How can they be prevented from being killed by the daemon process,

For example, when the 1.exe and 2.exe programs are killed, the 2.exewill be started. If you want to kill 2..exeand then start 1.exe, you will not be able to kill it. In fact, it is just a simple example. It should be much more complicated than this. Virus and rogue software should be compared with anti-virus software.

We can also use this idea in android:

(1) create two services, Service1 and Service2

(2) write the code to start Service2 in the onDestory method of Service1.

Write the code to start Service1 in the onDestory method of Service2.


This ensures that non-system processes can kill and restart their own programs.

 


At that time, if it was a system program, for example, how to force kill the program in the system's built-in program management? Do we have a good solution?

Of course, haha, it's actually quite simple,

We just register all the Common System Broadcasts, such as the screen lock broadcast. After receiving the broadcast, we will check whether the service has been started. If not, we can start one of the services.

 


The above methods do not require higher system permissions or other things, and they can make their programs invisible.

 


 

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.