Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update koom-native-leak/README #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion koom-native-leak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@ LeakMonitor.INSTANCE.stop()
```java
LeakMonitor.INSTANCE.checkLeaks()
```

- **Attention**, please make sure that the config in `app/AndroidManifest.xml`, `android:extractNativeLibs` attribute must be `true`, otherwise LeakMonitor can not obtain any native leak record
```xml
...
<application
...
android:extractNativeLibs="true"
...
/>
```
# FAQ
- Why are devices below Android N not supported?
- AOSP added the libmemunreachable module after Android N, "Of course, you can also extract it by yourself and test it in the APP."
Expand Down
9 changes: 9 additions & 0 deletions koom-native-leak/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ LeakMonitor.INSTANCE.stop();
```java
LeakMonitor.INSTANCE.checkLeaks();
```
- **注意**,请确保`app/AndroidManifest.xml`中的配置,`android:extractNativeLibs`属性必须为`true`,否则无法抓取到native泄漏
```xml
...
<application
...
android:extractNativeLibs="true"
...
/>
```
# FAQ
- 为什么不支持 Android N 以下的设备?
- AOSP 在 Android N 之后系统才增加了 libmemunreachable 模块「当然也可以自己抽出来在 APP 测实现」
Expand Down