r/AndroidStudio • • 23h ago

I built an Android Studio plugin to make memory leak investigation easier

Post image
2 Upvotes

I've been working on an Android Studio plugin called LeakLens, focused on making memory leak investigation and heap analysis easier without requiring changes to the application code or adding another SDK.

The idea started with a simple question: can we bring more of the memory debugging workflow directly into Android Studio?

LeakLens currently explores a few areas:

  • Capturing heap dumps through ADB.
  • Analyzing HPROF files using Shark.
  • Investigating object retention and reference paths.
  • Detecting potential lifecycle and memory-related issues through code analysis.
  • Using AI to help explain findings and suggest possible fixes.

I recently presented the project in a 40-minute session at Droidcon India 2026. One thing that stood out was how interested developers were in having more of this workflow available directly inside the IDE.

I'm still actively developing it and would love feedback from people who use Android Studio regularly.

A few things I'd like to understand:

  • What do you currently use for investigating memory leaks?
  • Which parts of heap dump analysis do you find most frustrating?
  • What Android Studio tooling or integrations would genuinely improve your debugging workflow?
  • Would you find an IDE-integrated memory investigation workflow useful alongside LeakCanary?

Project: LeakLens

GitHub: https://github.com/dev-vikas-soni/leak-lens

JetBrains Marketplace: https://plugins.jetbrains.com/plugin/32079-leaklens--android-memory-leak-detector--ai-fix-assistant

Feedback, criticism, and suggestions are welcome!


r/AndroidStudio • • 5h ago

Free on-device report of what your test phone's Android environment actually looks like (DChecker, new from our team)

1 Upvotes

Disclosure: this is the Device Changer project account (we make a Zygisk module for Android QA and device simulation). We just released a separate app, DChecker, and I think it's useful on its own for anyone debugging "works on my phone, breaks on the test device" issues.

What it does: it scans the phone it runs on and reports what is modified in the Android environment, as a list of signals rather than one clean/compromised verdict. 24 detector groups, 500+ checks, covering:

  • Boot and OS: bootloader, AVB/vbmeta, dm-verity, custom ROM, system properties, kernel, SELinux
  • Root and injection: su paths and root managers, mounts and namespaces, Zygisk, LSPosed, Xposed
  • Trusted environment: TEE, Keystore, KeyMint, attestation
  • Runtime: virtualization, ADB, automation surfaces
  • Apps and device identity: identifiers, sandbox, hardware profile
  • Location and network: GPS, SIM, cell, Wi-Fi, GNSS, IP, mock location, VPN, proxies

The part I like from a QA point of view: it reads the same fact through several layers (framework APIs, native code, shell, procfs, sysfs, kernel) and flags it when they disagree, and it links related findings across detectors (19 correlation rules). Each finding has a severity (Danger / Warning / Info), and you can export the full text report and attach it to a bug ticket, so whoever picks the ticket up knows exactly what state the test device was in.

Practical details: Android 10+, root not required (with root it can see more; anything the sandbox can't read is marked unavailable rather than "clean"), no telemetry, UI in English, Russian and Chinese. 3 scans a day for everyone, 10 after registering, unlimited with a Device Changer license.

Caveats, straight from our own notes: absence of a signal doesn't prove nothing was changed, and it doesn't predict whether any particular app or service will accept the device. It's a diagnostic tool, not a verdict.

Happy to answer questions about what a specific check looks at.