Skip to content

[LeakScope] 21 Android lifecycle/memory violations detected #52

Description

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 21 potential issue(s) across 1 detector type(s):

Severity Count
🔴 High 0
🟡 Medium 0
🟢 Low (improvement opportunity) 21
Detector Count Severity Description
ViewBindingOpportunity 21 🟢 Low Manual findViewById() calls — ViewBinding migration opportunity

Detailed Findings

🟢 ViewBindingOpportunity

Manual findViewById() calls — ViewBinding migration opportunity

Finding #1SceneDetailActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.SceneDetailActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in askForSceneName
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in showAddSceneLoading
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 #2WiFiConfigActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.WiFiConfigActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #3ScheduleDetailActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ScheduleDetailActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in askForScheduleName
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in showAddScheduleLoading
Benefits of View Binding:
- Eliminates boilerplate findViewById() calls
- Co
… (truncated for brevity)

Finding #4ProvisionLanding

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ProvisionLanding
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #5ProofOfPossessionActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ProofOfPossessionActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #6FwUpdateActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.FwUpdateActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #7ThreadConfigActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ThreadConfigActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in showError
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 #8GroupDetailActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.GroupDetailActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in askForGroupName
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in showLoading
Benefits of View Binding:
- Eliminates boilerplate findViewById() calls
- Compile-time type safety for view references
- Reduced null pointer exceptions
- Cleaner, more maintainable code
No
… (truncated for brevity)

Finding #9EspMainActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.EspMainActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in askForAutomationName
  • findViewById in askForSceneName
  • findViewById in askForScheduleName
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in updateUi
  • 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 #10ScheduleActionsActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ScheduleActionsActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
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 #11GroupsActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.GroupsActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in init
  • findViewById in init
  • findViewById in init
  • findViewById in init
  • findViewById in init
  • findViewById in init
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 #12NodeDetailsActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.NodeDetailsActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 — BLEProvisionLanding

View Binding Migration Opportunity
Class: com.espressif.ui.activities.BLEProvisionLanding
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in askForPrefix
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #14AddDeviceActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.AddDeviceActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in openCamera
  • findViewById in onRequestPermissionsResult
  • findViewById in onRequestPermissionsResult
  • findViewById in onRequestPermissionsResult
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 #15CmdRespActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.CmdRespActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #16SceneActionsActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.SceneActionsActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
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 #17ProvisionActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.ProvisionActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
Benefits of View Binding:
- Eliminates boilerplate findViewById() calls
- Compile-time type safety for 
… (truncated for brevity)

Finding #18GroupNodeSelectionActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.GroupNodeSelectionActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in showLoading
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 #19EventDeviceActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.EventDeviceActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
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 #20GroupShareActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.GroupShareActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
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 #21 — GroupInfoActivity

View Binding Migration Opportunity
Class: com.espressif.ui.activities.GroupInfoActivity
Type: Activity
Current Pattern: Manual view lookup
findViewById() Calls:
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in initViews
  • findViewById in shareGroupRequest
  • findViewById in shareGroupRequest
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 esp-rainmaker-android.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions