Skip to content Skip to sidebar Skip to footer

Java.lang.securityexception: Not Allowed To Stop Service Intent?

I want kill another app's server by ActivityManager.RunningServiceInfo in third app. eg,some app's service I want keep alive,else service(NOT fit for Service START_STICK) will be k

Solution 1:

You cannot use the permissions "android.permission.SHUTDOWN" and "android.permission.FORCE_STOP_PACKAGES" unless your package is signed with system certificate. Having the permission "android.permission.KILL_BACKGROUND_PROCESSES" will allow you to kill only your processes.


Post a Comment for "Java.lang.securityexception: Not Allowed To Stop Service Intent?"