From b52d6d6d068d105633114dec8562e59abfd7ec95 Mon Sep 17 00:00:00 2001 From: chenyu Date: Sun, 9 Oct 2022 14:30:03 +0800 Subject: [PATCH] update koom-native-leak/README, indicate the importance of `android:extractNativeLibs` --- koom-native-leak/README.md | 10 +++++++++- koom-native-leak/README.zh-CN.md | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/koom-native-leak/README.md b/koom-native-leak/README.md index 14d9dcb5..2e388807 100644 --- a/koom-native-leak/README.md +++ b/koom-native-leak/README.md @@ -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 +... + +``` # 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." diff --git a/koom-native-leak/README.zh-CN.md b/koom-native-leak/README.zh-CN.md index 16cc161a..bba651a5 100644 --- a/koom-native-leak/README.zh-CN.md +++ b/koom-native-leak/README.zh-CN.md @@ -53,6 +53,15 @@ LeakMonitor.INSTANCE.stop(); ```java LeakMonitor.INSTANCE.checkLeaks(); ``` +- **注意**,请确保`app/AndroidManifest.xml`中的配置,`android:extractNativeLibs`属性必须为`true`,否则无法抓取到native泄漏 +```xml +... + +``` # FAQ - 为什么不支持 Android N 以下的设备? - AOSP 在 Android N 之后系统才增加了 libmemunreachable 模块「当然也可以自己抽出来在 APP 测实现」