1

I'm trying to mount an obb file but

std::fstream test("/storage/emulated/0/Android/obb/com.bixense.jngl_test/main.1.com.bixense.jngl_test.obb");
assert(test);

says it doesn't exist (or I can't access it). When looking via adb shell the file is located here:

/storage/sdcard1/Android/obb/com.bixense.jngl_test/main.1.com.bixense.jngl_test.obb

Do I need to give my app some special permission?

jhasse
  • 2,379
  • 1
  • 30
  • 40

2 Answers2

2

I would try to access it in good old C style and print strerror(errno) as in https://stackoverflow.com/a/504039/755804

Community
  • 1
  • 1
18446744073709551615
  • 16,368
  • 4
  • 94
  • 127
1

Okay I've fixed it using

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

in my AndroidManifest.xml. Strange, I thought I've read that this isn't needed for accessing my own files ...

jhasse
  • 2,379
  • 1
  • 30
  • 40