4

How can one app kills other apps in android? I am developing a Parental control application which gonna block other apps from running same as AppLock and Android Parental Control are doing. These apps require password on opening/launching of any locked application, If password is not correct then they kill that application. I have few questions:

  1. How these apps are monitoring other application launches? (by contentiously reading activity manager? from background service)
  2. How these apps kill other application although android OS doesn't allow it.

Any help will be greatly appreciated :-)

NOTE: PLEASE DON'T START YOUR ANSWERS WITH "ITS NOT POSSIBLE IN ANDROID", I ALREADY MENTIONED APPS WHICH HAVE ACHIEVED IT.

Ahmad Raza
  • 2,850
  • 1
  • 21
  • 37

2 Answers2

3

There are certain answers on this topic stack-overflow already, like

  1. Block Applications
  2. How to Lock(Block) an android application from starting / How to stop an android application (service) from starting at boot
  3. Kill another application on Android?

That should be of some help. Android doesn't allow apps to interfere with other apps easily,I don't think there is a clean way to do this without hacking into launch process or without changing the privileges your app has.

Community
  • 1
  • 1
vinsk
  • 61
  • 3
0

You can kill any process this in pre 2.2 version of OS unless your app has got root access. Post 2.2 You can only stop back ground processes or services of other apps but you cannot stop the Activity windows.

rana
  • 1,824
  • 3
  • 21
  • 36