Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann authored Jan 19, 2020
1 parent a8a0422 commit 10ba456
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Leoric 是一个 Android 上的黑科技保活方法的 PoC,它可以对抗在

虽然理论上这个方法可以支持任意的 Android 版本,但本 PoC 仅仅在 Android 9.0上测试过。具体使用方式参见 demo 项目。

## 应对方法

保证在执行 `force-stop` 的时候,不要让被 `force-stop` 的那个进程有任何机会启动新的进程即可;下面是一种简单的方法杀死 Leoric:

```
ps -A | grep `ps -A | grep me.weishu.leoric | awk '{print $1}' | head -1` | awk '{print $2}' | xargs kill -19 && am force-stop me.weishu.leoric
```

## 实现原理

- [Android 黑科技保活实现原理揭秘](http://weishu.me/2020/01/16/a-keep-alive-method-on-android/)
Expand Down

0 comments on commit 10ba456

Please sign in to comment.