Skip to content

[Bug] Potential UI thread blocking issue #992

@nbd-boss

Description

@nbd-boss

Guidelines

  • I have read the FAQ and it doesn't cover the issue.
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm on the latest version.
  • I'm not using a test build (alpha/beta/release-candidate).
  • This issue contains only one bug.

Describe the bug

Running the time-consuming operation of launching a shell subprocess and waiting for its return on the UI thread may cause the UI thread to become blocked.

Expected Behavior

This operation does not run on the UI thread.

Neo Backup's Version

8.3.14

Installation Source

Official F-Droid repo

Last Known Working Version

No response

Relevant information

In the onCreate function of NeoActivity.kt, the method checkRootEquivalent() is called synchronously.
Since this method executes shell commands in a blocking manner, it may freeze the main thread during app startup.
It is recommended to move this call off the UI thread to avoid performing time-consuming operations on the main thread and improve startup performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions