Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

eove/AndroidKernelLeak

Repository files navigation

Android Kernel Leak

Simple app to reveal a slab memory leak.

This app contains a modal which is periodically shown or hidden.

Opening and closing modal over time should not increase slab memory but it does on eo-display.

How to detect a memory leak

Run app with android studio for convenience or build it (see below).

Open a tab to watch slab memory:

while true; do adb shell grep SUnreclaim /proc/meminfo; sleep 5; done

You should see SUnreclaim: increasing over time.

Build apk

Build app:

./gradlew assembleDebug

Install it with:

adb install ./app/build/outputs/apk/debug/app-debug.apk

About

Simple app to reveal a slab memory leak.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages