Clear all recent tasks Programmatically

前端 未结 4 1843
别跟我提以往
别跟我提以往 2020-12-11 23:27

I am trying to remove all recent tasks through a program. Before posting a question, I googled it, but no luck at all.

I tried to use ActivityManager.killBackg

4条回答
  •  無奈伤痛
    2020-12-11 23:51

    REMOVE_TASKS is a signature-level permission. It can only be held by apps written by the developers of the device firmware, such as a device manufacturer or ROM mod author.

提交回复
热议问题