Hello,
This function requires Android root privileges.
If you use ADB debugging, you'll find that this command am force-stop packageName
works.
However, in the current Android phones, Google does not allow users to obtain root privileges for security reasons.
Therefore, it is no possible to implement this function to force-stop an other app.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.