Skip to content

ianbeu/AndroidMemoryBehaviorTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidMemoryBehaviorTest

Android app for demonstrating memory safety behavior across different Android ROM configurations (Stock Android, LineageOS, /e/OS, GrapheneOS), with a focus on how each allocator responds to classic memory misuse patterns such as double-free, use-after-free, and heap overflow.

The test suite is derived from the hardened_malloc reference tests and is compiled as a native shared library (libmemtests.so) loaded by the app at runtime.

Layout

  • app/: Android application source and native test library.
  • docs/: project notes, methodology, and recorded results.

Documentation

Main entrypoint

Build and install the app via Android Studio or Gradle:

./gradlew installDebug

Then launch the app on the target device and trigger individual tests from the UI. Capture logcat output with:

adb logcat -s memtests memtests-ui

Notes

  • Test results are recorded manually in docs/results.md per ROM/device configuration.
  • The native test suite is derived from GrapheneOS/hardened_malloc reference tests; that repository is the authoritative source for the original test definitions.
  • The native library is built with -O0 -g3 -fno-omit-frame-pointer in debug builds to preserve stack frames in crash dumps.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors