Skip to content

[Bug] Sync dir making error ENOENT #871

Description

@8dmusichannels-star

Guidelines

  • 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

Logcat error:
java.lang.IllegalStateException: Failed to prepare
/storage/emulated/0/Android/data/com.machiav3lli.fdroid/files
at RepositoryUpdater.processIndexV2(...:353)

Root cause: Neo Store calls getExternalFilesDir() to store
index-v2 JSON files, but the directory is not created
automatically on this ROM.

Expected Behavior

I found a way to fix this error. I'm opening the problems, but this fix will prevent the error from occurring. By entering the commands below, the synchronization problem will be eliminated by creating the targeted index directory.

su -c "mkdir -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index"
su -c "chmod 777 /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files"
su -c "chmod 777 /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index"

If you want root access, you can solve this in this way, but this solution is temporary. For the real solution, the application needs to create the directory it directly targets.

Neo Store's Version

1.2.6

Installation Source

Github/Codeberg/Gitlab releases

Last Known Working Version

1.2.6

Relevant information

  • Device: Redmi note 10 pro
  • Android Version: 16
  • ROM: İnfinity X
  • Disabled battery optimization for Neo Store? = yeah
  • What is your selected installer? = Root installer

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