LeakScope: Android Lifecycle & Memory Leak Violations
About this report: This issue was automatically generated by LeakScope, a static analysis tool for Android lifecycle violations and memory leaks built on the Soot framework. This is part of an ongoing academic research study targeting ICSE 2027. No immediate action is required — we would greatly appreciate your feedback on whether these findings are accurate.
Summary
LeakScope detected 4 potential issue(s) across 3 detector type(s):
| Severity |
Count |
| 🔴 High |
1 |
| 🟡 Medium |
1 |
| 🟢 Low (improvement opportunity) |
2 |
| Detector |
Count |
Severity |
Description |
ThreadedUIReference |
1 |
🔴 High |
Worker thread captures Activity/Fragment/View reference |
ServiceResourceManagementIssueDetector |
1 |
🟡 Medium |
Service may never stop — missing stopSelf() call |
ViewBindingOpportunity |
2 |
🟢 Low |
Manual findViewById() calls — ViewBinding migration opportunity |
Detailed Findings
🔴 ThreadedUIReference
Worker thread captures Activity/Fragment/View reference
Finding #1 — ShortcutActivity\n// (Full source code omitted for brevity)\n"
{
"text_input": "package io.github.muntashirakon.setedit.shortcut;\n\n// Class: io.github.muntashirakon.setedit.shortcut.ShortcutActivity\n// (Full source code omitted for brevity)\n",
"output": "Yes",
"project": "muntashirakon",
"explanation": "Scenario 1: Worker thread holds UI object reference\nClass: io.github.muntashirakon.setedit.shortcut.ShortcutActivity\nMethod: void onCreate(android.os.Bundle)\nStatement: $r2 \u003d new io.github.muntashirakon.setedit.shortcut.ShortcutActivity$$ExternalSyntheticLambda4\nCaptured UI objects:\n - r0 : io.github.muntashirakon.setedit.shortcut.ShortcutActivity\nRisk: UI object will be kept in memory until thread completes\nFix: Use WeakReference or avoid passing UI objects to worker threads\n"
}
{
"text_input": "package io.github.muntashirakon.setedit.shortcut;\n\n// Class: io.github.muntashirakon.setedit.shortcut.ShortcutActivity\n// (Full source code omitted for brevity)\n",
"output": "Yes",
"project": "muntashirakon",
"explanat
… (truncated for brevity)
🟡 ServiceResourceManagementIssueDetector
Service may never stop — missing stopSelf() call
Finding #2 — BootService
⚠� Service may never stop. Consider calling stopSelf() when work is complete.
Class: io.github.muntashirakon.setedit.boot.BootService
Method: onStartCommand
🟢 ViewBindingOpportunity
Manual findViewById() calls — ViewBinding migration opportunity
Finding #3 — ShortcutActivity
View Binding Migration Opportunity
Class: io.github.muntashirakon.setedit.shortcut.ShortcutActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
Benefits of View Binding:
- Eliminates boilerplate findViewById() calls
- Compile-time type safety for view references
- Reduced null pointer exceptions
- Cleaner, more maintainable code
Note: This is a code modernization suggestion, not a memory leak
Finding #4 — EditorActivity
View Binding Migration Opportunity
Class: io.github.muntashirakon.setedit.EditorActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in addNewItemDialog
• findViewById in addNewItemDialog
• findViewById in addNewItemDialog
• findViewById in addNewItemDialog
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
Benefits of View Binding:
- Eliminates boilerplate findViewById() calls
- Compile-time type safety for view references
- Reduced null pointer exceptions
- Cleaner, more maintainable code
Note: This is a code modernization suggestion, not a memory leak
How to respond to this issue:
- If a finding is a true positive: consider applying the recommended fix and closing this issue.
- If a finding is a false positive: please leave a comment explaining why — your feedback directly improves our research.
- If you have questions: reply here or open a discussion.
This report was generated by LeakScope as part of the ICSE 2027 research artifact. Tool analyzes compiled APKs using Soot static analysis on SetEdit.
LeakScope: Android Lifecycle & Memory Leak Violations
Summary
LeakScope detected 4 potential issue(s) across 3 detector type(s):
ThreadedUIReferenceServiceResourceManagementIssueDetectorViewBindingOpportunityDetailed Findings
🔴
ThreadedUIReferenceWorker thread captures Activity/Fragment/View reference
Finding #1 —
ShortcutActivity\n// (Full source code omitted for brevity)\n"🟡
ServiceResourceManagementIssueDetectorService may never stop — missing stopSelf() call
Finding #2 —
BootService🟢
ViewBindingOpportunityManual findViewById() calls — ViewBinding migration opportunity
Finding #3 —
ShortcutActivityFinding #4 —
EditorActivityHow to respond to this issue:
This report was generated by LeakScope as part of the ICSE 2027 research artifact. Tool analyzes compiled APKs using Soot static analysis on SetEdit.