After upgrading to Tizen 2.2 I find myself unable to list the contents of the external storage (SD card). I'm using GetExternalStoragePath() to get the path, and a DirEnumerator to go through the files and directories.
I construct the enumerator, call ReadN, followed by a loop where I call MoveNext. On the first call to MoveNext I get an error like this:
ERROR / Tizen::Io ( 3114 : 3114 ) : result Tizen::Io::_DirEnumeratorImpl::MoveNext()(157) > [E_ILLEGAL_ACCESS] [SECURE_LOG] Failed to get attributes for directory entry (/opt/storage/sdcard//filename.ext), errno: 13 (Permission denied)
The same code was working fine with Tizen 2.1 and 2.2 beta. I can list the files on the external storage using sdb regardless of whether I'm in root mode or not. What has changed in 2.2 that would affect this? Is there some priviledge that I need to add to my app's manifest?
I'm running my app in the emulator using the emulimg-2.2.x86, if that matters.