문제

I've just mounted samba share to my Nexus 7 (CM 11) under root using kernel module.

Everything seems ok for applications (ES File Manager, Total Commander etc), I see files and can read them, even "cat" command from shell works. But I'm unable to read them from my app! Neither with native calls (open sets errno to ENOENT) nor FileInputStream.

I tried many names:

/storage/emulated/0/mounted_folder/file.txt
/storage/emulated/legacy/mounted_folder/file.txt
/sdcard/mounted_folder/file.txt
/mnt/shell/emulated/0/mounted_folder/file.txt

with root privelegies, with read-write permissions and many other variations, still no luck :(

What am I missing?

도움이 되었습니까?

해결책

The cause of the problem was in multi-user storage implementation. You can read the discussion and get patches here: http://forum.xda-developers.com/showthread.php?t=2106480

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top