I know this question was asked a lot of times, and I think i read all relevant threads, all saying that android app can't kill another app, unless they both have the same user id (BTW, how can two applications have the same UID, isn't a unique id that application gets when it's installed?) BUT, i recently installed avast! on my device and used their app locker feature. by running ps, from adb shell, i can see that when avast! block my application, they are also killing the process.
The device is not rooted, the application doesn't ask for device administration, they don't ask for any special permission (except of course, to kill background apps), so I wonder, how can they kill my application process if we don't share the same uid?
I tried using ActivityManager.killBackgroundProcesses(PackageName), but nothing happens, the application i'm trying to kill, is not killed.
Thanks.
0 comments:
Post a Comment