JakeWoki / parent-guard

Automatically exported from code.google.com/p/parent-guard
0 stars 0 forks source link

PGC0604 check whether the given application is dangerous and can kill or stop Parent Guard #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are some system build-in applications, such as 
Settings->Applications->Running Services, having capability of killing Parent 
Guard and/or its service.

There are also lots of third-party applications with that capability. It can be 
found by querying installed applications with permission 
android.permission.RESTART_PACKAGES or 
android.permission.KILL_BACKGROUND_PROCESSES.

Original issue reported on code.google.com by marshima...@gmail.com on 20 Oct 2011 at 4:23

GoogleCodeExporter commented 9 years ago
The method restartPackage in class ActivityManager uses the permission 
android.permission.RESTART_PACKAGES to stop all activities, receivers, and 
services.

But since android 2.2, it is deprecated and replaced by the method 
killBackgroundProcesse. This method can not stop the activities, just restart 
the services.

Original comment by marshima...@gmail.com on 20 Oct 2011 at 4:26