Skip to content

[Bug] Sync dir making error ENOENT #871

Open

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

Activity

  1. 8dmusichannels-star commented on Jul 8, 2026

    @8dmusichannels-star
    Author

    have you been able to resolve this issue?

    Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

  2. Thaodan commented on Jul 14, 2026

    @Thaodan

    The permissions on the directory are wrong.

    have you been able to resolve this issue?

    Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

    I don't think this is the appropriate place to advertise another app.

    You can do this with the right permissions with:

    mkdir -m770 -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
    ls -l /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/
    # take copy the user and group id of the existing files
    # and replace what's below 
    chmod user-id:group-id /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
    

    The files directory should exist already.

  3. 8dmusichannels-star commented on Jul 14, 2026

    @8dmusichannels-star
    Author

    The permissions on the directory are wrong.

    have you been able to resolve this issue?

    Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

    I don't think this is the appropriate place to advertise another app.

    You can do this with the right permissions with:

    mkdir -m770 -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
    ls -l /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/
    # take copy the user and group id of the existing files
    # and replace what's below 
    chmod user-id:group-id /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
    

    The files directory should exist already.

    There's no prohibition against me mentioning issues in my application suggestion, and it's not possible to bypass sandbox restrictions on any platform with the correct permissions. Furthermore, the inability to create a directory is a current bug, so how can you expect it to be created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions