Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Repo opening failed" on Android API 30+ #140

Open
1 task done
jefft0 opened this issue Nov 8, 2022 · 0 comments
Open
1 task done

Error "Repo opening failed" on Android API 30+ #140

jefft0 opened this issue Nov 8, 2022 · 0 comments
Labels
bug Something isn't working verified Bug is verified

Comments

@jefft0
Copy link
Collaborator

jefft0 commented Nov 8, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Package version

v1.9.0

Language version and compiler version

go 1.18, javac 11

Bug description

  1. Connect a phone running Android 11+ (Android 30+) which has an external SD card.

  2. In the Java IPFS constructor, set internalStorage false. Change this line to:

    File externalDir = context.getExternalFilesDirs(null)[1];
    

(In my case, externalDir is /storage/C45B-552B/Android/data/null.example/files .)
3. Run the test app.

Current behavior

Logcat shows the error "IPFS start error: Node start failed: Repo opening failed" from this line.

Expected behavior

The app should prompt the user for permission to use the directory, and successfully open the repo.

Environment

macOS 10.15 on Samsung Galaxy S20, Android 12

Other

No response

@jefft0 jefft0 added bug Something isn't working 🔍 Ready for Review labels Nov 8, 2022
@jefft0 jefft0 self-assigned this Nov 8, 2022
@jefft0 jefft0 added verified Bug is verified and removed 🔍 Ready for Review labels Apr 18, 2023
@jefft0 jefft0 removed their assignment Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified Bug is verified
Projects
None yet
Development

No branches or pull requests

1 participant