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 17 potential issue(s) across 2 detector type(s):
| Severity |
Count |
| 🔴 High |
3 |
| 🟡 Medium |
0 |
| 🟢 Low (improvement opportunity) |
14 |
| Detector |
Count |
Severity |
Description |
ThreadedUIReference |
3 |
🔴 High |
Worker thread captures Activity/Fragment/View reference |
ViewBindingOpportunity |
14 |
🟢 Low |
Manual findViewById() calls — ViewBinding migration opportunity |
Detailed Findings
🔴 ThreadedUIReference
Worker thread captures Activity/Fragment/View reference
Finding #1 — ChatActivity
Scenario 1: Worker thread holds UI object reference
Class: net.devemperor.wristassist.activities.ChatActivity
Method: void query(java.lang.String)
Statement: $r19 = new net.devemperor.wristassist.activities.ChatActivity$$ExternalSyntheticLambda0
Captured UI objects:
- r0 : net.devemperor.wristassist.activities.ChatActivity
Risk: UI object will be kept in memory until thread completes
Fix: Use WeakReference or avoid passing UI objects to worker threads
Finding #2 — CreateImageActivity
Scenario 1: Worker thread holds UI object reference
Class: net.devemperor.wristassist.activities.CreateImageActivity
Method: void createAndDownloadImage()
Statement: $r5 = new net.devemperor.wristassist.activities.CreateImageActivity$$ExternalSyntheticLambda0
Captured UI objects:
- r0 : net.devemperor.wristassist.activities.CreateImageActivity
Risk: UI object will be kept in memory until thread completes
Fix: Use WeakReference or avoid passing UI objects to worker threads
Finding #3 — InputWhisperActivity
Scenario 1: Worker thread holds UI object reference
Class: net.devemperor.wristassist.activities.InputWhisperActivity
Method: void startWhisperApiRequest()
Statement: $r1 = new net.devemperor.wristassist.activities.InputWhisperActivity$$ExternalSyntheticLambda2
Captured UI objects:
- r0 : net.devemperor.wristassist.activities.InputWhisperActivity
Risk: UI object will be kept in memory until thread completes
Fix: Use WeakReference or avoid passing UI objects to worker threads
🟢 ViewBindingOpportunity
Manual findViewById() calls — ViewBinding migration opportunity
Finding #4 — AboutActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.AboutActivity
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 #5 — ChatActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.ChatActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
• 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
Finding #6 — MainActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.MainActivity
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 #7 — OpenImageActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.OpenImageActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• 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
Finding #8 — CreateImageActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.CreateImageActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• 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
Finding #9 — OnboardingActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.OnboardingActivity
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 #10 — InputTypeActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.InputTypeActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• 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
Finding #11 — EditChatActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.EditChatActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
• 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
Finding #12 — InputWhisperActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.InputWhisperActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• findViewById in onCreate
• 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
Finding #13 — UsageActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.UsageActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• 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
Finding #14 — QRCodeActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.QRCodeActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• 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 #15 — ChangelogActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.ChangelogActivity
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 #16 — GalleryActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.GalleryActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
• 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 #17 — SavedChatsActivity
View Binding Migration Opportunity
Class: net.devemperor.wristassist.activities.SavedChatsActivity
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
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 WristAssist.
LeakScope: Android Lifecycle & Memory Leak Violations
Summary
LeakScope detected 17 potential issue(s) across 2 detector type(s):
ThreadedUIReferenceViewBindingOpportunityDetailed Findings
🔴
ThreadedUIReferenceWorker thread captures Activity/Fragment/View reference
Finding #1 —
ChatActivityFinding #2 —
CreateImageActivityFinding #3 —
InputWhisperActivity🟢
ViewBindingOpportunityManual findViewById() calls — ViewBinding migration opportunity
Finding #4 —
AboutActivityFinding #5 —
ChatActivityFinding #6 —
MainActivityFinding #7 —
OpenImageActivityFinding #8 —
CreateImageActivityFinding #9 —
OnboardingActivityFinding #10 —
InputTypeActivityFinding #11 —
EditChatActivityFinding #12 —
InputWhisperActivityFinding #13 —
UsageActivityFinding #14 —
QRCodeActivityFinding #15 —
ChangelogActivityFinding #16 —
GalleryActivityFinding #17 —
SavedChatsActivityHow 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 WristAssist.